/* ========== TOKENS ========== */
:root {
    color-scheme: dark;

    --bg:               #0A0A0A;
    --surface:          #141414;
    --surface-sunken:   #0F0F0F;
    --surface-elevated: #1A1A1A;

    --text-primary:   #F5F5F5;
    --text-secondary: #A3A3A3;
    --text-muted:     #6B6B6B;

    --border:        rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-subtle: rgba(255, 255, 255, 0.06);

    --accent:        oklch(0.66 0.12 150);
    --accent-strong: oklch(0.72 0.16 150);
    --accent-faint:  oklch(0.66 0.12 150 / 0.16);

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 system-ui, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Berkeley Mono",
                 Menlo, Consolas, monospace;

    --text-xs: 11px; --text-sm: 12px; --text-base: 13px; --text-md: 14px;
    --text-lg: 16px; --text-xl: 20px; --text-2xl: 26px; --text-3xl: 36px; --text-4xl: 52px;

    --leading-tight: 1.2; --leading-normal: 1.45; --leading-relaxed: 1.6;

    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
    --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

    --radius-sm: 3px; --radius: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 9999px;

    --ease: cubic-bezier(0.2, 0, 0, 1);
    --motion-fast: 120ms;
    --motion-base: 200ms;
}

[data-theme="light"] {
    color-scheme: light;
    --bg:               #FAFAFA;
    --surface:          #FFFFFF;
    --surface-sunken:   #F5F5F5;
    --surface-elevated: #FFFFFF;
    --text-primary:     #0A0A0A;
    --text-secondary:   #525252;
    --text-muted:       #737373;
    --border:           rgba(0, 0, 0, 0.10);
    --border-strong:    rgba(0, 0, 0, 0.16);
    --border-subtle:    rgba(0, 0, 0, 0.06);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
img, svg { display: block; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ========== LAYOUT ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-5); }
main { display: block; }

section { padding: var(--space-9) 0; border-bottom: 1px solid var(--border-subtle); }
@media (max-width: 720px) { section { padding: var(--space-8) 0; } }

.section-head { max-width: 720px; margin: 0 auto var(--space-7); text-align: center; }
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}
.section-h2 {
    font-size: var(--text-3xl);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 var(--space-3);
}
.section-sub {
    color: var(--text-secondary);
    font-size: var(--text-md);
    margin: 0;
}
.grad {
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--accent-strong) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== BOOT LOADER ========== */
.boot-loader {
    position: fixed; inset: 0; z-index: 100;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: var(--space-4);
    transition: opacity 400ms var(--ease), visibility 400ms var(--ease);
}
.boot-loader.is-done { opacity: 0; visibility: hidden; }
.boot-label { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
/* Stroke cascade loader — verbatim from KageOps Command Center (shell-polish.css L964-992) */
.kg-think-loader { width: 18px; height: 18px; flex-shrink: 0; }
.kg-think-loader--big { width: 72px; height: 72px; }
.kg-stroke-anim {
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: kg-stroke-draw 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.kg-stroke-anim:nth-child(1) { animation-delay: 0s; }
.kg-stroke-anim:nth-child(2) { animation-delay: 0.18s; }
.kg-stroke-anim:nth-child(3) { animation-delay: 0.36s; }
.kg-stroke-anim:nth-child(4) { animation-delay: 0.54s; }
.kg-stroke-anim--accent { animation-delay: 0.72s; stroke: var(--accent); }
@keyframes kg-stroke-draw {
    0%       { stroke-dashoffset: 80;  opacity: 0; }
    20%      { opacity: 1; }
    50%, 60% { stroke-dashoffset: 0;   opacity: 1; }
    85%, 100%{ stroke-dashoffset: -80; opacity: 0; }
}
.boot-bar { width: 220px; height: 2px; background: var(--surface); border-radius: var(--radius-full); overflow: hidden; }
.boot-bar-fill { height: 100%; width: 0%; background: var(--accent); transition: width 1200ms var(--ease); }
.boot-status { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }

/* ========== COMMAND PALETTE ========== */
.cmd-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 90; }
.cmd-palette {
    position: fixed; top: 12vh; left: 50%; transform: translateX(-50%);
    width: min(560px, 92vw);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    z-index: 91;
    overflow: hidden;
}
.cmd-inner { padding: var(--space-3); }
#cmd-search {
    width: 100%;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-md);
    outline: none;
}
#cmd-search:focus { outline: 2px solid var(--accent-faint); }
.cmd-results { list-style: none; margin: var(--space-3) 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.cmd-results li {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}
.cmd-results li.is-active, .cmd-results li:hover { background: var(--surface); color: var(--text-primary); }
.cmd-foot {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex; gap: var(--space-3);
}
kbd {
    font-family: var(--font-mono);
    font-size: 10px;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1px 5px;
    color: var(--text-secondary);
}

/* ========== TWEAKS ========== */
.tweaks {
    position: fixed; right: 0; top: 0; bottom: 0; width: 280px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 80;
    transform: translateX(0);
    transition: transform var(--motion-base) var(--ease);
}
.tweaks[hidden] { display: none; }
.tweaks-head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.tweaks-close { font-size: 22px; color: var(--text-muted); }
.tweaks-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.tweak-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); color: var(--text-secondary); }

