/* ============================================
   PALADIN — Voice AI Website  v5
   Premium Glass UI · Light/Dark
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* DARK THEME — Ultra-Premium Dark Glass */
:root,
[data-theme="dark"] {
    /* Deep, rich dark mesh gradient so the glass has color to refract */
    --bg:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.55) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.50) 0%, transparent 55%),
        #020617;
    --bg2: rgba(15, 23, 42, 0.3);
    --bg3: rgba(15, 23, 42, 0.6);

    /* Dark Frosted Glass Opacities (Slightly darkened to block extreme light) */
    --g-bg: rgba(10, 15, 30, 0.30);
    --g-bg2: rgba(10, 15, 30, 0.45);
    --g-bg3: rgba(10, 15, 30, 0.60);
    --g-bgH: rgba(20, 30, 50, 0.50);

    /* Crisp borders for the glass edge effect */
    --g-b: rgba(255, 255, 255, 0.15);
    --g-b2: rgba(255, 255, 255, 0.30);

    --g-sh: 0 10px 40px rgba(0, 0, 0, 0.7);
    --g-sh2: 0 20px 50px rgba(0, 0, 0, 0.9);
    --blur: 40px;
    --sat: 150%;

    --ac: #3b82f6;
    --ac2: #6366f1;
    --ac3: #06b6d4;
    --acG: linear-gradient(135deg, #3b82f6, #6366f1, #06b6d4);
    --acGlow: rgba(59, 130, 246, 0.70);
    /* Massive boost for Logo Glow */
    --acGlow2: rgba(59, 130, 246, 0.90);

    /* ULTRA BRIGHT TEXT FOR DARK MODE */
    --t1: #ffffff;
    --t2: #e2e8f0;
    --t3: #cbd5e1;
    --tA: #ffffff;
    --ok: #22c55e;
    --err: #ef4444;

    /* Solid Ring Opacities for high visibility */
    --ring1: rgba(59, 130, 246, 1);
    --ring2: rgba(99, 102, 241, 0.9);
    --ring3: rgba(6, 182, 212, 0.75);

    --fLogo: none;
    /* Let natural logo colors shine! */
    --nLogo: none;
    --panelBg: rgba(15, 23, 42, 0.4);
    --panelVizBg: rgba(2, 6, 23, 0.3);
}

/* ---- DARK MODE SPECIFIC OVERRIDES ---- */
/* 1. Force the background to stay fixed */
[data-theme="dark"] body {
    background: var(--bg);
    background-attachment: fixed;
}

/* 2. Strip background colors so the mesh shines through */
[data-theme="dark"] .features,
[data-theme="dark"] .about,
[data-theme="dark"] .contact,
[data-theme="dark"] .demo-section,
[data-theme="dark"] .hero {
    background: transparent !important;
}

/* 3. The Main Glass Cards (Features, About, Stats, Contact) synced to Light Mode logic */
[data-theme="dark"] .glass-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .about-logo-card,
[data-theme="dark"] .contact-content,
[data-theme="dark"] .stat {
    background: var(--g-bg) !important;
    border: 1.5px solid var(--g-b) !important;
    box-shadow: var(--g-sh), inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(var(--blur)) saturate(var(--sat)) !important;
    -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat)) !important;
}

/* 4. Glass Hover States (Exact same -6px bounce as Light Mode) */
[data-theme="dark"] .glass-card:hover,
[data-theme="dark"] .feature-card:hover {
    background: var(--g-bgH) !important;
    border-color: var(--g-b2) !important;
    box-shadow: var(--g-sh2), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 30px rgba(59, 130, 246, 0.1) !important;
    transform: translateY(-6px);
}

/* 5. Buttons and Small Elements */
[data-theme="dark"] .glass-pill {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--g-b);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
}

[data-theme="dark"] .glass-icon-btn,
[data-theme="dark"] .btn-glass,
[data-theme="dark"] .panel-close,
[data-theme="dark"] .read-aloud-btn {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--g-b);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .glass-icon-btn:hover,
[data-theme="dark"] .btn-glass:hover,
[data-theme="dark"] .panel-close:hover,
[data-theme="dark"] .read-aloud-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--g-b2);
    transform: translateY(-2px);
}

