/* 
   AI ACADEMY - MOBILE-FIRST COMPACT DESIGN
   UI/UX PRO MAX - Optimized for performance & precision
*/

:root {
    /* ─── CORE COLORS ─────────────────────────── */
    --bg-color: #030305;
    --bg: #030305;
    --bg-surface: #0c0c14;
    --bg-card: #12121c;
    --bg-card-hover: #18182a;
    --bg-elevated: #1e1e30;

    /* ─── TEXT ────────────────────────────────── */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;

    /* ─── BRAND ACCENTS ───────────────────────── */
    --accent-orange: #f97316;
    --orange: #f97316;
    --orange-glow: rgba(249, 115, 22, 0.25);
    --accent-violet: #8b5cf6;
    --violet: #8b5cf6;
    --violet-glow: rgba(139, 92, 246, 0.25);
    --accent-cyan: #06b6d4;
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.2);
    --green: #10b981;

    /* ─── GRADIENTS ───────────────────────────── */
    --grad-brand: linear-gradient(135deg, #f97316, #8b5cf6);
    --grad-cool: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --grad-text: linear-gradient(135deg, #ff9b35, #c084fc);

    /* ─── BORDERS ─────────────────────────────── */
    --border-color: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.07);
    --border-highlight: rgba(255, 255, 255, 0.14);
    --border-bright: rgba(255, 255, 255, 0.14);

    /* ─── GLASS ───────────────────────────────── */
    --glass-bg: rgba(12, 12, 20, 0.85);
    --glass: rgba(12, 12, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.07);

    /* ─── SPACING ─────────────────────────────── */
    --section-gap: clamp(60px, 10vw, 120px);
    --section-py: clamp(60px, 10vw, 120px);
    --container-max: 1140px;
    --container: 1140px;
    --nav-height: 64px;
    --nav-h: 64px;

    /* ─── RADII ───────────────────────────────── */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;

    /* ─── TYPOGRAPHY ──────────────────────────── */
    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --font: 'Inter', -apple-system, system-ui, sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-head: 'Poppins', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* 1. RESET & CORE - NO HORIZONTAL SCROLL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. BACKGROUND */
.background-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.25;
    border-radius: 50%;
    animation: float 20s infinite alternate linear;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-violet);
    top: -50px;
    left: -50px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    bottom: -100px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(20px, 30px) rotate(10deg);
    }
}

/* 3. COMPACT NAVBAR */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.nav-links {
    display: none;
    /* Desktop only */
}

/* 4. MOBILE DRAWER */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

#navLinks.active {
    display: flex;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-surface);
    flex-direction: column;
    padding: 40px 20px;
    gap: 24px;
    z-index: 999;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* 5. HERO - MOBILE COMPACT */
.hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
}

.btn {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-violet));
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
}