/* ========== NAV ========== */
.nav {
    position: sticky; top: 0; z-index: 50;
    height: 56px;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background var(--motion-base) var(--ease), border-color var(--motion-base) var(--ease), backdrop-filter var(--motion-base) var(--ease);
}
.nav.is-scrolled {
    background: color-mix(in oklch, var(--bg) 80%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}
.nav-inner { max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 var(--space-5); display: flex; align-items: center; gap: var(--space-5); }
.nav-brand { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.brand-mark { font-family: var(--font-mono); color: var(--accent); font-size: var(--text-lg); }
.brand-word { letter-spacing: -0.01em; }
.nav-links { list-style: none; display: flex; gap: var(--space-5); margin: 0 auto; padding: 0; }
.nav-links a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--motion-fast) var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-cmd { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.kbd-pair { display: inline-flex; gap: 2px; }
.theme-toggle { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; }
.theme-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav-cta { padding: 7px 14px; }
.nav-drawer-btn { display: none; flex-direction: column; gap: 4px; padding: 6px; }
.nav-drawer-btn span { display: block; width: 18px; height: 1.5px; background: var(--text-primary); }
@media (max-width: 880px) {
    .nav-links { display: none; }
    .nav-drawer-btn { display: flex; }
    .nav-links.is-open {
        display: flex; flex-direction: column;
        position: absolute; top: 56px; left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: var(--space-4);
        margin: 0;
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: transform var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
    cursor: pointer;
}
.btn-primary { background: var(--accent); color: #0a0a0a; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); }

/* ========== HERO ========== */
.hero { padding-top: var(--space-9); padding-bottom: var(--space-9); border-bottom: 1px solid var(--border-subtle); }
.hero-grid { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-5); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); } }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-h1 {
    font-size: var(--text-4xl);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 var(--space-4);
}
.hero-sub {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    max-width: 560px;
    margin: 0 0 var(--space-6);
}
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-6); }
.hero-meta { list-style: none; display: flex; gap: var(--space-5); padding: 0; margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.hero-meta strong { color: var(--text-primary); display: block; font-size: var(--text-xl); font-weight: 600; }

.hero-terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-mono);
}
.term-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); }
.term-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-sunken); }
.term-title { font-size: var(--text-xs); color: var(--text-muted); margin-left: auto; }
.term-code { padding: var(--space-4); font-size: var(--text-sm); line-height: 1.6; color: var(--text-primary); margin: 0; min-height: 200px; white-space: pre-wrap; }
.ribbon { width: 100%; height: 60px; }

/* ========== PROOF ========== */
.proof { padding: var(--space-7) 0; }
.proof-label { text-align: center; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-5); }
.proof-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5); }
.logo-chip { color: var(--text-muted); font-weight: 500; font-size: var(--text-md); padding: var(--space-2) var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius); }

/* ========== AGENTS ========== */
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 880px) { .agents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .agents-grid { grid-template-columns: 1fr; } }
.sigil-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-4);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease), border-color var(--motion-base) var(--ease);
}
.sigil-card.is-revealed { opacity: 1; transform: translateY(0); }
.sigil-card:hover { border-color: var(--border-strong); }
.sigil { font-family: var(--font-mono); font-size: 28px; color: var(--accent); margin-bottom: var(--space-3); }
.sigil-card h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
.sigil-card p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); }

/* ========== HOW / PHASES ========== */
.phase-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 880px) { .phase-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .phase-list { grid-template-columns: 1fr; } }
.phase-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); position: relative; }
.phase-num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); letter-spacing: 0.08em; }
.phase-item h3 { margin: var(--space-2) 0 var(--space-2); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
.phase-item p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); }

/* ========== MISSION CONTROL ========== */
.mission-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: var(--space-4); }
@media (max-width: 880px) { .mission-grid { grid-template-columns: 1fr; } }
.hud-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); }
.hud-label { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-3); }
.hud-arc { display: flex; flex-direction: column; align-items: center; }
.arc { width: 140px; height: 140px; transform: rotate(-90deg); }
.arc-track { fill: none; stroke: var(--surface-sunken); stroke-width: 8; }
.arc-fill { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326; stroke-dashoffset: 326; transition: stroke-dashoffset 1500ms var(--ease); }
.hud-num { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 600; margin-top: var(--space-3); }
.hud-unit { color: var(--text-muted); font-size: var(--text-md); margin-left: 2px; }

.rail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.lane { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); background: var(--surface-sunken); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); }
.lane-tag { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; min-width: 80px; }
.lane-msg { color: var(--text-secondary); font-size: var(--text-sm); }

.cost-bar { width: 100%; height: 8px; background: var(--surface-sunken); border-radius: var(--radius-full); overflow: hidden; }
.cost-fill { height: 100%; width: 0%; background: var(--accent); transition: width 1200ms var(--ease), background var(--motion-base) var(--ease); }
.cost-fill.is-killed { background: #b34a4a; }
.hud-meta { display: flex; justify-content: space-between; margin-top: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }

/* ========== DIFFERENTIATORS ========== */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 880px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); }
.diff-card h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); font-weight: 600; }
.diff-card p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); }

/* ========== INFOGRAPHIC ========== */
.info-flow { display: flex; align-items: center; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }
.info-node { padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-weight: 500; min-width: 120px; text-align: center; }
.info-node.accent { border-color: var(--accent); color: var(--accent); }
.info-arrow { width: 32px; height: 1px; background: var(--border-strong); position: relative; }
.info-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong); transform: rotate(45deg); }

/* ========== COST DEMO ========== */
.cost-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
@media (max-width: 880px) { .cost-demo-grid { grid-template-columns: 1fr; } }
.cost-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); font-family: var(--font-mono); font-size: var(--text-sm); }
.cost-row { display: flex; justify-content: space-between; padding: var(--space-2) 0; border-bottom: 1px solid var(--border-subtle); }
.cost-row:last-child { border-bottom: 0; }
.cost-row span { color: var(--text-muted); }
.cost-row strong { color: var(--text-primary); font-weight: 600; }
.tag-ok { color: var(--accent); }
.cost-copy p { color: var(--text-secondary); font-size: var(--text-md); line-height: var(--leading-relaxed); margin: 0; }

/* ========== SENSEI CHAT ========== */
.chat { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.msg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); opacity: 0; transform: translateY(6px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.msg.is-revealed { opacity: 1; transform: translateY(0); }
.msg-who { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.msg p { margin: var(--space-2) 0 0; color: var(--text-primary); font-size: var(--text-md); }
.msg-user { background: var(--surface-sunken); }

/* ========== GUARDRAILS ========== */
.guard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 880px) { .guard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .guard-grid { grid-template-columns: 1fr; } }
.guard-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); }
.guard-card h3 { margin: 0 0 var(--space-2); font-size: var(--text-md); font-weight: 600; }
.guard-card p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); }

