/* Landing page — "Institutional Clarity" design */
/* Premium financial-services aesthetic: deep navy + gold + teal */

/* ─────────────────────────────────────────
   Tokens
───────────────────────────────────────── */
:root {
    /* Core brand */
    --landing-deep:        #1a2332;
    --landing-deep-rgb:    26, 35, 50;
    --landing-accent:      #d4a853;
    --landing-accent-rgb:  212, 168, 83;
    --landing-teal:        #2dd4bf;
    --landing-teal-rgb:    45, 212, 191;

    /* Feature bullet palette */
    --landing-bullet-red:    #ef4444;
    --landing-bullet-yellow: #d4a853;   /* updated to gold */
    --landing-bullet-green:  #2dd4bf;   /* updated to teal */
    --landing-bullet-blue:   #60a5fa;
    --landing-bullet-orange: #f97316;
    --landing-bullet-purple: #a855f7;

    /* Surfaces */
    --landing-glass-bg:      rgba(255, 255, 255, 0.07);
    --landing-glass-border:  rgba(255, 255, 255, 0.12);
    --landing-card-shadow:   0 8px 32px rgba(0, 0, 0, 0.28),
                             0 2px 8px  rgba(0, 0, 0, 0.16);

    /* Noise texture (subtle grain) */
    --landing-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

[data-bs-theme="dark"] {
    --landing-deep:       #111827;
    --landing-deep-rgb:   17, 24, 39;
    --landing-accent:     #e5b96a;
    --landing-accent-rgb: 229, 185, 106;
    --landing-glass-bg:   rgba(255, 255, 255, 0.05);
    --landing-glass-border: rgba(255, 255, 255, 0.09);
    --landing-card-shadow: 0 8px 40px rgba(0, 0, 0, 0.5),
                           0 2px 8px rgba(0, 0, 0, 0.3);
}


/* ─────────────────────────────────────────
   Base
───────────────────────────────────────── */
.landing-body {
    font-family: 'IBM Plex Sans', 'Source Sans 3', var(--bs-body-font-family);
    background: var(--bs-body-bg);
}


/* ─────────────────────────────────────────
   Header / Nav
───────────────────────────────────────── */
.landing-header {
    background: var(--landing-deep);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06),
                0 2px 12px rgba(0, 0, 0, 0.25);
}

.landing-header .navbar-brand {
    font-family: 'DM Sans', 'Source Sans 3', var(--bs-font-sans-serif);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff !important;
}

.landing-header .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
}

.landing-header .nav-link:hover {
    color: #fff !important;
}

.landing-header .navbar-toggler {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    border-color: rgba(255, 255, 255, 0.25);
}


