﻿/* ============================================================
   OWLINQ - Intelligence Ops design system
   Shared site styles (tokens, base, nav, hero, sections)
   ============================================================ */

/* ---- Tokens ---- */
:root {
    --bg: #0a0c10;
    --bg-2: #0c0f14;
    --panel: rgba(255, 255, 255, 0.022);
    --panel-2: rgba(255, 255, 255, 0.04);
    --panel-3: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);

    --fg: #f2efe8;
    --fg-dim: #c9c7c1;
    --muted: #8b9099;
    --muted-2: #5d626b;

    /* accent (gold default) */
    --accent: #d4a44c;
    --accent-2: #e6b860;
    --accent-ink: #0a0c10;
    --accent-soft: rgba(212, 164, 76, 0.12);
    --accent-line: rgba(212, 164, 76, 0.32);
    --accent-glow: rgba(212, 164, 76, 0.30);

    /* status */
    --risk: #f0716f;
    --risk-soft: rgba(240, 113, 111, 0.14);
    --risk-line: rgba(240, 113, 111, 0.30);
    --expand: #5ecfb0;
    --expand-soft: rgba(94, 207, 176, 0.14);
    --expand-line: rgba(94, 207, 176, 0.30);

    --nav-h: 64px;
    --maxw: 1200px;
    --radius: 14px;

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

:root[data-accent="cyan"] {
    --accent: #3fd0e6;
    --accent-2: #6fe0f0;
    --accent-ink: #04161a;
    --accent-soft: rgba(63, 208, 230, 0.12);
    --accent-line: rgba(63, 208, 230, 0.34);
    --accent-glow: rgba(63, 208, 230, 0.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

::selection { background: var(--accent-soft); color: var(--fg); }

/* Faint global texture: vignette + dotted grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(212, 164, 76, 0.05), transparent 55%),
        radial-gradient(80% 50% at 100% 0%, rgba(255, 255, 255, 0.025), transparent 60%);
    transition: background .4s ease;
}
:root[data-accent="cyan"] body::before {
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(63, 208, 230, 0.06), transparent 55%),
        radial-gradient(80% 50% at 100% 0%, rgba(255, 255, 255, 0.025), transparent 60%);
}

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

.relative { position: relative; z-index: 1; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.eyebrow::before {
    content: "";
    width: 10px;
    height: 1px;
    background: var(--accent);
    opacity: .7;
}
.eyebrow.center::before { display: none; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }

.display, .h2, .h3, .hero .display {
    font-family: var(--font-display, var(--sans));
}

.display {
    font-size: clamp(42px, 6.6vw, 82px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.98;
}
.h2 { font-size: clamp(28px, 3.8vw, 48px); letter-spacing: -0.028em; }
.h3 { font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -0.02em; }

.lead {
    font-size: clamp(17px, 1.5vw, 20px);
    color: var(--fg-dim);
    line-height: 1.55;
}
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }

.section-tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-2);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-2);
    box-shadow: 0 0 0 1px var(--accent-2), 0 14px 38px -10px var(--accent-glow);
}

.btn-ghost {
    background: var(--panel-2);
    border-color: var(--line-2);
    color: var(--fg);
}
.btn-ghost:hover { background: var(--panel-3); border-color: var(--accent-line); color: var(--fg); }

.btn-arrow svg { width: 15px; height: 15px; transition: transform .2s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

.btn-lg { padding: 15px 24px; font-size: 16px; }

/* ============================================================
   TOP NAV
   ============================================================ */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 28px;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}
.topbar.scrolled { border-bottom-color: var(--line); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -0.02em;
}
.brand .mark { width: 26px; height: 26px; flex-shrink: 0; }

.navlinks {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}
.navlinks > a, .nav-dd > button {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--fg-dim);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}
.navlinks > a:hover, .nav-dd > button:hover { color: var(--fg); background: var(--panel-2); }
.navlinks a.active { color: var(--accent); }

