/* ============================================================
   Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Reset & tokens
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Brand gradient — sampled from the logo (violet → indigo → cyan) */
    --grad:      linear-gradient(135deg, #7c3aed 0%, #6366f1 45%, #22d3ee 100%);
    --grad-soft: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --grad-vert: linear-gradient(180deg, #a855f7 0%, #06b6d4 100%);

    /* Brand stops (solid use / glows) */
    --violet: #7c3aed;
    --violet-lt: #a855f7;
    --indigo: #6366f1;
    --cyan: #06b6d4;
    --cyan-lt: #22d3ee;

    /* Back-compat aliases (used by /features, /pricing, /contact) */
    --primary: #7c3aed;
    --primary-dark: #6d28d9;

    /* Ink & text */
    --ink: #0f172a;
    --text: #334155;
    --slate: #475569;
    --muted: #64748b;

    /* Surfaces */
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-canvas: #fcfcfe;
    --navy: #0b1220;
    --navy-2: #0d162b;

    /* Lines / glass */
    --border: #e5e7eb;
    --hair: rgba(15, 23, 42, 0.07);
    --hair-strong: rgba(15, 23, 42, 0.12);
    --glass: rgba(252, 252, 254, 0.72);
    --glass-solid: #fcfcfe;

    /* Shadows / glows */
    --glow-violet: 0 14px 34px -10px rgba(124, 58, 237, 0.40);
    --shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 16px 38px -22px rgba(15,23,42,.22);
    --shadow-widget: 0 34px 70px -24px rgba(15, 23, 42, 0.30);

    /* Motion / geometry */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --radius: 16px;
    --radius-lg: 22px;
    --maxw: 1200px;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: var(--violet); text-decoration: none; }

h1, h2 {
    font-family: 'Bebas Neue', Impact, 'Helvetica Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.0;
    color: var(--ink);
}

p { color: var(--slate); }

.container { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 24px; }

/* Gradient text helper */
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Eyebrow / section labels */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 0 0 rgba(124,58,237,.5);
    animation: ripple 2.4s var(--ease-out) infinite;
}

/* ============================================================
   Scroll-reveal (progressive enhancement; static fallback)
   ============================================================ */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            animation: rise .8s var(--ease-out) both;
            animation-timeline: view();
            animation-range: entry 0% cover 32%;
        }
        .stagger > * {
            opacity: 0;
            animation: rise .8s var(--ease-out) both;
            animation-timeline: view();
        }
        .stagger > *:nth-child(1) { animation-range: entry 0% cover 30%; }
        .stagger > *:nth-child(2) { animation-range: entry 6% cover 36%; }
        .stagger > *:nth-child(3) { animation-range: entry 12% cover 42%; }
        .stagger > *:nth-child(4) { animation-range: entry 18% cover 48%; }
    }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    --pos: 0%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--grad);
    background-size: 200% 200%;
    background-position: var(--pos) 50%;
    color: #fff;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    border: 0;
    cursor: pointer;
    box-shadow: var(--glow-violet);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-position .4s var(--ease-out);
}
.btn:hover { --pos: 100%; transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(124,58,237,.5); color:#fff; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--hair-strong);
    box-shadow: none;
}
.btn-outline:hover {
    background: rgba(124,58,237,.06);
    border-color: rgba(124,58,237,.35);
    color: var(--ink);
    box-shadow: none;
    transform: translateY(-2px);
}
.btn .play {
    width: 0; height: 0;
    border-left: 8px solid currentColor;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}
.btn-block { display: flex; width: 100%; }

/* ============================================================
   Header / nav  (glass, sticky)
   ============================================================ */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    background: var(--glass);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--hair);
}
@supports not (backdrop-filter: blur(1px)) {
    header.site-header { background: var(--glass-solid); }
}
header.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; width: auto; display: block; }

