/* ============================================================================
   LANDING — Glassmorphic, luxury, modern. Matches the logo's purple→lavender.
   ============================================================================ */

.landing {
    --glass-bg: rgba(255, 255, 255, 0.045);
    --glass-bg-strong: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(167, 139, 250, 0.35);
    --purple-mid: #8B5CF6;
    --purple-light: #A78BFA;
    --purple-glow: rgba(139, 92, 246, 0.35);
    --purple-glow-soft: rgba(139, 92, 246, 0.15);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    isolation: isolate;
    overflow-x: clip;  /* prevent orbs from causing horizontal scroll, but allow vertical */
}

/* Global page background: three slow-drifting orbs behind the glass */
.landing::before,
.landing::after {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    will-change: transform;
}
.landing::before {
    width: 720px; height: 720px;
    top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 60%);
    animation: drift-1 28s ease-in-out infinite;
}
.landing::after {
    width: 640px; height: 640px;
    top: 30%; right: -200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 60%);
    animation: drift-2 34s ease-in-out infinite;
}
.landing .ambient {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    will-change: transform;
}
.landing .ambient-3 {
    width: 680px; height: 680px;
    top: 70%; left: 20%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.22), transparent 60%);
    animation: drift-3 40s ease-in-out infinite;
}
.landing .ambient-4 {
    width: 560px; height: 560px;
    bottom: 10%; right: 10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 60%);
    animation: drift-4 36s ease-in-out infinite;
}
@keyframes drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(160px, 120px) scale(1.1); }
}
@keyframes drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-200px, 100px) scale(1.2); }
}
@keyframes drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(180px, -120px) scale(1.15); }
}
@keyframes drift-4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-140px, -180px) scale(1.1); }
}

.landing > * { position: relative; z-index: 1; }

/* Utility: section frame */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 32px;
}
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 24px;
}
.section-kicker::before {
    content: '';
    width: 24px; height: 1px;
    background: linear-gradient(to right, var(--purple-light), transparent);
}
.section-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 24px;
    color: var(--text);
    max-width: 820px;
}
.section-title .grad {
    background: linear-gradient(180deg, #4c1d95 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="dark"] .section-title .grad {
    background: linear-gradient(180deg, #ffffff 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.section-lead {
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
    min-height: calc(100vh - 80px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 32px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
    opacity: 0;
    animation: rise 900ms 80ms var(--ease-out) forwards;
}
.hero-chip .chip-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--purple-light);
    box-shadow: 0 0 10px var(--purple-light);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.15); }
}
.hero-chip a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 0 28px;
    color: var(--text);
    max-width: 14ch;
    text-wrap: balance;
}
.hero-title .grad {
    background: linear-gradient(180deg, #4c1d95 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="dark"] .hero-title .grad {
    background: linear-gradient(180deg, #ffffff 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-lead {
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 0 40px;
    opacity: 0;
    animation: rise 1000ms 400ms var(--ease-out) forwards;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: rise 1000ms 500ms var(--ease-out) forwards;
}

/* Primary CTA with shimmer */
.btn-glow {
    position: relative;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #a78bfa 0%, #6366f1 60%, #4f46e5 100%);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 10px 30px -10px rgba(99, 102, 241, 0.5),
        0 20px 60px -20px rgba(139, 92, 246, 0.6);
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1) inset,
        0 14px 40px -10px rgba(99, 102, 241, 0.6),
        0 30px 80px -20px rgba(139, 92, 246, 0.7);
}
.btn-glow::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.25) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 800ms var(--ease-out);
}
.btn-glow:hover::before { transform: translateX(100%); }

.btn-glass {
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 200ms var(--ease-out);
}
.btn-glass:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-strong);
    transform: translateY(-2px);
}

.hero-scroll {
    margin-top: 64px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: rise 1000ms 800ms var(--ease-out) forwards;
}
.hero-scroll-line {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, var(--purple-light), transparent);
    position: relative;
    overflow: hidden;
}
.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -20px; left: 0;
    width: 100%; height: 20px;
    background: linear-gradient(to bottom, var(--purple-light), transparent);
    animation: scroll-trickle 2.2s ease-in-out infinite;
}
@keyframes scroll-trickle {
    0%   { top: -20px; opacity: 0; }
    40%  { opacity: 1; }
    100% { top: 44px; opacity: 0; }
}