.nav-dd { position: relative; }
.nav-dd > button { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd > button::after {
    content: "";
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .6;
    transition: transform .2s ease;
}
.nav-dd-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    padding: 8px;
    background: color-mix(in srgb, var(--bg-2) 96%, rgba(0,0,0,0.8));
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dd:hover .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd:hover > button::after { transform: rotate(225deg) translateY(2px); }
.nav-dd-menu a {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 10px 11px;
    border-radius: 9px;
    transition: background .15s ease;
}
.nav-dd-menu a:hover { background: var(--panel-2); }
.dd-ico {
    width: 30px; height: 30px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    display: grid;
    place-items: center;
    color: var(--accent);
}
.dd-ico svg { width: 15px; height: 15px; }
.dd-txt b { display: block; font-size: 14px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.dd-txt span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 14.5px; color: var(--fg-dim); padding: 8px 6px; }
.nav-login:hover { color: var(--fg); }

.hamburger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero.scene{
    min-height: 100vh;
}
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 18vh) 0 18vh;
    overflow: hidden;
}
#watch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(120% 90% at 50% 30%, #000 35%, transparent 80%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}
.hero .display { margin: 22px auto 0; max-width: 14ch; }
.hero .display .soft { color: var(--muted); }
.hero-sub {
    margin: 26px auto 0;
    max-width: 60ch;
    font-size: clamp(17px, 1.7vw, 21px);
    color: var(--fg-dim);
    line-height: 1.55;
}
.hero-actions {
    margin-top: 38px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 26px;
}
.hero-stat {
    padding: 0 30px;
    text-align: center;
    position: relative;
}
.hero-stat + .hero-stat::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 1px;
    background: var(--line);
}
.hero-stat .num {
    font-family: var(--mono);
    font-size: 26px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.02em;
}
.hero-stat .lbl {
    font-size: 13px;
    color: var(--muted);
    margin-top: 3px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { position: relative; z-index: 1; padding: 110px 0; }
.section-sm { padding: 80px 0; }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .h2 { margin-bottom: 0; }
.section-head .lead { margin-top: 20px; }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* generic card */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-2); background: var(--panel-2); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* problem stat cards */
.statcard { padding: 30px; }
.statcard .big {
    font-family: var(--mono);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1;
}
.statcard p { margin: 16px 0 0; color: var(--fg-dim); font-size: 16px; }
.statcard.plain .big { color: var(--fg); }