/* 6. Navbar & Footer */
[data-theme="dark"] .navbar {
    background: rgba(2, 6, 23, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(150%);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(2, 6, 23, 0.65) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .footer {
    background: rgba(2, 6, 23, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(40px) saturate(150%) !important;
}

/* 7. Demo Panel Overrides */
[data-theme="dark"] .demo-panel {
    background: var(--panelBg) !important;
    border: 1px solid var(--g-b) !important;
    box-shadow: var(--g-sh2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(60px) saturate(150%);
}

[data-theme="dark"] .demo-panel .panel-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

[data-theme="dark"] .panel-viz {
    background: var(--panelVizBg);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .chat-input-bar {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-input {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--g-b);
}

[data-theme="dark"] .voice-orb {
    background: rgba(15, 23, 42, 0.4);
    border: 3px solid var(--ring1);
    /* Fixed to 3px to perfectly match Light Mode and rings! */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px) saturate(150%);
}

/* 8. Fix Logo Halos & Rings for Dark Mode */
[data-theme="dark"] .hero-logo-halo {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.9) 0%, rgba(99, 102, 241, 0.5) 30%, transparent 70%) !important;
    filter: blur(15px);
}

[data-theme="dark"] .about-logo-halo {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(99, 102, 241, 0.4) 30%, transparent 70%) !important;
    filter: blur(15px);
}

[data-theme="dark"] .orbit-outer,
[data-theme="dark"] .orbit-1 {
    border-top-color: var(--ac) !important;
    border-right-color: var(--ac2) !important;
}

[data-theme="dark"] .orbit-inner,
[data-theme="dark"] .orbit-2 {
    border-bottom-color: var(--ac3) !important;
    border-left-color: var(--ac) !important;
    opacity: 0.8;
}

/* LIGHT THEME — Ultra-Visible Frosted Glass */
[data-theme="light"] {
    /* Highly visible Indigo and Cyan background orbs to force glass refraction */
    --bg:
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        #f8fafc;
    --bg2: rgba(255, 255, 255, 0.2);
    --bg3: rgba(255, 255, 255, 0.3);
    /* Slightly less transparency to block extreme light and make text readable */
    --g-bg: rgba(255, 255, 255, 0.25);
    --g-bg2: rgba(255, 255, 255, 0.35);
    --g-bg3: rgba(255, 255, 255, 0.5);
    --g-bgH: rgba(255, 255, 255, 0.7);
    /* Hard white borders to create the "glass edge" */
    --g-b: rgba(255, 255, 255, 0.8);
    --g-b2: #ffffff;
    --g-sh: 0 10px 40px rgba(31, 38, 135, 0.08);
    --g-sh2: 0 20px 50px rgba(31, 38, 135, 0.15);
    --blur: 40px;
    --sat: 150%;
    --ac: #2563eb;
    --ac2: #4f46e5;
    --ac3: #0891b2;
    --acG: linear-gradient(135deg, #2563eb, #4f46e5, #0891b2);
    --acGlow: rgba(37, 99, 235, 0.25);
    --acGlow2: rgba(37, 99, 235, 0.35);

    /* ULTRA DARK TEXT FOR LIGHT MODE */
    --t1: #000000;
    --t2: #1e293b;
    --t3: #334155;
    --tA: #ffffff;
    --ok: #16a34a;
    --err: #dc2626;

    /* Solid Ring Opacities for high visibility */
    --ring1: rgba(37, 99, 235, 1);
    --ring2: rgba(79, 70, 229, 0.9);
    --ring3: rgba(8, 145, 178, 0.75);
    --fLogo: none;
    --nLogo: none;
    --panelBg: rgba(255, 255, 255, 0.35);
    --panelVizBg: rgba(255, 255, 255, 0.15);
}

/* ---- LIGHT MODE SPECIFIC OVERRIDES ---- */
[data-theme="light"] body {
    background: var(--bg);
    background-attachment: fixed;
}

/* Force structural sections to be completely transparent so the mesh shines through */
[data-theme="light"] .features,
[data-theme="light"] .about,
[data-theme="light"] .contact,
[data-theme="light"] .demo-section,
[data-theme="light"] .hero {
    background: transparent !important;
}

[data-theme="light"] .glass-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .about-logo-card,
[data-theme="light"] .contact-content,
[data-theme="light"] .stat {
    background: var(--g-bg) !important;
    border: 1px solid var(--g-b) !important;
    box-shadow: var(--g-sh), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 30px rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(var(--blur)) saturate(var(--sat)) !important;
    -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat)) !important;
}

[data-theme="light"] .glass-card:hover,
[data-theme="light"] .feature-card:hover {
    background: var(--g-bgH) !important;
    border-color: var(--g-b2) !important;
    box-shadow: var(--g-sh2), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 0 40px rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-6px);
}

[data-theme="light"] .glass-pill {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--g-b);
    color: var(--ac);
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.05);
    backdrop-filter: blur(16px);
}

[data-theme="light"] .glass-icon-btn,
[data-theme="light"] .btn-glass,
[data-theme="light"] .panel-close,
[data-theme="light"] .read-aloud-btn {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--g-b);
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    color: var(--t1);
    backdrop-filter: blur(16px);
}

[data-theme="light"] .glass-icon-btn:hover,
[data-theme="light"] .btn-glass:hover,
[data-theme="light"] .panel-close:hover,
[data-theme="light"] .read-aloud-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #ffffff;
    box-shadow: 0 8px 20px rgba(31, 38, 135, 0.1);
    transform: translateY(-2px);
}

[data-theme="light"] .glass-icon-wrap {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    border: 1px solid var(--g-b);
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.05);
    backdrop-filter: blur(12px);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(40px) saturate(150%);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 30px rgba(31, 38, 135, 0.05);
}

[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(40px) saturate(150%) !important;
}

[data-theme="light"] .demo-panel {
    background: var(--panelBg) !important;
    border: 1px solid var(--g-b) !important;
    box-shadow: var(--g-sh2), inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(60px) saturate(150%);
}

[data-theme="light"] .demo-panel .panel-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
}

[data-theme="light"] .panel-viz {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.6), rgba(226, 232, 240, 0.3));
    /* Stronger sidebar contrast */
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .viz-status {
    color: var(--ac);
    /* Deep Paladin Blue instead of washed-out cyan */
    font-weight: 800;
}

[data-theme="light"] .chat-input-bar {
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .chat-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--g-b);
    color: var(--t1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .chat-input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--ac);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .mic-control.muted {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--g-b);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .mic-control.muted .mic-off-icon {
    stroke: #334155;
}

[data-theme="light"] .mic-control.muted .mic-slash {
    stroke: var(--err);
}