/* ========== SPEC ========== */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 720px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 720px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-row { display: contents; }
.spec-row dt, .spec-row dd { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle); margin: 0; font-size: var(--text-sm); }
.spec-row dt { font-family: var(--font-mono); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--text-xs); background: var(--surface-sunken); }
.spec-row dd { color: var(--text-primary); }

/* ========== PRICING ========== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); max-width: 1080px; margin: 0 auto; }
@media (max-width: 880px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); position: relative; }
.price-card-feat { border-color: var(--accent); }
.price-tag { position: absolute; top: -10px; left: var(--space-5); background: var(--accent); color: #0a0a0a; font-size: var(--text-xs); font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); }
.price-card h3 { margin: 0; font-size: var(--text-lg); font-weight: 600; }
.price { display: flex; align-items: baseline; gap: var(--space-2); }
.price-num { font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.02em; }
.price-per { color: var(--text-muted); font-size: var(--text-md); }
.price-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); color: var(--text-secondary); font-size: var(--text-sm); }
.price-features li::before { content: "→ "; color: var(--accent); }

/* ========== TESTIMONIALS ========== */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 880px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); margin: 0; }
.quote-card blockquote { margin: 0 0 var(--space-3); color: var(--text-primary); font-size: var(--text-md); line-height: var(--leading-relaxed); }
.quote-card figcaption { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }

/* ========== FAQ ========== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-2); }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); }
.faq-item summary { cursor: pointer; font-weight: 500; font-size: var(--text-md); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); font-size: var(--text-lg); transition: transform var(--motion-fast) var(--ease); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: var(--space-3) 0 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: var(--leading-relaxed); }

/* ========== WAITLIST ========== */
.waitlist-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.waitlist-form { flex-direction: row; }
@media (max-width: 520px) { .waitlist-form { flex-direction: column; } }
#waitlist-email {
    flex: 1;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: var(--text-md);
    outline: none;
}
#waitlist-email:focus { outline: 2px solid var(--accent-faint); border-color: var(--accent); }
.form-msg { margin: var(--space-2) 0 0; font-size: var(--text-sm); width: 100%; }
.form-error { color: #d97c7c; }
.form-success { color: var(--accent); }

/* ========== FOOTER ========== */
.footer { padding: var(--space-7) 0; border-top: 1px solid var(--border); border-bottom: 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.footer-nav { display: flex; gap: var(--space-5); }
.footer-nav a { color: var(--text-secondary); font-size: var(--text-sm); transition: color var(--motion-fast) var(--ease); }
.footer-nav a:hover { color: var(--text-primary); }
.footer-meta { color: var(--text-muted); font-size: var(--text-xs); margin: 0; font-family: var(--font-mono); }

/* ========== REVEAL ========== */
[data-reveal] .sigil-card { transition-delay: calc(var(--i, 0) * 60ms); }
.is-magnetic { transition: transform var(--motion-fast) var(--ease); }

/* ========== DENSITY / TWEAKS ========== */
body.is-compact section { padding: var(--space-7) 0; }
body.is-mono { font-family: var(--font-mono); }
body.is-reduced-motion *, body.is-reduced-motion *::before, body.is-reduced-motion *::after { animation: none !important; transition: none !important; }
/* ========== HUD CHROME (v3 graft) ========== */
/* Hairline corner ticks on key cards. Two-corner variant (TL + BR) via pseudo-elements
   keeps markup clean. Add .hud-frame to any card you want to chrome. */
.hud-frame { position: relative; }
.hud-frame::before,
.hud-frame::after {
    content: ""; position: absolute; width: 10px; height: 10px;
    border-color: var(--accent); border-style: solid; pointer-events: none;
}
.hud-frame::before { top: -1px; left: -1px;    border-width: 1px 0 0 1px; }
.hud-frame::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.hud-label {
    position: absolute; top: -8px; left: 16px;
    background: var(--bg); padding: 0 8px;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-muted);
    z-index: 1;
}
.hud-label .dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); margin-right: 6px; vertical-align: middle;
    animation: hud-blink 1.6s ease-in-out infinite;
}
@keyframes hud-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ========== TOP STATUS RAIL ========== */
.top-rail {
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg);
    font-family: var(--font-mono); font-size: 10.5px;
    color: var(--text-muted);
    letter-spacing: 0.14em; text-transform: uppercase;
}
.top-rail-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 8px var(--space-5);
    display: flex; align-items: center; gap: 18px;
    overflow: hidden; white-space: nowrap;
}
.top-rail .pill { display: inline-flex; align-items: center; gap: 6px; }
.top-rail .pill .led {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: hud-blink 1.6s ease-in-out infinite;
}
.top-rail .sep { color: var(--border-strong); }
.top-rail-flow { flex: 1; overflow: hidden; }
.top-rail-flow span {
    display: inline-block; padding-left: 60px;
    animation: rail-flow 38s linear infinite;
}
@keyframes rail-flow { from { transform: none; } to { transform: translateX(-50%); } }
@media (max-width: 720px) { .top-rail-flow { display: none; } }

/* ========== HERO STAGE DIORAMA ========== */
.hero-stage {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    min-height: 480px;
    overflow: hidden;
}
.hero-stage .stage-bar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-sunken);
    font-family: var(--font-mono); font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.10em; text-transform: uppercase;
}
.hero-stage .stage-bar .led {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    animation: hud-blink 1.6s infinite;
}
.hero-stage .stage-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right,  var(--border-subtle) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 80%);
    opacity: 0.6;
    pointer-events: none;
}
.hero-stage .stage-foot {
    position: absolute; left: 0; right: 0; bottom: 0;
    border-top: 1px solid var(--border);
    background: var(--surface-sunken);
    display: grid; grid-template-columns: repeat(3, 1fr);
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.10em; text-transform: uppercase;
    color: var(--text-muted);
}
.hero-stage .stage-foot > div {
    padding: 10px 12px;
    border-right: 1px solid var(--border-subtle);
    display: flex; flex-direction: column; gap: 2px;
}
.hero-stage .stage-foot > div:last-child { border-right: 0; }
.hero-stage .stage-foot .v {
    color: var(--text-primary); font-size: 13px;
    letter-spacing: 0; text-transform: none;
}
.hero-stage .stage-foot .v em { font-style: normal; color: var(--accent); }