/* feature row icon cards */
.feat .ic {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    display: grid; place-items: center;
    color: var(--accent);
    margin-bottom: 18px;
}
.feat .ic svg { width: 19px; height: 19px; }
.feat h3 { font-size: 18px; margin-bottom: 9px; letter-spacing: -0.01em; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ============================================================
   PIPELINE (how it works)
   ============================================================ */
.pipeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 48px;
    counter-reset: step;
}
.pstep {
    position: relative;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    overflow: hidden;
}
.pstep::before {
    counter-increment: step;
    content: "0" counter(step);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: .1em;
}
.pstep h4 { margin: 12px 0 7px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.pstep p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.pstep .bar {
    position: absolute;
    left: 0; bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: .4;
}

/* ============================================================
   SURFACES (Watch / Ask / Act)
   ============================================================ */
.surfaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.surface {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: border-color .2s ease, background .2s ease;
    position: relative;
    overflow: hidden;
}
.surface:hover { border-color: var(--accent-line); background: var(--panel-2); }
.surface .verb {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}
.surface h3 { margin: 14px 0 0; font-size: 22px; letter-spacing: -0.02em; }
.surface .prod { font-size: 13px; color: var(--muted-2); font-family: var(--mono); margin-top: 4px; }
.surface p { color: var(--fg-dim); font-size: 15px; line-height: 1.55; margin: 14px 0 22px; }
.surface .more {
    margin-top: auto;
    font-size: 14px;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}
.surface .more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.surface:hover .more svg { transform: translateX(3px); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    position: relative;
    border: 1px solid var(--accent-line);
    border-radius: 22px;
    padding: 64px 48px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(90% 140% at 50% 0%, var(--accent-soft), transparent 60%),
        var(--panel);
}
.cta-band .h2 { max-width: 16ch; margin: 0 auto; }
.cta-band .lead { max-width: 52ch; margin: 18px auto 0; }
.cta-band .hero-actions { margin-top: 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    padding: 64px 0 36px;
    /*margin-top: 40px;*/
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
.foot-brand .brand { font-size: 20px; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 30ch; line-height: 1.6; }
.foot-col h5 {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin: 0 0 16px;
    font-weight: 500;
}
.foot-col a { display: block; color: var(--fg-dim); font-size: 14.5px; padding: 6px 0; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted-2);
    font-size: 13px;
}
.foot-bottom .mono { font-family: var(--mono); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .navlinks { display: none; }
    .nav-cta .nav-login { display: none; }
    .hamburger {
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: 0;
        cursor: pointer;
        padding: 8px;
    }
    .hamburger span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: .25s; }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .grid-3, .surfaces { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .pipeline { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .section { padding: 72px 0; }
    .hero-stat { padding: 12px 20px; }
    .hero-stat + .hero-stat::before { display: none; }
    .pipeline { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 44px 24px; }
}

/* ---- Mobile menu ---- */
.mobile-menu {
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 999;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(16px);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: 19px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--fg-dim);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 18px; }

/* ============================================================
   SCENES - navigation feel between top sections
   ============================================================ */
.scene { scroll-margin-top: var(--nav-h); }

html.snap { scroll-snap-type: y proximity; }
@media (min-width: 900px) {
    html.snap .scene { scroll-snap-align: start; }
}

/* Full-viewport "screens" for the first three scenes */
.scene-screen {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.scene-screen.hero { min-height: 100svh; }
@media (max-width: 560px) {
    .scene-screen { min-height: auto; }
}

/* Scroll hint in hero */
.scroll-hint {
    position: absolute;
    left: 50%; bottom: 16px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .65;
    transition: opacity .4s ease;
}
.scroll-hint.hide { opacity: 0; pointer-events: none; }
@media (max-height: 840px) { .scroll-hint { display: none; } }
.scroll-hint svg { width: 16px; height: 16px; animation: chevBob 1.9s ease-in-out infinite; }
@keyframes chevBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---- Scene nav rail (right) ---- */
.scene-nav {
    position: fixed;
    right: 22px; top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
@media (max-width: 1200px) { .scene-nav { display: none; } }
.scene-nav button {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-direction: row-reverse;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.scene-nav .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: transparent;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
    flex-shrink: 0;
}
.scene-nav .lbl {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-dim);
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .25s ease, transform .25s ease, color .25s ease;
    white-space: nowrap;
}
.scene-nav button:hover .lbl { opacity: 1; transform: none; }
.scene-nav button:hover .dot { border-color: var(--accent); }
.scene-nav button.active .dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: scale(1.25);
}
.scene-nav button.active .lbl { opacity: 1; transform: none; color: var(--accent); }

/* ---- Console "boot" reveal ---- */
.reveal.boot-reveal {
    opacity: 0;
    transform: translateY(32px) scale(.99);
    clip-path: inset(0 0 12% 0 round 16px);
    transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1), clip-path .9s cubic-bezier(.2, .7, .2, 1);
}
.reveal.boot-reveal.in {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0 round 16px);
}
.console.boot-reveal::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 45%;
    background: linear-gradient(180deg, var(--accent-soft), transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 6;
}
.console.boot-reveal.in::after { animation: bootScan 1.15s ease .15s 1; }
@keyframes bootScan {
    0% { opacity: 0; transform: translateY(-110%); }
    25% { opacity: .7; }
    100% { opacity: 0; transform: translateY(240%); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal.boot-reveal { opacity: 1; transform: none; clip-path: none; transition: none; }
    .console.boot-reveal.in::after { animation: none; }
    .scroll-hint svg { animation: none; }
}
/* ============================================================
   OWLINQ - Product widget styles
   Intelligence Console (feed) + Cortex chat
   ============================================================ */

/* ---- App console frame ---- */
.console {
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 40%),
        color-mix(in srgb, var(--bg-2) 88%, transparent);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    backdrop-filter: blur(8px);
    position: relative;
}
.console-glow {
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .5;
}