[data-theme="light"] .voice-orb {
    background: rgba(255, 255, 255, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.9);
    /* Thickened to 3px to match Dark Mode */
    box-shadow: 0 10px 40px rgba(31, 38, 135, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 40px rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(30px) saturate(150%);
}

/* Massive Neon Glow for Light Mode Hover */
[data-theme="light"] .voice-orb:hover {
    background: rgba(255, 255, 255, 0.5);
    /* Dialed back from 0.7 for better glass translucency */
    border-color: #ffffff;
    box-shadow: 0 10px 40px rgba(31, 38, 135, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 80px rgba(37, 99, 235, 0.6), 0 0 120px rgba(6, 182, 212, 0.4);
}

/* Keep the Mic Icon crisp blue without the blurry glow */
[data-theme="light"] .voice-orb:hover .mic-icon {
    stroke: var(--ac);
    filter: none;
    /* Removed the drop-shadow so the icon stays razor-sharp */
}

[data-theme="light"] .msg.ai .msg-bubble {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--g-b);
    color: var(--t1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .msg.user .msg-bubble {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(79, 70, 229, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: #0f172a;
}

[data-theme="light"] .chat-welcome {
    color: var(--t2);
}

[data-theme="light"] .viz-avatar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
    border: 2px solid #ffffff;
    /* Extreme Neon Glow to cut through the light mesh background */
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1), 0 0 0 6px rgba(255, 255, 255, 0.6), 0 0 80px rgba(37, 99, 235, 0.6), 0 0 120px rgba(6, 182, 212, 0.4);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .hero-logo-wrapper {
    filter: drop-shadow(0 15px 35px rgba(37, 99, 235, 0.15));
}

[data-theme="light"] .viz-perm-toast {
    background: rgba(254, 242, 242, 0.6);
    border: 1px solid rgba(254, 202, 202, 0.8);
    color: #dc2626;
    backdrop-filter: blur(12px);
}

/* Prevent logo stretching */
[data-theme="light"] .hero-logo,
[data-theme="light"] .about-logo,
[data-theme="light"] .viz-avatar-img {
    object-fit: contain;
}

:root {
    --fd: 'Outfit', sans-serif;
    --fb: 'Inter', sans-serif;
    --nh: 72px;
    --mw: 1200px;
    --r: 20px;
    --rs: 12px;
    --rl: 28px;
    --rp: 50px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --tf: .2s var(--ease);
    --tm: .45s var(--ease);
    --ts: .65s var(--ease)
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased
}

body {
    font-family: var(--fb);
    background: var(--bg);
    color: var(--t1);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background .4s, color .4s
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit
}

input,
select {
    font-family: inherit;
    color: inherit
}

/* PARTICLE CANVAS */
#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Placed behind the UI so the glass cards blur the particles! */
}

/* GLASS PRIMITIVES */
.glass-card {
    background: var(--g-bg);
    border: 1px solid var(--g-b);
    border-radius: var(--r);
    backdrop-filter: blur(var(--blur)) saturate(var(--sat));
    -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
    box-shadow: var(--g-sh);
    transition: background var(--tf), border-color var(--tf), box-shadow var(--tm), transform var(--tf)
}

.glass-card:hover {
    background: var(--g-bgH);
    border-color: var(--g-b2);
    box-shadow: var(--g-sh2), 0 0 20px var(--acGlow);
    transform: translateY(-2px)
}

.glass-pill {
    background: var(--g-bg2);
    border: 1px solid var(--g-b);
    border-radius: var(--rp);
    backdrop-filter: blur(24px) saturate(var(--sat));
    -webkit-backdrop-filter: blur(24px) saturate(var(--sat))
}

.glass-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g-bg2);
    border: 1px solid var(--g-b);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--tm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08)
}

.glass-icon-btn:hover {
    background: var(--g-bgH);
    border-color: var(--g-b2);
    box-shadow: 0 4px 20px var(--acGlow)
}

.glass-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 14px;
    background: var(--g-bg2);
    border: 1px solid var(--g-b);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06)
}

.glass-icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: var(--ac)
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--rp);
    font-weight: 600;
    font-size: .95rem;
    transition: all var(--tf);
    white-space: nowrap
}

.btn-accent {
    background: var(--acG);
    color: var(--tA);
    box-shadow: 0 4px 24px var(--acGlow);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: all var(--tm)
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px var(--acGlow2), 0 0 20px var(--acGlow)
}

.btn-glass {
    background: var(--g-bg2);
    border: 1px solid var(--g-b);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--t1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    transition: all var(--tm)
}

.btn-glass:hover {
    background: var(--g-bgH);
    border-color: var(--g-b2);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--acGlow)
}

.btn-lg {
    padding: 16px 36px !important;
    font-size: 1.05rem !important
}

.gradient-text {
    background: var(--acG);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

/* SECTION UTILS */
.section-header {
    text-align: center;
    margin-bottom: 60px
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--ac3);
    margin-bottom: 16px
}

.section-title {
    font-family: var(--fd);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px
}

.section-desc {
    font-size: 1.1rem;
    color: var(--t2);
    max-width: 560px;
    margin: 0 auto
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nh);
    z-index: 1000;
    background: var(--g-bg);
    backdrop-filter: blur(var(--blur)) saturate(var(--sat));
    -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
    border-bottom: 1px solid var(--g-b);
    transition: background .3s, box-shadow .3s
}

.navbar.scrolled {
    background: var(--g-bg3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .1)
}

.nav-container {
    max-width: var(--mw);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav-logo {
    display: flex;
    align-items: center
}

.logo-img {
    height: 32px;
    width: auto;
    filter: var(--nLogo)
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--t2);
    transition: color var(--tf);
    position: relative
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--acG);
    border-radius: 2px;
    transition: width var(--tm)
}

.nav-links a:hover {
    color: var(--t1)
}

.nav-links a:hover::after {
    width: 100%
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px
}

.theme-icon {
    width: 20px;
    height: 20px;
    stroke: var(--t2)
}

