/* Clara — Premium Design System (DeepSeek Pro Enhanced) */

:root {
    /* Colors */
    --bg: #030307;
    --bg-elevated: #0a0a12;
    --bg-card: #0f0f17;
    --bg-card-hover: #14141e;
    --border: #1f1f2e;
    --border-hover: #2d2d44;
    --border-accent: #3b3b5c;
    --text: #fafafa;
    --text-secondary: #b4b4c8;
    --text-muted: #7a7a9a;
    --text-inverse: #030307;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-dim: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.18);
    --accent-glow-strong: rgba(99, 102, 241, 0.35);

    --violet: #8b5cf6;
    --violet-light: #a78bfa;
    --violet-glow: rgba(139, 92, 246, 0.18);

    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.18);

    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.18);
    --warning: #f59e0b;
    --error: #ef4444;

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-ui: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --shadow-glow-strong: 0 0 80px var(--accent-glow-strong);

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --fast: 150ms;
    --normal: 250ms;
    --slow: 400ms;

    /* Z-index */
    --z-nav: 100;
    --z-modal: 200;
    --z-toast: 300;
}

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

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Selection */
::selection { background: var(--accent-glow-strong); color: var(--text); }

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-accent); }

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6); }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--violet), var(--cyan));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    border-radius: 0 0 var(--radius-full) 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-nav);
    background: rgba(3, 3, 7, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--normal) var(--ease), border-color var(--normal) var(--ease), transform var(--normal) var(--ease);
}

.nav.scrolled {
    background: rgba(3, 3, 7, 0.92);
    border-bottom-color: var(--border-hover);
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: var(--space-6);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color var(--fast) var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--violet));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--normal) var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: linear-gradient(135deg, var(--accent), var(--violet));
    color: var(--text-inverse);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow);
    transition: transform var(--fast) var(--ease-spring), box-shadow var(--fast) var(--ease);
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow-strong); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: var(--space-2); }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--normal) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: calc(72px + var(--space-16)) var(--space-6) var(--space-16);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 { width: 600px; height: 600px; top: -200px; right: -100px; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%); animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; bottom: 10%; left: 5%; background: radial-gradient(circle at 70% 70%, var(--violet), transparent 70%); animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; top: 40%; left: 50%; background: radial-gradient(circle at 50% 50%, var(--cyan), transparent 70%); animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(10px, 40px) scale(1.02); }
}

.grid-overlay {
    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: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 20%, transparent 80%);
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.hero-content { z-index: 1; max-width: 640px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: var(--space-6);
    letter-spacing: 0.02em;
}

.pulse {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: var(--space-5);
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 40%, var(--violet-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: var(--space-8);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-10); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--accent), var(--violet));
    color: var(--text-inverse);
    text-decoration: none;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all var(--fast) var(--ease-spring);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong), 0 8px 24px rgba(99, 102, 241, 0.25);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--fast) var(--ease);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-6); }

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-item svg { color: var(--success); flex-shrink: 0; }

/* Hero Phone Mockup */
.hero-phone { display: flex; align-items: center; justify-content: center; z-index: 1; }

.phone-frame {
    width: 320px;
    aspect-ratio: 9/19.5;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 40px;
    padding: 8px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 40px 80px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 6px;
    background: #1a1a2e;
    border-radius: 3px;
    z-index: 1;
}

.phone-notch {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 160px; height: 28px;
    background: #0a0a0f;
    border-radius: 0 0 16px 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 0 10px;
}

.phone-notch::before,
.phone-notch::after {
    content: '';
    width: 5px; height: 5px;
    background: #333;
    border-radius: 50%;
}

.phone-screen {
    width: 100%; height: 100%;
    background: var(--bg);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.message-bubble {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    animation: slideUp 0.5s var(--ease) backwards;
}

.message-bubble:nth-child(1) { animation-delay: 0.1s; }
.message-bubble:nth-child(2) { animation-delay: 0.2s; }
.message-bubble:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-bubble.received { flex-direction: row; }
.message-bubble.sent { flex-direction: row-reverse; justify-content: flex-end; }

.bubble-avatar {
    width: 32px; height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.bubble-content {
    max-width: 75%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    position: relative;
}

.message-bubble.sent .bubble-content {
    background: linear-gradient(135deg, var(--accent), var(--violet));
    border-color: transparent;
    border-bottom-right-radius: var(--radius-sm);
}

.bubble-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text);
}

.message-bubble.received .bubble-content p { color: var(--text-secondary); }

.bubble-time {
    display: block;
    margin-top: var(--space-1);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: right;
}

.message-bubble.received .bubble-time { text-align: left; }

.message-input {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(180deg, transparent, var(--bg) 30%);
    border-top: 1px solid var(--border);
}

.message-input input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-ui);
}