.diorama {
    position: absolute; inset: 44px 0 56px 0;
    display: flex; align-items: center; justify-content: center;
}
.diorama svg { width: 100%; height: 100%; }

.const-sigil {
    opacity: 0; transform: scale(0.85);
    transform-origin: center; transform-box: fill-box;
    transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.const-sigil.is-revealed { opacity: 1; transform: none; }

.diorama .orbit {
    fill: none; stroke: var(--border); stroke-width: 1;
    stroke-dasharray: 2 4; opacity: 0.6;
}
.diorama .edge { stroke: var(--border-strong); stroke-width: 0.8; fill: none; }
.diorama .edge.live {
    stroke: var(--accent); stroke-width: 1.1;
    stroke-dasharray: 80; stroke-dashoffset: 80;
    animation: edge-flow 2.4s linear infinite;
}
.diorama .node-ring {
    fill: var(--surface-sunken); stroke: var(--border-strong); stroke-width: 1;
}
.diorama .node-ring.sensei { stroke: var(--accent); stroke-width: 1.4; }
.diorama .node-glyph { fill: none; stroke: var(--text-primary); stroke-width: 1.2; }
.diorama .sensei-glyph { stroke: var(--accent); }
.diorama .sensei-pulse {
    fill: var(--accent); opacity: 0.20;
    animation: sensei-breathe 3.2s ease-in-out infinite;
    transform-origin: 50% 50%; transform-box: fill-box;
}
.diorama .node-label {
    font-family: var(--font-mono); font-size: 8px;
    fill: var(--text-secondary);
    letter-spacing: 0.10em; text-transform: uppercase;
    text-anchor: middle;
}
@keyframes edge-flow { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes sensei-breathe {
    0%, 100% { transform: scale(1);    opacity: 0.18; }
    50%      { transform: scale(1.18); opacity: 0.32; }
}

/* Hero grid: stage on right, terminal full-width below */
.hero-grid { align-items: stretch; }
@media (min-width: 980px) {
    .hero-grid { grid-template-columns: 1.15fr 1fr; }
}
.hero-terminal-row {
    margin-top: var(--space-6);
    max-width: 1200px; margin-left: auto; margin-right: auto;
    padding: 0 var(--space-5);
}

/* Pricing micro-note (early-access lock-in) */
.price-note-inline {
    margin: 0 0 var(--space-3);
    font-family: var(--font-mono); font-size: 11px;
    color: var(--text-muted); letter-spacing: 0.02em;
    line-height: 1.5;
}
cat: /tmp/../../tmp/v11-css-append.css: No such file or directory

/* ========== BRAND MARK + SIGIL SVGS ========== */
.brand-mark { width: 26px; height: 26px; color: var(--text-primary); flex-shrink: 0; transition: transform var(--motion-base) var(--ease); }
.nav-brand:hover .brand-mark { transform: rotate(-4deg); }
.footer-brand .brand-mark { width: 22px; height: 22px; }

.sigil-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); transition: border-color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease); }
.sigil-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.sigil-card--sensei { border-top: 2px solid var(--accent); }
.sigil { width: 40px; height: 40px; color: var(--text-primary); display: flex; align-items: center; justify-content: center; transition: color var(--motion-fast) var(--ease); }
.sigil-card--sensei .sigil { color: var(--accent); }
.sigil svg { width: 100%; height: 100%; }
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 980px) { .agents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .agents-grid { grid-template-columns: 1fr; } }

/* ========== HERO HALO + GLOW + WATERMARK (v9 graft) ========== */
.hero { position: relative; overflow: hidden; }
.hero-halo { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-glow { position: absolute; top: 30%; left: 60%; width: 540px; height: 540px; background: var(--accent-faint); border-radius: 50%; filter: blur(100px); opacity: 0.85; animation: glow-drift 18s ease-in-out infinite alternate; }
@keyframes glow-drift {
  0%   { transform: translate(-20px, 0)    scale(1);   opacity: 0.7; }
  100% { transform: translate(40px, -30px) scale(1.1); opacity: 0.95; }
}
.hero-mark { position: absolute; top: 8%; right: -60px; width: 360px; height: 360px; opacity: 0.04; color: var(--text-primary); pointer-events: none; }
.hero > .hero-grid, .hero > .hero-terminal-row { position: relative; z-index: 1; }
@media (max-width: 720px) { .hero-glow { width: 320px; height: 320px; } .hero-mark { width: 200px; height: 200px; right: -80px; } }

/* ========== APPLE MAC WINDOW DOTS (color pops) ========== */
.mac-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.mac-dot--red    { background: #FF5F57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.18); }
.mac-dot--yellow { background: #FEBC2E; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.18); }
.mac-dot--green  { background: #28C840; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.18); }
/* Color the existing 3 hero terminal chrome dots */
.term-chrome > span:nth-child(1) { background: #FF5F57 !important; }
.term-chrome > span:nth-child(2) { background: #FEBC2E !important; }
.term-chrome > span:nth-child(3) { background: #28C840 !important; }

/* ========== DYNAMIC CHAT (multi-agent transcript) ========== */
.chat-titlebar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-sunken); }
.chat-title { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.10em; }
.chat-stream { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); max-height: 520px; overflow-y: auto; scroll-behavior: smooth; background: var(--bg); }
.chat-stream::-webkit-scrollbar { width: 8px; }
.chat-stream::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.msg { display: flex; gap: var(--space-3); align-items: flex-start; opacity: 0; transform: translateY(6px); transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.msg.is-revealed { opacity: 1; transform: none; }
.msg[hidden] { display: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; flex-shrink: 0; }
.avatar-you { background: var(--surface-elevated); color: var(--text-primary); border: 1px solid var(--border-strong); }
.avatar-sensei { background: var(--accent); color: #0A0A0A; }
.avatar-scout, .avatar-blueprint, .avatar-pixel, .avatar-forge, .avatar-vigil, .avatar-aegis, .avatar-cipher, .avatar-herald { background: var(--accent-faint); color: var(--accent); border: 1px solid var(--accent-faint); }
.msg-body { flex: 1; min-width: 0; }
.msg-who { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 2px; }
.msg-body p { margin: 0; font-size: var(--text-md); color: var(--text-primary); line-height: var(--leading-relaxed); }
.msg-sensei .avatar-sensei { box-shadow: 0 0 0 3px var(--accent-faint); }

/* Chat typing indicator (between messages, programmatic) */
.chat-typing { display: flex; gap: 4px; padding: 10px 14px; background: var(--surface-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); width: fit-content; align-self: flex-start; opacity: 0; transition: opacity 200ms var(--ease); }
.chat-typing.is-on { opacity: 1; }
.chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); animation: typing-pulse 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.16s; }
.chat-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing-pulse { 0%, 100% { opacity: 0.3; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }

/* ========== PROJECT BOARD (kanban window) ========== */
#project-board { background: var(--surface-sunken); }
.board-window { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; }
.board-titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-sunken); }
.board-title { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; }
.board-meta { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.board-meta-item strong { color: var(--text-primary); font-weight: 500; margin-left: 4px; }
.board-meta-item.tag-ok { color: var(--accent); }

.board-lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--border-subtle); padding: 1px; }
@media (max-width: 1080px) { .board-lanes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .board-lanes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .board-lanes { grid-template-columns: 1fr; } }
.board-lane { background: var(--surface); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); min-height: 320px; }
.lane-h { display: flex; align-items: center; gap: var(--space-2); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border-subtle); }
.lane-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.04em; }
.lane-name { font-size: var(--text-md); font-weight: 500; color: var(--text-primary); }
.lane-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); padding: 2px 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