.sun-icon {
    display: none
}

.moon-icon {
    display: block
}

[data-theme="light"] .sun-icon {
    display: block
}

[data-theme="light"] .moon-icon {
    display: none
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: var(--rp);
    font-size: .85rem;
    font-weight: 600;
    background: var(--acG);
    color: var(--tA);
    box-shadow: 0 2px 16px var(--acGlow);
    transition: all var(--tf);
    border: 1px solid rgba(255, 255, 255, .1)
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--acGlow2)
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 1001
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--t1);
    border-radius: 2px;
    transition: all .3s
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
}

.hamburger.active span:nth-child(2) {
    opacity: 0
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--nh) + 12vh) 24px 60px;
    /* Removed overflow:hidden so it doesn't trap the background */
}

/* GLOBAL AMBIENT ORBS - Positioned fixed to float behind EVERYTHING on the page */
.hero-bg-orbs {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    /* Sits exactly between the body background and the glass UI */
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.55;
    /* Boosted opacity for maximum glass refraction */
}

[data-theme="dark"] .orb {
    opacity: 0.35;
    /* Perfectly balanced for Dark Mode */
}

/* Converted to responsive vw/vh units so they are massive on all monitors */
.orb-1 {
    width: 50vw;
    height: 50vw;
    min-width: 500px;
    min-height: 500px;
    background: var(--ac);
    top: -10%;
    left: -10%;
    animation: oF 25s ease-in-out infinite
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    min-width: 400px;
    min-height: 400px;
    background: var(--ac2);
    bottom: -10%;
    right: -10%;
    animation: oF 30s ease-in-out infinite reverse
}

.orb-3 {
    width: 45vw;
    height: 45vw;
    min-width: 450px;
    min-height: 450px;
    background: var(--ac3);
    top: 30%;
    left: 40%;
    animation: oF 22s ease-in-out infinite 5s
}

/* Massive roaming animations that travel across the entire screen */
@keyframes oF {

    0%,
    100% {
        transform: translate(0, 0) scale(1)
    }

    25% {
        transform: translate(15vw, -10vh) scale(1.1)
    }

    50% {
        transform: translate(-10vw, 15vh) scale(.9)
    }

    75% {
        transform: translate(10vw, 10vh) scale(1.05)
    }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ac3);
    letter-spacing: .5px;
    margin-bottom: 28px;
    animation: fU .8s var(--ease) both
}

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

@keyframes pD {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .5)
    }

    50% {
        opacity: .8;
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0)
    }
}

.hero-title {
    font-family: var(--fd);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 24px;
    animation: fU .8s var(--ease) .1s both
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--t2);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fU .8s var(--ease) .2s both
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fU .8s var(--ease) .3s both
}

.hero-logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 280px;
    margin-top: 20px;
    /* Gives it a bit more breathing room from the text */
    animation: fU .8s var(--ease) .4s both
}

.hero-logo-float {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: lF 6s ease-in-out infinite;
    z-index: 1
}

.hero-logo-halo {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--acGlow2) 0%, transparent 60%);
    animation: gP 4s ease-in-out infinite;
    z-index: 0
}

.hero-logo-orbit {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    /* Thickened */
    z-index: 0;
    opacity: 1;
    /* Max Opacity */
}

.orbit-outer {
    inset: -25px;
    /* Pushed out to clear the larger logo */
    border-top-color: var(--ac);
    border-right-color: var(--ac2);
    animation: rS 14s linear infinite
}

.orbit-inner {
    inset: 5px;
    /* Balanced between the logo and outer orbit */
    border-bottom-color: var(--ac3);
    border-left-color: var(--ac);
    animation: rS 20s linear infinite reverse;
    opacity: 0.6;
    border-style: dashed
}

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

.hero-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 12px 32px var(--acGlow2));
    /* Stronger shadow for the larger size */
}

@keyframes lF {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

@keyframes gP {

    0%,
    100% {
        opacity: .5;
        transform: scale(1)
    }

    50% {
        opacity: .8;
        transform: scale(1.15)
    }
}


@keyframes fU {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

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

/* ==========================================
   DEMO SECTION
   ========================================== */
.demo-section {
    padding: 100px 24px 120px;
    position: relative
}

.demo-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px;
    position: relative
}

/* Orb */
.voice-orb-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.17, 0.84, 0.44, 1);
    z-index: 2
}

.voice-orb-container.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
    position: absolute;
    transition: opacity 0.2s ease, transform 0.3s ease
}

.voice-orb-rings {
    position: absolute;
    inset: -40px;
    pointer-events: none
}

.ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--ring1);
    /* Thickened */
    animation: rP 3s ease-in-out infinite
}

.ring-2 {
    inset: -20px;
    animation-delay: .5s;
    border-color: var(--ring2);
    border-width: 2.5px
        /* Thickened */
}

.ring-3 {
    inset: -40px;
    animation-delay: 1s;
    border-color: var(--ring3);
    border-width: 2px
        /* Thickened */
}

@keyframes rP {

    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.12);
        opacity: .45
    }
}

.voice-orb {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--g-bg3);
    border: 3px solid var(--ring1);
    /* Thickened border */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(var(--blur)) saturate(var(--sat));
    -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
    box-shadow: 0 0 60px var(--acGlow), inset 0 1px 0 rgba(255, 255, 255, .1);
    transition: all var(--tm)
}

.voice-orb:hover {
    transform: scale(1.08);
    box-shadow: 0 0 80px var(--acGlow2), inset 0 1px 0 rgba(255, 255, 255, .15);
    border-color: var(--acGlow2)
}

