/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-900: #0a0e1a;
    --navy-850: #0d1320;
    --navy-800: #0f1629;
    --navy-750: #111827;
    --navy-700: #161d35;
    --navy-600: #1e2747;
    --navy-500: #2a3558;
    --slate-400: #8892b0;
    --slate-300: #a8b2d1;
    --slate-200: #ccd6f6;
    --white: #e6f1ff;
    --accent-blue: #06b6d4;
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-gold: #d4a44c;
    --accent-gold-dim: rgba(212, 164, 76, 0.15);
    --gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
    --gradient-bg: linear-gradient(180deg, #0a0e1a 0%, #0f1629 100%);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Instrument Serif', Georgia, serif;
    --radius: 16px;
    --radius-lg: 16px;

    /* Type scale */
    --fs-display: clamp(2.75rem, 5vw, 3.75rem);
    --fs-h2: clamp(2rem, 3.2vw, 2.5rem);
    --fs-h3: 1.375rem;
    --fs-eyebrow: 0.75rem;
    --fs-lead: 1.125rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;
}

/* ===== Announcement Banner ===== */
.announcement-bar {
    background: var(--navy-700);
    color: var(--accent-gold);
    text-align: center;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid var(--navy-600);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font);
    background: var(--navy-900);
    color: var(--slate-300);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: var(--fs-body);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--slate-200);
    border: 1.5px solid var(--slate-400);
}

.btn-outline:hover {
    border-color: var(--accent-indigo);
    color: #fff;
    background: rgba(99, 102, 241, 0.08);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn.btn-nav {
    background: var(--gradient-primary);
    color: #fff;
    padding: 10px 22px;
    font-weight: 600;
    border: none;
    height: 44px;
}

.btn.btn-nav:hover {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    flex-shrink: 0;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .sm-mark {
    font-size: 0.55em;
    vertical-align: super;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--white);
    background-clip: unset;
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--slate-400);
    font-size: var(--fs-small);
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--slate-300);
    transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 60px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
}

/* Faint grid pattern overlay */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--fs-lead);
    color: var(--slate-400);
    margin-bottom: 36px;
    max-width: 46ch;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

/* Stat row with border strip */
.hero-stats {
    display: flex;
    gap: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--navy-600);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    display: flex;
    align-items: baseline;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-left: 1px;
}

.stat-label {
    font-size: var(--fs-small);
    color: var(--slate-400);
    margin-top: 4px;
}

/* Hero Visual - Valuation Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.valuation-card {
    background: var(--navy-800);
    border: 1px solid var(--navy-600);
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.card-body {
    padding: 28px;
}

.card-label {
    font-size: var(--fs-eyebrow);
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.card-change {
    font-size: var(--fs-small);
    font-weight: 600;
    margin-bottom: 24px;
}

.card-change.positive {
    color: var(--accent-gold);
}

.card-chart {
    margin-bottom: 24px;
    opacity: 0.8;
}

.chart-line {
    width: 100%;
    height: auto;
}

.card-metrics {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--navy-600);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: var(--fs-eyebrow);
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

/* Anchor targets need offset for sticky header */
[id] {
    scroll-margin-top: 96px;
}

/* ===== Sections Common ===== */
.section-eyebrow {
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--white);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--slate-400);
    font-size: var(--fs-lead);
    margin-bottom: 48px;
}

/* Left-aligned section header variant */
.section-header-left .section-eyebrow,
.section-header-left .section-title,
.section-header-left .section-subtitle {
    text-align: left;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 72px 0;
    background: var(--navy-800);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--navy-800);
    border: 1px solid var(--navy-600);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.step:hover {
    border-color: var(--accent-indigo);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    margin: 0 auto 20px;
}