.board-card { background: var(--surface-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); transition: border-color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease); cursor: default; }
.board-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.board-card.live { border-left: 2px solid var(--accent); }
.board-card.pending { opacity: 0.55; }
.card-tag { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.card-title { font-size: var(--text-md); color: var(--text-primary); line-height: 1.35; }
.card-foot { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); margin-top: auto; padding-top: var(--space-1); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-ok { background: var(--accent); }
.dot-live { background: var(--accent); animation: hud-blink 1.4s ease-in-out infinite; }
.dot-pending { background: var(--border-strong); }

/* ============================================================
   ROUND 3: tighten cards + v9-centered hero + board animations
   ============================================================ */

/* ----- Hero: single-column centered (v9 layout) ----- */
.hero { text-align: center; padding-top: var(--space-9); }
.hero-content { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 0 var(--space-5); display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    font-family: var(--font-mono); font-size: 11px;
    color: var(--text-secondary); letter-spacing: 0.04em;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: hud-blink 1.6s ease-in-out infinite; }
.hero-h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; max-width: 14ch; }
.hero-h1 .hero-word { display: inline-block; opacity: 0; transform: translateY(8px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); margin-right: 0.16em; }
.hero-h1 .hero-word.is-revealed { opacity: 1; transform: none; }
.hero-sub { font-size: var(--text-lg); color: var(--text-secondary); max-width: 60ch; line-height: var(--leading-relaxed); margin: 0 auto; }
.hero-ctas { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.hero-constellation { width: 100%; max-width: 720px; margin: var(--space-3) auto 0; }
.constellation-svg { width: 100%; height: 60px; display: block; }
.hero-metrics { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; align-items: center; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.hero-metric strong { color: var(--text-primary); font-weight: 500; margin-right: 4px; }
.hero-metric-sep { color: var(--border-strong); }
.hero-terminal-row { max-width: 1100px; margin: var(--space-7) auto 0; padding: 0 var(--space-5); position: relative; z-index: 1; }
.hero-meta { display: none !important; } /* old single-line meta replaced by hero-metrics */

@media (max-width: 720px) { .hero-h1 { font-size: 36px; } .hero-sub { font-size: var(--text-md); } }

/* ----- Agents stage (constellation diorama, now in agents section) ----- */
.agents-stage { position: relative; background: var(--surface); border: 1px solid var(--border); height: 360px; overflow: hidden; margin-bottom: var(--space-6); border-radius: var(--radius-md); }
.agents-stage .stage-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-sunken); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.10em; text-transform: uppercase; z-index: 2; }
.agents-stage .stage-bar .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: hud-blink 1.6s infinite; }
.agents-stage .stage-grid { position: absolute; inset: 36px 0 0 0; background-image: linear-gradient(to right, var(--border-subtle) 1px, transparent 1px), linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 80%); opacity: 0.5; pointer-events: none; }
.agents-stage .diorama { position: absolute; inset: 36px 0 0 0; display: flex; align-items: center; justify-content: center; }
.agents-stage .diorama svg { width: 100%; height: 100%; max-height: 320px; }
@media (max-width: 720px) { .agents-stage { height: 280px; } }