/* ============================================================================
   STATS / TRUTH BAR
   ============================================================================ */
.stats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px 40px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
    background: rgba(9, 9, 11, 0.5);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================================================
   PRODUCT PREVIEW (side-by-side copy + animated mockup)
   ============================================================================ */
.preview {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
@media (max-width: 1000px) { .preview { grid-template-columns: 1fr; gap: 48px; } }

.preview-copy .feature-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.preview-copy .feature-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
}
.preview-copy .feature-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--purple-light);
}

/* The animated product mockup — a glass "window" */
.mockup {
    position: relative;
    background: rgba(20, 20, 32, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow:
        0 40px 80px -20px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 0 80px -10px var(--purple-glow-soft);
    overflow: hidden;
}
.mockup::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15), transparent 55%);
    pointer-events: none;
}
.mockup-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px 12px;
    border-bottom: 1px solid var(--glass-border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.mockup-dot.r { background: rgba(255, 95, 86, 0.6); }
.mockup-dot.y { background: rgba(255, 189, 46, 0.6); }
.mockup-dot.g { background: rgba(39, 201, 63, 0.5); }
.mockup-filename {
    margin-left: 12px;
    font-size: 12px;
    font-family: ui-monospace, 'SF Mono', monospace;
    color: var(--text-muted);
}
.mockup-body { padding: 24px 8px 8px; position: relative; }

/* Waveform animation inside mockup */
.mockup-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 60px;
    padding: 8px 4px;
    margin-bottom: 24px;
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}
.mockup-wave .bar {
    flex: 1;
    max-width: 3px;
    background: linear-gradient(to top, var(--purple-mid), var(--purple-light));
    border-radius: 2px;
    animation: wave-pulse 1.4s ease-in-out infinite;
    transform-origin: center;
}
@keyframes wave-pulse {
    0%, 100% { transform: scaleY(0.3); opacity: 0.7; }
    50%      { transform: scaleY(1); opacity: 1; }
}

/* Caption lines that "type" in sequence */
.mockup-caption {
    opacity: 0;
    animation: caption-in 600ms var(--ease-out) forwards;
    display: flex;
    gap: 12px;
    padding: 10px 0;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.mockup-caption:nth-child(2) { animation-delay: 400ms; }
.mockup-caption:nth-child(3) { animation-delay: 1200ms; }
.mockup-caption:nth-child(4) { animation-delay: 2000ms; }
.mockup-caption:last-child { border-bottom: none; }
.mockup-caption-time {
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    padding-top: 1px;
}
.mockup-caption-speaker {
    font-weight: 600;
    color: var(--purple-light);
    margin-right: 6px;
}
@keyframes caption-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mockup-recap {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(167, 139, 250, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.12);
    opacity: 0;
    animation: caption-in 800ms 2600ms var(--ease-out) forwards;
}
.mockup-recap-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 8px;
}
.mockup-recap-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

/* ============================================================================
   FEATURES GRID — glassmorphic cards with hover glow
   ============================================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
    position: relative;
    padding: 32px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(
        400px circle at var(--mx, 50%) var(--my, 50%),
        rgba(167, 139, 250, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 300ms var(--ease-out);
    pointer-events: none;
    border-radius: inherit;
}
.feature-card:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: var(--purple-light);
    margin-bottom: 24px;
    position: relative;
}
.feature-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent 60%);
    pointer-events: none;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    color: var(--text);
}
.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================================================
   HOW IT WORKS — three connected steps
   ============================================================================ */
.how-it-works {
    text-align: center;
}
.how-it-works .section-title { margin-left: auto; margin-right: auto; }
.how-it-works .section-lead { margin-left: auto; margin-right: auto; }

.steps {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

.step {
    padding: 36px 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    position: relative;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 54px;
    right: -36px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg,
        var(--purple-light) 0%,
        var(--purple-mid) 50%,
        transparent 100%);
    border-radius: 2px;
    opacity: 0.6;
    pointer-events: none;
}
@media (max-width: 900px) {
    .step:not(:last-child)::after { display: none; }
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-mid), #6366f1);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px -4px var(--purple-glow);
}
.step h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    color: var(--text);
}
.step p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================================================
   USE CASES — chip grid
   ============================================================================ */