/* 6. STATS */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.stat-lab {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* 7. VISUAL MOCKUP - SCALED FOR MOBILE */
.mockup-container {
    margin: 60px auto;
    width: 100%;
}

.phone {
    width: 250px;
    aspect-ratio: 9/19;
    background: #000;
    margin: 0 auto;
    border-radius: 36px;
    border: 10px solid #1a1a1a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.app-ui {
    padding: 20px;
    height: 100%;
    background: #08080c;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 8. BENTO GRID - COMPACT */
.bento-section {
    padding: 80px 0;
}

.bento-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 9. TIMELINE */
.timeline-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

.timeline {
    border-left: 2px solid var(--border-color);
    margin-left: 10px;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.t-item {
    position: relative;
}

.t-dot {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--accent-violet);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-violet);
}

/* 10. CTA */
.cta-box {
    margin: 80px 0;
    padding: 40px 24px;
    background: linear-gradient(135deg, #1A1A24, #0a0a0f);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    text-align: center;
}

/* 11. FOOTER - FIXED LOGO */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.f-logo {
    width: 40px;
    /* FIXED SIZE */
    height: 40px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.f-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.f-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 12. DESKTOP ADAPTATION */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 32px;
    }

    .mobile-toggle {
        display: none;
    }

    .hero {
        padding-top: 160px;
        padding-bottom: 120px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        width: auto;
        min-width: 180px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .bento-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 280px);
    }

    .bento-card.large {
        grid-column: span 3;
        grid-row: span 2;
    }

    .bento-card.tall {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-card.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card.small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .f-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .f-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* LEGAL PAGES UX */
.legal-main {
    padding-top: 120px;
}

.legal-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.legal-card h2 {
    color: var(--accent-violet);
    margin-bottom: 16px;
}

/* UTILS */
.fade-in {
    animation: fadeIn 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── BLOB 3 + GRID OVERLAY ───────────────────── */
.blob-3 {
    width: 300px; height: 300px;
    background: var(--orange); top: 40%; left: 40%;
    opacity: 0.08; animation-delay: -14s;
}
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px; opacity: 0.35;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

/* ─── NAV SCROLLED STATE ──────────────────────── */
.glass-nav.scrolled { box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

/* ─── NAV LINKS (desktop) ─────────────────────── */
.nav-link {
    padding: 8px 14px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.nav-cta {
    padding: 8px 20px; border-radius: var(--radius-sm);
    background: var(--grad-brand); color: white !important;
    font-size: 0.9rem; font-weight: 600;
    box-shadow: 0 4px 14px var(--orange-glow);
    transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

#navLinks.active .nav-link {
    font-size: 1.1rem; font-weight: 600; padding: 16px;
    border-radius: var(--radius-md); border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
#navLinks.active .nav-cta {
    margin-top: 16px; text-align: center;
    padding: 16px; border-radius: var(--radius-md); font-size: 1rem;
}

/* ─── HERO BADGE DOT ──────────────────────────── */
.hero-badge { display: inline-flex; align-items: center; gap: 8px; }
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

/* ─── HERO STATS (improved) ───────────────────── */
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; max-width: 640px; margin: 0 auto 80px;
}
.stat-box {
    background: var(--bg-card); padding: 24px 16px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: background 0.2s;
}
.stat-box:hover { background: var(--bg-card-hover); }
.stat-val {
    font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
    font-family: var(--font-mono);
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-lab { font-size: 0.76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── PHONE MOCKUP (improved) ─────────────────── */
.mockup-section { padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; }
.mockup-wrapper { display: flex; justify-content: center; perspective: 1200px; }
.phone {
    transform: perspective(1000px) rotateY(-12deg) rotateX(6deg);
    transition: transform 0.4s ease;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 30px 60px rgba(0,0,0,0.6), 0 0 80px var(--violet-glow);
}
.phone:hover { transform: perspective(1000px) rotateY(-4deg) rotateX(2deg); }
.app-ui-header { display: flex; justify-content: space-between; align-items: center; }
.app-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-brand); }
.app-streak { color: var(--orange); font-family: var(--font-mono); font-size: 0.8rem; }
.app-card {
    border-radius: 16px; padding: 14px;
    border: 1px solid rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.06);
}
.app-card h4 { font-size: 0.85rem; margin-bottom: 8px; color: var(--text-primary); }
.app-card-label { font-size: 0.65rem; color: var(--violet); font-family: var(--font-mono); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.progress-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; background: var(--grad-cool); width: 68%; }
.app-card-muted { background: rgba(255,255,255,0.03); border-color: var(--border); }
.app-card-muted h4 { color: var(--text-secondary); }

/* ─── SECTION HEADER ──────────────────────────── */
.section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-label {
    display: inline-block; margin-bottom: 12px;
    padding: 4px 14px; border-radius: 100px;
    background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2);
    color: var(--violet); font-size: 0.72rem;
    font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em;
}
.section-title {
    font-family: var(--font-heading); font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-sub {
    color: var(--text-secondary); font-size: 1.05rem;
    max-width: 520px; margin: 0 auto; line-height: 1.7;
}

/* ─── BENTO CARD (enhanced) ───────────────────── */
.bento-card {
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
    position: relative; overflow: hidden;
}
.bento-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(circle at 20% 20%, var(--violet-glow), transparent 60%);
    opacity: 0; transition: opacity 0.3s;
}
.bento-card:hover { border-color: var(--border-bright); transform: translateY(-3px); background: var(--bg-card-hover); }
.bento-card:hover::before { opacity: 1; }
.card-tag {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 100px;
    font-size: 0.7rem; font-family: var(--font-mono);
    text-transform: uppercase; letter-spacing: 0.06em;
    align-self: flex-start; margin-top: auto;
}
.tag-orange { background: rgba(249,115,22,0.1); color: var(--orange); border: 1px solid rgba(249,115,22,0.2); }
.tag-violet { background: rgba(139,92,246,0.1); color: var(--violet); border: 1px solid rgba(139,92,246,0.2); }
.tag-cyan   { background: rgba(6,182,212,0.1);  color: var(--cyan);   border: 1px solid rgba(6,182,212,0.2); }
.gradient-4 { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(249,115,22,0.2)); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }

/* ─── TIMELINE (improved) ─────────────────────── */
.timeline-max { max-width: 720px; margin: 0 auto; }
.t-dot.dot-cyan   { border-color: var(--cyan);   box-shadow: 0 0 12px var(--cyan-glow); }
.t-dot.dot-orange { border-color: var(--orange); box-shadow: 0 0 12px var(--orange-glow); }
.t-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: border-color 0.3s, transform 0.2s;
}
.t-card:hover { border-color: var(--border-bright); transform: translateX(4px); }
.t-level { font-size: 0.7rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.t-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 6px; }
.t-card p  { color: var(--text-secondary); font-size: 0.88rem; }

/* ─── PRICING SECTION ─────────────────────────── */
.pricing-section { padding: var(--section-py) 0; }
.pricing-grid { display: flex; flex-direction: column; gap: 16px; }
.price-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden;
}
.price-card:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.price-card.featured {
    border-color: rgba(139,92,246,0.4);
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(6,182,212,0.04));
}
.price-card.featured::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--grad-cool);
}
.price-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 100px;
    background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
    color: var(--violet); font-size: 0.72rem;
    font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.price-badge svg { width: 12px; height: 12px; }