/* Wordmark — Inter + tri-color (matches the logo) */
.logo .wordmark {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-flex;
}
.logo .mark-my, .logo .mark-staff { color: var(--ink); }
.logo .mark-ai {
    background: var(--grad-vert);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

header.site-header nav { display: flex; align-items: center; }
nav a {
    position: relative;
    margin-left: 26px;
    color: var(--slate);
    font-weight: 500;
    font-size: 15px;
    transition: color .2s;
}
nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s var(--ease-out);
}
nav a:not(.btn):hover { color: var(--ink); }
nav a:not(.btn):hover::after { transform: scaleX(1); }
nav a.is-active { color: var(--ink); font-weight: 600; }
nav a.is-active::after { transform: scaleX(1); }
nav a.btn { color: #fff; margin-left: 26px; }
nav a.btn::after { display: none; }

/* ============================================================
   Aurora background layer (scoped to sections that opt in)
   ============================================================ */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    will-change: transform;
}
.aurora .a1 { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.55), transparent 65%); animation: auroraA 24s var(--ease-out) infinite alternate; }
.aurora .a2 { width: 560px; height: 560px; bottom: -200px; right: -140px; background: radial-gradient(circle at 60% 60%, rgba(34,211,238,.50), transparent 65%); animation: auroraB 28s var(--ease-out) infinite alternate; }
.aurora .a3 { width: 380px; height: 380px; top: 30%; right: 20%; background: radial-gradient(circle at 50% 50%, rgba(168,85,247,.34), transparent 65%); animation: auroraC 22s var(--ease-out) infinite alternate; }

/* Faint dot grid texture */
.dotgrid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(rgba(15,23,42,.16) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .35;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    background: var(--bg-canvas);
    padding: 72px 0 88px;
    overflow: hidden;
}
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 56px;
    min-height: 78vh;
    min-height: 78svh;
}
.hero-copy { max-width: 580px; }
.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
    background: rgba(255,255,255,.6);
    border: 1px solid transparent;
    background-image: linear-gradient(#fff,#fff), var(--grad);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 16px -8px rgba(124,58,237,.4);
}
.eyebrow-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--grad);
    animation: ripple 2.4s var(--ease-out) infinite;
}
.hero h1 {
    font-size: clamp(46px, 7vw, 78px);
    line-height: 0.96;
    margin: 22px 0 20px;
}
.hero h1 .grad-text { display: inline; }
.hero .lead {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.55;
    color: var(--slate);
    max-width: 54ch;
    margin-bottom: 30px;
}
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero entrance cascade */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise .85s var(--ease-out) both; }
    .hero-copy > *:nth-child(1) { animation-delay: .05s; }
    .hero-copy > *:nth-child(2) { animation-delay: .14s; }
    .hero-copy > *:nth-child(3) { animation-delay: .23s; }
    .hero-copy > *:nth-child(4) { animation-delay: .32s; }
    .hero-copy > *:nth-child(5) { animation-delay: .41s; }
    .hero-visual { animation: rise 1s var(--ease-out) .3s both; }
}

/* Trust chips */
.trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 30px;
}
.trust-chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}
.trust-chips span::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--grad);
    flex: none;
}

/* ---- Neural constellation (ambient brand visual) ---- */
.constellation {
    position: absolute;
    z-index: 1;
    top: 50%; right: -4%;
    width: 640px; max-width: 60%;
    transform: translateY(-50%);
    opacity: .5;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 38%);
    mask-image: linear-gradient(100deg, transparent 0%, #000 38%);
}
.constellation .net { animation: constellationDrift 26s var(--ease-out) infinite alternate; transform-origin: 50% 50%; }
.constellation line {
    stroke: url(#netgrad);
    stroke-width: 1.4;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw 1.4s var(--ease-out) forwards;
}
.constellation .node { fill: #fff; stroke: url(#netgrad); stroke-width: 1.5; animation: nodePulse 3.4s var(--ease-out) infinite; }
.constellation .signal { fill: var(--cyan-lt); filter: drop-shadow(0 0 4px rgba(34,211,238,.9)); opacity: 0; }
@supports (offset-path: path('M0 0')) {
    @media (prefers-reduced-motion: no-preference) {
        .constellation .signal { opacity: 1; animation: signalTravel 4.5s linear infinite; }
    }
}

/* ============================================================
   Live Agent widget (hero right column)
   ============================================================ */
.hero-visual { position: relative; z-index: 2; display: flex; justify-content: center; }
.agent-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius-lg);
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hair);
    box-shadow: var(--shadow-widget);
    padding: 18px;
    animation: float 6s var(--ease-out) infinite;
}
@supports not (backdrop-filter: blur(1px)) { .agent-card { background: var(--glass-solid); } }
/* gradient "lens" border echoing the logo frame */
.agent-card::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .55;
    pointer-events: none;
}
/* logo sparkle parked at the corner */
.agent-card .spark {
    position: absolute; top: -14px; right: -10px;
    width: 30px; height: 30px;
    color: var(--violet-lt);
    animation: sparkleSpin 9s linear infinite;
}
.agent-card .spark svg { width: 100%; height: 100%; display: block; }