.use-cases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
}
@media (max-width: 900px) { .use-cases { grid-template-columns: repeat(2, 1fr); } }
.use-case {
    padding: 24px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    text-align: left;
    transition: all 300ms var(--ease-out);
}
.use-case:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-strong);
    transform: translateY(-2px);
}
.use-case-icon {
    color: var(--purple-light);
    margin-bottom: 16px;
}
.use-case h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text);
}
.use-case p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
   AUDIENCE DIPTYCH
   ============================================================================ */
.audience-diptych {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 56px;
}
@media (max-width: 900px) { .audience-diptych { grid-template-columns: 1fr; } }
.audience-panel {
    padding: 44px 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.audience-panel::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 100% 0%, var(--panel-accent, rgba(139, 92, 246, 0.1)), transparent 55%);
    pointer-events: none;
}
.audience-panel.dev { --panel-accent: rgba(110, 231, 183, 0.08); }
.audience-panel.ent { --panel-accent: rgba(167, 139, 250, 0.14); }
.audience-panel > * { position: relative; }

.audience-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.audience-panel.dev .audience-label { color: #6ee7b7; }
.audience-panel.ent .audience-label { color: var(--purple-light); }
.audience-label::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}
.audience-panel h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    color: var(--text);
}
.audience-panel p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 24px;
}
.audience-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.audience-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--text);
}
.audience-list li svg { flex-shrink: 0; margin-top: 4px; }
.audience-panel.dev .audience-list li svg { color: #6ee7b7; }
.audience-panel.ent .audience-list li svg { color: var(--purple-light); }

.code-block {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 16px 18px;
    padding-right: 72px;
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 12px;
    line-height: 1.75;
    color: var(--text-secondary);
    white-space: pre;
    overflow-x: auto;
    margin-bottom: 24px;
    overflow-x: auto;
}
.code-block .prompt { color: #6ee7b7; user-select: none; margin-right: 6px; }
.code-block .cmt { color: var(--text-muted); }

.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-family: var(--font, 'Inter', system-ui, sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 150ms ease, color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.code-block:hover .code-copy-btn,
.code-copy-btn:focus-visible { opacity: 1; }
.code-copy-btn:hover {
    color: var(--text);
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.5);
}
.code-copy-btn.copied {
    opacity: 1;
    color: #6ee7b7;
    border-color: rgba(110, 231, 183, 0.5);
    background: rgba(110, 231, 183, 0.1);
}

.code-inline-copy {
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    padding: 1px 5px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid transparent;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
    user-select: all;
}
.code-inline-copy:hover {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.35);
}
.code-inline-copy.copied {
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.15);
    border-color: rgba(110, 231, 183, 0.45);
}
.code-inline-copy.copied::after {
    content: 'copied';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6ee7b7;
    background: rgba(9, 9, 11, 0.95);
    border: 1px solid rgba(110, 231, 183, 0.45);
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
    pointer-events: none;
}

/* Uniform height for feature cards in a grid so Requirements etc. stay
   visually balanced even when their copy lengths differ. */
.features-grid .feature-card {
    display: flex;
    flex-direction: column;
}
.features-grid .feature-card > p:last-child,
.features-grid .feature-card > div:last-child {
    margin-top: auto;
}

/* ============================================================================
   INSTALL STEPS — vertical stack, number badge on the left, content on the right
   (used on /download where each step is verbose with code blocks)
   ============================================================================ */
.install-steps {
    margin: 48px auto 0;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.install-step {
    display: flex;
    gap: 24px;
    padding: 28px 28px 28px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    align-items: flex-start;
    position: relative;
}
.install-step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-mid, #8B5CF6), #6366f1);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px -4px rgba(99, 102, 241, 0.45);
}
.install-step-body {
    flex: 1;
    min-width: 0; /* lets code-block respect container width */
}
.install-step-body h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 6px 0 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.install-step-body p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 12px;
}
.install-step-body p:last-child { margin-bottom: 0; }
.install-step-body .code-block {
    margin: 12px 0;
    max-width: 100%;
}
@media (max-width: 640px) {
    .install-step {
        flex-direction: column;
        gap: 14px;
        padding: 24px;
    }
}

/* Consistent "card footer" arrow link for feature cards that act as nav tiles. */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
    color: var(--purple-light, #a78bfa);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: -0.005em;
    transition: color 150ms ease;
}
.card-link svg { transition: transform 200ms ease; }
.card-link:hover { color: var(--text); }
.card-link:hover svg { transform: translateX(4px); }

