/* ============================================================
   Mind Masters AI — Live Voice Agent Demo v10
   Visual language matched to the main Mind Masters website:
   near-black canvas, heavy uppercase Inter headings, pill nav,
   outlined dark pill buttons, cyan mono accents.
   Voice pipeline hooks (IDs / state classes) are unchanged.
   ============================================================ */

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
    --bg:               #07080C;
    --bg-raised:        #0B0D12;
    --surface:          #0E1016;
    --surface-2:        #13161E;
    --surface-3:        #1A1E28;
    --line:             rgba(255, 255, 255, 0.08);
    --line-strong:      rgba(255, 255, 255, 0.14);
    --line-hover:       rgba(255, 255, 255, 0.26);

    --text:             #F5F7FA;
    --text-2:           #A3A9B6;
    --text-3:           #6B7280;

    --accent:           #22D3EE;   /* cyan — links, numbers, bullets */
    --accent-strong:    #06B6D4;
    --accent-soft:      rgba(34, 211, 238, 0.10);
    --accent-line:      rgba(34, 211, 238, 0.32);
    --blue:             #5B8CFF;   /* eyebrow dot */
    --ok:               #10B981;
    --warn:             #F59E0B;
    --danger:           #F87171;

    --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:             'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --r-pill:           9999px;
    --r-card:           28px;
    --r-lg:             18px;
    --r-md:             12px;
    --r-sm:             8px;

    --t-fast:           150ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-mid:            280ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow:           520ms cubic-bezier(0.16, 1, 0.3, 1);

    --container:        1320px;
    --nav-h:            76px;
    --nav-h-compact:    64px;

    color-scheme: dark;
}

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

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h-compact);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ─── UTILITIES ───────────────────────────────────────────── */
.hidden { display: none !important; }
.mono { font-family: var(--mono); }
.accent-text { color: var(--accent); }
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}
main { position: relative; z-index: 1; }

/* Reveal on scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up--delay  { transition-delay: 0.10s; }
.fade-in-up--delay2 { transition-delay: 0.20s; }
.fade-in-up--delay3 { transition-delay: 0.30s; }
.fade-in-up.visible { opacity: 1; transform: none; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--r-pill);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast),
                transform var(--t-fast), box-shadow var(--t-fast);
}
.btn i { font-size: 0.85em; }
.btn .fa-arrow-right { transition: transform var(--t-fast); }
.btn:hover .fa-arrow-right { transform: translateX(3px); }

/* Main-site style: dark pill, fine border */
.btn--pill {
    background: linear-gradient(180deg, #161922 0%, #0F1117 100%);
    border: 1px solid var(--line-strong);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn--pill:hover {
    border-color: var(--line-hover);
    background: linear-gradient(180deg, #1B1F2A 0%, #12151C 100%);
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-2);
}
.btn--ghost:hover { color: var(--text); border-color: var(--line); }
.btn--lg { padding: 0.85rem 1.7rem; font-size: 0.95rem; }

.btn--start {
    width: 100%;
    padding: 0.75rem 1.4rem;
    background: var(--accent);
    color: #031419;
    font-weight: 700;
    box-shadow: 0 8px 30px -8px rgba(34, 211, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--start:hover { background: #4ADDF2; transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(34, 211, 238, 0.7); }
.btn--start:active { transform: none; }
.btn--end {
    width: 100%;
    padding: 0.75rem 1.4rem;
    background: rgba(248, 113, 113, 0.10);
    border: 1px solid rgba(248, 113, 113, 0.42);
    color: var(--danger);
    font-weight: 700;
}
.btn--end:hover { background: rgba(248, 113, 113, 0.18); }

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 200;
    background: rgba(7, 8, 12, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transition: height var(--t-mid), background var(--t-mid);
}
.nav--scrolled { height: var(--nav-h-compact); background: rgba(7, 8, 12, 0.9); }
.nav__inner {
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}
.nav__left { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }

.nav__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem 0.5rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.nav__back i { font-size: 0.75rem; transition: transform var(--t-fast); }
.nav__back:hover { color: var(--text); border-color: var(--line-hover); background: rgba(255, 255, 255, 0.03); }
.nav__back:hover i { transform: translateX(-3px); }

.nav__brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav__logo {
    width: 28px; height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.35));
}
.nav__wordmark {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.nav__wordmark-sep { color: var(--text-3); font-weight: 500; }
.nav__wordmark em, .footer__brand em {
    font-style: italic;
    font-weight: 800;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    padding: 0.35rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.015);
    justify-self: center;
}
.nav__link {
    padding: 0.5rem 1.15rem;
    border-radius: var(--r-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav__actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; }
.nav__cta { padding: 0.65rem 1.3rem; font-size: 0.88rem; }
.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    align-items: center;
}
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; }

/* Mobile drawer */
.nav-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-raised);
    border-left: 1px solid var(--line);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform var(--t-mid);
}
.nav-drawer--open { transform: none; }
.nav-drawer__close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text-2);
    display: flex; align-items: center; justify-content: center;
}
.nav-drawer__links { display: flex; flex-direction: column; margin-bottom: 1rem; }
.nav-drawer__link {
    padding: 1rem 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}
