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

:root {
    --primary: #5555FF;
    --primary-light: #7777FF;
    --accent: #A8FF61;
    --accent-dark: #8AE044;
    --warning: #FFD700;
    --destructive: #F24236;
    --bg: #FCFCFB;
    --fg: #0D0D0D;
    --fg-muted: #555;
    --card-bg: #FFFFFF;
    --border-w: 2.5px;
    --shadow-x: 6px;
    --shadow-y: 6px;
    --radius: 16px;
    --font: 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY (fluid clamp)
   ======================================== */
.text-hero {
    font-size: clamp(2.2rem, 5vw + 1rem, 4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.text-section {
    font-size: clamp(1.6rem, 3vw + 0.5rem, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.text-sub {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    font-weight: 600;
    line-height: 1.5;
}

.text-body {
    font-size: clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
    font-weight: 500;
    line-height: 1.6;
}

/* ========================================
   NEO-BRUTALIST PRIMITIVES
   ======================================== */
.nb-card {
    background: var(--card-bg);
    border: var(--border-w) solid var(--fg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-x) var(--shadow-y) 0 var(--fg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nb-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 var(--fg);
}

.nb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font);
    font-size: clamp(0.95rem, 1vw + 0.4rem, 1.1rem);
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--primary);
    border: var(--border-w) solid var(--fg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-x) var(--shadow-y) 0 var(--fg);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.nb-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 var(--fg);
}

.nb-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 var(--fg);
}

.nb-btn--accent {
    background: var(--accent);
    color: var(--fg);
}

.nb-btn--outline {
    background: transparent;
    color: var(--fg);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: clamp(60px, 10vw, 100px) 0;
}

/* ========================================
   STICKY NAV
   ======================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: var(--border-w) solid var(--fg);
    padding: 14px 0;
}

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

.nav-wordmark {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-wordmark span {
    color: var(--primary);
}

.nav-cta {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    padding: clamp(80px, 14vw, 140px) 0 clamp(60px, 10vw, 100px);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent);
    border: var(--border-w) solid var(--fg);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    box-shadow: 3px 3px 0 var(--fg);
}

.hero h1 {
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    color: var(--fg-muted);
    max-width: 520px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.nav-icon {
    border-radius: 8px;
    display: block;
}

.hero-icon {
    display: block;
    margin: 0 auto 24px;
    border-radius: 28px;
    box-shadow: var(--shadow-x) var(--shadow-y) 0 var(--fg);
    border: var(--border-w) solid var(--fg);
    animation: hero-float 3s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ========================================
   PROBLEM / SHOCK SECTION
   ======================================== */
.problem {
    background: var(--fg);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.problem::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(85, 85, 255, 0.06) 20px,
        rgba(85, 85, 255, 0.06) 40px
    );
    pointer-events: none;
}

.problem-label {
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.counter-number {
    font-size: clamp(4.5rem, 12vw, 9rem);
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
}

.counter-number.landed {
    color: var(--accent);
}

.problem-suffix {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.problem-suffix.visible {
    opacity: 1;
    transform: scale(1);
}

.problem-detail {
    color: rgba(255, 255, 255, 0.6);
    max-width: 400px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.problem-detail.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PROMISE SECTION
   ======================================== */
.promise {
    text-align: center;
    background: linear-gradient(170deg, #f0f8e8 0%, var(--bg) 100%);
}

.promise-lines {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promise-line {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.promise-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.promise-line.muted {
    color: var(--fg-muted);
}

.promise-line.highlighted {
    color: var(--primary);
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
    background: var(--bg);
}

.how-it-works .section-header {
    text-align: center;
    margin-bottom: clamp(36px, 6vw, 56px);
}

.how-it-works .section-sub {
    color: var(--fg-muted);
    margin-top: 8px;
}

.action-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
}

.action-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: clamp(20px, 3vw, 28px);
}

.action-card-emoji {
    font-size: 2.4rem;
    flex-shrink: 0;
    line-height: 1;
}

.action-card-title {
    font-size: 1.05rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.action-card-desc {
    color: var(--fg-muted);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.action-card--shield {
    border-color: var(--primary);
    box-shadow: var(--shadow-x) var(--shadow-y) 0 var(--primary);
}
.action-card--shield .action-card-title { color: var(--primary); }

.action-card--oops {
    border-color: var(--destructive);
    box-shadow: var(--shadow-x) var(--shadow-y) 0 var(--destructive);
}
.action-card--oops .action-card-title { color: var(--destructive); }

.action-card--resist {
    border-color: var(--warning);
    box-shadow: var(--shadow-x) var(--shadow-y) 0 var(--warning);
}
.action-card--resist .action-card-title { color: #B8960F; }

/* ========================================
   FEATURES GRID
   ======================================== */
.features {
    background: linear-gradient(180deg, #f4f4ff 0%, var(--bg) 100%);
}

.features .section-header {
    text-align: center;
    margin-bottom: clamp(36px, 6vw, 56px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    padding: clamp(20px, 3vw, 24px);
    text-align: left;
}

.feature-card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.feature-card-title {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.feature-card-desc {
    color: var(--fg-muted);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ========================================
   PRIVACY / TRUST
   ======================================== */
.privacy {
    background: var(--fg);
    color: #fff;
    position: relative;
}

.privacy .section-header {
    text-align: center;
    margin-bottom: clamp(36px, 6vw, 48px);
}

.privacy .section-header .text-section {
    color: #fff;
}

.privacy-subtitle {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.trust-item {
    text-align: center;
    padding: 28px 20px;
    border: var(--border-w) solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    transition: border-color 0.3s;
}

.trust-item:hover {
    border-color: var(--accent);
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.trust-label {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.trust-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* ========================================
   FACEQUEST+ PREMIUM
   ======================================== */
.premium {
    background: var(--bg);
}

.premium-card {
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 48px);
    background: linear-gradient(135deg, #FFFDE8 0%, #FFF 50%, #F0F0FF 100%);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    border-radius: var(--radius) var(--radius) 0 0;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.premium-title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.premium-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.premium-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.premium-features li .check {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: 2px solid var(--fg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    flex-shrink: 0;
}

.premium-trial {
    font-size: 0.85rem;
    color: var(--fg-muted);
    font-weight: 600;
}

/* ========================================
   FINAL CTA
   ======================================== */
.final-cta {
    text-align: center;
    padding: clamp(60px, 10vw, 100px) 0;
    background: var(--primary);
    color: #fff;
    border-top: var(--border-w) solid var(--fg);
    border-bottom: var(--border-w) solid var(--fg);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(255, 255, 255, 0.04) 30px,
        rgba(255, 255, 255, 0.04) 60px
    );
    pointer-events: none;
}

.final-cta .text-section {
    color: #fff;
    margin-bottom: 12px;
}

.final-cta .text-sub {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
}

.final-cta .nb-btn {
    background: var(--accent);
    color: var(--fg);
    border-color: var(--fg);
    box-shadow: var(--shadow-x) var(--shadow-y) 0 rgba(0, 0, 0, 0.4);
}

.final-cta .nb-btn:hover {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: var(--border-w) solid var(--fg);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--fg-muted);
    font-weight: 500;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 640px) {
    .container {
        padding: 0 32px;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero .container {
        text-align: left;
    }

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

    .hero-subtitle {
        margin: 0 0 36px;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-icon {
        margin: 0 0 24px;
    }

    .action-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .action-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-icon {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .promise-line {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .problem-suffix,
    .problem-detail {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nb-card, .nb-btn {
        transition: none;
    }

    .counter-number {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}