/* ─────────────────────────────────────────
   Hero — animated gradient mesh
───────────────────────────────────────── */
.landing-hero {
    background: var(--landing-deep);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Base gradient layer */
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 10%,  rgba(212, 168, 83,  0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 90% 80%,  rgba(45,  212, 191, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 10% 50%,  rgba(212, 168, 83,  0.06) 0%, transparent 45%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(26,  35,  50,  0.5)  0%, transparent 70%);
    animation: landing-mesh-drift 18s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Animated shimmer orb */
.landing-hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 55%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.10) 0%, rgba(45, 212, 191, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    animation: landing-orb-pulse 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes landing-mesh-drift {
    0%   { opacity: 1;    transform: scale(1)    translateX(0)   translateY(0); }
    33%  { opacity: 0.85; transform: scale(1.04) translateX(-1%) translateY(1%); }
    66%  { opacity: 0.9;  transform: scale(0.98) translateX(1%)  translateY(-1%); }
    100% { opacity: 1;    transform: scale(1.02) translateX(-0.5%) translateY(0.5%); }
}

@keyframes landing-orb-pulse {
    0%, 100% { transform: scale(1)    translate(0, 0); opacity: 0.7; }
    25%       { transform: scale(1.08) translate(-2%, 3%); opacity: 1; }
    50%       { transform: scale(0.95) translate(3%, -2%); opacity: 0.6; }
    75%       { transform: scale(1.05) translate(-1%, 1%); opacity: 0.9; }
}

.landing-hero .container {
    position: relative;
    z-index: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Hero typography */
.landing-hero-title {
    font-family: 'DM Sans', 'Source Sans 3', var(--bs-font-sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.625rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.landing-hero-subtitle {
    font-family: 'IBM Plex Sans', 'Source Sans 3', var(--bs-font-sans-serif);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}

/* Hero decorative visual */
.landing-hero-visual {
    position: relative;
    display: inline-block;
}

.landing-hero-icon {
    width: 120px;
    height: 120px;
    color: var(--landing-accent);
    opacity: 0.95;
    filter: drop-shadow(0 0 24px rgba(212, 168, 83, 0.35));
}

.landing-hero-dots {
    position: absolute;
    inset: -20px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    border-radius: 50%;
}


/* ─────────────────────────────────────────
   Login card — frosted glass
───────────────────────────────────────── */
.landing-hero .login-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    box-shadow: var(--landing-card-shadow),
                0 0 0 1px rgba(212, 168, 83, 0.12) inset;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.landing-hero .login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32),
                0 4px 12px rgba(0, 0, 0, 0.18),
                0 0 0 1px rgba(212, 168, 83, 0.2) inset;
}

[data-bs-theme="dark"] .landing-hero .login-card {
    background: rgba(22, 30, 46, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--landing-card-shadow),
                0 0 0 1px rgba(212, 168, 83, 0.15) inset;
}

.landing-hero .login-card .form-label {
    color: var(--bs-body-color);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Gold accent line above the card heading */
.landing-hero .login-card .card-body::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 2px;
    background: var(--landing-accent);
    margin-bottom: 1.25rem;
    border-radius: 2px;
}


/* ─────────────────────────────────────────
   Feature bullet list (hero sidebar)
───────────────────────────────────────── */
.landing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.landing-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.975rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.005em;
}

.landing-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

/* Subtle glow halo on bullets */
.landing-bullet::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    opacity: 0.35;
    filter: blur(3px);
}

.landing-bullet-red    { background: var(--landing-bullet-red); }
.landing-bullet-red::after { background: var(--landing-bullet-red); }

.landing-bullet-yellow { background: var(--landing-bullet-yellow); }
.landing-bullet-yellow::after { background: var(--landing-bullet-yellow); }

.landing-bullet-green  { background: var(--landing-bullet-green); }
.landing-bullet-green::after { background: var(--landing-bullet-green); }

.landing-bullet-blue   { background: var(--landing-bullet-blue); }
.landing-bullet-blue::after { background: var(--landing-bullet-blue); }

.landing-bullet-orange { background: var(--landing-bullet-orange); }
.landing-bullet-orange::after { background: var(--landing-bullet-orange); }

.landing-bullet-purple { background: var(--landing-bullet-purple); }
.landing-bullet-purple::after { background: var(--landing-bullet-purple); }

.landing-bullet-gold { background: var(--landing-accent); }
.landing-bullet-gold::after { background: var(--landing-accent); }


/* ─────────────────────────────────────────
   Eyebrow label (small overline above titles)
───────────────────────────────────────── */
.landing-eyebrow {
    display: inline-block;
    font-family: 'IBM Plex Sans', 'Source Sans 3', var(--bs-font-sans-serif);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--landing-accent);
    margin-bottom: 0.75rem;
}

.landing-section .landing-eyebrow {
    color: rgba(212, 168, 83, 0.85);
}


/* ─────────────────────────────────────────
   Section scaffolding
───────────────────────────────────────── */
.landing-section {
    background: var(--landing-deep);
    color: #fff;
    position: relative;
}

.landing-section-light {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.landing-section-title {
    font-family: 'DM Sans', 'Source Sans 3', var(--bs-font-sans-serif);
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}


/* ─────────────────────────────────────────
   Feature icons (light section)
───────────────────────────────────────── */
.landing-feature-icon {
    width: 64px;
    height: 64px;
    color: var(--landing-accent);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                filter   0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Icon glow background pill */
.landing-section-light [data-lucide].landing-feature-icon {
    color: var(--landing-accent);
    filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.25));
}

.landing-section-light .col-md-4:hover .landing-feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 16px rgba(212, 168, 83, 0.45));
}