.agent-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; border-bottom: 1px solid var(--hair); }
.agent-head .glyph {
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--grad);
    display: grid; place-items: center;
    color: #fff; font-size: 15px;
    box-shadow: var(--glow-violet);
}
.agent-head .who { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.1; }
.agent-head .who small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.agent-head .live {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; color: var(--cyan);
    text-transform: uppercase; letter-spacing: .08em;
}
.agent-head .live i {
    width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
    animation: ripple 2s var(--ease-out) infinite;
}

/* mode tabs */
.agent-tabs { display: flex; gap: 6px; padding: 12px 0; }
.agent-tabs span {
    flex: 1; text-align: center;
    font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
    padding: 7px 0; border-radius: 8px;
    color: var(--muted);
    background: rgba(15,23,42,.04);
}
.agent-tabs span.on { color: #fff; background: var(--grad); box-shadow: var(--glow-violet); }

/* conversation */
.agent-convo { padding: 4px 2px 2px; min-height: 168px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; margin-bottom: 10px; }
.bubble.user { margin-left: auto; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { background: rgba(124,58,237,.08); color: var(--ink); border: 1px solid rgba(124,58,237,.14); border-bottom-left-radius: 4px; }
.bubble.bot .type {
    display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom;
    border-right: 2px solid var(--violet);
    width: 24ch;
}
@media (prefers-reduced-motion: no-preference) {
    .bubble.bot .type { width: 0; animation: typewriter 7s steps(24) infinite, caretBlink 1s step-end infinite; }
}
.booked {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--cyan);
    margin-top: 2px;
}

/* input bar with waveform */
.agent-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.waveform { display: flex; align-items: center; gap: 3px; height: 26px; flex: 1; }
.waveform i {
    width: 3px; border-radius: 3px; background: var(--grad);
    height: 30%;
    transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
    .waveform i { animation: wave 1.1s var(--ease-out) infinite; animation-delay: calc(var(--i) * 0.08s); }
}
.agent-foot .send {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    background: var(--grad); color: #fff; display: grid; place-items: center;
    box-shadow: var(--glow-violet); font-size: 15px;
}

/* ============================================================
   Trust strip / logo cloud
   ============================================================ */
.logocloud { padding: 40px 0 8px; text-align: center; }
.logocloud .eyebrow { justify-content: center; }
.logocloud-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px; margin-top: 20px; }
.logocloud-row span {
    font-weight: 700; font-size: 17px; letter-spacing: .02em;
    color: var(--ink); opacity: .32;
    animation: logoFade 8s var(--ease-out) infinite;
}
.logocloud-row span:nth-child(2){animation-delay:-1.6s} .logocloud-row span:nth-child(3){animation-delay:-3.2s}
.logocloud-row span:nth-child(4){animation-delay:-4.8s} .logocloud-row span:nth-child(5){animation-delay:-6.4s}

/* ============================================================
   Section heading defaults
   ============================================================ */