/* ----- Tighter agent cards (less wasted space, v9-style compact) ----- */
.sigil-card {
    padding: var(--space-4) var(--space-4) var(--space-5);
    gap: var(--space-2);
    border-radius: var(--radius);
    min-height: 0;
}
.sigil-card .sigil { width: 28px; height: 28px; margin-bottom: var(--space-2); }
.sigil-card h3 { font-size: var(--text-md); font-weight: 600; margin: 0; line-height: 1.2; }
.sigil-card p { font-size: var(--text-sm); line-height: 1.45; color: var(--text-secondary); margin: 0; }
.agents-grid { gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.agents-grid > .sigil-card { border: 0; border-radius: 0; background: var(--surface); }
.agents-grid > .sigil-card:hover { background: var(--surface-elevated); transform: none; }
.agents-grid > .sigil-card--sensei { border-top: 2px solid var(--accent); }

/* ----- Project board: liven it up ----- */
.board-card.live { animation: card-breathe 2.4s ease-in-out infinite; }
@keyframes card-breathe {
    0%, 100% { box-shadow: inset 2px 0 0 var(--accent), 0 0 0 0 var(--accent-faint); }
    50%      { box-shadow: inset 2px 0 0 var(--accent-strong), 0 0 0 4px var(--accent-faint); }
}
.board-card.is-promoting { animation: card-promote 600ms var(--ease); }
@keyframes card-promote {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); border-color: var(--accent); }
    100% { transform: scale(1); }
}
.board-meta-item.tag-ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; animation: hud-blink 1.6s ease-in-out infinite; }
.lane-count { transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.lane-count.is-active { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   ROUND 4: split layouts (hero + agents) with v9 sigil typography
   ============================================================ */

/* ----- Hero: split layout ----- */
.hero { text-align: left; padding-top: var(--space-9); padding-bottom: var(--space-7); }
.hero-content { display: none !important; } /* old centered single-column container */
.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-7);
    align-items: center;
    position: relative; z-index: 1;
}
@media (max-width: 980px) { .hero-split { grid-template-columns: 1fr; gap: var(--space-6); } }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.hero-copy .hero-h1 { max-width: none; text-align: left; }
.hero-copy .hero-sub { text-align: left; max-width: 56ch; }
.hero-copy .hero-ctas { justify-content: flex-start; }
.hero-copy .hero-metrics { justify-content: flex-start; }

/* Re-enable hero-stage (was neutralized in round 3) */
.hero-stage {
    display: block !important;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-height: 460px;
    overflow: hidden;
}
.hero-stage .stage-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-sunken); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.10em; text-transform: uppercase; z-index: 2; }
.hero-stage .stage-bar .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: hud-blink 1.6s infinite; }
.hero-stage .stage-grid { position: absolute; inset: 36px 0 56px 0; background-image: linear-gradient(to right, var(--border-subtle) 1px, transparent 1px), linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 80%); opacity: 0.5; pointer-events: none; }
.hero-stage .diorama { position: absolute; inset: 36px 0 56px 0; display: flex; align-items: center; justify-content: center; }
.hero-stage .diorama svg { width: 100%; height: 100%; }
.hero-stage .stage-foot { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--border); background: var(--surface-sunken); display: grid; grid-template-columns: repeat(3, 1fr); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-muted); }
.hero-stage .stage-foot > div { padding: 10px 12px; border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 2px; }
.hero-stage .stage-foot > div:last-child { border-right: 0; }
.hero-stage .stage-foot .v { color: var(--text-primary); font-size: 13px; letter-spacing: 0; text-transform: none; }
.hero-stage .stage-foot .v em { font-style: normal; color: var(--accent); }

/* ----- Agents: split layout ----- */
.agents-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: start;
}
@media (max-width: 980px) { .agents-split { grid-template-columns: 1fr; } }
.agents-list {
    display: flex; flex-direction: column;
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.agents-list .sigil-card {
    background: var(--surface);
    border: 0;
    border-radius: 0;
    padding: var(--space-4) var(--space-5);
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    transition: background var(--motion-fast) var(--ease);
}
.agents-list .sigil-card:hover { background: var(--surface-elevated); transform: none; }
.agents-list .sigil-card--sensei { border-left: 2px solid var(--accent); }
.agents-list .sigil-card--sensei .sigil-svg { color: var(--accent); }

.sigil-svg-wrap { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.sigil-svg { width: 28px; height: 28px; color: var(--text-secondary); transition: color var(--motion-fast) var(--ease); }
.agents-list .sigil-card:hover .sigil-svg { color: var(--text-primary); }
.sigil-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sigil-name { font-size: var(--text-md); font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.sigil-role {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-top: 1px;
    margin-bottom: var(--space-2);
    font-weight: 500;
}
.sigil-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); margin: 0; }

/* Agents-stage on the right (sticky on desktop) */
.agents-stage {
    position: sticky;
    top: calc(var(--space-7) + 60px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    height: 480px;
    overflow: hidden;
    margin-bottom: 0;
}
@media (max-width: 980px) { .agents-stage { position: static; height: 360px; } }

/* ----- Old single-column hero leftovers cleanup ----- */
.hero-content .hero-h1, .hero-content .hero-sub { text-align: center; }

/* ============================================================
   ROUND 5: hero terminal on right, dedicated constellation section,
            4+4+1 agent grid, no scribble line on terminal
   ============================================================ */

/* Neutralize old hero-stage right-panel rules */
.hero-stage { display: none !important; }

/* Hero terminal as right-side macOS window */
.hero-split .hero-terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
}
.hero-split .hero-terminal .term-chrome {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-sunken);
    flex-shrink: 0;
}
.hero-split .hero-terminal .term-chrome > span:nth-child(1),
.hero-split .hero-terminal .term-chrome > span:nth-child(2),
.hero-split .hero-terminal .term-chrome > span:nth-child(3) {
    width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
}
.hero-split .hero-terminal .term-chrome > span:nth-child(1) { background: #FF5F57; }
.hero-split .hero-terminal .term-chrome > span:nth-child(2) { background: #FEBC2E; }
.hero-split .hero-terminal .term-chrome > span:nth-child(3) { background: #28C840; }
.hero-split .hero-terminal .term-title {
    margin-left: 6px;
    font-family: var(--font-mono); font-size: 10px;
    color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase;
    flex: 1;
}
.hero-split .hero-terminal .term-code {
    margin: 0; padding: var(--space-5);
    font-family: var(--font-mono); font-size: var(--text-sm);
    color: #DDDDDD;
    line-height: var(--leading-relaxed);
    white-space: pre-wrap; word-break: break-word;
    background: #050505;
    flex: 1;
    overflow: auto;
}
.hero-split .hero-terminal .term-cursor {
    display: inline-block; width: 7px; height: 12px;
    background: var(--accent);
    position: absolute; bottom: 14px; left: var(--space-5);
    animation: term-cursor 1s steps(2) infinite;
}
@keyframes term-cursor { 50% { opacity: 0; } }

/* Hero copy (left) — unchanged from round 4, just confirm left-aligned */
.hero-copy { text-align: left; }

/* ----- Constellation section (between hero and agents) ----- */
#constellation { padding-top: var(--space-9); padding-bottom: var(--space-9); }
.constellation-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-7);
    align-items: center;
}
@media (max-width: 980px) { .constellation-split { grid-template-columns: 1fr; } }
.constellation-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.constellation-copy .section-h2 { font-size: var(--text-3xl); margin: 0; }
.constellation-copy .section-sub { max-width: 52ch; }
.constellation-bullets { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.constellation-bullets li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-md); color: var(--text-secondary); }
.constellation-bullets li .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }

.constellation-stage {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    height: 560px;
    overflow: hidden;
}
.constellation-stage .orbit { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.9; }
.constellation-stage .edge { stroke: var(--border-strong); stroke-width: 1; fill: none; opacity: 0.85; }
.constellation-stage .edge.live { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 80; stroke-dashoffset: 80; animation: edge-flow 2.4s linear infinite; opacity: 1; filter: drop-shadow(0 0 6px var(--accent-faint)); }
.constellation-stage .node-ring { fill: var(--surface-sunken); stroke: var(--text-secondary); stroke-width: 1.4; }
.constellation-stage .node-ring.sensei { stroke: var(--accent); stroke-width: 2.2; filter: drop-shadow(0 0 8px var(--accent-faint)); }
.constellation-stage .node-glyph { fill: none; stroke: var(--text-primary); stroke-width: 1.6; }
.constellation-stage .sensei-glyph { stroke: var(--accent); }
.constellation-stage .sensei-pulse { fill: var(--accent); opacity: 0.5; animation: sensei-breathe 3.2s ease-in-out infinite; transform-origin: 50% 50%; transform-box: fill-box; }
.constellation-stage .node-label { font-family: var(--font-mono); font-size: 9px; fill: var(--text-secondary); letter-spacing: 0.10em; text-transform: uppercase; text-anchor: middle; }
.constellation-meta { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }
.constellation-bullets li strong { color: var(--text-primary); font-weight: 600; }
.constellation-stage .stage-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-sunken); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.10em; text-transform: uppercase; z-index: 2; }
.constellation-stage .stage-bar .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: hud-blink 1.6s infinite; }
.constellation-stage .stage-grid { position: absolute; inset: 36px 0 0 0; background-image: linear-gradient(to right, var(--border-subtle) 1px, transparent 1px), linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 80%); opacity: 0.5; pointer-events: none; }
.constellation-stage .diorama { position: absolute; inset: 36px 0 0 0; display: flex; align-items: center; justify-content: center; }
.constellation-stage .diorama svg { width: 100%; height: 100%; max-height: 440px; }
@media (max-width: 980px) { .constellation-stage { height: 360px; } }

/* ----- Agents grid: 4+4+1 (Sensei spans full width on row 3) ----- */
.agents-split { display: block !important; } /* neutralize old split */
.agents-grid--441 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.agents-grid--441 > .sigil-card {
    background: var(--surface);
    border: 0;
    border-radius: 0;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    transition: background var(--motion-fast) var(--ease);
    transform: none;
}
.agents-grid--441 > .sigil-card:hover { background: var(--surface-elevated); transform: none; }
.agents-grid--441 > .sigil-card .sigil-svg-wrap { width: 32px; height: 32px; margin-bottom: var(--space-2); }
.agents-grid--441 > .sigil-card .sigil-svg { width: 28px; height: 28px; }
.agents-grid--441 > .sigil-card .sigil-name { font-size: var(--text-md); font-weight: 600; line-height: 1.2; display: block; }
.agents-grid--441 > .sigil-card .sigil-role {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin: 2px 0 var(--space-2);
    font-weight: 500;
    display: block;
}
.agents-grid--441 > .sigil-card .sigil-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); margin: 0; }

/* Sensei card: spans full row 3, centered content, accent border-top */
.agents-grid--441 > .sigil-card--full {
    grid-column: 1 / -1;
    border-top: 2px solid var(--accent);
    align-items: center;
    text-align: center;
    padding: var(--space-6) var(--space-7);
}
.agents-grid--441 > .sigil-card--full .sigil-svg-wrap { margin: 0 auto var(--space-2); }
.agents-grid--441 > .sigil-card--full .sigil-svg { color: var(--accent); }
.agents-grid--441 > .sigil-card--full .sigil-desc { max-width: 60ch; margin: 0 auto; }

@media (max-width: 980px) { .agents-grid--441 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .agents-grid--441 { grid-template-columns: 1fr; } }

/* ============================================================
   ROUND 6: nav brand fix · headline single-line · watermark off
            · diorama as background of agents panel
   ============================================================ */

/* Nav brand mark — explicit dimensions + display so the SVG actually shows */
.nav-brand { display: inline-flex !important; align-items: center; gap: var(--space-2); color: var(--text-primary); }
.brand-mark { display: inline-block !important; width: 28px !important; height: 28px !important; color: var(--text-primary) !important; flex-shrink: 0; vertical-align: middle; }
.brand-mark path, .brand-mark circle { vector-effect: non-scaling-stroke; }
.footer-brand { display: inline-flex; align-items: center; gap: var(--space-2); }
.footer-brand .brand-mark { width: 22px !important; height: 22px !important; }