.nav-drawer__link:hover { color: var(--accent); }
.nav-drawer__back { border-color: var(--line); }
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-mid);
}
.nav-backdrop--show { opacity: 1; pointer-events: all; }

/* ─── EYEBROWS & SECTION HEADERS ──────────────────────────── */
.eyebrow-row {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(1rem, 3vh, 1.75rem);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-2);
}
.eyebrow__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 10px var(--blue);
}
.eyebrow__dot--live { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: dot-pulse 1.8s infinite; }
.eyebrow-row__line { width: 52px; height: 1px; background: var(--line-strong); }
.eyebrow-chip {
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.section { padding: 5rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 3rem; display: flex; flex-direction: column; align-items: center; }
.section-kicker {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.9rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    text-wrap: balance;
}
.section-title--left { text-align: left; }
.section-rule {
    display: block;
    width: 60px; height: 2px;
    margin: 1.25rem auto;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
}
.section-rule--left { margin-left: 0; }
.section-body {
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-2);
    text-wrap: pretty;
}
.section-body--left { margin: 0; }

/* Cyan bullet list (main-site card bullets) */
.dot-list { display: flex; flex-direction: column; gap: 0.55rem; }
.dot-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
}
.dot-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.58em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 1.5rem) 0 2rem;
    overflow: hidden;
    isolation: isolate;
}
.hero::after {
    /* fade into the next section */
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, var(--bg));
    z-index: -1;
    pointer-events: none;
}
.hero__decor { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-pill {
    position: absolute;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    animation: pill-float 14s ease-in-out infinite;
}
.hero-pill--1 {
    width: 760px; height: 230px;
    top: 14%; left: -12%;
    rotate: 14deg;
    background: linear-gradient(100deg, rgba(64, 72, 140, 0.35) 0%, rgba(22, 24, 34, 0.55) 55%, rgba(12, 13, 18, 0.2) 100%);
}
.hero-pill--2 {
    width: 220px; height: 80px;
    top: 11%; left: 26%;
    rotate: -24deg;
    background: linear-gradient(90deg, rgba(20, 90, 100, 0.45), rgba(18, 22, 30, 0.6));
    filter: blur(1px);
    animation-delay: -3s;
}
.hero-pill--3 {
    width: 300px; height: 120px;
    top: 16%; right: 18%;
    rotate: 22deg;
    background: linear-gradient(90deg, rgba(90, 64, 20, 0.35), rgba(20, 20, 26, 0.55));
    filter: blur(1px);
    animation-delay: -6s;
}
.hero-pill--4 {
    width: 700px; height: 170px;
    bottom: -3%; right: -8%;
    rotate: -14deg;
    background: linear-gradient(90deg, rgba(20, 20, 28, 0.6), rgba(80, 30, 40, 0.3));
    animation-delay: -9s;
}
.hero-pill--5 {
    width: 380px; height: 120px;
    bottom: 2%; left: 10%;
    rotate: -8deg;
    background: linear-gradient(90deg, rgba(20, 22, 30, 0.7), rgba(28, 32, 44, 0.35));
    animation-delay: -4s;
}
@keyframes pill-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -14px, 0); }
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero__title {
    font-size: clamp(2.2rem, min(5.6vw, 9vh), 5rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-wrap: balance;
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
}
.hero__body {
    max-width: 680px;
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 1.6;
    color: var(--text-2);
    margin-bottom: clamp(1.25rem, 4vh, 2rem);
    text-wrap: pretty;
}
.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
}
.hero__tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.85rem;
    color: var(--text-2);
}
.hero__tags .mono {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.hero__tags-note::before { content: "— "; }

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(680px, 100%);
    margin-top: clamp(1.5rem, 5vh, 3rem);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: rgba(11, 13, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hero__stat {
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.25rem;
}
.hero__stat + .hero__stat { border-left: 1px solid var(--line); }
.hero__stat dt {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
}
.hero__stat dd {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.hero__stat dd small { font-size: 0.55em; font-weight: 700; color: var(--accent); margin-left: 2px; }

/* ─── PANELS (demo console cards) ─────────────────────────── */
.panel {
    position: relative;
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1.1rem 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}
.panel__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}
.panel__icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem;
    color: var(--text);
    flex-shrink: 0;
}
.panel__title {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.panel__num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

/* ─── AGENT SECTION ───────────────────────────────────────── */
.agent-section { padding: 1.25rem 0 3rem; min-height: calc(100vh - var(--nav-h-compact)); }
.agent-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.agent-header .section-kicker { margin-bottom: 0.35rem; }
.agent-header__title {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}
.agent-header__body { max-width: 380px; font-size: 0.88rem; color: var(--text-2); text-align: right; }
.agent-section::before {
    content: "";
    position: absolute;
    left: 50%; top: 40%;
    width: 900px; height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.07) 0%, transparent 65%);
    pointer-events: none;
}
.agent-layout {
    position: relative;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 290px;
    gap: 1.25rem;
    align-items: stretch;
}