.section { padding: 88px 0; position: relative; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { justify-content: center; margin-bottom: 14px; }
section h2, .section h2 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 14px; }
section .lede, .section .lede { color: var(--slate); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* ============================================================
   Three agent types (home) + generic feature grid
   ============================================================ */
.features { padding: 88px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.feature {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    padding: 30px 28px;
    overflow: hidden;
    transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) { .feature { background: #fff; } }
.feature::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--grad); opacity: .4; transition: opacity .28s var(--ease-out);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: rgba(124,58,237,.22); }
.feature:hover::before { opacity: 1; }
.feature:hover .feat-icon { box-shadow: var(--glow-violet); }
.feat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    margin-bottom: 18px;
    background: rgba(124,58,237,.08);
    border: 1px solid rgba(124,58,237,.2);
    transition: box-shadow .28s var(--ease-out);
}
.feat-icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.feature p { color: var(--slate); font-size: 14.5px; }
.feature .learn-more {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--violet);
}
.feature .learn-more span { transition: transform .25s var(--ease-out); }
.feature:hover .learn-more span { transform: translateX(5px); }

/* compact differentiator cards */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.mini {
    background: #fff; border: 1px solid var(--hair); border-radius: var(--radius);
    padding: 24px; transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.mini:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.mini .feat-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
.mini .feat-icon svg { width: 24px; height: 24px; }
.mini h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.mini p { font-size: 13.5px; color: var(--slate); }

/* ============================================================
   How it works (steps rail)
   ============================================================ */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12px; }
.steps::before {
    content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px;
    background: var(--grad); opacity: .35; border-radius: 2px;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step .num {
    width: 54px; height: 54px; margin: 0 auto 18px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 26px; color: #fff;
    background: var(--grad);
    box-shadow: var(--glow-violet);
    position: relative; z-index: 1;
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--slate); }

/* ============================================================
   Showcase
   ============================================================ */
.showcase { position: relative; overflow: hidden; }
.showcase .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase h2 { text-align: left; }
.showcase .lede { margin: 0 0 24px; text-align: left; }
.showcase ul { list-style: none; }
.showcase li { position: relative; padding: 8px 0 8px 30px; color: var(--ink); font-weight: 500; }
.showcase li::before {
    content: "✓"; position: absolute; left: 0; top: 7px;
    width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; font-size: 11px; font-weight: 700;
    color: #fff; background: var(--grad);
}
.window {
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--hair);
    box-shadow: var(--shadow-widget);
    overflow: hidden;
}
.window .bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--hair); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.window .bar i:nth-child(1){background:#ff5f57}.window .bar i:nth-child(2){background:#febc2e}.window .bar i:nth-child(3){background:#28c840}
.window .bar .url { margin-left: 10px; font-size: 12px; color: var(--muted); }
.window .body { padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.avatar-ring {
    width: 110px; height: 110px; border-radius: 50%; padding: 4px;
    background: var(--grad);
    animation: speak 2.6s var(--ease-out) infinite;
}
.avatar-ring > div {
    width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #1e293b, #0b1220);
    display: grid; place-items: center; font-size: 40px;
}
.window .caption { font-size: 14px; color: var(--slate); text-align: center; }
.window .waveform { justify-content: center; height: 34px; }

/* ============================================================
   Metrics band (dark)
   ============================================================ */
.metrics { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: 76px 0; }
.metrics .container { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.metric .num {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(46px, 6vw, 70px); line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.metric p { color: rgba(255,255,255,.6); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-top: 8px; }

/* ============================================================
   Page header (used on /features, /pricing, /contact)
   ============================================================ */
.page-header { position: relative; padding: 96px 0 64px; text-align: center; background: var(--bg-canvas); border-bottom: 1px solid var(--hair); overflow: hidden; }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(38px,5vw,58px); margin-bottom: 14px; }
.page-header p { color: var(--slate); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* Detailed feature sections on /features */
.feature-detail { padding: 64px 0; border-bottom: 1px solid var(--hair); }
.feature-detail:last-child { border-bottom: 0; }
.feature-detail h2 { font-size: clamp(28px,4vw,40px); margin-bottom: 16px; text-align: left; }
.feature-detail .meta { color: var(--violet); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.feature-detail p.lead { font-size: 18px; color: var(--slate); margin-bottom: 24px; max-width: 720px; }
.feature-detail ul { list-style: none; max-width: 720px; }
.feature-detail li { padding: 8px 0 8px 28px; position: relative; color: var(--ink); }
.feature-detail li::before { content: '✓'; color: var(--violet); font-weight: 700; position: absolute; left: 0; top: 8px; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing { padding: 88px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.plan {
    position: relative;
    background: #fff; border: 1px solid var(--hair); border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.plan.featured {
    border: 0;
    background:
        linear-gradient(#fff,#fff) padding-box,
        var(--grad) border-box;
    border: 2px solid transparent;
    box-shadow: var(--shadow-card);
}
.plan h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); margin-bottom: 12px; }
.plan .price { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 52px; line-height: 1; color: var(--ink); }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); font-family: 'Inter', sans-serif; }
.plan ul { list-style: none; margin: 22px 0; }
.plan li { padding: 7px 0 7px 24px; position: relative; color: var(--slate); font-size: 14px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--violet); font-weight: 700; }
.pricing-note { max-width: 660px; margin: 30px auto 0; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pricing-note strong { color: var(--violet); font-weight: 700; }

/* ============================================================
   FAQ (used on /pricing)
   ============================================================ */
.faq { padding: 72px 0; background: var(--bg-soft); border-top: 1px solid var(--hair); }
.faq-list { max-width: 760px; margin: 32px auto 0; }
.faq-item { background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 20px 24px; margin-bottom: 12px; }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--violet); font-weight: 400; font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--slate); margin-top: 12px; font-size: 15px; }

/* ============================================================
   Contact
   ============================================================ */
.contact { padding: 72px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 32px; text-align: center; transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out); }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.contact-card .icon { font-size: 34px; margin-bottom: 16px; }
.contact-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.contact-card p { color: var(--slate); font-size: 15px; margin-bottom: 16px; }
.contact-card a { font-weight: 600; }