.message-input button {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    border: none;
    border-radius: var(--radius-full);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; }

.section-header { text-align: left; margin-bottom: var(--space-12); }
.section-header.centered { text-align: center; }

.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-3);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-top: var(--space-3);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: var(--space-24) var(--space-6); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--normal) var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--violet));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--normal) var(--ease);
}

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

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-glow), var(--violet-glow));
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    color: var(--accent-light);
    transition: all var(--normal) var(--ease);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent), var(--violet));
    color: white;
    box-shadow: var(--shadow-glow);
}

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

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.feature-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: var(--accent-glow);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

/* ============================================================
   TOPICS
   ============================================================ */
.topics { padding: var(--space-24) var(--space-6); background: var(--bg-elevated); }

.topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.topic-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: default;
    transition: all var(--fast) var(--ease);
}

.topic-tag:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow);
    transform: translateY(-1px);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { padding: var(--space-24) var(--space-6); }

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    transition: all var(--normal) var(--ease);
}

.testimonial:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.quote-mark {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--space-3);
}

.testimonial p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    font-style: italic;
}

.testimonial footer { display: flex; flex-direction: column; gap: var(--space-1); }

.testimonial cite {
    font-family: var(--font-display);
    font-weight: 600;
    font-style: normal;
    color: var(--text);
}

.testimonial span { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   SUBSCRIBE — COMPLETELY REDESIGNED
   ============================================================ */
.subscribe { padding: var(--space-24) var(--space-6); position: relative; }

.subscribe-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* Left: Visual / Phone Showcase */
.subscribe-visual {
    position: sticky;
    top: calc(72px + var(--space-8));
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    width: fit-content;
    align-self: flex-start;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.phone-showcase {
    perspective: 1000px;
}

.showcase-frame {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 9/19.5;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 40px 80px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    transform: rotateY(-3deg) rotateX(2deg);
    transition: transform var(--slow) var(--ease);
}

.showcase-frame:hover { transform: rotateY(0) rotateX(0); }

.showcase-notch {
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 170px; height: 30px;
    background: #0a0a0f;
    border-radius: 0 0 18px 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 65px;
    padding: 0 12px;
}

.showcase-notch::before,
.showcase-notch::after {
    content: '';
    width: 5px; height: 5px;
    background: #333;
    border-radius: 50%;
}

.showcase-screen {
    width: 100%; height: 100%;
    background: var(--bg);
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.showcase-avatar {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.showcase-info { display: flex; flex-direction: column; }
.showcase-info strong { color: var(--text); font-size: 0.9rem; }
.showcase-info span { color: var(--success); font-size: 0.7rem; font-weight: 500; }

.showcase-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.showcase-bubble {
    display: flex;
    gap: var(--space-2);
    opacity: 0;
    transform: translateY(20px);
    animation: bubbleIn 0.5s var(--ease) forwards;
}

.showcase-bubble:nth-child(1) { animation-delay: 0.3s; }
.showcase-bubble:nth-child(2) { animation-delay: 0.6s; }
.showcase-bubble:nth-child(3) { animation-delay: 0.9s; }

@keyframes bubbleIn {
    to { opacity: 1; transform: translateY(0); }
}

.bubble-avatar-mini {
    width: 28px; height: 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), var(--violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.showcase-bubble.outgoing { flex-direction: row-reverse; justify-content: flex-end; }
.showcase-bubble.outgoing .bubble-avatar-mini { display: none; }

.bubble-content-mini {
    max-width: 80%;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    font-size: 0.8rem;
    line-height: 1.4;
}

.showcase-bubble.incoming .bubble-content-mini {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom-left-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.showcase-bubble.outgoing .bubble-content-mini {
    background: linear-gradient(135deg, var(--accent), var(--violet));
    border-bottom-right-radius: var(--radius-sm);
    color: white;
}

.bubble-time-mini {
    display: block;
    margin-top: var(--space-1);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: right;
}

.showcase-bubble.incoming .bubble-time-mini { text-align: left; }

.showcase-input-area {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, var(--bg) 30%);
}

.showcase-typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-2) var(--space-3);
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-bottom-left-radius: var(--radius-sm);
}

.showcase-typing-indicator span {
    width: 6px; height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.showcase-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.showcase-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.showcase-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-3);
}

.showcase-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-ui);
    outline: none;
}

.showcase-input-wrapper button {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--violet));
    border: none;
    border-radius: var(--radius-full);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Visual Stats */
.visual-stats {
    display: flex;
    gap: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

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

.stat-mini-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-mini-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Right: Form Area */
.subscribe-form-area { padding: var(--space-4) 0; }

.optin-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    position: relative;
    overflow: hidden;
}