.console-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.014);
}
.console-bar .brand { font-size: 15px; gap: 8px; }
.console-bar .brand .mark { width: 20px; height: 20px; }
.console-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--expand);
    box-shadow: 0 0 8px var(--expand);
    animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.console-live {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--expand);
}
.console-bar .spacer { margin-left: auto; }
.console-clock {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.console-body {
    display: grid;
    grid-template-columns: 232px 1fr;
    min-height: 460px;
}

/* ---- Left rail: accounts ---- */
.rail {
    border-right: 1px solid var(--line);
    padding: 14px 12px;
    background: rgba(0, 0, 0, 0.18);
}
.rail-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding: 4px 8px 10px;
    display: flex;
    justify-content: space-between;
}
.acct {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s ease;
}
.acct:hover { background: var(--panel-2); }
.acct.active { background: var(--panel-3); }
.acct-logo {
    width: 26px; height: 26px;
    border-radius: 7px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--fg);
    background: var(--panel-3);
    border: 1px solid var(--line-2);
}
.acct-meta { flex: 1; min-width: 0; }
.acct-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acct-sub { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.acct-pip {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pip-risk { background: var(--risk); box-shadow: 0 0 7px var(--risk-line); }
.pip-expand { background: var(--expand); box-shadow: 0 0 7px var(--expand-line); }
.pip-watch { background: var(--accent); box-shadow: 0 0 7px var(--accent-line); }

/* ---- Feed column ---- */
.feed-col { display: flex; flex-direction: column; min-width: 0; }
.feed-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.feed-head .ft {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.feed-chips { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.chip {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--panel-2);
    color: var(--muted);
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
}
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.chip.active.risk { background: var(--risk); border-color: var(--risk); color: #1a0a0a; }
.chip.active.expand { background: var(--expand); border-color: var(--expand); color: #04201a; }

.feed-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 520px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
}
.feed-scroll::-webkit-scrollbar { width: 8px; }
.feed-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }

/* signal card */
.signal {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-2);
    padding: 14px 15px;
    transition: border-color .2s ease, background .2s ease;
}
.signal:hover { border-color: var(--line-2); }
.signal.fresh { animation: signalIn .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes signalIn {
    from { opacity: 0; transform: translateY(-10px) scale(.98); box-shadow: 0 0 0 1px var(--accent-line); }
    to { opacity: 1; transform: none; }
}
.signal-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}
.sig-logo {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: grid; place-items: center;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    background: var(--panel-3);
    border: 1px solid var(--line-2);
    flex-shrink: 0;
}
.sig-co { font-size: 12px; font-weight: 600; color: var(--fg); }
.sig-time { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-left: auto; }
.badge {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}
.badge.risk { background: var(--risk-soft); color: var(--risk); border: 1px solid var(--risk-line); }
.badge.expand { background: var(--expand-soft); color: var(--expand); border: 1px solid var(--expand-line); }
.badge.watch { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }

.sig-title { font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 6px; }
.sig-evidence { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-bottom: 11px; }

.sig-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sig-source {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.sig-source::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.sig-score {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-dim);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.score-bar {
    width: 54px; height: 4px;
    border-radius: 3px;
    background: var(--line-2);
    overflow: hidden;
}
.score-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.score-bar.risk i { background: var(--risk); }
.score-bar.expand i { background: var(--expand); }

/* expand action */
.sig-action {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-2);
    display: none;
    animation: fadeUp .3s ease;
}
.signal.open .sig-action { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.action-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.action-draft {
    font-size: 13.5px;
    color: var(--fg-dim);
    line-height: 1.55;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 9px;
    padding: 11px 13px;
}
.action-draft strong { color: var(--fg); font-weight: 600; }
.action-btns { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.mini-btn {
    font-family: var(--sans);
    font-size: 12.5px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: var(--panel-2);
    color: var(--fg-dim);
    cursor: pointer;
    transition: all .15s ease;
}
.mini-btn:hover { border-color: var(--accent-line); color: var(--fg); }
.mini-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.mini-btn.primary:hover { background: var(--accent-2); }
.sig-expand-hint {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted-2);
    cursor: pointer;
    user-select: none;
    transition: color .15s;
}
.sig-expand-hint:hover { color: var(--accent); }
.signal.open .sig-expand-hint { color: var(--accent); }

/* ============================================================
   CORTEX CHAT
   ============================================================ */
.cortex {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 560px;
}
.cx-context {
    border-right: 1px solid var(--line);
    padding: 18px 16px;
    background: rgba(0, 0, 0, 0.18);
    overflow-y: auto;
}
.cx-context .rail-label { padding: 0 0 14px; }
.cx-acct-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.cx-acct-head .acct-logo { width: 36px; height: 36px; font-size: 13px; }
.cx-acct-head b { font-size: 15px; display: block; letter-spacing: -0.01em; }
.cx-acct-head span { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.cx-sig-list { display: flex; flex-direction: column; gap: 8px; }
.cx-sig {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 11px;
    background: var(--panel);
}
.cx-sig .cxs-top { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.cx-sig .dot { width: 6px; height: 6px; border-radius: 50%; }
.cx-sig .cxs-cat { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.cx-sig .cxs-date { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.cx-sig p { margin: 0; font-size: 12.5px; color: var(--fg-dim); line-height: 1.45; }

.cx-main { display: flex; flex-direction: column; min-width: 0; }
.cx-thread {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 540px;
}
.cx-welcome { text-align: center; margin: auto; max-width: 460px; padding: 20px; }
.cx-welcome .orb {
    width: 60px; height: 60px;
    border-radius: 16px;
    margin: 0 auto 18px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    display: grid; place-items: center;
    color: var(--accent);
}
.cx-welcome .orb svg { width: 28px; height: 28px; }
.cx-welcome h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
.cx-welcome p { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; line-height: 1.55; }
.cx-suggestions { display: grid; gap: 9px; text-align: left; }
.cx-sug {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px 14px;
    background: var(--panel);
    cursor: pointer;
    font-size: 13.5px;
    color: var(--fg-dim);
    transition: all .15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cx-sug:hover { border-color: var(--accent-line); background: var(--panel-2); color: var(--fg); }
.cx-sug::before {
    content: "›";
    color: var(--accent);
    font-family: var(--mono);
    font-size: 16px;
}

.msg { display: flex; gap: 13px; max-width: 100%; }
.msg .avatar {
    width: 30px; height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.msg.user { flex-direction: row-reverse; }
.msg.user .avatar { background: var(--panel-3); border: 1px solid var(--line-2); color: var(--fg-dim); font-family: var(--mono); font-size: 12px; }
.msg.cx .avatar { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.msg.cx .avatar svg { width: 16px; height: 16px; }
.bubble {
    border-radius: 13px;
    padding: 13px 16px;
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 78%;
}
.msg.user .bubble { background: var(--panel-3); border: 1px solid var(--line-2); color: var(--fg); }
.msg.cx .bubble { background: var(--panel); border: 1px solid var(--line); color: var(--fg-dim); }
.msg.cx .bubble strong { color: var(--fg); font-weight: 600; }
.msg.cx .bubble .cite {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 5px;
    padding: 1px 6px;
    white-space: nowrap;
}
.msg.cx .bubble p { margin: 0 0 10px; }
.msg.cx .bubble p:last-child { margin-bottom: 0; }
.msg.cx .bubble ul { margin: 0 0 10px; padding-left: 18px; }
.msg.cx .bubble li { margin-bottom: 5px; }

.typing { display: inline-flex; gap: 5px; align-items: center; padding: 4px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: tBounce 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.cx-input {
    border-top: 1px solid var(--line);
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}
.cx-input input {
    flex: 1;
    background: var(--panel-2);
    border: 1px solid var(--line-2);
    border-radius: 11px;
    padding: 12px 15px;
    color: var(--fg);
    font-family: var(--sans);
    font-size: 14.5px;
    outline: none;
    transition: border-color .2s ease;
}
.cx-input input:focus { border-color: var(--accent-line); }
.cx-input input::placeholder { color: var(--muted-2); }
.cx-send {
    width: 44px; height: 44px;
    border-radius: 11px;
    border: 0;
    background: var(--accent);
    color: var(--accent-ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: background .2s ease, opacity .2s;
}
.cx-send:hover { background: var(--accent-2); }
.cx-send:disabled { opacity: .4; cursor: not-allowed; }
.cx-send svg { width: 18px; height: 18px; }

.cx-disclaimer {
    text-align: center;
    font-size: 11.5px;
    color: var(--muted-2);
    padding: 0 16px 12px;
    font-family: var(--mono);
}

/* ============================================================
   INTEGRATIONS strip
   ============================================================ */
.int-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.int-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    font-size: 14.5px;
    color: var(--fg-dim);
    transition: border-color .2s ease, color .2s ease;
}
.int-pill:hover { border-color: var(--accent-line); color: var(--fg); }
.int-pill .glyph {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 12px;
    font-family: var(--mono);
    background: var(--panel-3);
    border: 1px solid var(--line-2);
}

/* ============================================================
   RESPONSIVE for widgets
   ============================================================ */
@media (max-width: 820px) {
    .console-body { grid-template-columns: 1fr; }
    .rail { display: none; }
    .cortex { grid-template-columns: 1fr; }
    .cx-context { display: none; }
}
/* Owlinq website homepage overrides */
h1, .display { font-size: clamp(42px, 6.6vw, 72px); }
h2, .h2 { font-size: clamp(28px, 3.8vw, 42px); }
.section-alt { background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--panel-2);
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.theme-toggle svg { width: 16px; height: 16px; }
:root:not([data-theme='light']) .theme-toggle .moon-icon { display: none; }
:root[data-theme='light'] .theme-toggle .sun-icon { display: none; }

/* CTA inline form sizing/styling */
#demo .lead-form {
    align-items: stretch;
}

#demo .lead-form .form-control {
    padding: 12px 16px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--fg);
}

#demo .lead-form .form-control::placeholder {
    color: var(--muted);
}

/* ============================================================
   HOMEPAGE V2 - Section & Component Additions
   ============================================================ */

/* ---- Narrow container (problem + reframe) ---- */
.container-narrow { max-width: 780px; }

/* ---- Utility ---- */
.risk-text { color: var(--risk); }
.redact { color: var(--muted-2); letter-spacing: 0.04em; }

/* ============================================================
   BEAT CARDS - Section 02 Problem
   ============================================================ */
.beat-card {
    margin-top: 28px;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: border-color .2s ease;
}
.beat-card:hover { border-color: var(--line-2); }

.beat-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 14px;
}
.beat-quote {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-left: 3px solid var(--accent-line);
    background: var(--panel-2);
    border-radius: 0 8px 8px 0;
    font-size: 17px;
    color: var(--fg);
    font-style: italic;
    line-height: 1.55;
}
.beat-body { margin: 0 0 16px; color: var(--fg-dim); font-size: 16px; }
.beat-close { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; font-style: italic; }
.beat-punch {
    margin: 10px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.01em;
}

/* NRR sparkline */
.nrr-vis {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.nrr-spark {
    flex: 1;
    height: 44px;
    display: block;
}
.nrr-val {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.nrr-from { color: var(--expand); }
.nrr-to { color: var(--risk); }

/* Signal list (beat 02) */
.sig-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.sig-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 9px;
    border: 1px solid var(--line);
    border-left-width: 3px;
    background: var(--panel-2);
    font-size: 14px;
    color: var(--fg-dim);
    line-height: 1.5;
    flex-wrap: wrap;
}
.sig-row--expand { border-left-color: var(--expand); }
.sig-row--risk { border-left-color: var(--risk); }
.sig-ts {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted-2);
    white-space: nowrap;
    padding-top: 2px;
    flex-shrink: 0;
    min-width: 32px;
}
.sig-body { flex: 1; }
.sig-badge { flex-shrink: 0; }

/* Gap timeline (beat 03) */
.gap-vis {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 18px 0 0;
    padding: 14px 18px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.gap-ev {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.gap-t {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}
.gap-age {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
}
.gap-age--late { color: var(--risk); }
.gap-line {
    flex: 1;
    height: 2px;
    background: var(--line-2);
    margin: 0 14px;
    position: relative;
    overflow: visible;
}
.gap-fill {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, var(--risk) 0, var(--risk) 6px, transparent 6px, transparent 12px);
    opacity: 0.5;
}

/* Cause chips (beat 04) */
.cause-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.cause-chip {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--risk-soft);
    border: 1px solid var(--risk-line);
    color: var(--risk);
}

/* ============================================================
   ANALOGY TABLE - Section 03 Reframe
   ============================================================ */
.analogy-table {
    margin-top: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.at-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.4fr;
    border-bottom: 1px solid var(--line);
}
.at-row:last-child { border-bottom: none; }
.at-cell {
    padding: 16px 20px;
    border-right: 1px solid var(--line);
    font-size: 15px;
    color: var(--fg-dim);
    line-height: 1.5;
}
.at-cell:last-child { border-right: none; }
.at-head .at-cell {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding: 12px 20px;
    background: var(--panel);
}
.at-rowlabel {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--panel);
    padding-top: 20px;
}
.at-blind {
    color: var(--risk) !important;
    font-weight: 600;
    background: var(--risk-soft);
    font-size: 16px;
}

/* ============================================================
   OPERATING LOOP - Section 04 Platform
   ============================================================ */
.loop-grid {
    margin: 36px 0 0;
    max-width: none;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.loop-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transition: background .2s ease;
}
.loop-row:last-child { border-bottom: none; }
.loop-row:hover { background: var(--panel-2); }
.loop-sec {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--muted);
    border-right: 1px solid var(--line);
}
.loop-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
    border-right: 1px solid var(--line);
    padding: 16px 0;
    height: 100%;
}
.loop-owl {
    padding: 16px 20px;
    font-size: 14.5px;
    color: var(--fg);
    background: color-mix(in srgb, var(--accent-soft) 50%, transparent);
}
.loop-owl strong { color: var(--accent); }
.loop-row--soon .loop-sec,
.loop-row--soon .loop-owl { opacity: 0.55; }
.soon-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    border: 1px solid var(--line-2);
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Sense. Understand. Act. reveal */
.sense-head {
    line-height: 1.1;
}
.sense-verb {
    display: inline;
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(.2,.7,.2,1);
}
.sense-verb.in { opacity: 1; }
.sense-verb + .sense-verb { margin-left: 0.2em; }

/* ============================================================
   EVENT PANEL - Section 05 How it works
   ============================================================ */
.evt-panel { padding: 0; }
.evt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    font-size: 14px;
    flex-wrap: wrap;
}
.evt-row:last-child { border-bottom: none; }
.evt-row--risk { border-left-color: var(--risk); background: color-mix(in srgb, var(--risk-soft) 40%, transparent); }
.evt-row--expand { border-left-color: var(--expand); background: color-mix(in srgb, var(--expand-soft) 40%, transparent); }
.evt-row--mixed { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.evt-row--neutral { border-left-color: var(--line-2); }
.evt-t {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted-2);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 48px;
}
.evt-body { flex: 1; color: var(--fg-dim); line-height: 1.45; min-width: 160px; }

.pattern-callout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
    border-top: 1px solid var(--accent-line);
    font-size: 13.5px;
    color: var(--fg-dim);
    line-height: 1.55;
}
.pattern-star {
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Stagger event rows once the chart enters viewport */
.how-chart.reveal .evt-row,
.how-chart.reveal .pattern-callout {
    opacity: 0;
    transform: translateY(12px);
}
.how-chart.reveal.in .evt-row,
.how-chart.reveal.in .pattern-callout {
    animation: chartRowIn .65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.how-chart.reveal.in .evt-row:nth-child(1) { animation-delay: .05s; }
.how-chart.reveal.in .evt-row:nth-child(2) { animation-delay: .13s; }
.how-chart.reveal.in .evt-row:nth-child(3) { animation-delay: .21s; }
.how-chart.reveal.in .evt-row:nth-child(4) { animation-delay: .29s; }
.how-chart.reveal.in .evt-row:nth-child(5) { animation-delay: .37s; }
.how-chart.reveal.in .pattern-callout { animation-delay: .5s; }

@keyframes chartRowIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   AGENT SWARM - Section 05
   ============================================================ */
.agent-swarm {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.swarm-cluster {
    padding: 16px 14px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.swarm-cluster:last-child { border-right: none; }
.cluster-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2px;
    display: block;
}
.agent-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    transition: border-color .2s ease, background .2s ease;
}
.agent-chip:hover { border-color: var(--accent-line); background: var(--panel-2); }
.agent-chip--accent {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}
.ac-role {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.ac-action {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.4;
}

.swarm-footer {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
    text-align: center;
    margin: 14px 0 0;
}

/* ============================================================
   BEFORE / AFTER PANEL - Section 05
   ============================================================ */
.ba-panel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.ba-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    gap: 6px;
}
.ba-before { background: color-mix(in srgb, var(--risk-soft) 30%, transparent); }
.ba-after  { background: color-mix(in srgb, var(--expand-soft) 30%, transparent); }
.ba-arrow {
    font-size: 22px;
    color: var(--accent);
    padding: 0 18px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    align-self: stretch;
    display: flex;
    align-items: center;
}
.ba-label {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.ba-num {
    font-family: var(--mono);
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.ba-num--bad { color: var(--risk); }
.ba-num--good { color: var(--expand); }
.ba-sub { font-size: 13px; color: var(--muted); }

/* ============================================================
   CONVERGENCE TIMELINE - Section 06 Why now
   ============================================================ */
.converge-timeline {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 44px auto 0;
    max-width: 780px;
    padding: 28px 32px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.ct-line {
    position: absolute;
    top: 50px;
    left: 48px;
    right: 48px;
    height: 1px;
    background: var(--line-2);
    pointer-events: none;
}

/* Draw timeline and pop points when the timeline enters viewport */
.why-chart.reveal .ct-line {
    transform-origin: left center;
    transform: scaleX(0);
}
.why-chart.reveal.in .ct-line {
    animation: timelineDraw .9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.why-chart.reveal .ct-item {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}
.why-chart.reveal.in .ct-item {
    animation: timelineItemIn .55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.why-chart.reveal.in .ct-item:nth-of-type(2) { animation-delay: .15s; }
.why-chart.reveal.in .ct-item:nth-of-type(3) { animation-delay: .25s; }
.why-chart.reveal.in .ct-item:nth-of-type(4) { animation-delay: .35s; }
.why-chart.reveal.in .ct-item:nth-of-type(5) { animation-delay: .45s; }
.why-chart.reveal.in .ct-item:nth-of-type(6) { animation-delay: .58s; }

@keyframes timelineDraw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes timelineItemIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ct-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.ct-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--ct-c, var(--accent));
    box-shadow: 0 0 10px var(--ct-c, var(--accent-glow));
    border: 2px solid color-mix(in srgb, var(--ct-c, var(--accent)) 35%, transparent);
    flex-shrink: 0;
}
.ct-year {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    order: -1;
}
.ct-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--muted-2);
    text-align: center;
    max-width: 72px;
    line-height: 1.45;
}
.ct-now .ct-dot--now {
    width: 17px;
    height: 17px;
    background: var(--accent);
    border-color: var(--accent-line);
    box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px var(--accent-glow);
    animation: ctPulse 2.2s ease-in-out infinite;
}
@keyframes ctPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px var(--accent-glow); }
    50%       { box-shadow: 0 0 0 7px var(--accent-soft), 0 0 26px var(--accent-glow); }
}
.ct-year--now {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}
.ct-label--now {
    color: var(--accent);
    font-weight: 500;
}

/* ============================================================
   SHIFT CARDS - Section 06
   ============================================================ */
.shift-grid { gap: 18px; }
.shift-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: border-color .2s ease, background .2s ease;
}
.shift-card:hover { border-color: var(--line-2); background: var(--panel-2); }
.shift-head-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.shift-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
}
.shift-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.shift-h3 {
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    color: var(--fg);
    line-height: 1.2;
}
.shift-card p {
    font-size: 15px;
    color: var(--fg-dim);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   MANIFESTO CARD - Section 06
   ============================================================ */
.manifesto-card {
    margin-top: 48px;
    padding: 60px 48px;
    border-radius: 22px;
    text-align: center;
    background:
        radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
        var(--panel);
    border: 1px solid var(--accent-line);
    position: relative;
    overflow: hidden;
}
.manifesto-card::before {
    content: '';
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}
.manifesto-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-2);
    display: block;
    margin-bottom: 20px;
}
.manifesto-setup {
    font-size: clamp(17px, 1.8vw, 21px);
    color: var(--fg-dim);
    line-height: 1.7;
    margin: 0 0 24px;
}
.manifesto-claim {
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--accent);
    margin: 0 0 20px;
}
.manifesto-sub {
    font-size: 16px;
    color: var(--muted);
    margin: 0;
    font-style: italic;
}