/* ============================================================
   CTA strip / final CTA
   ============================================================ */
.cta-strip { position: relative; padding: 96px 0; text-align: center; overflow: hidden; background: var(--bg-canvas); }
.cta-strip .container { position: relative; z-index: 2; }
.cta-strip h2 { font-size: clamp(34px,5vw,56px); margin-bottom: 14px; }
.cta-strip p { color: var(--slate); margin-bottom: 30px; font-size: 18px; }
.cta-strip .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* sub-pages place CTAs as direct children (no .cta-btns wrapper) */
.cta-strip .container > .btn { margin: 6px; }

/* ============================================================
   Footer (dark)
   ============================================================ */
footer.site-footer { position: relative; background: var(--navy); color: rgba(255,255,255,.66); padding: 64px 0 32px; overflow: hidden; }
footer.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); opacity: .8; }
footer.site-footer .foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; position: relative; z-index: 2; }
footer.site-footer .foot-brand { max-width: 300px; }
footer.site-footer .foot-brand .wordmark { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
footer.site-footer .foot-brand .mark-my, footer.site-footer .foot-brand .mark-staff { color: #fff; }
footer.site-footer .foot-brand .mark-ai { background: var(--grad-vert); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
footer.site-footer .foot-brand p { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 12px; }
footer.site-footer .foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
footer.site-footer .foot-cols h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
footer.site-footer .foot-cols a { display: block; color: rgba(255,255,255,.62); font-size: 14px; padding: 5px 0; transition: color .2s; }
footer.site-footer .foot-cols a:hover { color: var(--cyan-lt); }
footer.site-footer .foot-bottom {
    position: relative; z-index: 2;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 13px; color: rgba(255,255,255,.45);
}
footer.site-footer .foot-legal { display: flex; gap: 20px; }
footer.site-footer .foot-legal a { color: rgba(255,255,255,.55); }
footer.site-footer .foot-legal a:hover { color: var(--cyan-lt); }

/* Footer newsletter */
footer.site-footer .foot-news { max-width: 300px; }
footer.site-footer .foot-news h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
footer.site-footer .foot-news p { color: rgba(255,255,255,.5); font-size: 13.5px; margin-bottom: 14px; }
.newsletter { display: flex; gap: 8px; }
.newsletter .np { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter input[type="email"] {
    flex: 1; min-width: 0;
    padding: 11px 14px; border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff; font: inherit; font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.45); }
.newsletter input[type="email"]:focus { outline: none; border-color: var(--cyan-lt); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.newsletter button { padding: 11px 18px; font-size: 14px; border-radius: 10px; flex: none; }
footer.site-footer .form-status { margin-top: 10px; font-size: 13px; }
footer.site-footer .form-status.ok { color: var(--cyan-lt); }
footer.site-footer .form-status.err { color: #fca5a5; }

/* Social buttons */
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.04);
    transition: transform .2s var(--ease-out), background .2s, color .2s, border-color .2s;
}
.social a:hover { transform: translateY(-3px); color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--glow-violet); }
.social a svg { width: 18px; height: 18px; }

/* Cookie consent banner */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: #fff; color: var(--ink);
    border: 1px solid var(--hair); border-radius: 16px;
    box-shadow: var(--shadow-widget);
    padding: 16px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1; min-width: 240px; margin: 0; font-size: 13.5px; color: var(--slate); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-banner .btn { padding: 10px 20px; font-size: 14px; }
@media (max-width: 520px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; }
    .cookie-banner .cookie-actions .btn { flex: 1; }
}
footer.site-footer .foot-legal a[data-cookie-settings] { cursor: pointer; }

/* ============================================================
   Forms (contact + generic)
   ============================================================ */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.field label .req { color: var(--violet); }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--hair-strong);
    border-radius: 12px;
    font: inherit; font-size: 15px;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa5b5; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .consent { font-size: 12.5px; color: var(--muted); }
