/**
 * NexiBook 2026 - World-Class UI/UX Stylesheet
 * Stripe-inspired design system with WCAG AA compliance
 * Optimized for desktop and mobile separately
 */

:root {
    /* ========================================
       COLOR PALETTE - Enterprise Dark
       ======================================== */
    --bg-body: #050505;
    --bg-surface: #0f0f10;
    --bg-surface-trans: rgba(15, 15, 16, 0.8);
    --primary: #FFD700;
    --primary-hover: #E6C200;
    --text-main: #ffffff;
    --text-muted: #c0c0c0;         /* WCAG AA compliant (was #a1a1aa) */
    --text-secondary: #909090;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(255, 215, 0, 0.3);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FDB931 50%, #F5AF3D 100%);
    --gradient-gold-subtle: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    --gradient-dark: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, #050505 100%);
    --glass: rgba(255, 255, 255, 0.03);

    /* ========================================
       8px GRID SPACING SYSTEM
       ======================================== */
    --space-1: 0.5rem;      /* 8px */
    --space-2: 1rem;        /* 16px */
    --space-3: 1.5rem;      /* 24px */
    --space-4: 2rem;        /* 32px */
    --space-5: 2.5rem;      /* 40px */
    --space-6: 3rem;        /* 48px */
    --space-8: 4rem;        /* 64px */
    --space-10: 5rem;       /* 80px */
    --space-12: 6rem;       /* 96px */
    --space-16: 8rem;       /* 128px */

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* ========================================
       MODERN BORDER RADIUS
       ======================================== */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* ========================================
       LAYERED SHADOW SYSTEM (Stripe-inspired)
       ======================================== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md:
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg:
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 24px 48px rgba(0, 0, 0, 0.25);
    --shadow-gold:
        0 2px 4px rgba(255, 215, 0, 0.1),
        0 8px 16px rgba(255, 215, 0, 0.15),
        0 24px 48px rgba(255, 215, 0, 0.2);
    --shadow-gold-sm:
        0 4px 12px rgba(255, 215, 0, 0.2);

    /* ========================================
       MOMENTUM EASING CURVES
       ======================================== */
    --ease-out: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

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

/* Skip to main content - Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: var(--space-2);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-3);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: var(--space-2);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--space-2);
}

p {
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    line-height: 1.75;
    color: var(--text-main);
    margin-bottom: var(--space-3);
}

.p-lead {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 500;
    line-height: 1.7;
}

.p-muted {
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease-smooth);
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.text-gold {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

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

.text-muted {
    color: var(--text-muted);
}

/* ========================================
   BUTTON DESIGN SYSTEM
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition:
        background-color 0.2s var(--ease-smooth),
        transform 0.2s var(--ease-out),
        box-shadow 0.3s var(--ease-smooth),
        border-color 0.2s var(--ease-smooth);
    outline: 2px solid transparent;
    outline-offset: 2px;
    will-change: transform, box-shadow;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: var(--shadow-gold-sm);
    position: relative;
    overflow: hidden;
}

/* Subtle shine overlay */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-primary:focus {
    outline-color: rgba(255, 215, 0, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:disabled,
.btn-primary.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

.btn-outline:focus {
    outline-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: var(--space-1) var(--space-2);
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: 1.1rem;
}

/* Loading state */
.btn.is-loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: var(--space-1);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    height: 32px;
    width: auto;
}

nav ul {
    display: flex;
    gap: var(--space-4);
    list-style: none;
    align-items: center;
}

nav a {
    position: relative;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: var(--space-1) 0;
    transition: color 0.2s var(--ease-smooth);
}

/* Navigation underline animation */
nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s var(--ease-out);
}

nav a:not(.btn):hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--text-main);
}

nav a.active::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
    transform-origin: center;
}

.mobile-menu-btn.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.lang-seg {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s var(--ease-smooth);
    font-weight: 600;
}

.lang-seg.is-active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary);
}

.lang-seg:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   MOBILE NAVIGATION OVERLAY
   ======================================== */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-smooth), visibility 0.3s;
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: var(--space-16) var(--space-4);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
}