/* ============================================================
   JOIN FORM CARD - Section 07
   ============================================================ */
.join-form-card {
    position: relative;
    max-width: 560px;
    margin: 48px auto 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 40px 38px 32px;
    background: var(--panel);
}
.jfc-tag {
    position: absolute;
    top: 0;
    left: 32px;
    transform: translateY(-50%);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--bg);
    border: 1px solid var(--accent-line);
    border-radius: 6px;
    padding: 4px 12px;
    white-space: nowrap;
}
:root[data-theme='light'] .jfc-tag { background: var(--bg); }
.jfc-field { margin-bottom: 14px; }
.jfc-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--panel-2);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    color: var(--fg);
    font-family: var(--sans);
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease;
    box-sizing: border-box;
}
.jfc-input:focus { border-color: var(--accent-line); }
.jfc-input::placeholder { color: var(--muted-2); }
.jfc-textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.jfc-btn { width: 100%; margin-top: 4px; padding: 15px 20px; font-size: 15px; }
.jfc-note {
    text-align: center;
    font-size: 13px;
    color: var(--muted-2);
    margin: 14px 0 0;
}
.jfc-thankyou {
    text-align: center;
    font-size: 16px;
    color: var(--expand);
    font-weight: 500;
    padding: 16px 0 4px;
    margin: 0;
}