.voice-orb .mic-icon {
    width: 54px;
    /* Larger icon */
    height: 54px;
    stroke: var(--ac);
    stroke-width: 2.5;
    /* Bolder stroke */
    transition: all var(--tf)
}

.voice-orb:hover .mic-icon {
    stroke: var(--t1)
}

.voice-orb-label {
    font-family: var(--fd);
    font-size: 1.25rem;
    /* Larger text */
    font-weight: 800;
    /* Bolder text */
    color: var(--t1);
    /* Brighter base text color */
    letter-spacing: .5px
}

/* ==========================================
   DEMO PANEL — PREMIUM REDESIGN
   ========================================== */
.demo-panel {
    width: 160px;
    height: 160px;
    max-width: 160px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--panelBg);
    border: 1px solid var(--g-b2);
    backdrop-filter: blur(60px) saturate(var(--sat));
    -webkit-backdrop-filter: blur(60px) saturate(var(--sat));
    box-shadow: var(--g-sh2), 0 0 0 1px rgba(255, 255, 255, .04) inset;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
    /* On Close: Wait 0.2s for content to fade, then shrink smoothly */
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, height 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s, border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, opacity 0.3s ease 0.6s;
}

.demo-panel.expanded {
    width: 100%;
    max-width: 900px;
    height: 600px;
    border-radius: var(--rl);
    opacity: 1;
    pointer-events: all;
    position: relative;
    /* On Open: Grow instantly with a bouncy cubic-bezier */
    transition: width 0.6s cubic-bezier(0.17, 0.84, 0.44, 1), height 0.6s cubic-bezier(0.17, 0.84, 0.44, 1), max-width 0.6s cubic-bezier(0.17, 0.84, 0.44, 1), border-radius 0.4s ease 0.1s, opacity 0.2s ease;
}

.demo-panel .panel-top,
.demo-panel .panel-body {
    opacity: 0;
    transition: opacity 0.2s ease 0s
}

.demo-panel.expanded .panel-top,
.demo-panel.expanded .panel-body {
    opacity: 1;
    transition: opacity 0.4s ease 0.3s
}

/* Panel top */
.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--g-b)
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fd);
    font-weight: 700;
    font-size: .9rem;
    color: var(--t1)
}

.panel-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    animation: pD 2s ease-in-out infinite
}

.panel-top-actions {
    display: flex;
    align-items: center;
    gap: 6px
}

.panel-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t3);
    transition: all var(--tf);
    background: var(--g-bg2);
    border: 1px solid var(--g-b)
}

.panel-close:hover {
    background: rgba(239, 68, 68, .1);
    color: var(--err);
    border-color: rgba(239, 68, 68, .2)
}

/* Panel body */
.panel-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    /* Flexbox will now smoothly stretch it to the exact bottom edge */
}

/* ---- LEFT: Visualization ---- */
.panel-viz {
    width: 260px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    gap: 18px;
    background: var(--panelVizBg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    position: relative;
}

/* Subtle gradient separator instead of hard border */
.panel-viz::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--g-b2), transparent);
}

.viz-area {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ridgesCanvas {
    position: absolute;
    inset: -20px;
    width: 240px;
    height: 240px;
    pointer-events: none;
}

.viz-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--g-bg3), var(--g-bg));
    border: 2px solid var(--g-b2);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2), 0 0 0 6px var(--g-bg), 0 0 60px var(--acGlow);
    transition: box-shadow .3s;
}

.viz-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px var(--acGlow))
}

.viz-status {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ac3);
    letter-spacing: .3px
}

/* ---- ChatGPT-style Mic Control ---- */
.mic-control {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--acG);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--acGlow);
    transition: all var(--tf);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mic-control:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px var(--acGlow2)
}

.mic-control.muted {
    background: var(--g-bg3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
    border: 1px solid var(--g-b2)
}

.mic-control-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.mic-ctrl-icon {
    width: 22px;
    height: 22px;
    stroke: #fff;
    position: absolute;
    transition: opacity .2s
}

.mic-on-icon {
    opacity: 1
}

.mic-off-icon {
    opacity: 0
}

.mic-control.muted .mic-on-icon {
    opacity: 0
}

.mic-control.muted .mic-off-icon {
    opacity: 1
}

/* Mic body stays white, only the slash line is red */
.mic-off-icon {
    stroke: #fff
}

.mic-off-icon .mic-slash {
    stroke: var(--err)
}

/* Shake animation when permission denied */
.mic-shake {
    animation: micShake .5s ease-in-out
}

@keyframes micShake {

    0%,
    100% {
        transform: translateX(0)
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-3px)
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(3px)
    }
}

/* Permission toast message */
.viz-perm-toast {
    font-size: .7rem;
    color: var(--err);
    font-weight: 600;
    text-align: center;
    padding: 4px 12px;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .15);
    border-radius: var(--rp);
    animation: mA .4s var(--ease) both;
    max-width: 200px
}

/* Canvas for live bars inside mic button */
.mic-bars-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}

.mic-bars-canvas.active {
    opacity: 1
}

/* ---- RIGHT: Chat ---- */
.panel-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 3px
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--g-b);
    border-radius: 3px
}

.chat-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--t3);
    font-size: .9rem;
    text-align: center;
    padding: 40px
}

.msg {
    display: flex;
    gap: 10px;
    animation: mA .4s var(--ease) both
}

@keyframes mA {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

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

.msg.user {
    flex-direction: row-reverse
}

.msg-avatar {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700
}

.msg.user .msg-avatar {
    background: var(--acG);
    color: var(--tA)
}

.msg.ai .msg-avatar {
    background: var(--g-bg3);
    overflow: hidden;
    padding: 3px;
    border: 1px solid var(--g-b)
}

.msg.ai .msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.msg-content {
    max-width: 85%
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: .85rem;
    line-height: 1.5
}

.msg.user .msg-bubble {
    background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(99, 102, 241, .1));
    border: 1px solid rgba(59, 130, 246, .12);
    border-bottom-right-radius: 4px
}