/* Setup panel */
.agent-config { display: flex; flex-direction: column; gap: 0.75rem; }
.config-field { display: flex; flex-direction: column; gap: 0.35rem; }
.config-label {
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-raised);
    border: 1px solid var(--line-strong);
    color: var(--text);
    padding: 0.6rem 2.2rem 0.6rem 2.4rem;
    border-radius: var(--r-md);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.select-wrap select:hover { border-color: var(--line-hover); }
.select-wrap select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select-wrap select option { background: var(--surface); color: var(--text); }
.select-icon, .select-caret { position: absolute; pointer-events: none; color: var(--text-3); }
.select-icon { left: 0.95rem; font-size: 0.8rem; color: var(--accent); }
.select-caret { right: 0.95rem; font-size: 0.6rem; }

/* Avatar picker (built by voice-agent.js) */
.agent-avatar-picker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    min-height: 62px;
}
.agent-avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.15rem 0.35rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-raised);
    transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.agent-avatar-option:hover { border-color: var(--line-hover); transform: translateY(-1px); }
.agent-avatar-option.selected { border-color: var(--accent-line); background: var(--accent-soft); }
.agent-avatar-option-img {
    width: 30px !important; height: 30px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid transparent;
    filter: grayscale(0.5);
    transition: filter var(--t-fast), border-color var(--t-fast);
}
.agent-avatar-option:hover .agent-avatar-option-img,
.agent-avatar-option.selected .agent-avatar-option-img { filter: none; }
.agent-avatar-option.selected .agent-avatar-option-img { border-color: var(--accent); }
.agent-avatar-option-name {
    font-size: 0.64rem;
    font-weight: 600;
    color: var(--text-2);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.agent-avatar-option.selected .agent-avatar-option-name { color: var(--text); }

.scenario-text {
    font-size: 0.8rem;
    color: var(--text-2);
    line-height: 1.55;
    padding: 0.75rem 0.9rem;
    border-left: 2px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Active agent strip */
.agent-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--bg-raised);
}
.active-avatar-frame {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: var(--surface-3);
}
.active-avatar-frame img { width: 100% !important; height: 100% !important; object-fit: cover; }
.agent-strip__info { flex: 1; min-width: 0; }
.agent-strip__name { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.agent-strip__role {
    display: block;
    font-size: 0.75rem;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.preview-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: all var(--t-fast);
}
.preview-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.agent-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.agent-langs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}
.agent-desc {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.agent-cta-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }

/* Mic row */
.mic-status-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.8rem 0.35rem 0.35rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
}
.mic-toggle-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: all var(--t-fast);
}
.mic-toggle-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.mic-toggle-btn.muted { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.45); color: var(--danger); }
.mic-toggle-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.mic-info { display: flex; align-items: center; gap: 0.5rem; }
.mic-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.mic-indicator.recording .mic-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: dot-pulse 1.2s infinite; }
.mic-label { font-size: 0.76rem; font-weight: 600; color: var(--text-2); }

/* ─── CALL CONSOLE (center) ───────────────────────────────── */
.call-console { display: flex; flex-direction: column; }
.call-console.is-live { border-color: var(--accent-line); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08), 0 30px 80px -40px rgba(34, 211, 238, 0.35); }

.call-stage {
    position: relative;
    height: 290px;
    flex-shrink: 0;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: radial-gradient(ellipse at center, #0F141C 0%, var(--bg) 75%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}
.call-stage__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    background-position: center;
    -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
            mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
}
.call-stage__halo {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    z-index: -1;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 65%);
    transition: opacity var(--t-slow), transform var(--t-slow);
    opacity: 0.5;
}
.call-console.is-live .call-stage__halo { opacity: 1; transform: scale(1.1); }

/* Orb core — class hooks required by voice-agent.js */
.orb-container.voice-core-reactor {
    position: relative;
    transform: scale(0.84);
    z-index: 5;
    width: 200px; height: 200px;
    display: flex; align-items: center; justify-content: center;
}
.orb-pulsar {
    position: relative;
    width: 150px; height: 150px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: box-shadow 0.4s ease;
}
.orb-pulsar.state-disconnected { box-shadow: 0 0 40px rgba(34, 211, 238, 0.06); }
.orb-pulsar.state-idle         { box-shadow: 0 0 36px rgba(34, 211, 238, 0.12); }
.orb-pulsar.state-listening    { box-shadow: 0 0 50px rgba(16, 185, 129, 0.35), 0 0 100px rgba(16, 185, 129, 0.15); animation: orb-breathe 2s ease-in-out infinite; }
.orb-pulsar.state-thinking     { box-shadow: 0 0 50px rgba(91, 140, 255, 0.40), 0 0 90px rgba(91, 140, 255, 0.18); animation: orb-breathe 1.2s ease-in-out infinite; }
.orb-pulsar.state-speaking     { box-shadow: 0 0 60px rgba(34, 211, 238, 0.50), 0 0 120px rgba(34, 211, 238, 0.22); animation: orb-breathe 0.9s ease-in-out infinite; }
.orb-pulsar.state-error        { box-shadow: 0 0 50px rgba(248, 113, 113, 0.40); }
@keyframes orb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.reactor-ring { position: absolute; border-radius: 50%; pointer-events: none; transition: border-color var(--t-slow); }
.reactor-outer  { width: 150px; height: 150px; border: 1px dashed rgba(34, 211, 238, 0.30); animation: spin-cw 24s linear infinite; }
.reactor-middle { width: 126px; height: 126px; border: 1px solid rgba(34, 211, 238, 0.22); animation: spin-ccw 14s linear infinite; }
.reactor-inner  { width: 106px; height: 106px; border: 1px dashed rgba(34, 211, 238, 0.40); animation: spin-cw 8s linear infinite; }
.reactor-ticks  { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 1px dotted rgba(255, 255, 255, 0.14); animation: spin-ccw 30s linear infinite; pointer-events: none; }
.orb-pulsar.state-listening .reactor-inner,
.orb-pulsar.state-listening .reactor-outer { border-color: rgba(16, 185, 129, 0.55); }
.orb-pulsar.state-thinking .reactor-inner,
.orb-pulsar.state-thinking .reactor-outer  { border-color: rgba(91, 140, 255, 0.6); }
.orb-pulsar.state-error .reactor-ring      { border-color: rgba(248, 113, 113, 0.5); }