.mobile-nav-list a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    padding: var(--space-2);
    transition: color 0.2s;
}

.mobile-nav-list a:hover {
    color: var(--primary);
}

.lang-toggle-mobile {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.lang-toggle-mobile button {
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-toggle-mobile button:hover,
.lang-toggle-mobile button.is-active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: clamp(6rem, 10vw, 10rem);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow effect */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.12;
    border-radius: 50%;
    z-index: 1;
}

/* ========================================
   TRUST BADGES
   ======================================== */
.trust-badges {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.trust-badge img {
    height: 20px;
    width: auto;
}

/* ========================================
   GLASS CARD (No 3D Transform)
   ======================================== */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.4s var(--ease-smooth);
}

.glass-card:hover {
    box-shadow: var(--shadow-gold);
}

.glass-card-benefits {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.glass-card-benefits span {
    font-size: 0.85rem;
    color: var(--primary);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: var(--space-16) 0;
}

.section {
    padding: var(--space-16) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition:
        transform 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-smooth),
        border-color 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
}

.feature-card h3 {
    margin-bottom: var(--space-2);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ========================================
   SOCIAL PROOF & STATS
   ======================================== */
.social-proof {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-1);
    line-height: 1;
}

.stats-grid p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.testimonial-card {
    background: var(--glass);
    border: 1px solid var(--border-light);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s var(--ease-smooth);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: var(--space-3);
    color: var(--text-main);
    line-height: 1.7;
}

.testimonial-card small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.testimonial-card small a {
    color: var(--primary);
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
    padding: var(--space-16) 0;
}

.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin: var(--space-4) 0;
}

.billing-toggle span:not(.save-badge) {
    color: var(--text-muted);
    font-weight: 600;
}

.billing-switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 32px;
}

.billing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.billing-track {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    transition: 0.3s var(--ease-smooth);
}

.billing-thumb {
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: var(--primary);
    border-radius: 50%;
    transition: 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-sm);
}

.billing-switch input:checked + .billing-track {
    background: rgba(255, 215, 0, 0.35);
}

.billing-switch input:checked + .billing-track + .billing-thumb {
    transform: translateX(30px);
}

.save-badge {
    background: var(--primary);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.founders-anchor {
    background: var(--gradient-gold-subtle);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin: var(--space-5) auto;
    max-width: 820px;
    text-align: center;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) auto 0;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: var(--space-6) var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s var(--ease-smooth), border-color 0.3s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, var(--bg-surface) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #000;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto var(--space-2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.plan-icon svg {
    width: 28px;
    height: 28px;
}

.price {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 700;
    margin: var(--space-3) 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin: var(--space-4) 0;
    text-align: left;
}

.features-list li {
    margin-bottom: var(--space-2);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.features-list li svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

.pricing-card small {
    display: block;
    margin-top: var(--space-2);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--bg-surface);
    padding: var(--space-12) 0 var(--space-4);
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.footer-col h4 {
    margin-bottom: var(--space-3);
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-1);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Social Badges (Footer) */
.social-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.social-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   REVEAL ANIMATIONS (Staggered)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition:
            opacity 0.6s var(--ease-out),
            transform 0.6s var(--ease-out);
    }

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

    /* Staggered grid items */
    .features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
    .features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
    .features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
    .features-grid .feature-card:nth-child(4) { transition-delay: 0.3s; }
    .features-grid .feature-card:nth-child(5) { transition-delay: 0.4s; }
    .features-grid .feature-card:nth-child(6) { transition-delay: 0.5s; }

    .pricing-grid .pricing-card:nth-child(1) { transition-delay: 0s; }
    .pricing-grid .pricing-card:nth-child(2) { transition-delay: 0.15s; }
    .pricing-grid .pricing-card:nth-child(3) { transition-delay: 0.3s; }

    .stats-grid > div:nth-child(1) { transition-delay: 0s; }
    .stats-grid > div:nth-child(2) { transition-delay: 0.1s; }
    .stats-grid > div:nth-child(3) { transition-delay: 0.2s; }
    .stats-grid > div:nth-child(4) { transition-delay: 0.3s; }
}