/* ============================================================
   CLOSING TAGLINE - Section 07
   ============================================================ */
.closing-tagline {
    text-align: center;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}
.ct-l1 {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin: 0 0 10px;
    line-height: 1.1;
}
.ct-l2 {
    font-size: clamp(26px, 3.6vw, 44px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 20px;
}
.ct-l3 {
    font-size: 15px;
    color: var(--muted);
    font-style: italic;
    margin: 0;
}

/* ============================================================
   RESPONSIVE - new components
   ============================================================ */
@media (max-width: 780px) {
    .agent-swarm { grid-template-columns: 1fr; }
    .swarm-cluster { border-right: none; border-bottom: 1px solid var(--line); }
    .swarm-cluster:last-child { border-bottom: none; }
    .ba-panel { grid-template-columns: 1fr; }
    .ba-arrow { border: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; justify-content: center; }
    .ba-before, .ba-after { padding: 20px; }
    .converge-timeline { flex-wrap: wrap; gap: 22px; justify-content: center; }
    .ct-line { display: none; }
    .analogy-table .at-row { grid-template-columns: 1fr 1fr; }
    .analogy-table .at-head .at-cell:first-child { display: none; }
    .analogy-table .at-rowlabel { display: none; }
    .loop-row { grid-template-columns: 1fr 28px 1fr; }
    .shift-grid { grid-template-columns: 1fr; }
    .manifesto-card { padding: 40px 24px; }
    .join-form-card { padding: 36px 22px 28px; margin-left: 0; margin-right: 0; }
}

@media (max-width: 560px) {
    .beat-card { padding: 20px 18px; }
    .sig-row { gap: 7px; }
    .evt-row { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .sense-verb { transition: none; }
    .ct-dot--now { animation: none; }
    .how-chart.reveal .evt-row,
    .how-chart.reveal .pattern-callout,
    .why-chart.reveal .ct-item {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .why-chart.reveal .ct-line {
        transform: none;
        animation: none;
    }
}