.orb-wave-canvas {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity var(--t-slow);
}
.orb-pulsar.state-listening .orb-wave-canvas,
.orb-pulsar.state-idle      .orb-wave-canvas,
.orb-pulsar.state-speaking  .orb-wave-canvas { opacity: 1; }

.center-agent-avatar-frame {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 84px; height: 84px;
    border-radius: 50%;
    z-index: 8;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.10), 0 0 30px rgba(34, 211, 238, 0.35);
    background: var(--surface-3);
    transition: opacity var(--t-mid), transform var(--t-mid);
}
.center-agent-avatar-frame.avatar-swapping { opacity: 0.1; transform: translate(-50%, -50%) scale(0.85); }
.center-agent-face-img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }

/* Legacy reactor core (sits behind the avatar) */
.orb-core { width: 60px; height: 60px; border-radius: 50%; position: relative; z-index: 3; opacity: 0.2; pointer-events: none; overflow: hidden; }
.reactor-core-heart { position: absolute; inset: 4px; display: flex; align-items: center; justify-content: center; }
.reactor-tri-1, .reactor-tri-2 { position: absolute; width: 28px; height: 28px; }
.reactor-tri-1 { background: radial-gradient(circle, rgba(34, 211, 238, 0.8), transparent 70%); clip-path: polygon(50% 5%, 95% 82%, 5% 82%); animation: spin-cw 11s linear infinite; }
.reactor-tri-2 { background: radial-gradient(circle, rgba(91, 140, 255, 0.7), transparent 70%); clip-path: polygon(50% 95%, 95% 18%, 5% 18%); animation: spin-ccw 11s linear infinite; }
.reactor-center-lens { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.orb-inner-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 70%); }

.orb-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-1 { width: 200px; height: 200px; border: 1px solid rgba(255, 255, 255, 0.05); }
.ring-2 { width: 262px; height: 262px; border: 1px solid rgba(255, 255, 255, 0.06); }
.ring-3 { width: 280px; height: 280px; border: 1px dashed rgba(255, 255, 255, 0.04); animation: spin-cw 90s linear infinite; }

/* Persona orbit nodes (positioned by voice-agent.js) */
.voice-orbit-container {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    z-index: 6;
    pointer-events: none;
    transform: scale(0.84);   /* JS orbit radius is 130px; fit it in the stage */
}
.voice-node {
    position: absolute;
    top: 0; left: 0;
    width: 50px; height: 50px;
    margin: -25px 0 0 -25px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.14);
    background: var(--surface-3);
    pointer-events: all;
    cursor: pointer;
    filter: grayscale(0.6) brightness(0.8);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
}
.voice-node:hover { border-color: var(--line-hover); filter: none; }
.voice-node.selected { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12), 0 0 18px rgba(34, 211, 238, 0.45); filter: none; }
.voice-node img { width: 100% !important; height: 100% !important; object-fit: cover; }

/* Status badge (text + class set by voice-agent.js) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--r-pill);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    color: var(--text-2);
    transition: all var(--t-mid);
    white-space: nowrap;
}
.status-badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.status-badge.status-ready     { color: var(--text-2); }
.status-badge.status-connected { color: var(--ok);     border-color: rgba(16, 185, 129, 0.4);  background: rgba(16, 185, 129, 0.08); }
.status-badge.status-listening { color: var(--ok);     border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.10); }
.status-badge.status-thinking  { color: var(--blue);   border-color: rgba(91, 140, 255, 0.45); background: rgba(91, 140, 255, 0.10); }
.status-badge.status-speaking  { color: var(--accent); border-color: var(--accent-line);       background: var(--accent-soft); }
.status-badge.status-error     { color: var(--danger); border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.08); }
.status-badge.status-listening::before,
.status-badge.status-speaking::before,
.status-badge.status-thinking::before { animation: dot-pulse 1s infinite; }

/* Transcript */
.transcript { margin-top: 0.85rem; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.transcript__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.transcript__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}
.transcript-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.call-console.is-live .transcript-live-pill { color: var(--ok); }
.call-console.is-live .live-dot, .convo-demo__header .live-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: dot-pulse 1.6s infinite; }