.step-number {
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.step h3 {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 12px;
}

.step p {
    color: var(--slate-400);
    line-height: 1.65;
    flex: 1;
}

/* ===== Features ===== */
.features {
    padding: 72px 0;
    background: var(--navy-900);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

/* Promoted feature cards — row 1, 50% each, visually dominant */
.feature-card.promoted {
    grid-column: span 3;
    padding: 40px;
}

.feature-card.promoted .feature-icon {
    width: 64px;
    height: 64px;
}

.feature-card.promoted h4 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.feature-card.promoted p {
    font-size: 1rem;
    max-width: 38ch;
}

/* Regular cards — rows 2-3, 2×2, same width but compact treatment */
.feature-card:not(.promoted) {
    grid-column: span 3;
    padding: 24px;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.feature-card:not(.promoted) .feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-bottom: 0;
}

.feature-card:not(.promoted) .feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-card:not(.promoted) h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.feature-card:not(.promoted) p {
    font-size: 0.875rem;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--navy-800);
    border: 1px solid var(--navy-600);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: var(--navy-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-blue);
    margin-bottom: 20px;
}

/* Promoted cards get gradient-tinted icon bg */
.feature-card.promoted .feature-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
}

.feature-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--slate-400);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

/* ===== Coming Soon / Placeholder Section ===== */
.coming-soon-section {
    padding: 72px 0;
    background: var(--navy-800);
}

.coming-soon-card {
    text-align: center;
    padding: 48px 48px;
    border-radius: var(--radius);
    background: var(--navy-800);
    border: 1px solid var(--navy-600);
    max-width: 700px;
    margin: 0 auto;
}

.coming-soon-card h3 {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
}

.coming-soon-card p {
    color: var(--slate-400);
    font-size: var(--fs-lead);
    line-height: 1.6;
    max-width: 50ch;
    margin: 0 auto;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 96px 0;
    background: var(--navy-900);
}

.cta-card {
    background: var(--navy-800);
    border: 1px solid var(--navy-600);
    border-radius: var(--radius);
    padding: 56px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 30% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 70% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
}

.cta-card > p {
    color: var(--slate-400);
    font-size: var(--fs-lead);
    margin-bottom: 32px;
    position: relative;
}

.cta-card > .btn {
    position: relative;
    margin-bottom: 16px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto 20px;
    position: relative;
}

.cta-form input {
    flex: 1;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1.5px solid var(--navy-500);
    background: var(--navy-700);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.3s;
    height: 56px;
}

.cta-form input::placeholder {
    color: var(--slate-300);
}

.cta-form input:focus {
    border-color: var(--accent-indigo);
}

.cta-form .btn {
    height: 56px;
    white-space: nowrap;
}

.cta-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-400);
    font-size: var(--fs-small);
    position: relative;
}

.cta-trust svg {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.cta-note {
    color: var(--slate-400);
    font-size: var(--fs-small);
    position: relative;
    display: block;
    margin-top: 12px;
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--navy-600);
    background: var(--navy-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--slate-400);
    font-size: var(--fs-small);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h5 {
    color: var(--slate-300);
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-links a {
    display: block;
    color: var(--slate-400);
    font-size: var(--fs-small);
    padding: 6px 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--navy-600);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--slate-400);
    font-size: var(--fs-small);
}

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays — max 60ms per item, cap ~200ms */
.fade-up-delay-1 { transition-delay: 0.06s; }
.fade-up-delay-2 { transition-delay: 0.12s; }
.fade-up-delay-3 { transition-delay: 0.18s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Responsive ===== */

/* Collapse nav to hamburger at 1150px instead of 768px */
@media (max-width: 1150px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 24px 24px;
        gap: 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--navy-600);
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 16px;
    }

    .nav-links a {
        display: block;
        padding: 18px 0;
        font-size: 1rem;
    }

    .nav-links .btn.btn-nav {
        text-align: center;
        padding: 14px 24px;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        order: 2;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 60px;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }

    .hero-stats {
        gap: 32px;
    }

    .valuation-card {
        max-width: 360px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.promoted,
    .feature-card:not(.promoted) {
        grid-column: span 1;
    }

    .feature-card.promoted {
        padding: 32px;
    }

    .feature-card:not(.promoted) {
        flex-direction: column;
        padding: 28px;
    }

    .feature-card:not(.promoted) .feature-icon {
        margin-bottom: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form .btn {
        height: auto;
    }

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

    .how-it-works,
    .features,
    .coming-soon-section,
    .cta-section {
        padding: 48px 0;
    }

    .cta-card {
        padding: 36px 24px;
    }

    .coming-soon-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