.price-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin: 16px 0; }
.price-currency { font-size: 1.2rem; font-weight: 600; color: var(--text-secondary); padding-top: 6px; }
.price-number { font-size: 3rem; font-weight: 800; font-family: var(--font-heading); line-height: 1; }
.price-period { color: var(--text-muted); font-size: 0.9rem; }
.price-desc { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 24px; line-height: 1.6; }
.price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-feature { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.price-feature svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.free-tag { color: var(--text-muted); }
.free-tag svg { color: var(--text-muted); }
.price-btn { width: 100%; }

/* ─── PRICING NOTE ────────────────────────────── */
.pricing-note {
    text-align: center; margin-top: 24px;
    color: var(--text-muted); font-size: 0.8rem;
    font-family: var(--font-mono); letter-spacing: 0.02em;
}

/* ─── BUTTONS (improved) ──────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 28px; border-radius: var(--radius-md);
    font-weight: 600; font-size: 0.95rem; font-family: var(--font-heading);
    transition: all 0.2s; white-space: nowrap; border: none; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-brand); color: white; box-shadow: 0 4px 20px var(--orange-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--orange-glow); }
.btn-secondary { background: rgba(255,255,255,0.05); border: 1px solid var(--border-bright); color: var(--text-primary); }
.btn-secondary:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--border-bright); color: var(--text-secondary); }
.btn-outline:hover { color: var(--text-primary); border-color: var(--violet); }

/* ─── CTA SECTION (improved) ─────────────────── */
.cta-section { padding: var(--section-py) 0; }
.cta-box {
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(6,182,212,0.06));
    border: 1px solid rgba(139,92,246,0.2); border-radius: var(--radius-xl);
    padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 80px);
    text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(139,92,246,0.15), transparent 70%);
    pointer-events: none;
}
.cta-box p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }

/* ─── FAQ ACCORDION ───────────────────────────── */
.faq-section { padding: var(--section-py) 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(139,92,246,0.35); }
.faq-question {
    width: 100%; display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
    padding: 20px 24px; background: transparent; border: none;
    color: var(--text-primary); font-size: 0.95rem; font-weight: 600;
    font-family: var(--font-sans); text-align: left; cursor: pointer; transition: background 0.2s;
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-icon {
    width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
    border: 1px solid var(--border); display: flex; align-items: center;
    justify-content: center; color: var(--text-muted);
    transition: transform 0.3s, border-color 0.3s, color 0.3s;
}
.faq-icon svg { width: 14px; height: 14px; }
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--violet); color: var(--violet); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 24px; }
.faq-answer-inner { padding-bottom: 20px; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.75; }
.faq-answer a { color: var(--violet); }
.faq-answer a:hover { text-decoration: underline; }

/* ─── FOOTER (improved) ───────────────────────── */
.footer-grid {
    display: grid; gap: 40px; grid-template-columns: 1fr; margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-tagline { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; max-width: 240px; }
.footer-col h5 {
    font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px;
}
.footer-col a {
    display: block; color: var(--text-secondary); font-size: 0.9rem;
    margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    padding-top: 32px; border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.82rem; text-align: center;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a:hover { color: var(--text-primary); border-color: var(--border-bright); background: rgba(255,255,255,0.07); }
.footer-social svg { width: 16px; height: 16px; }
.footer-brand { display: flex; flex-direction: column; }

/* ─── LEGAL PAGES (improved) ──────────────────── */
.legal-main {
    padding-top: calc(var(--nav-height) + clamp(32px, 5vw, 64px));
    padding-bottom: clamp(40px, 6vw, 80px);
}
.legal-hero { text-align: center; margin-bottom: 48px; }
.legal-hero h1 {
    font-family: var(--font-heading); font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 8px;
}
.legal-hero .date { color: var(--text-muted); font-size: 0.88rem; font-family: var(--font-mono); }
.legal-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); margin-bottom: 20px;
}
.legal-card h2 {
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
    color: var(--violet); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.legal-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.75; margin-bottom: 12px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul { color: var(--text-secondary); padding-left: 20px; margin: 8px 0 12px; line-height: 1.85; font-size: 0.92rem; }
.legal-card li { margin-bottom: 4px; }
.legal-card a { color: var(--violet); }
.legal-card a:hover { text-decoration: underline; }
.legal-highlight {
    background: rgba(139,92,246,0.07); border: 1px solid rgba(139,92,246,0.2);
    border-radius: var(--radius-md); padding: 16px 20px; margin: 16px 0;
    font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7;
}
.legal-highlight strong { color: var(--violet); }

/* ─── FAQ PAGE SPECIFICS ──────────────────────── */
.faq-page-main {
    padding-top: calc(var(--nav-height) + clamp(32px, 5vw, 64px));
    padding-bottom: clamp(40px, 6vw, 80px);
}

/* ─── SCROLL REVEAL ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s 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; }

/* ─── DESKTOP ADDITIONS ───────────────────────── */
@media (min-width: 768px) {
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
}

@media (min-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
    .timeline-max { max-width: 720px; margin: 0 auto; }
}