.msg.ai .msg-bubble {
    background: var(--g-bg2);
    border: 1px solid var(--g-b);
    border-bottom-left-radius: 4px;
    color: var(--t2)
}

/* Interim (real-time recognition) */
.msg.interim {
    opacity: .7
}

.msg.interim .interim-bubble {
    font-style: italic;
    color: var(--t2);
    background: linear-gradient(135deg, rgba(59, 130, 246, .08), rgba(99, 102, 241, .05));
    border: 1px dashed rgba(59, 130, 246, .2);
    border-bottom-right-radius: 4px;
    animation: interimPulse 1.5s ease-in-out infinite
}

@keyframes interimPulse {

    0%,
    100% {
        opacity: .7
    }

    50% {
        opacity: 1
    }
}

.msg-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    padding: 0 4px
}

.msg-source {
    font-size: .6rem;
    color: var(--t3);
    display: flex;
    align-items: center;
    gap: 3px
}

.msg-source .via-icon {
    width: 10px;
    height: 10px
}

.read-aloud-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 7px;
    border-radius: var(--rp);
    font-size: .58rem;
    font-weight: 600;
    color: var(--t3);
    background: var(--g-bg2);
    border: 1px solid var(--g-b);
    transition: all var(--tf);
    cursor: pointer
}

.read-aloud-btn:hover {
    color: var(--ac);
    border-color: var(--ac);
    background: rgba(59, 130, 246, .06)
}

.read-aloud-btn svg {
    width: 10px;
    height: 10px
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px
}

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

.typing-indicator span:nth-child(2) {
    animation-delay: .2s
}

.typing-indicator span:nth-child(3) {
    animation-delay: .4s
}

@keyframes tB {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .4
    }

    30% {
        transform: translateY(-5px);
        opacity: 1
    }
}

/* Chat input */
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--g-b);
    background: var(--g-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.chat-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--rp);
    font-size: .85rem;
    background: var(--g-bg);
    border: 1px solid var(--g-b);
    color: var(--t1);
    outline: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color var(--tf), box-shadow var(--tf);
}

.chat-input:focus {
    border-color: var(--ac);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1)
}

.chat-input::placeholder {
    color: var(--t3)
}

.chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--acG);
    color: var(--tA);
    box-shadow: 0 2px 12px var(--acGlow);
    transition: all var(--tf);
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px var(--acGlow2)
}

/* FEATURES */
.features {
    padding: 100px 24px
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--mw);
    margin: 0 auto
}

.feature-card {
    padding: 36px 28px;
    text-align: center;
}

.feature-card h3 {
    font-family: var(--fd);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px
}

.feature-card p {
    font-size: .88rem;
    color: var(--t2);
    line-height: 1.6
}

/* ABOUT */
.about {
    padding: 100px 24px
}

.about-container {
    max-width: var(--mw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.about-text .section-tag,
.about-text .section-title {
    text-align: left
}

.about-text p {
    color: var(--t2);
    margin-bottom: 16px;
    line-height: 1.7
}

.about-stats {
    display: flex;
    gap: 16px;
    margin-top: 32px
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 24px;
    border-radius: var(--r)
}

.stat-number {
    font-family: var(--fd);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--acG);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.stat-label {
    font-size: .82rem;
    color: var(--t3);
    font-weight: 500
}

.about-visual {
    display: flex;
    justify-content: center
}

.about-logo-card {
    padding: 60px;
    border-radius: var(--rl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* REMOVED overflow: hidden; SO THE DARK MODE GLOW CAN SHINE THROUGH */
    min-width: 300px;
    min-height: 300px
}

.about-logo-float-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lF 6s ease-in-out infinite;
    width: 140px;
    height: 140px;
    z-index: 1
}

.about-logo-halo {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 65%);
    animation: gP 4s ease-in-out infinite;
    z-index: 0
}

.about-logo-orbit {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    /* Thickened */
    z-index: 0;
    opacity: 1;
    /* Max Opacity */
}

.orbit-1 {
    inset: -20px;
    border-top-color: var(--ac);
    border-right-color: var(--ac2);
    animation: rS 14s linear infinite
}

.orbit-2 {
    inset: -40px;
    border-bottom-color: var(--ac3);
    border-left-color: var(--ac);
    animation: rS 20s linear infinite reverse;
    opacity: 0.6;
    border-style: dashed
}

.about-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 24px var(--acGlow))
}

/* CONTACT */
.contact {
    padding: 80px 24px 100px
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    border-radius: var(--rl);
    position: relative;
    overflow: hidden
}

.contact-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(59, 130, 246, .06), transparent 60%);
    pointer-events: none
}

.contact-content .section-title,
.contact-content .section-desc {
    position: relative
}

.contact-content .section-desc {
    margin-bottom: 32px
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--g-b);
    padding: 60px 24px 30px;
    background: var(--g-bg);
    backdrop-filter: blur(40px) saturate(var(--sat));
    -webkit-backdrop-filter: blur(40px) saturate(var(--sat));
    box-shadow: 0 -4px 30px rgba(0, 0, 0, .03)
}