/* Headline: one logical line "Orchestrated AI for Product Teams." */
#hero-h1.hero-h1 {
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.022em;
    max-width: none;
}
#hero-h1.hero-h1 .hero-word { margin-right: 0.22em; }
@media (max-width: 720px) { #hero-h1.hero-h1 { font-size: 32px; } }

/* Hero watermark: kill the visible rhombus that was bleeding into other sections */
.hero-mark { display: none !important; }
.hero { overflow: hidden; }

/* Agents panel with diorama as background */
#agents { position: relative; overflow: hidden; }
.agents-bg {
    position: absolute;
    top: 50%; left: 50%;
    width: 820px; height: 820px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 1;
    z-index: 0;
}
.agents-bg svg { width: 100%; height: 100%; }
.agents-bg .orbit { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.95; }
.agents-bg .edge { stroke: var(--border-strong); stroke-width: 1; fill: none; opacity: 0.85; }
.agents-bg .edge.live { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 80; stroke-dashoffset: 80; animation: edge-flow 2.4s linear infinite; opacity: 1; filter: drop-shadow(0 0 4px var(--accent-faint)); }
.agents-bg .node-ring { fill: var(--surface-sunken); stroke: var(--text-secondary); stroke-width: 1.4; }
.agents-bg .node-ring.sensei { stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 6px var(--accent-faint)); }
.agents-bg .node-glyph { fill: none; stroke: var(--text-primary); stroke-width: 1.4; opacity: 1; }
.agents-bg .sensei-glyph { stroke: var(--accent); }
.agents-bg .sensei-pulse { fill: var(--accent); opacity: 0.45; animation: sensei-breathe 3.2s ease-in-out infinite; transform-origin: 50% 50%; transform-box: fill-box; }

/* Bring section content above the bg */
#agents > .container { position: relative; z-index: 1; }

/* Cards need stronger background to read against the diorama */
.agents-grid--441 > .sigil-card { background: rgba(20, 20, 20, 0.92); backdrop-filter: blur(2px); }
.agents-grid--441 > .sigil-card:hover { background: rgba(26, 26, 26, 0.96); }
.agents-grid--441 > .sigil-card--full { background: rgba(20, 20, 20, 0.94); }
.agents-grid--441 { background: var(--border-subtle); }

@media (max-width: 720px) { .agents-bg { width: 540px; height: 540px; opacity: 0.85; } }

/* ROUND 7 — kill the agents-bg, restore agents grid 4+4 */
.agents-bg { display: none !important; }
.agents-grid--441 > .sigil-card { background: var(--surface); }
.agents-grid--441 > .sigil-card:hover { background: var(--surface-elevated); }
.agents-grid--441 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .agents-grid--441 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .agents-grid--441 { grid-template-columns: 1fr; } }

/* ============================================================
   ROUND 8: quiet both heroes so they support the page,
   not compete with it.

   - Hero terminal: lighter gray, softer borders, smaller
   - Constellation diorama: thinner strokes, no glow, no grid bg,
     reduced height, softer stage bar
   ============================================================ */

/* ---------- Hero terminal: gray-tone, softer chrome, smaller ---------- */
.hero-split .hero-terminal {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    min-height: 360px;
    border-radius: var(--radius);
}
.hero-split .hero-terminal .term-chrome {
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
    padding: 9px 12px;
}
/* Mac dots: keep the colors but make them slightly smaller and softer */
.hero-split .hero-terminal .term-chrome > span:nth-child(1),
.hero-split .hero-terminal .term-chrome > span:nth-child(2),
.hero-split .hero-terminal .term-chrome > span:nth-child(3) {
    width: 10px; height: 10px;
    opacity: 0.85;
}
.hero-split .hero-terminal .term-title {
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.10em;
}
.hero-split .hero-terminal .term-code {
    background: var(--surface-sunken);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.55;
    padding: var(--space-4) var(--space-5);
}
.hero-split .hero-terminal .term-cursor {
    background: var(--accent);
    opacity: 0.7;
    width: 6px; height: 11px;
    bottom: 18px;
}

/* Suppress hud-frame accent corner ticks ON the hero terminal only.
   Keep them on stronger surfaces (cost gauge, sensei chat, project board). */
.hero-split .hero-terminal.hud-frame::before,
.hero-split .hero-terminal.hud-frame::after {
    border-color: var(--border-subtle);
    opacity: 0.5;
}

/* ---------- Constellation: quieter, thinner, less glow ---------- */
.constellation-stage {
    height: 460px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}
.constellation-stage .stage-bar {
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 10px;
    padding: 9px 12px;
}
.constellation-stage .stage-bar .led {
    width: 6px; height: 6px;
    opacity: 0.65;
}
/* Drop the grid backdrop — was adding visual noise */
.constellation-stage .stage-grid { display: none; }

/* Edges: thinner, no glow */
.constellation-stage .orbit { stroke: var(--border); opacity: 0.55; stroke-width: 0.8; }
.constellation-stage .edge { stroke: var(--border); stroke-width: 0.7; opacity: 0.65; }
.constellation-stage .edge.live {
    stroke: var(--accent);
    stroke-width: 1;
    opacity: 0.85;
    filter: none;
}

/* Nodes: thinner outlines, no glow on Sensei */
.constellation-stage .node-ring {
    stroke: var(--border-strong);
    stroke-width: 1;
    fill: var(--surface);
}
.constellation-stage .node-ring.sensei {
    stroke: var(--accent);
    stroke-width: 1.4;
    filter: none;
}
.constellation-stage .node-glyph { stroke-width: 1.1; opacity: 0.8; }
.constellation-stage .sensei-glyph { opacity: 1; }
.constellation-stage .sensei-pulse { opacity: 0.22; }
.constellation-stage .node-label {
    font-size: 8px;
    fill: var(--text-muted);
    letter-spacing: 0.08em;
}

/* Suppress hud-frame corner ticks on constellation stage too */
.constellation-stage.hud-frame::before,
.constellation-stage.hud-frame::after {
    border-color: var(--border-subtle);
    opacity: 0.5;
}

/* Tighten the section so it sits closer to the hero */
#constellation { padding-top: var(--space-7); padding-bottom: var(--space-7); }

/* ---------- Constellation copy: less weight on bullets ---------- */
.constellation-bullets li { color: var(--text-muted); font-size: var(--text-sm); }
.constellation-bullets li strong { color: var(--text-secondary); font-weight: 500; }
.constellation-bullets li .dot { background: var(--text-muted); width: 5px; height: 5px; }
.constellation-meta { border-top-color: var(--border-subtle); margin-top: var(--space-3); padding-top: var(--space-3); }