/* Icon wrapper badge — subtle gold glow bg */
.landing-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.18);
    margin-bottom: 1rem;
    transition: background 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-icon-wrap:hover {
    background: rgba(212, 168, 83, 0.14);
    border-color: rgba(212, 168, 83, 0.3);
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .landing-icon-wrap {
    background: rgba(212, 168, 83, 0.07);
    border-color: rgba(212, 168, 83, 0.14);
}

/* Dark-section feature icons */
.landing-section .landing-feature-visual {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-section .landing-feature-icon {
    color: rgba(255, 255, 255, 0.9);
}

.landing-feature-visual-alt .landing-feature-icon {
    color: var(--landing-accent);
}

/* Feature visual block */
.landing-feature-visual {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 1.25rem;
    background: rgba(var(--landing-deep-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-feature-visual:hover {
    transform: scale(1.03);
}


/* ─────────────────────────────────────────
   Trust section — refined + noise overlay
───────────────────────────────────────── */
.landing-section.landing-trust {
    position: relative;
    overflow: hidden;
}

/* Noise grain texture */
.landing-section.landing-trust::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--landing-noise);
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: overlay;
}

/* Soft radial vignette */
.landing-section.landing-trust::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%,
        rgba(45, 212, 191, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.landing-section.landing-trust .container {
    position: relative;
    z-index: 1;
}

.landing-section.landing-trust .landing-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
}

.landing-trust-visual {
    display: flex;
    justify-content: center;
}

.landing-trust-icon {
    width: 64px;
    height: 64px;
    color: var(--landing-teal);
    filter: drop-shadow(0 0 16px rgba(45, 212, 191, 0.4));
}

/* Gold rule above trust title */
.landing-trust-rule {
    display: block;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--landing-accent), transparent);
    margin: 0 auto 1.25rem;
    border-radius: 2px;
}


/* ─────────────────────────────────────────
   CTA section
───────────────────────────────────────── */
.landing-cta {
    background: var(--landing-deep);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 10% 10%, rgba(45, 212, 191, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.landing-cta .container {
    position: relative;
    z-index: 1;
}

.landing-cta-title {
    font-family: 'DM Sans', 'Source Sans 3', var(--bs-font-sans-serif);
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}


/* ─────────────────────────────────────────
   Pricing cards — refined
───────────────────────────────────────── */
.landing-pricing-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                transform   0.25s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.25s;
}

.landing-pricing-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 168, 83, 0.25);
}

.landing-pricing-card-featured {
    border-color: var(--landing-accent);
    border-width: 2px;
    box-shadow: 0 4px 24px rgba(212, 168, 83, 0.15);
}

.landing-pricing-card-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(212, 168, 83, 0.22);
}

.landing-price {
    font-family: 'DM Sans', 'Source Sans 3', var(--bs-font-sans-serif);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--landing-deep);
}

[data-bs-theme="dark"] .landing-price {
    color: var(--landing-accent);
}

.landing-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: 0.925rem;
}

.landing-pricing-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.landing-pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--landing-teal);
    font-weight: 700;
}


/* ─────────────────────────────────────────
   Testimonials
───────────────────────────────────────── */
.landing-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.875rem;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    transition: background 0.2s;
}

.landing-testimonial:hover {
    background: rgba(255, 255, 255, 0.08);
}

.landing-quote {
    font-size: 3rem;
    line-height: 1;
    color: var(--landing-accent);
    opacity: 0.35;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-family: Georgia, serif;
}

.landing-testimonial p {
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    z-index: 1;
    font-style: italic;
    line-height: 1.6;
}

.landing-testimonial .fw-semibold {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}


/* ─────────────────────────────────────────
   Footer — refined
───────────────────────────────────────── */
.landing-footer {
    background: var(--landing-deep);
    color: #fff;
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.landing-footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
}

.landing-footer-link:hover {
    color: var(--landing-accent);
}

.landing-footer .text-white-50 {
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

/* Thin gold rule at top of footer */
.landing-footer::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.35), transparent);
}


/* ─────────────────────────────────────────
   Button radius — match app shape
───────────────────────────────────────── */
.landing-header .btn,
.landing-hero .btn,
.landing-section .btn,
.landing-cta .btn,
.landing-pricing-card .btn,
.landing-footer .btn {
    border-radius: var(--sp-btn-radius);
}


/* ─────────────────────────────────────────
   Gold accent divider utility
───────────────────────────────────────── */
.landing-gold-divider {
    display: block;
    width: 2.5rem;
    height: 2px;
    background: var(--landing-accent);
    border-radius: 2px;
    margin: 0 auto 1.25rem;
}

.landing-gold-divider-left {
    margin-left: 0;
}


/* ─────────────────────────────────────────
   Skip link (accessibility)
───────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--landing-accent);
    color: var(--landing-deep);
    padding: 0.5rem 1rem;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.2s;
    border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* ─────────────────────────────────────────
   Responsive adjustments
───────────────────────────────────────── */
@media (max-width: 991.98px) {
    .landing-hero .login-card {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .landing-hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .landing-hero .login-card {
        border-radius: 0.75rem;
    }

    .landing-hero .login-card .card-body {
        padding: 1.25rem;
    }

    .landing-section-title {
        font-size: 1.375rem;
    }

    .landing-pricing-card {
        padding: 1.25rem;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .landing-hero::before,
    .landing-hero::after {
        animation: none;
    }

    .landing-hero .login-card,
    .landing-feature-visual,
    .landing-icon-wrap,
    .landing-pricing-card-featured {
        transition: none;
    }
}