.optin-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--violet), var(--cyan));
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-bottom: var(--space-6); }

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: all var(--fast) var(--ease);
}

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

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-wrapper input:invalid:not(:placeholder-shown) { border-color: var(--error); }

.input-border {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--violet));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--normal) var(--ease);
    pointer-events: none;
}

.input-wrapper input:focus + .input-border { transform: scaleX(1); }

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.optional { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }

/* Topic Chips */
.topic-select { margin-bottom: var(--space-6); }

.topic-select > legend {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.topic-chips { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--fast) var(--ease);
    user-select: none;
}

.chip:hover { border-color: var(--border-hover); }

.chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.chip:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.chip:has(input:checked) {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow);
    box-shadow: 0 0 0 1px var(--accent);
}

.chip.primary:has(input:checked) {
    background: linear-gradient(135deg, var(--accent), var(--violet));
    border-color: transparent;
    color: white;
}

/* Consent Box */
.consent-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.consent-box input[type="checkbox"] {
    margin-top: 2px;
    width: 20px; height: 20px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

.consent-box label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    cursor: pointer;
}

.consent-box label strong { color: var(--text); }

/* Submit Button */
.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--accent), var(--violet));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all var(--fast) var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }

.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-arrow { opacity: 0; }

.btn-spinner {
    position: absolute;
    width: 24px; height: 24px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
}

.btn-submit.loading .btn-spinner { opacity: 1; }

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

/* Form Note */
.form-note {
    text-align: center;
    margin-top: var(--space-5);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.form-note a { color: var(--accent-light); text-decoration: none; border-bottom: 1px solid transparent; }
.form-note a:hover { border-bottom-color: var(--accent-light); }

/* Form Guarantees */
.form-guarantees {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.guarantee-item svg { color: var(--success); flex-shrink: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: var(--space-24) var(--space-6); background: var(--bg-elevated); }

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-3);
}

.faq details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--fast) var(--ease);
}

.faq details:hover { border-color: var(--border-hover); }

.faq summary {
    padding: var(--space-5) var(--space-6);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--fast) var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }

.faq details p {
    padding: 0 var(--space-6) var(--space-5);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq details a { color: var(--accent-light); text-decoration: none; border-bottom: 1px solid transparent; }
.faq details a:hover { border-bottom-color: var(--accent-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: var(--space-16) var(--space-6) var(--space-8);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: var(--space-12);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid var(--border);
}

.footer-brand .logo { margin-bottom: var(--space-3); }

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }

.footer-nav { display: flex; gap: var(--space-12); }

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.footer-col a,
.footer-col span {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: var(--space-2);
    transition: color var(--fast) var(--ease);
}

.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: var(--space-6);
    text-align: center;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-2);
}

.copyright { font-size: 0.75rem; color: var(--text-muted); opacity: 0.5; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: translateX(120%);
    opacity: 0;
    transition: transform var(--normal) var(--ease-spring), opacity var(--fast) var(--ease);
    pointer-events: auto;
    min-width: 300px;
    max-width: 420px;
}

.toast.show { transform: translateX(0); opacity: 1; }

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--error); }
.toast-info { border-left: 3px solid var(--accent); }

.toast-message { font-size: 0.9rem; color: var(--text); flex: 1; line-height: 1.5; }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color var(--fast) var(--ease);
}

.toast-close:hover { color: var(--text); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.reveal.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease) forwards;
}

/* Stagger delays */
.delay-1.animate-in { animation-delay: 0.1s; }
.delay-2.animate-in { animation-delay: 0.2s; }
.delay-3.animate-in { animation-delay: 0.3s; }
.delay-4.animate-in { animation-delay: 0.4s; }
.delay-5.animate-in { animation-delay: 0.5s; }
.delay-6.animate-in { animation-delay: 0.6s; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 1024px) {
    .subscribe-wrapper {
        grid-template-columns: 1fr;
    }

    .subscribe-visual {
        position: static;
        order: -1;
    }

    .phone-showcase { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(3, 3, 7, 0.98);
        backdrop-filter: saturate(180%) blur(20px);
        padding: var(--space-6);
        gap: var(--space-4);
        border-bottom: 1px solid var(--border);
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(72px + var(--space-10));
        min-height: auto;
    }

    .hero-phone { display: none; }

    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }

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

    .footer-inner { flex-direction: column; gap: var(--space-8); text-align: center; }
    .footer-brand { align-items: center; display: flex; flex-direction: column; }
    .footer-brand p { max-width: none; }
    .footer-nav { justify-content: center; }

    .section-header { text-align: center; }
    .section-header h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }

    .visual-stats { flex-wrap: wrap; justify-content: center; }

    .topic-chips { justify-content: center; }

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

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .optin-form { padding: var(--space-6); }
    .form-guarantees { flex-direction: column; gap: var(--space-4); }
}