/* Download-kit button sits at the bottom of brand-kit cards with breathing
   room between the description text and the button. */
.kit-download {
    margin-top: 24px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.kit-download:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.45);
    transform: translateY(-1px);
}
.kit-download svg { transition: transform 200ms ease; }
.kit-download:hover svg { transform: translateY(2px); }

/* Panel highlight tiles — mirrors the visual weight of a .code-block on the
   opposite side of the audience diptych so both panels stay symmetric. */
.panel-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 4px 0 20px;
    padding: 18px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}
.panel-highlights > div {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.panel-highlights strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.1;
}
.panel-highlights span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.3;
}

/* ============================================================================
   FAQ — glassmorphic accordions
   ============================================================================ */
.faq {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.faq .section-title { margin-left: auto; margin-right: auto; }
.faq-list {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.faq-list { text-align: left; }
.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.faq-item[open] { border-color: var(--glass-border-hover); background: var(--glass-bg-strong); }
.faq-item summary {
    padding: 20px 56px 20px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    list-style: none;
    position: relative;
    text-align: left;
    line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    width: 14px; height: 14px;
    position: absolute;
    right: 24px;
    top: 50%;
    margin-top: -7px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: transform 200ms var(--ease-out);
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); opacity: 1; }
.faq-item .faq-body {
    padding: 0 24px 22px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 720px;
}

/* ============================================================================
   FINAL CTA
   ============================================================================ */
.final-cta {
    max-width: 1100px;
    margin: 80px auto 120px;
    padding: 80px 40px;
    text-align: center;
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.final-cta::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 100%, rgba(139, 92, 246, 0.25), transparent 55%),
        radial-gradient(ellipse at 70% 0%, rgba(99, 102, 241, 0.22), transparent 55%);
    pointer-events: none;
}
.final-cta > * { position: relative; }
.final-cta h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: var(--text);
}
.final-cta h2 .grad {
    background: linear-gradient(180deg, #4c1d95 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="dark"] .final-cta h2 .grad {
    background: linear-gradient(180deg, #ffffff 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.final-cta p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 36px;
}
.final-cta-note {
    margin-top: 20px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ============================================================================
   MEET ENDER — dedicated section for the AI assistant selling point
   ============================================================================ */
.ender { position: relative; text-align: center; }
.ender .section-title { margin-left: auto; margin-right: auto; }
.ender .section-lead { margin-left: auto; margin-right: auto; max-width: 680px; }

.ender-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: rgba(167, 139, 250, 0.08);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--purple-light);
}
.ender-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--purple-light);
    box-shadow: 0 0 10px var(--purple-light);
}

.ender-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}
@media (max-width: 900px) { .ender-grid { grid-template-columns: 1fr; gap: 16px; } }

.ender-feature {
    padding: 32px 28px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    display: flex; flex-direction: column; gap: 14px;
    transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.ender-feature:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-strong);
}
.ender-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(167, 139, 250, 0.25);
    display: flex; align-items: center; justify-content: center;
    color: var(--purple-light);
}
.ender-feature h3 {
    font-size: 17px; font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
}
.ender-feature p {
    font-size: 14px; line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================================================
   INTEGRATIONS — Zoom / Google Meet / anywhere else
   ============================================================================ */
.integrations { text-align: center; }
.integrations .section-title { margin-left: auto; margin-right: auto; }
.integrations .section-lead { margin-left: auto; margin-right: auto; max-width: 680px; }

.integration-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}
@media (max-width: 900px) { .integration-grid { grid-template-columns: 1fr; gap: 14px; } }