.footer-container {
    max-width: var(--mw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap
}

.footer-brand {
    max-width: 260px
}

.footer-logo {
    height: 36px;
    /* Slightly larger for better visibility */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 16px;
    filter: var(--fLogo);
}

.footer-brand p {
    font-size: .88rem;
    color: var(--t3);
    line-height: 1.6
}

.footer-links {
    display: flex;
    gap: 60px
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.footer-col h4 {
    font-family: var(--fd);
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 4px
}

.footer-col a {
    font-size: .85rem;
    color: var(--t3);
    transition: color var(--tf)
}

.footer-col a:hover {
    color: var(--ac)
}

.footer-bottom {
    max-width: var(--mw);
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--g-b);
    text-align: center;
    font-size: .8rem;
    color: var(--t3)
}

[data-anim] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s var(--ease), transform .7s var(--ease)
}

[data-anim="fade-right"] {
    transform: translateX(-30px)
}

[data-anim="fade-left"] {
    transform: translateX(30px)
}

[data-anim].visible {
    opacity: 1;
    transform: translate(0)
}

/* RESPONSIVE */
@media(max-width:1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center
    }

    .about-text .section-tag,
    .about-text .section-title {
        text-align: center
    }

    .about-stats {
        justify-content: center
    }

    .about-visual {
        order: -1
    }

    .panel-viz {
        width: 220px;
        min-width: 220px;
        padding: 20px 16px
    }

    .viz-area {
        width: 160px;
        height: 160px
    }

    #ridgesCanvas {
        inset: -16px;
        width: 192px;
        height: 192px
    }

    .viz-avatar {
        width: 72px;
        height: 72px;
        padding: 12px
    }
}

@media(max-width:768px) {
    :root {
        --nh: 64px
    }

    .hamburger {
        display: flex
    }

    /* ---- PRO-DESIGN MOBILE NAV DRAWER ---- */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--panelBg);
        /* Deeper, richer glass background */
        backdrop-filter: blur(60px) saturate(200%);
        /* Stronger frost effect */
        -webkit-backdrop-filter: blur(60px) saturate(200%);
        flex-direction: column;
        padding: calc(var(--nh) + 40px) 30px 40px;
        gap: 0;
        /* Removed generic gap to use premium borders instead */
        transition: right .5s cubic-bezier(0.17, 0.84, 0.44, 1);
        /* Smooth spring-like slide */
        border-left: 1px solid var(--g-b2);
        /* Brighter glass edge */
        z-index: 999;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
        /* Deep shadow to separate from background */
    }

    .nav-links.open {
        right: 0;
    }

    /* Redesigned Premium Links */
    .nav-links a {
        font-family: var(--fd);
        /* Thick, premium display font */
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--t1);
        text-decoration: none;
        padding: 24px 0;
        width: 100%;
        text-align: right;
        /* Aligns text right, near the user's thumb! */
        border-bottom: 1px solid var(--g-b);
        /* Subtle glass divider */
        display: block;
    }

    /* Clean up borders and disable the desktop hover line */
    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
        /* Kills the weird desktop line animation on mobile */
    }

    .nav-cta {
        display: none !important
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem)
    }

    .hero-logo-wrapper {
        width: 180px;
        height: 180px
    }

    .hero-logo {
        width: 110px;
        height: 110px
    }

    .voice-orb {
        width: 130px;
        height: 130px
    }

    .voice-orb .mic-icon {
        width: 38px;
        height: 38px
    }

    .demo-panel {
        width: 130px;
        height: 130px
    }

    .demo-panel.expanded {
        max-width: 100%;
        border-radius: var(--r)
    }

    .panel-body {
        flex-direction: column
    }

    .panel-viz {
        width: 100%;
        min-width: unset;
        flex-direction: row;
        padding: 16px 20px;
        gap: 12px
    }

    .panel-viz::after {
        display: none
    }

    .viz-area {
        width: 80px;
        height: 80px
    }

    #ridgesCanvas {
        width: 110px;
        height: 110px;
        inset: -15px
    }

    .viz-avatar {
        width: 52px;
        height: 52px;
        padding: 10px
    }

    .viz-status {
        font-size: .7rem
    }

    .mic-control {
        width: 42px;
        height: 42px
    }

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

    .feature-card {
        padding: 28px 24px
    }

    .footer-links {
        gap: 30px;
        flex-wrap: wrap
    }

    .about-stats {
        gap: 12px
    }

    .contact-content {
        padding: 40px 24px
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.4rem)
    }
}

@media(max-width:480px) {
    .hero {
        padding-top: calc(var(--nh)+24px)
    }

    .hero-actions {
        flex-direction: column;
        align-items: center
    }

    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 12px
    }

    .stat {
        width: 100%
    }

    .footer-container {
        flex-direction: column
    }

    .footer-links {
        flex-direction: column;
        gap: 24px
    }

    .chat-input-bar {
        padding: 10px 12px
    }
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px)
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all
}

/* ==========================================
   SALES MODAL (ULTIMATE PREMIUM GLASS)
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    /* Dark mode background overlay */
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

/* ==========================================
   LIGHT MODE FIX: MILKY ACRYLIC GLASS
   ========================================== */
/* 1. An elegant, icy overlay to gently dim the background */
[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.15);
}

/* 2. Upgrade to "Milky Acrylic" to completely block underlying text */
[data-theme="light"] .modal-overlay .glass-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 100%);
    border: 1px solid #ffffff;
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.12), inset 0 1px 2px #ffffff;
    backdrop-filter: blur(60px) saturate(150%);
    /* Max blur to dissolve shapes */
    -webkit-backdrop-filter: blur(60px) saturate(150%);
}

/* 3. Soft pastel ambient orbs behind the glass */
[data-theme="light"] .modal-overlay .modal-ambient {
    opacity: 0.35;
}