.transcript-feed {
    flex: 1 1 0;
    min-height: 130px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.transcript-feed::-webkit-scrollbar { width: 4px; }
.transcript-feed::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
.transcript-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-3);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
}
.transcript-empty-state strong { color: var(--text); font-weight: 700; }
.transcript-empty-state i { font-size: 1.3rem; color: var(--accent); }
.pulse-icon { animation: dot-pulse 2.4s infinite; }

.transcript-bubble {
    max-width: 88%;
    padding: 0.6rem 0.85rem;
    border-radius: 16px;
    font-size: 0.86rem;
    line-height: 1.55;
    animation: bubble-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.agent-bubble {
    align-self: flex-start;
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-bottom-left-radius: 6px;
}
.user-bubble {
    align-self: flex-end;
    background: rgba(34, 211, 238, 0.09);
    border: 1px solid var(--accent-line);
    border-bottom-right-radius: 6px;
}
.transcript-bubble-sender {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
}
.sender-name { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); }
.sender-name i { font-size: 0.7rem; }
.sender-tag {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}
.transcript-bubble-text { color: #E6E9EF; word-break: break-word; }
.text-cyan, .text-violet { color: var(--accent); }
.text-secondary { color: var(--text-2); }

/* ─── RIGHT INFO COLUMN ───────────────────────────────────── */
.agent-info { display: flex; flex-direction: column; gap: 0.9rem; }
.session-timer-big {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-raised);
    margin-bottom: 0.5rem;
}
.session-timer-big__label { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.session-timer-big__val { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.call-console.is-live ~ .agent-info .session-timer-big__val,
.agent-layout:has(.call-console.is-live) .session-timer-big__val { color: var(--accent); }

.session-meta { display: flex; flex-direction: column; }
.session-meta__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.8rem;
}
.session-meta__row:last-child { border-bottom: none; }
.session-meta__row dt { color: var(--text-3); font-weight: 500; }
.session-meta__row dd { color: var(--text); font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.audio-waveform-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
    margin-top: 0.6rem;
    padding: 0 0.25rem;
}
.wf-bar {
    flex: 1;
    height: 20%;
    border-radius: 3px;
    background: var(--line-strong);
    transition: background var(--t-mid);
}
.agent-layout:has(.call-console.is-live) .wf-bar {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
    animation: wf-dance 1.4s ease-in-out infinite alternate;
}
.wf-1 { height:25%;animation-delay:0.1s } .wf-2 { height:55%;animation-delay:0.3s } .wf-3 { height:80%;animation-delay:0.5s }
.wf-4 { height:35%;animation-delay:0.2s } .wf-5 { height:90%;animation-delay:0.7s } .wf-6 { height:45%;animation-delay:0.4s }
.wf-7 { height:75%;animation-delay:0.9s } .wf-8 { height:30%;animation-delay:0.6s } .wf-9 { height:85%;animation-delay:0.3s }
.wf-10{ height:100%;animation-delay:0.8s} .wf-11{ height:40%;animation-delay:0.2s} .wf-12{ height:70%;animation-delay:0.5s}
.wf-13{ height:85%;animation-delay:0.7s} .wf-14{ height:50%;animation-delay:0.4s} .wf-15{ height:30%;animation-delay:0.1s}
.wf-16{ height:65%;animation-delay:0.6s} .wf-17{ height:80%;animation-delay:0.3s} .wf-18{ height:45%;animation-delay:0.8s}
.wf-19{ height:60%;animation-delay:0.2s} .wf-20{ height:25%;animation-delay:0.5s}
@keyframes wf-dance {
    0%   { height: 15%; opacity: 0.45; }
    50%  { height: 90%; opacity: 1; }
    100% { height: 30%; opacity: 0.65; }
}

.chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-list li {
    padding: 0.28rem 0.65rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text);
}
.agent-tip {
    display: flex;
    gap: 0.6rem;
    padding: 0 0.4rem;
    font-size: 0.74rem;
    line-height: 1.55;
    color: var(--text-3);
}
.agent-tip i { color: var(--accent); margin-top: 0.2rem; }