.integration-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 24px 22px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.integration-card:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-strong);
}
.integration-logo {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.integration-zoom { background: rgba(45, 140, 255, 0.12); color: #4A90E2; border: 1px solid rgba(45, 140, 255, 0.25); }
.integration-meet { background: rgba(52, 168, 83, 0.12); color: #34a853; border: 1px solid rgba(52, 168, 83, 0.25); }
.integration-any { background: rgba(167, 139, 250, 0.12); color: var(--purple-light); border: 1px solid rgba(167, 139, 250, 0.25); }
.integration-card h4 {
    font-size: 16px; font-weight: 700; color: var(--text);
    margin: 0;
}
.integration-card p {
    font-size: 13.5px; line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}
.integrations-footnote {
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-secondary);
}
.integrations-footnote a {
    color: var(--purple-light);
    text-decoration: none;
    font-weight: 600;
}
.integrations-footnote a:hover { text-decoration: underline; }

/* ============================================================================
   RESPONSIVE — tablet + phone
   Consolidates the phone-specific rules. The existing per-component
   queries above handle grid collapse at wider breakpoints; this block
   tunes type sizes, padding, and edge-cases for real phones (≤640
   tablet-portrait, ≤480 phone, ≤360 very small).
   ============================================================================ */
@media (max-width: 640px) {
    /* Section + hero padding: tighter so content isn't pushed into a narrow
       column between large gutters. */
    .section { padding: 72px 20px; }
    .hero {
        padding: 40px 20px 48px;
        min-height: calc(100vh - 72px);
    }
    .hero-chip { font-size: 12px; padding: 6px 12px; gap: 8px; margin-bottom: 24px; }
    .hero-title { margin-bottom: 20px; max-width: 18ch; }
    .hero-lead { margin-bottom: 32px; font-size: 16px; }
    .hero-scroll { display: none; }

    /* Stats card: 2 columns on phones, smaller values, tighter padding. */
    .stat { padding: 22px 18px; gap: 6px; }
    .stat-value { font-size: 24px; }
    .stat-label { font-size: 12px; }
    .stats { padding: 28px 20px; }

    /* Section title + lead shrink for phones without losing rhythm. */
    .section-kicker { margin-bottom: 16px; font-size: 11px; }
    .section-title { margin-bottom: 16px; }
    .section-lead { font-size: 15px; }

    /* Product preview: copy above, mockup below, no extreme gaps. */
    .preview { gap: 36px; }
    .preview-copy .feature-list { margin-top: 24px; gap: 12px; }
    .mockup-filename { font-size: 11px; }
    .mockup-body { padding: 18px 4px 4px; }
    .mockup-caption { font-size: 12px; padding: 10px 12px; gap: 10px; }
    .mockup-recap { padding: 14px 16px; }

    /* Feature cards: reduce padding, feature icon, and stat heights. */
    .feature-card { padding: 24px 20px; }
    .feature-icon { width: 40px; height: 40px; margin-bottom: 16px; }

    /* How-it-works steps already single-column at 900; tighten padding. */
    .step { padding: 24px; }

    /* Use cases: 2 columns read fine at phone width with tighter padding. */
    .use-cases { gap: 12px; }
    .use-case { padding: 20px 16px; }
    .use-case h4 { font-size: 15px; }
    .use-case p { font-size: 13px; }

    /* Audience panels: full-width stacked, tighter padding, code-block scrolls. */
    .audience-panel { padding: 28px 22px; }
    .audience-panel h3 { font-size: 22px; }
    .panel-highlights { gap: 14px; }
    .code-block {
        font-size: 12px;
        padding: 14px 16px;
        overflow-x: auto;
        white-space: pre;
    }

    /* FAQ accordions fit comfortably on a phone with smaller summaries. */
    .faq-item summary { padding: 16px 44px 16px 18px; font-size: 15px; }
    .faq-item summary::after { right: 18px; width: 12px; height: 12px; }
    .faq-item .faq-body { padding: 0 18px 18px; font-size: 14px; }
    .faq-list { margin-top: 32px; }

    /* Final CTA shrinks gracefully. */
    .final-cta { margin: 56px 16px 80px; padding: 48px 24px; border-radius: 24px; }
    .final-cta p { font-size: 15px; margin-bottom: 28px; }
    .final-cta-note { font-size: 11px; margin-top: 16px; }

    /* CTAs wrap to full-width buttons stacked vertically. */
    .hero-cta { flex-direction: column; width: 100%; max-width: 320px; }
    .hero-cta .btn-glow,
    .hero-cta .btn-glass { width: 100%; justify-content: center; }
    .btn-glow { padding: 14px 24px; font-size: 14px; }
    .btn-glass { padding: 14px 24px; font-size: 14px; }
}

@media (max-width: 480px) {
    .section { padding: 56px 16px; }
    .hero { padding: 32px 16px 40px; }
    .hero-chip { flex-wrap: wrap; justify-content: center; padding: 6px 14px; gap: 6px; }
    .hero-chip a { width: 100%; text-align: center; margin-top: 2px; }

    /* Stats go single-column on very narrow phones so values don't wrap. */
    .stats-grid { grid-template-columns: 1fr; }

    /* Use-cases: single column on very narrow phones. */
    .use-cases { grid-template-columns: 1fr; }

    /* Final CTA title tightens further. */
    .final-cta h2 { font-size: 30px; }
}

@media (max-width: 360px) {
    /* Keep everything readable on the smallest modern phones. */
    .hero-title { font-size: 38px; letter-spacing: -0.02em; }
    .section-title { font-size: 26px; }
    .stat-value { font-size: 22px; }
    .feature-card h3 { font-size: 16px; }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .landing::before, .landing::after, .landing .ambient,
    .hero-chip .chip-dot, .hero-scroll-line::after,
    .mockup-wave .bar, .mockup-caption, .mockup-recap,
    .hero-lead, .hero-cta, .hero-chip, .hero-scroll {
        animation: none !important;
    }
    .hero-lead, .hero-cta, .hero-chip, .hero-scroll,
    .mockup-caption, .mockup-recap { opacity: 1 !important; transform: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .btn-glow::before { display: none; }
}

/* ============================================================================
   LIGHT MODE OVERRIDES
   ============================================================================ */
[data-theme="light"] .landing {
    --glass-bg: rgba(15, 15, 30, 0.025);
    --glass-bg-strong: rgba(15, 15, 30, 0.05);
    --glass-border: rgba(15, 15, 30, 0.08);
    --glass-border-hover: rgba(139, 92, 246, 0.4);
}

/* Gradient text: swap white→lavender (dark mode) for dark-purple→mid-violet (light mode) */
[data-theme="light"] .section-title .grad,
[data-theme="light"] .hero-title .grad,
[data-theme="light"] .stat-value {
    background: linear-gradient(180deg, #4c1d95 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="light"] .final-cta h2 span {
    background: linear-gradient(180deg, #4c1d95 0%, #8b5cf6 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Soften the atmospheric orbs so they don't wash out light bg */
[data-theme="light"] .landing::before,
[data-theme="light"] .landing::after,
[data-theme="light"] .ambient { opacity: 0.55; }

/* Feature-card cursor glow reads better with a darker tint on light bg */
[data-theme="light"] .feature-card::before {
    background: radial-gradient(
        400px circle at var(--mx, 50%) var(--my, 50%),
        rgba(139, 92, 246, 0.12),
        transparent 40%
    );
}

/* Mockup chrome — slight adjustment for readability on light bg */
[data-theme="light"] .mockup {
    background: rgba(255, 255, 255, 0.65);
    box-shadow:
        0 30px 60px -20px rgba(15, 15, 30, 0.25),
        0 0 0 1px rgba(15, 15, 30, 0.06) inset,
        0 0 80px -10px var(--purple-glow-soft);
}
[data-theme="light"] .mockup-wave {
    background: rgba(15, 15, 30, 0.04);
    border-color: rgba(15, 15, 30, 0.06);
}
[data-theme="light"] .code-block {
    background: rgba(15, 15, 30, 0.04);
    color: #2a2a35;
}

/* Stat grid on light: glass reads better with lower white opacity */
[data-theme="light"] .stat {
    background: rgba(255, 255, 255, 0.7);
}

/* FAQ accordions + audience panels on light */
[data-theme="light"] .faq-item,
[data-theme="light"] .audience-panel,
[data-theme="light"] .step,
[data-theme="light"] .feature-card,
[data-theme="light"] .use-case {
    background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .audience-panel.ent {
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(255, 255, 255, 0.6));
}
[data-theme="light"] .audience-panel.dev {
    background: linear-gradient(180deg, rgba(110, 231, 183, 0.05), rgba(255, 255, 255, 0.6));
}

/* Final CTA panel glows */
[data-theme="light"] .final-cta {
    background: rgba(255, 255, 255, 0.6);
}

/* Hero chip on light: use dark-tint backdrop */
[data-theme="light"] .hero-chip {
    background: rgba(15, 15, 30, 0.04);
    color: var(--text);
}

/* Scroll cue visibility on light */
[data-theme="light"] .hero-scroll { color: var(--text-secondary); }