/* 4. Inputs: Pure white with an inner shadow so they look carved into the acrylic */
[data-theme="light"] .modal-overlay .modal-input {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: #0f172a;
    font-weight: 500;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
    /* Creates inset depth */
}

[data-theme="light"] .modal-overlay .modal-input::placeholder {
    color: #64748b;
    opacity: 1;
}

[data-theme="light"] .modal-overlay .modal-input:focus {
    border-color: var(--ac);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Ambient Glowing Orbs behind the modal */
.modal-ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.7;
    z-index: 0;
    animation: modalFloat 8s ease-in-out infinite alternate;
}

.m-amb-1 {
    width: 350px;
    height: 350px;
    background: var(--ac);
    /* Paladin Blue */
    top: 15%;
    left: 20%;
}

.m-amb-2 {
    width: 300px;
    height: 300px;
    background: var(--ac3);
    /* Cyan */
    bottom: 15%;
    right: 20%;
    animation-delay: -4s;
}

@keyframes modalFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, -40px) scale(1.15);
    }
}

/* Upgraded Glass Modal */
.glass-modal {
    /* Linear gradient creates a realistic 3D "sheen" across the glass */
    background: linear-gradient(135deg, var(--g-bg3) 0%, var(--g-bg) 100%);
    border: 1px solid var(--g-b2);
    /* Soft white rim light at the top for depth */
    box-shadow: var(--g-sh2), inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.05);
    /* Heavy blur distorts the glowing orbs behind it perfectly */
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-radius: var(--rl);
    padding: 40px;
    width: 90%;
    max-width: 540px;
    position: relative;
    z-index: 1;
    /* Ensures the glass sits ABOVE the glowing orbs */
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.17, 0.84, 0.44, 1);
}

.modal-overlay.active .glass-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    color: var(--t3);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--err);
}

.modal-title {
    font-family: var(--fd);
    font-size: 1.6rem;
    color: var(--t1);
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--t2);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t2);
    margin-bottom: 6px;
}

.input-group label .req {
    color: var(--err);
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: var(--fb);
    font-size: 0.9rem;
    background: var(--g-bg);
    border: 1px solid var(--g-b);
    color: var(--t1);
    outline: none;
    transition: all var(--tf);
    resize: vertical;
}

.modal-input:focus {
    border-color: var(--ac);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: var(--panelBg);
}

.modal-input::placeholder {
    color: var(--t3);
    opacity: 0.6;
}

@media(max-width: 500px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .glass-modal {
        padding: 30px 20px;
    }
}


/* ==========================================
   TYPOGRAPHIC NAVBAR LOGO
   ========================================== */
.logo-wordmark {
    font-family: var(--fd);
    /* Uses your premium header font */
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--t1);
    /* Automatically adapts to light/dark mode */
    letter-spacing: -0.5px;
    /* Tightens the letters for a modern tech look */
    display: flex;
    align-items: baseline;
    transition: opacity 0.2s ease;
}

.logo-wordmark:hover {
    opacity: 0.8;
}

.logo-dot {
    color: var(--ac);
    /* Paladin Blue Accent */
    font-size: 1.8rem;
    line-height: 0;
    margin-left: 2px;
    text-shadow: 0 0 12px var(--acGlow);
    /* Subtle neon glow on the dot */
}

/* ==========================================
   MOBILE & RESPONSIVE MASTER FIXES
   ========================================== */
@media (max-width: 768px) {

    /* FIX 1: Push the hero section down so the navbar doesn't cover it */
    .hero {
        padding-top: 140px !important;
    }

    /* FIX 2: Move Theme Toggle to the right, next to the hamburger menu */
    #themeToggle {
        position: absolute;
        right: 70px;
        /* Sits perfectly next to the menu */
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    /* FIX 3: Lock the Chat Panel size and force the transcript to scroll */
    #demoPanel.expanded {
        height: 85dvh !important;
        /* dVH accounts for mobile browser address bars */
        max-height: 800px;
        display: flex;
        flex-direction: column;
    }

    /* CRITICAL: Tell the panel body to stop growing */
    .panel-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0 !important;
    }

    /* CRITICAL: Tell the chat wrapper to stop growing */
    .panel-chat {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0 !important;
    }

    /* CRITICAL: Tell the transcript to scroll when it hits the limit */
    #demoTranscript {
        flex: 1 1 auto;
        overflow-y: auto !important;
        padding-bottom: 20px;
        min-height: 0;
    }

    /* CRITICAL: Pin the input bar to the bottom so it never vanishes */
    .chat-input-bar {
        flex-shrink: 0;
    }
}

/* ==========================================
   PRO AI STATUS BADGE & LED INDICATOR
   ========================================== */
.viz-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--fb);
    /* Inter */
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--t2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

/* Light Mode Overrides */
[data-theme="light"] .viz-status {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--t3);
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.05), inset 0 1px 1px #ffffff;
}

/* The Glowing LED Dot */
.viz-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Dynamic States (Controlled by Javascript) */
.viz-status.status-connecting::before {
    background: #f59e0b;
    /* Amber/Yellow for Waking/Connecting */
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
    animation: pulseDot 1.5s infinite;
}

.viz-status.status-listening::before {
    background: var(--ok);
    /* Green for Listening */
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.viz-status.status-speaking::before {
    background: var(--ac);
    /* Paladin Blue for Speaking */
    box-shadow: 0 0 12px var(--acGlow2);
    animation: pulseDot 1s infinite;
}

.viz-status.status-muted::before {
    background: var(--t3);
    /* Grey out when Muted */
    box-shadow: none;
}

.viz-status.status-error::before {
    background: var(--err);
    /* Red for Errors */
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}