/* ─── USE-CASE CARDS (main-site service cards) ────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    overflow: hidden;
    isolation: isolate;
    transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 0% 0%, rgba(34, 211, 238, 0.06), transparent 40%);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--t-mid);
    pointer-events: none;
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.service-card:hover::before { opacity: 1; }
.service-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.service-card__icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--text);
}
.service-card__num { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.service-card__title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.service-card__body { font-size: 0.9rem; line-height: 1.6; color: var(--text-2); margin-bottom: 1.1rem; }
.service-card .dot-list { margin-bottom: 1.25rem; }
.service-card__link {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.service-card__link i { font-size: 0.8rem; transition: transform var(--t-fast); }
.service-card__link:hover i { transform: translateX(4px); }

/* ─── HOW IT WORKS ─────────────────────────────────────────── */
.how-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}
.how-flow::before {
    /* connecting line behind the icons */
    content: "";
    position: absolute;
    left: 12.5%; right: 12.5%;
    top: 5.1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-line), var(--line-strong), var(--accent-line), transparent);
}
.how-step {
    position: relative;
    padding: 1.75rem 1.5rem 2rem;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}
.how-step__num { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.how-step__icon {
    position: relative;
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--bg-raised);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.how-step__title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; }
.how-step__body { font-size: 0.86rem; line-height: 1.6; color: var(--text-2); }

/* ─── WHY / NATURAL ───────────────────────────────────────── */
.natural-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
    align-items: center;
}
.natural-copy .section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.natural-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
    margin-top: 2.5rem;
}
.natural-feature { display: flex; align-items: flex-start; gap: 0.9rem; }
.natural-feature__icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: var(--accent);
    flex-shrink: 0;
}
.natural-feature strong { display: block; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.natural-feature p { font-size: 0.82rem; line-height: 1.55; color: var(--text-2); }

.convo-demo {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.convo-demo__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
}
.convo-demo__time { margin-left: auto; color: var(--text-3); }
.convo-demo__messages { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.convo-msg { display: flex; flex-direction: column; gap: 0.4rem; max-width: 88%; }
.convo-msg--user { align-self: flex-end; align-items: flex-end; }
.convo-msg__label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.convo-msg p { font-size: 0.9rem; line-height: 1.55; padding: 0.85rem 1.05rem; border-radius: 18px; }
.convo-msg--user p  { background: rgba(34, 211, 238, 0.09); border: 1px solid var(--accent-line); border-bottom-right-radius: 6px; }
.convo-msg--agent p { background: var(--surface-3); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.convo-processing { display: flex; align-items: center; gap: 0.35rem; padding-left: 0.25rem; }
.proc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: proc-bounce 1.2s infinite; }
.proc-dot:nth-child(2) { animation-delay: 0.2s; }
.proc-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes proc-bounce { 0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; } 40% { transform: scale(1.2); opacity: 1; } }
.proc-label { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-left: 0.5rem; }
.convo-action-tag {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--r-md);
    background: rgba(16, 185, 129, 0.07);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ok);
}

/* ─── FINAL CTA ────────────────────────────────────────────── */
.cta-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 4rem 2rem;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg-raised) 100%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cta-box__glow {
    position: absolute;
    inset: auto -10% -60% -10%;
    height: 120%;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 100%, rgba(34, 211, 238, 0.16) 0%, rgba(91, 140, 255, 0.06) 35%, transparent 65%);
}
.cta-box__title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    text-wrap: balance;
    margin-bottom: 1.5rem;
}
.cta-box__body { max-width: 560px; font-size: 1rem; line-height: 1.65; color: var(--text-2); margin-bottom: 2.5rem; }
.cta-box__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.03em; }
.footer__legal { font-size: 0.85rem; color: var(--text-3); }
.footer__links { display: flex; gap: 1.75rem; }
.footer__links a { font-size: 0.88rem; color: var(--text-2); transition: color var(--t-fast); }
.footer__links a:hover { color: var(--accent); }