/* ========================================
   VIDEO MODAL
   ======================================== */
#video-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
}

#video-modal.active {
    display: flex !important;
}

#video-modal > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

#video-modal video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

#close-video {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.3s;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-video:hover {
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid {
        gap: var(--space-6);
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Layout */
    .container {
        padding: 0 var(--space-2);
    }

    .section,
    .features {
        padding: var(--space-8) 0;
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--header-height) + var(--space-4));
        padding-bottom: var(--space-8);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-6);
    }

    .hero-visual {
        height: 280px;
        order: -1;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: var(--space-2);
    }

    .trust-badges {
        justify-content: center;
    }

    /* Navigation */
    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Buttons - 48px min touch target */
    .btn {
        min-height: 48px;
        width: 100%;
        justify-content: center;
    }

    /* Hide secondary CTA on mobile */
    #watch-video-btn {
        display: none;
    }

    /* Pricing */
    .pricing-grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
        max-width: 500px;
        margin: var(--space-4) auto 0;
    }

    .pricing-card {
        padding: var(--space-4);
    }

    .founders-anchor {
        padding: var(--space-3);
        margin: var(--space-3) auto;
    }

    .billing-toggle {
        flex-direction: column;
        gap: var(--space-1);
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    /* Testimonials */
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    /* Video modal */
    #video-modal {
        padding: var(--space-1);
    }

    #video-modal > div {
        max-width: 95%;
    }

    #video-modal video {
        max-height: 75vh;
    }

    #close-video {
        top: -35px;
        font-size: 1.5rem;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max-width: 375px)
   ======================================== */
@media (max-width: 375px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    p {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

/* ========================================
   THUMB-ZONE OPTIMIZATION (Very Small Mobile)
   ======================================== */
@media (max-width: 480px) {
    /* Sticky CTA at bottom */
    .sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: var(--space-2);
        background: var(--bg-body);
        border-top: 1px solid var(--border-light);
        z-index: 100;
        padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
    }

    .sticky-cta .btn {
        width: 100%;
    }

    /* Add bottom padding to body to account for sticky CTA */
    body.has-sticky-cta {
        padding-bottom: 80px;
    }
}

/* ========================================
   DIFFERENTIATORS SECTION (Import or inline)
   ======================================== */
.diff-hero {
    text-align: center;
}

.diff-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.diff-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--ease-smooth);
}

.diff-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-lg);
}

.diff-card.highlight {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.05) 0%, var(--bg-surface) 100%);
}

.diff-badge {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.diff-icon {
    font-size: 2rem;
    margin-bottom: var(--space-2);
}

.diff-content h3 {
    margin-bottom: var(--space-1);
}

.diff-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.diff-comparison {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-6);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-2);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    font-weight: 600;
}

.comparison-table .check {
    color: #4ade80;
}

.comparison-table .cross {
    color: #f87171;
}

.comparison-table .partial {
    color: #fbbf24;
}

.diff-cta {
    margin-top: var(--space-6);
}

/* ========================================
   NOTES TOGGLE
   ======================================== */
.pricing-notes-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.notes-toggle {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s var(--ease-smooth);
}

.notes-toggle:hover,
.notes-toggle:focus {
    background: rgba(255, 215, 0, 0.3);
}

.notes-content[hidden] {
    display: none;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.note-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.note-card h4 {
    margin-bottom: var(--space-1);
    font-size: 1rem;
}

.note-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

@media (max-width: 1024px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FOUNDERS SECTION
   ======================================== */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.founders-grid .glass-card {
    text-align: center;
    padding: var(--space-4);
}

.founders-grid img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 215, 0, 0.3);
    margin: 0 auto var(--space-2);
    display: block;
}

/* ========================================
   SLIDER HINT ANIMATION
   ======================================== */
@keyframes sliderPulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.08); }
    100% { transform: translateX(-50%) scale(1); }
}

.slider-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: var(--space-3);
}

.slider-hint svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Hide on desktop */
@media (min-width: 769px) {
    .slider-hint {
        display: none;
    }
}