.form .consent a { font-weight: 600; }
.form-status { font-size: 14px; font-weight: 500; }
.form-status.ok { color: #0ea5a4; }
.form-status.err { color: #dc2626; }
button[data-loading] { opacity: .8; cursor: progress; }

/* Contact page layout */
.contact-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: start; }
.contact-form-card {
    background: #fff; border: 1px solid var(--hair); border-radius: var(--radius-lg);
    padding: 34px; box-shadow: var(--shadow-card);
}
.contact-form-card h2 { text-align: left; font-size: clamp(26px,3vw,34px); margin-bottom: 6px; }
.contact-form-card > p { color: var(--slate); margin-bottom: 26px; }
.contact-aside { display: grid; gap: 16px; }
.contact-aside .info-card {
    background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 24px;
}
.contact-aside .info-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.contact-aside .info-card p { font-size: 14px; color: var(--slate); margin-bottom: 8px; }
.contact-aside .info-card a { font-weight: 600; font-size: 14px; }

/* ============================================================
   Legal / prose pages (privacy, terms)
   ============================================================ */
.legal { padding: 64px 0 88px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-meta { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.legal-toc {
    position: sticky; top: 96px;
    border-left: 2px solid var(--hair); padding-left: 18px;
}
.legal-toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 4px; }
.legal-toc a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--slate); line-height: 1.4; }
.legal-toc a:hover { color: var(--violet); }
.prose { max-width: 760px; }
.prose .legal-intro { font-size: 17px; color: var(--slate); padding: 18px 22px; background: var(--bg-soft); border-radius: 12px; border-left: 3px solid var(--violet); margin-bottom: 12px; }
.prose h2 { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; margin: 40px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
.prose p { color: var(--slate); margin-bottom: 14px; font-size: 15.5px; }
.prose ul { margin: 0 0 16px 0; padding-left: 22px; }
.prose li { color: var(--slate); font-size: 15.5px; margin-bottom: 7px; }
.prose a { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--hair); }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.legal-todo { background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 4px; font-weight: 600; border: 1px dashed #f59e0b; }

/* ============================================================
   Forms / legal — responsive
   ============================================================ */
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; gap: 28px; }
    .legal-layout { grid-template-columns: 1fr; gap: 28px; }
    .legal-toc { position: static; border-left: 0; border-top: 1px solid var(--hair); padding-left: 0; padding-top: 18px; }
    footer.site-footer .foot-news { max-width: none; flex-basis: 100%; }
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .newsletter { flex-direction: column; }
    .newsletter button { width: 100%; }
    .contact-form-card { padding: 24px; }
}