/* ─── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.modal-card {
    width: 100%;
    max-width: 440px;
    padding: 2.75rem 2rem 2rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-card);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: bubble-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--ok);
}
.modal-card h2 { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; }
.modal-card p  { font-size: 0.95rem; line-height: 1.6; color: var(--text-2); }
.modal-actions { width: 100%; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }

/* ─── FAB ──────────────────────────────────────────────────── */
.fab {
    position: fixed;
    right: 1.75rem; bottom: 1.75rem;
    width: 52px; height: 52px;
    z-index: 150;
    border-radius: 50%;
    background: var(--accent);
    color: #031419;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 34px -8px rgba(34, 211, 238, 0.6);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.fab:hover { transform: scale(1.07); box-shadow: 0 16px 40px -8px rgba(34, 211, 238, 0.8); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1240px) {
    .agent-layout { grid-template-columns: 300px minmax(0, 1fr); }
    .agent-info { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .agent-tip { grid-column: 1 / -1; }
    .nav__link { padding: 0.55rem 1rem; font-size: 0.92rem; }
}

@media (max-width: 1080px) {
    .nav__inner { grid-template-columns: 1fr auto; }
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .how-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .how-flow::before { display: none; }
    .natural-layout { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 860px) {
    :root { --nav-h: 68px; --nav-h-compact: 62px; }
    .agent-section { min-height: 0; }
    .agent-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .agent-header__body { text-align: left; }
    .container, .nav__inner { padding: 0 1.25rem; }
    .section { padding: 5rem 0; }
    .agent-layout { grid-template-columns: minmax(0, 1fr); }
    .call-console { order: -1; }
    .agent-info { grid-template-columns: minmax(0, 1fr); }
    .hero-pill--1 { width: 520px; height: 160px; }
    .hero-pill--4 { width: 460px; height: 120px; }
}

@media (max-width: 768px) {
    /* voice-agent.js switches to 46px nodes on a 104px radius here */
    .voice-node { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
    .call-stage { height: 270px; }
    .voice-orbit-container { transform: scale(0.95); }
    .ring-3 { width: 250px; height: 250px; }
}

@media (max-width: 640px) {
    .nav__back span, .nav__cta, .nav__wordmark-sep, .nav__wordmark em { display: none; }
    .nav__back { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .nav__left { gap: 0.75rem; }
    .nav__wordmark { font-size: 1.05rem; }
    .eyebrow-row { flex-direction: column; gap: 0.75rem; }
    .eyebrow-row__line { display: none; }
    .eyebrow-chip { font-size: 0.7rem; letter-spacing: 0.12em; }
    .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3rem; }
    .hero__stat:nth-child(3) { border-left: none; }
    .hero__stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .hero__actions .btn { width: 100%; }
    .services-grid, .how-flow, .natural-features { grid-template-columns: minmax(0, 1fr); }
    .service-card { padding: 1.6rem; }
    .panel { padding: 1.2rem; border-radius: 22px; }
    .transcript-bubble { max-width: 94%; }
    .cta-box { padding: 3.5rem 1.25rem; border-radius: 26px; }
    .cta-box__actions .btn { width: 100%; }
    .footer__inner { flex-direction: column; text-align: center; }
    .fab { right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .fade-in-up { opacity: 1; transform: none; }
}

/* Console header stays on one line on small screens */
.panel__title { white-space: nowrap; }
@media (max-width: 640px) {
    .call-console .panel__num { display: none; }
    .call-console .panel__head { gap: 0.6rem; }
    .status-badge { font-size: 0.6rem; letter-spacing: 0.1em; padding: 0.3rem 0.65rem; }
}

/* Short laptop screens: keep the whole demo console inside one screen */
@media (max-height: 740px) and (min-width: 861px) {
    .agent-section { padding-top: 0.75rem; }
    .agent-header { margin-bottom: 0.75rem; }
    .agent-header .section-kicker { display: none; }
    .agent-header__title { font-size: 1.5rem; }
    .agent-meta, .agent-tip { display: none; }
    .agent-config { gap: 0.6rem; }
    .panel__head { margin-bottom: 0.65rem; }
    .call-stage { height: 230px; }
    .voice-orbit-container, .orb-container.voice-core-reactor { transform: scale(0.68); }
    .ring-3 { width: 225px; height: 225px; }
    .transcript-feed { min-height: 110px; }
    .session-timer-big { flex-direction: row; align-items: baseline; justify-content: space-between; }
    .session-timer-big__val { font-size: 1.3rem; }
    .session-meta__row { padding: 0.32rem 0; }
}