/* ============================================================
   Hamburger button (default-hidden on desktop)
   ============================================================ */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }
.nav-toggle-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: transparent; border: 0; margin-left: 16px; z-index: 60; }
.nav-toggle-btn span { display: block; width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .hero .container { gap: 36px; }
    .hero h1 { font-size: clamp(40px,6vw,60px); }
    .section, .features, .pricing { padding: 72px 0; }
    .showcase .container { gap: 36px; }
    header.site-header nav a { margin-left: 18px; font-size: 15px; }
    header.site-header nav a.btn { margin-left: 18px; }
}

/* ============================================================
   Responsive — stack hero / cards (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; min-height: 0; text-align: center; }
    .hero-copy { max-width: 640px; margin: 0 auto; }
    .hero .cta, .trust-chips { justify-content: center; }
    .hero-visual { margin-top: 8px; }
    .constellation { display: none; }
    .showcase .container { grid-template-columns: 1fr; }
    .showcase h2, .showcase .lede { text-align: center; }
    .steps { grid-template-columns: 1fr 1fr; gap: 32px 18px; }
    .steps::before { display: none; }
    .metrics .container { gap: 28px; }
}

/* ============================================================
   Responsive — Mobile (≤ 768px) — hamburger
   ============================================================ */
@media (max-width: 768px) {
    .nav-toggle-btn { display: flex; }
    header.site-header nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; padding: 8px 24px 16px;
        border-bottom: 1px solid var(--hair);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
        display: none;
    }
    #nav-toggle:checked ~ nav { display: flex; }
    header.site-header nav a { margin-left: 0; padding: 14px 4px; border-bottom: 1px solid var(--hair); font-size: 16px; display: block; }
    header.site-header nav a:not(.btn)::after { display: none; }
    header.site-header nav a:last-child { border-bottom: 0; }
    header.site-header nav a.btn { margin: 12px 0 0; text-align: center; }
    #nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
    #nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .section, .features, .pricing { padding: 56px 0; }
    .metrics .container { grid-template-columns: 1fr; gap: 32px; }
    .logo img { height: 34px; }
}

/* ============================================================
   Responsive — Small mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero { padding: 48px 0 56px; }
    .hero h1 { font-size: clamp(34px,9vw,44px); }
    .hero .cta { flex-direction: column; align-items: stretch; }
    .hero .cta .btn { width: 100%; }
    .trust-chips { gap: 8px 14px; }
    .steps { grid-template-columns: 1fr; }
    .agent-card { max-width: 100%; }
    .cta-strip .cta-btns { flex-direction: column; align-items: stretch; }
    .cta-strip .cta-btns .btn { width: 100%; }
    .logo span.wordmark { display: none; }
    footer.site-footer .foot-cols { gap: 32px; }
}

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes auroraA { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.1); } }
@keyframes auroraB { from { transform: translate(0,0) scale(1); } to { transform: translate(-50px,-30px) scale(1.12); } }
@keyframes auroraC { from { transform: translate(0,0); } to { transform: translate(-40px,50px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nodePulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes signalTravel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes constellationDrift { from { transform: rotate(-3deg) translateY(-6px); } to { transform: rotate(3deg) translateY(6px); } }
@keyframes sparkleSpin { to { transform: rotate(360deg); } }
@keyframes typewriter { 0% { width: 0; } 45%,55% { width: 24ch; } 100% { width: 0; } }
@keyframes caretBlink { 50% { border-color: transparent; } }
@keyframes wave { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(124,58,237,.5); } 70% { box-shadow: 0 0 0 10px rgba(124,58,237,0); } 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); } }
@keyframes float { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@keyframes speak { 0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,.0); transform: scale(1); } 50% { box-shadow: 0 0 26px 2px rgba(34,211,238,.35); transform: scale(1.02); } }
@keyframes logoFade { 0%,100% { opacity: .22; } 50% { opacity: .5; } }

/* ============================================================
   Reduced motion — freeze everything
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .constellation line { stroke-dashoffset: 0; }
    .bubble.bot .type { width: 24ch; }
}
