/* ============================================================
   Pramanaa.ai — Option 2
   Premium space-dark: page-in-a-frame, amber horizon orb,
   glass panels, calm ambient motion.
   ============================================================ */

:root {
    --bg-outer: #10132a;
    --bg: #070a18;
    --bg-2: #0a0e20;
    --glass: rgba(99, 102, 241, 0.08);
    --glass-2: rgba(99, 102, 241, 0.13);
    --line: rgba(148, 156, 255, 0.16);
    --line-soft: rgba(148, 156, 255, 0.09);
    --text: #eceef4;
    --muted: #8f97a8;
    --amber: #f5a623;
    --amber-soft: #ffc85c;
    --indigo: #6366f1;
    --indigo-soft: #a5b4fc;
    --green: #22c55e;
    --red: #ef4444;
    --r-lg: 28px;
    --r: 20px;
    --font: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-outer);
    color: var(--text);
    line-height: 1.65;
    padding: 14px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.center { text-align: center; }
::selection { background: rgba(245, 166, 35, 0.35); }

/* ---------- Page frame ---------- */
.frame {
    background: var(--bg);
    border-radius: var(--r-lg);
    overflow: clip;
    position: relative;
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
}

/* ---------- Type ---------- */
.title {
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
    margin-bottom: 20px;
}
.title em, .hero-title em {
    font-style: normal;
    background: linear-gradient(100deg, var(--amber) 0%, var(--amber-soft) 55%, var(--amber) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero-title em.alt {
    background: linear-gradient(100deg, #818cf8 0%, #c7d2fe 55%, #818cf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}
.title .dim { color: var(--muted); font-style: italic; }
.title.center { margin-left: auto; margin-right: auto; }
.lede { color: var(--muted); font-size: 1.02rem; max-width: 640px; }
.lede.center { margin: 0 auto; }
.accent { color: var(--amber); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
    font-weight: 600; color: var(--amber-soft);
    padding: 7px 16px; border-radius: 999px;
    border: 1px solid rgba(245, 166, 35, 0.28);
    background: rgba(245, 166, 35, 0.05);
    margin-bottom: 26px;
}
.eyebrow.center { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: dot 1.8s ease-in-out infinite; }
@keyframes dot { 50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15); } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font); font-weight: 600; cursor: pointer;
    border-radius: 999px; border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--amber-soft) 0%, var(--amber) 60%, #e8940a 100%);
    color: #171106;
    box-shadow: 0 6px 30px rgba(245, 166, 35, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 44px rgba(245, 166, 35, 0.5); }
.btn-ghost { border-color: rgba(148, 156, 255, 0.22); color: var(--text); background: rgba(99, 102, 241, 0.08); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(245, 166, 35, 0.6); color: var(--amber-soft); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 15px 34px; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
    background: rgba(8, 11, 26, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
    width: min(1200px, calc(100% - 48px)); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    height: 74px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.nav-logo-icon { width: 28px; }
.nav-logo-img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 30px; font-size: 0.9rem; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 110; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Rolling ticker ---------- */
.ticker {
    position: sticky; top: 74px; z-index: 95;
    background: linear-gradient(180deg, rgba(8, 11, 26, 0.25), rgba(8, 11, 26, 0));
    border-top: 1px solid rgba(148, 156, 255, 0.07);
    border-bottom: 1px solid rgba(148, 156, 255, 0.07);
    overflow: hidden; height: 34px;
    display: flex; align-items: center;
    transition: background 0.3s;
}
.ticker.scrolled {
    background: rgba(8, 11, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.ticker-track {
    display: flex; gap: 36px; white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    font-family: var(--mono); font-size: 0.72rem;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.tick-item { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.tick-item b { color: var(--text); font-weight: 500; }
.tick-up { color: var(--green); }
.tick-down { color: var(--red); }

/* ---------- Cursor glow ---------- */
.cursor-glow {
    position: fixed; width: 500px; height: 500px;
    border-radius: 50%; pointer-events: none; z-index: 1;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.07) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- Stars ---------- */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.stars-dim { opacity: 0.55; }

/* ---------- Orb ---------- */
.orb {
    position: absolute; z-index: 0; pointer-events: none;
    left: 50%; top: 58%;
    width: max(130vw, 900px); aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 8%,
            rgba(255, 214, 140, 0.18) 0%,
            rgba(245, 166, 35, 0.10) 8%,
            rgba(215, 130, 45, 0.06) 15%,
            rgba(150, 105, 90, 0.045) 22%,
            rgba(99, 102, 241, 0.04) 30%,
            rgba(99, 102, 241, 0.02) 40%,
            rgba(99, 102, 241, 0.01) 50%,
            rgba(7, 10, 24, 0) 62%);
    animation: orb-breathe 7s ease-in-out infinite;
}
.orb::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border-top: 1.5px solid rgba(255, 224, 160, 0.5);
    filter: blur(1.5px);
    mask-image: linear-gradient(180deg, black 0%, rgba(0,0,0,0.35) 8%, transparent 16%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, rgba(0,0,0,0.35) 8%, transparent 16%);
}
.orb::after {
    content: ''; position: absolute; inset: -5%; border-radius: 50%;
    background: radial-gradient(ellipse 52% 10% at 50% 5.5%,
        rgba(245, 166, 35, 0.15) 0%,
        rgba(245, 166, 35, 0.06) 45%,
        rgba(99, 102, 241, 0.025) 70%,
        transparent 100%);
    filter: blur(16px);
}
@keyframes orb-breathe { 50% { filter: brightness(1.1); } }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    /* pulled up behind the transparent nav + ticker (74px + 34px) so the
       indigo field runs to the very top of the frame */
    margin-top: -108px;
    padding: calc(clamp(90px, 12vh, 150px) + 108px) 0 90px;
    overflow: hidden;
    text-align: center;
    /* indigo-dark blue, fading into the page ink toward the bottom */
    background: radial-gradient(ellipse 130% 95% at 50% -12%,
        #141834 0%, #0e1126 38%, #0a0c1a 68%, var(--bg) 100%);
}
.hero-grid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 156, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 156, 255, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 78% 72% at 50% 34%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 34%, black, transparent);
}
.hero-inner { position: relative; z-index: 2; width: min(880px, calc(100% - 48px)); margin: 0 auto; }
.hero-title {
    font-size: clamp(2.9rem, 7.4vw, 5.4rem);
    font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
    margin-bottom: 28px;
}
/* below the clamp floor each span must still fit on one line */
@media (max-width: 520px) {
    .hero-title { font-size: clamp(1.8rem, 9.6vw, 2.9rem); letter-spacing: -0.025em; }
}
.hero-title span { display: block; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.14rem); max-width: 620px; margin: 0 auto 38px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fineprint { margin-top: 20px; font-size: 0.78rem; color: rgba(143, 151, 168, 0.7); font-style: italic; }

/* floating chips */
.float-chip {
    position: absolute; z-index: 3;
    display: grid; gap: 3px; text-align: left;
    padding: 16px 20px; border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: floaty 7s ease-in-out infinite;
}
.chip-left { left: max(3vw, 20px); top: 46%; }
.chip-right { right: max(3vw, 20px); top: 38%; animation-delay: 2.2s; }
.chip-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--muted); }
.chip-value { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.chip-regime { font-size: 0.95rem; color: var(--green); }
.chip-delta { font-size: 0.68rem; color: var(--muted); }
.chip-delta.up { color: var(--green); }
@keyframes floaty { 50% { transform: translateY(-14px); } }

/* ---------- Dashboard mock ---------- */
.dash {
    position: relative; z-index: 2;
    width: min(980px, calc(100% - 40px));
    margin: 74px auto 0;
    border-radius: 22px;
    background: linear-gradient(175deg, rgba(26, 29, 54, 0.92), rgba(10, 13, 28, 0.96));
    border: 1px solid rgba(245, 166, 35, 0.22);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 40px 120px rgba(0, 0, 0, 0.6),
        0 0 90px rgba(245, 166, 35, 0.12);
    backdrop-filter: blur(10px);
}
.dash-glow {
    position: absolute; inset: -1px; border-radius: 22px; pointer-events: none;
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.14), transparent 26%);
    mask-image: linear-gradient(180deg, black, transparent 40%);
    -webkit-mask-image: linear-gradient(180deg, black, transparent 40%);
}
.dash-bar {
    display: flex; align-items: center; gap: 16px;
    padding: 13px 20px; border-bottom: 1px solid var(--line-soft);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.dash-dots i:first-child { background: rgba(239, 68, 68, 0.65); }
.dash-dots i:nth-child(2) { background: rgba(245, 166, 35, 0.65); }
.dash-dots i:last-child { background: rgba(34, 197, 94, 0.65); }
.dash-title { font-size: 0.64rem; letter-spacing: 0.2em; color: var(--muted); flex: 1; text-align: center; }
.dash-tag {
    font-size: 0.6rem; letter-spacing: 0.16em; color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08);
    padding: 3px 10px; border-radius: 999px;
    animation: dot 1.8s ease-in-out infinite;
}
.dash-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.dash-chart { padding: 18px 8px 8px 18px; border-right: 1px solid var(--line-soft); }
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 10px 2px; font-size: 0.72rem; color: var(--muted); }
.dash-sym b { color: var(--text); font-weight: 500; }
.dash-sym .up { color: var(--green); font-style: normal; }
.dash-sym .down { color: var(--red); font-style: normal; }
.dash-tf b { color: var(--amber); }

/* regime observer strip */
.dash-regime {
    display: flex; align-items: center; gap: 12px;
    padding: 4px 12px 12px 2px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 10px;
}
.dash-sub-title { font-size: 0.56rem; letter-spacing: 0.16em; color: var(--muted); flex: none; }
.regime-strip { flex: 1; display: flex; gap: 0; height: 12px; align-items: stretch; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.regime-seg { flex: 1; border-radius: 0; opacity: 0.92; transition: background 0.4s; min-width: 3px; }
.regime-seg.new { animation: seg-in 0.5s ease; }
@keyframes seg-in { from { transform: scaleY(0.2); opacity: 0; } }
.regime-seg.bull { background: #22c55e; }
.regime-seg.mildbull { background: #86efac; }
.regime-seg.chop { background: #f5a623; }
.regime-seg.mildbear { background: #fca5a5; }
.regime-seg.bear { background: #ef4444; }
.regime-now {
    flex: none; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
    padding: 4px 10px; border-radius: 6px;
    border: 1px solid currentColor; color: #86efac;
    background: rgba(99, 102, 241, 0.07);
    transition: color 0.4s;
}

/* PCR alpha graph (primary) + candles (secondary) */
.dash-sub-head {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.56rem; letter-spacing: 0.16em; color: var(--muted);
    padding: 2px 12px 6px 2px;
}
.dash-sub-head b { color: var(--amber-soft); font-size: 0.72rem; letter-spacing: 0.04em; }
.dash-legend { display: inline-flex; align-items: center; gap: 7px; }
.dash-legend b { margin-left: 6px; }
.lg { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lg-alpha { background: var(--green); }
.lg-pcr { background: var(--amber); border-radius: 50%; }
#pcrCanvas { width: 100%; height: 128px; display: block; }
.dash-candles { margin-top: 10px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
#dashCanvas { width: 100%; height: 96px; display: block; opacity: 0.9; }
.dash-side { display: grid; grid-template-rows: 1fr auto; }
.dash-panel { padding: 18px 20px; }
.dash-panel + .dash-panel { border-top: 1px solid var(--line-soft); }
.dash-panel-title { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 12px; }
.chain { font-family: var(--mono); font-size: 0.78rem; }
.chain-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    padding: 7px 6px; text-align: center;
    border-bottom: 1px solid rgba(148, 156, 255, 0.07);
}
.chain-head { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--muted); }
.chain-row .st { color: var(--text); font-weight: 700; }
.chain-row .ce { color: #7dd3fc; text-align: right; }
.chain-row .pe { color: #fda4af; text-align: left; }
.chain-row.atm { background: rgba(245, 166, 35, 0.07); border-radius: 8px; }
.flash-up { animation: flash-up 0.6s ease; }
.flash-down { animation: flash-down 0.6s ease; }
@keyframes flash-up { 0% { background: rgba(34, 197, 94, 0.3); } 100% { background: transparent; } }
@keyframes flash-down { 0% { background: rgba(239, 68, 68, 0.3); } 100% { background: transparent; } }
.chain-foot { margin-top: 12px; font-size: 0.64rem; letter-spacing: 0.08em; color: var(--muted); }
.chain-foot b { color: var(--amber-soft); }
.greek-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.greek-chips span {
    font-size: 0.7rem; color: var(--muted);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 7px 12px; background: rgba(99, 102, 241, 0.07);
}
.greek-chips b { color: var(--text); font-weight: 500; }
.dash-note { padding: 10px 20px 14px; font-size: 0.56rem; letter-spacing: 0.16em; color: rgba(143, 151, 168, 0.55); text-align: right; border-top: 1px solid var(--line-soft); }

/* ---------- Stats ---------- */
.stats { padding: 54px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 24px; }
.stat { text-align: center; flex: 1 1 150px; max-width: 220px; }
.stat-v { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--amber-soft); }
.stat-l { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Bento ---------- */
.why .lede { margin-bottom: 60px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento-card {
    grid-column: span 2;
    background: var(--glass); border: 1px solid var(--line);
    border-radius: var(--r); padding: 28px;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
    position: relative; overflow: hidden;
}
.bento-card:hover { border-color: rgba(245, 166, 35, 0.4); background: var(--glass-2); transform: translateY(-3px); }
.bento-card.wide { grid-column: span 4; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.bento-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(245, 166, 35, 0.3);
    background: radial-gradient(circle at 30% 25%, rgba(245, 166, 35, 0.16), rgba(245, 166, 35, 0.03));
    color: var(--amber);
    margin-bottom: 16px;
}
.bento-icon svg { width: 20px; height: 20px; }
/* Research funnel graphic (right side of the wide card) */
.funnel { padding: 6px 0 0 12px; }
.funnel-title { font-size: 0.58rem; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 18px; }
.funnel-row { margin-bottom: 14px; }
.funnel-label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 0.6rem; letter-spacing: 0.14em; color: var(--muted);
    margin-bottom: 6px;
}
.funnel-label b { font-size: 0.85rem; color: var(--amber-soft); }
.funnel-label b.live { color: var(--green); }
.funnel-track { height: 16px; border-radius: 6px; background: rgba(255, 255, 255, 0.045); overflow: hidden; }
.funnel-fill {
    display: block; height: 100%; width: var(--w); border-radius: 6px;
    background: linear-gradient(90deg, rgba(245, 166, 35, 0.75), rgba(245, 166, 35, 0.3));
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.18);
    transform: scaleX(0); transform-origin: left;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.funnel-fill.live {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.85), rgba(34, 197, 94, 0.4));
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}
.reveal.visible .funnel-fill { transform: scaleX(1); }
.reveal.visible .funnel-row:nth-child(3) .funnel-fill { transition-delay: 0.15s; }
.reveal.visible .funnel-row:nth-child(4) .funnel-fill { transition-delay: 0.3s; }
.reveal.visible .funnel-row:nth-child(5) .funnel-fill { transition-delay: 0.45s; }
.funnel-note { margin-top: 16px; font-size: 0.8rem; font-style: italic; color: var(--muted); }

.bento-card h3 { font-size: 1.08rem; margin-bottom: 8px; }

/* Research-pipeline step list (left side of the wide card) */
.pipeline { margin-top: 24px; display: grid; }
.pipe-step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; }
.pipe-step::before {
    content: ''; position: absolute; left: 5px; top: 28px; bottom: -8px; width: 1.5px;
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.4), rgba(148, 156, 255, 0.15));
}
.pipe-step:last-child::before { display: none; }
.pipe-dot {
    flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 5px;
    background: rgba(245, 166, 35, 0.15); border: 1.5px solid var(--amber);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.35);
}
.pipe-step.live .pipe-dot {
    background: rgba(34, 197, 94, 0.15); border-color: var(--green);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    animation: dot 1.8s ease-in-out infinite;
}
.pipe-step b { display: block; font-family: var(--mono); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.18em; color: var(--amber-soft); }
.pipe-step.live b { color: var(--green); }
.pipe-step span { color: var(--muted); font-size: 0.84rem; }
.bento-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Suite ---------- */
.suite { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.suite-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.suite-card {
    background: var(--glass); border: 1px solid var(--line);
    border-radius: var(--r); padding: 32px 28px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column; gap: 14px;
}
.suite-card:hover { border-color: rgba(245, 166, 35, 0.4); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.suite-icon {
    width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(245, 166, 35, 0.35);
    background: radial-gradient(circle at 30% 25%, rgba(245, 166, 35, 0.18), rgba(245, 166, 35, 0.04));
    color: var(--amber);
    box-shadow: 0 0 24px rgba(245, 166, 35, 0.12);
}
.suite-icon svg { width: 26px; height: 26px; }
.suite-card h3 { font-size: 1.18rem; }
.suite-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.suite-link { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--amber); }
.suite-viz { padding: 10px 0 4px; }

/* Greeks bars viz (from option 1) */
.greeks-viz { display: flex; gap: 18px; align-items: flex-end; height: 104px; justify-content: center; }
.gbar { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.gbar i {
    width: 24px; border-radius: 6px 6px 3px 3px; height: var(--h);
    background: linear-gradient(180deg, var(--amber-soft), rgba(245, 166, 35, 0.25));
    animation: gbar-dance 2.6s ease-in-out infinite;
    transform-origin: bottom;
    box-shadow: 0 0 14px rgba(245, 166, 35, 0.25);
}
.gbar:nth-child(2) i { animation-delay: 0.4s; }
.gbar:nth-child(3) i { animation-delay: 0.8s; }
.gbar:nth-child(4) i { animation-delay: 1.2s; }
@keyframes gbar-dance { 50% { transform: scaleY(0.72); } }
.gbar b { font-family: var(--mono); color: var(--muted); font-size: 0.78rem; }

/* Flow viz (from option 1) */
.flow-viz { position: relative; height: 104px; display: flex; align-items: center; justify-content: center; }
.spark { width: 100%; height: 66px; }
.spark polyline {
    fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
    stroke-dasharray: 400; stroke-dashoffset: 400;
    animation: spark-draw 3s ease forwards infinite;
}
@keyframes spark-draw { 0% { stroke-dashoffset: 400; } 60%, 100% { stroke-dashoffset: 0; } }
.flow-pulse {
    position: absolute; width: 12px; height: 12px; border-radius: 50%;
    background: var(--green); left: 50%; top: 50%;
    animation: flow-pulse 2s ease-out infinite; animation-delay: var(--d);
    opacity: 0;
}
@keyframes flow-pulse { 0% { transform: scale(0.4); opacity: 0.7; } 100% { transform: scale(5); opacity: 0; } }

/* Radar viz (from option 1) */
.radar-viz { display: flex; justify-content: center; height: 128px; align-items: center; }
.radar {
    position: relative; width: 112px; height: 112px; border-radius: 50%;
    border: 1px solid rgba(245, 166, 35, 0.25);
    background:
        radial-gradient(circle, transparent 39%, rgba(245, 166, 35, 0.14) 40%, transparent 41%),
        radial-gradient(circle, transparent 69%, rgba(245, 166, 35, 0.14) 70%, transparent 71%);
    overflow: hidden;
}
.radar .sweep {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(245, 166, 35, 0.5), transparent 26%);
    animation: radar-sweep 3s linear infinite;
}
@keyframes radar-sweep { to { transform: rotate(360deg); } }
.blip { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-soft); animation: blip 3s ease-in-out infinite; }
.blip.b1 { top: 28%; left: 62%; }
.blip.b2 { top: 60%; left: 30%; animation-delay: 1s; background: var(--indigo-soft); }
.blip.b3 { top: 44%; left: 74%; animation-delay: 2s; }
@keyframes blip { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; box-shadow: 0 0 10px currentColor; } }

/* ---------- Markets ---------- */
.markets { overflow: hidden; }
.market-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
    margin-top: 60px; position: relative; z-index: 1;
}
.market-card {
    background: var(--glass); border: 1px solid var(--line);
    border-radius: var(--r); padding: 20px 18px 14px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.market-card:hover { border-color: rgba(245, 166, 35, 0.45); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 166, 35, 0.08); }
.market-name { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 8px; }
.market-price { font-family: var(--mono); font-size: 1.18rem; font-weight: 700; }
.market-chg { font-family: var(--mono); font-size: 0.7rem; margin-top: 2px; }
.market-chg.up { color: var(--green); }
.market-chg.down { color: var(--red); }
.market-spark { height: 46px; margin: 12px -4px 10px; }
.market-spark canvas { width: 100%; height: 100%; display: block; }
.market-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.6rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 10px; }
.market-meta b { color: var(--text); font-weight: 500; }
.market-note { text-align: center; font-size: 0.58rem; letter-spacing: 0.18em; color: rgba(143, 151, 168, 0.5); margin-top: 22px; }

.horizon { margin-top: 90px; position: relative; z-index: 1; }
.horizon-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.horizon-head h3 { font-size: 1.35rem; font-weight: 700; }
.soon {
    font-size: 0.58rem; letter-spacing: 0.16em;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(99, 102, 241, 0.12); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.4);
    animation: soon-glow 2.4s ease-in-out infinite;
}
@keyframes soon-glow { 50% { box-shadow: 0 0 16px rgba(99, 102, 241, 0.4); } }
.horizon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.horizon-card {
    border: 1px dashed rgba(148, 156, 255, 0.28); border-radius: var(--r);
    padding: 26px; background: rgba(99, 102, 241, 0.05);
    transition: border-color 0.3s, background 0.3s;
}
.horizon-card:hover { border-color: rgba(99, 102, 241, 0.55); background: rgba(99, 102, 241, 0.05); }
.horizon-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.horizon-card p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Audience ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.aud-card {
    border: 1px solid var(--line); border-radius: var(--r);
    padding: 32px 28px; background: var(--glass);
    transition: border-color 0.3s, transform 0.3s;
}
.aud-card:hover { border-color: rgba(245, 166, 35, 0.4); transform: translateY(-4px); }
.aud-num {
    display: block; font-size: 3.4rem; font-weight: 700; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(245, 166, 35, 0.45);
    margin-bottom: 18px;
}
.aud-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.aud-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Edge ---------- */
.edge { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.table-wrap { overflow-x: auto; margin-top: 56px; border-radius: var(--r); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.edge-table { width: 100%; border-collapse: collapse; min-width: 640px; background: rgba(99, 102, 241, 0.05); }
.edge-table th, .edge-table td { padding: 18px 24px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--line-soft); }
.edge-table thead th { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); background: rgba(99, 102, 241, 0.09); }
.edge-table tbody tr:last-child td { border-bottom: 0; }
.edge-table td:first-child { font-weight: 600; }
.edge-table td { color: var(--muted); }
.edge-table .brand { color: var(--text); background: rgba(245, 166, 35, 0.045); border-left: 1px solid rgba(245, 166, 35, 0.22); }
.edge-table thead .brand { color: var(--amber); }
.edge-table .brand b { color: var(--amber-soft); }

/* ---------- FAQ ---------- */
.faq-container { max-width: 760px; }
.faq-list { margin-top: 50px; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); transition: border-color 0.3s; }
.faq-item[open] { border-color: rgba(245, 166, 35, 0.4); }
.faq-item summary {
    list-style: none; cursor: pointer;
    padding: 20px 24px; font-weight: 600; font-size: 0.95rem;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--amber-soft); }
.faq-x { position: relative; flex: none; width: 16px; height: 16px; }
.faq-x::before, .faq-x::after { content: ''; position: absolute; background: var(--amber); border-radius: 2px; transition: transform 0.3s ease; }
.faq-x::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-x::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item[open] .faq-x::after { transform: rotate(90deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA ---------- */
.cta {
    position: relative; overflow: hidden;
    padding: clamp(100px, 13vw, 170px) 0;
    text-align: center;
    border-top: 1px solid var(--line-soft);
    /* indigo field rising from the bottom, where the orb sits */
    background: radial-gradient(ellipse 130% 110% at 50% 118%,
        #141834 0%, #0e1126 42%, #0a0c1a 70%, var(--bg) 100%);
}
.orb-cta { top: 72%; opacity: 0.9; }
.cta-inner { position: relative; z-index: 2; }
.cta .lede { margin-bottom: 40px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 36px; position: relative; z-index: 2; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-logo { width: 170px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 26px; font-size: 0.88rem; color: var(--muted); flex-wrap: wrap; }
.footer-links a:hover { color: var(--amber-soft); }
.footer-disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.footer-disclaimer p { font-size: 0.72rem; color: rgba(143, 151, 168, 0.6); line-height: 1.7; }
.footer-copy { margin-top: 14px; font-size: 0.6rem; letter-spacing: 0.16em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- Contact modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(6, 8, 20, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
    position: relative;
    width: min(460px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: linear-gradient(170deg, #12162e, #0b0e20);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 34px 32px 28px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 60px rgba(99, 102, 241, 0.08);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
    position: absolute; top: 16px; right: 18px;
    background: none; border: 0; cursor: pointer;
    font-size: 1.5rem; line-height: 1; color: var(--muted);
    padding: 6px; transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-tag { margin-bottom: 18px; }
.modal-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.modal-form { display: grid; gap: 14px; }
/* hidden attr must beat the display rules above during the success state */
.modal [hidden] { display: none !important; }
.modal-form label { font-size: 0.78rem; font-weight: 600; color: var(--text); display: block; }
.modal-form .opt { color: var(--muted); font-weight: 400; }
.modal-form input, .modal-form textarea {
    display: block; width: 100%; margin-top: 6px;
    font-family: var(--font); font-size: 0.9rem; color: var(--text);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line); border-radius: 12px;
    padding: 11px 14px; outline: none; resize: vertical;
    transition: border-color 0.2s, background 0.2s;
}
.modal-form input::placeholder, .modal-form textarea::placeholder { color: rgba(143, 151, 168, 0.55); }
.modal-form input:focus, .modal-form textarea:focus { border-color: rgba(245, 166, 35, 0.55); background: rgba(255, 255, 255, 0.05); }
.modal-submit { width: 100%; margin-top: 6px; }
.modal-submit:disabled { opacity: 0.6; cursor: wait; }
.modal-error { text-align: center; font-size: 0.78rem; line-height: 1.5; color: #fca5a5; margin-top: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.modal-note { text-align: center; font-size: 0.56rem; letter-spacing: 0.16em; color: rgba(143, 151, 168, 0.55); }
.modal-success { text-align: center; padding: 30px 0 20px; }
.success-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.5rem; color: var(--green);
    background: rgba(34, 197, 94, 0.12); border: 1.5px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.25);
}
.modal-success h4 { font-size: 1.2rem; margin-bottom: 8px; }
.modal-success p { color: var(--muted); font-size: 0.9rem; }
body.modal-open { overflow: hidden; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .float-chip { display: none; }
    .market-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .nav-links, .nav-cta .btn-ghost { display: none; }
    .nav-burger { display: block; }
    .nav-links.open {
        display: flex; position: fixed; top: 88px; right: 26px; z-index: 105;
        flex-direction: column; gap: 4px;
        background: rgba(10, 13, 28, 0.97); backdrop-filter: blur(18px);
        border: 1px solid var(--line); border-radius: 18px;
        padding: 18px 26px; font-size: 1rem;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    }
    .nav-links.open a { padding: 10px 0; }
    .dash-body { grid-template-columns: 1fr; }
    .dash-chart { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-right: 18px; }
    #pcrCanvas { height: 104px; }
    #dashCanvas { height: 76px; }
    .dash-regime { flex-wrap: wrap; }
    .regime-strip { min-width: 100%; order: 3; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-card { grid-column: span 1; }
    .bento-card.wide { grid-column: span 2; grid-template-columns: 1fr; }
    .suite-grid, .aud-grid { grid-template-columns: 1fr; max-width: 540px; margin-left: auto; margin-right: auto; }
    .horizon-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { padding: 8px; }
    .frame { border-radius: 20px; }
    .container, .hero-inner, .nav-inner, .dash { width: calc(100% - 30px); }
    /* hero hierarchy: quiet pill, short sub-copy, title stays the focal */
    .hero { padding-top: calc(44px + 108px); padding-bottom: 64px; }
    .hero .eyebrow { font-size: 0.58rem; letter-spacing: 0.13em; padding: 6px 13px; gap: 7px; }
    .hero .pulse-dot { width: 6px; height: 6px; }
    .hero-title { margin-bottom: 20px; }
    .hero-sub { font-size: 0.92rem; line-height: 1.7; margin-bottom: 30px; }
    .hero-sub .sub-detail { display: none; }
    .market-grid { grid-template-columns: 1fr 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento-card, .bento-card.wide { grid-column: span 1; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .nav-cta { display: none; }
}
@media (max-width: 420px) {
    .market-grid { grid-template-columns: 1fr; }
}

/* Comparison table -> stacked comparison cards on small screens */
@media (max-width: 720px) {
    .table-wrap { overflow: visible; border: 0; border-radius: 0; }
    .edge-table { min-width: 0; background: none; }
    .edge-table, .edge-table tbody, .edge-table tr, .edge-table td { display: block; width: 100%; }
    .edge-table thead { display: none; }
    .edge-table tr {
        border: 1px solid var(--line); border-radius: 16px;
        background: var(--glass); margin-bottom: 14px; overflow: hidden;
    }
    .edge-table tbody tr:hover { background: var(--glass); }
    .edge-table td { border: 0; padding: 12px 18px 14px; }
    .edge-table td:first-child {
        font-size: 1.02rem; font-weight: 700; color: var(--text);
        padding: 15px 18px 11px;
        border-bottom: 1px solid var(--line-soft);
    }
    .edge-table td[data-col]::before {
        content: attr(data-col);
        display: block;
        font-family: var(--mono); font-size: 0.56rem; font-weight: 700;
        letter-spacing: 0.18em; text-transform: uppercase;
        color: var(--muted); margin-bottom: 4px;
    }
    .edge-table td.brand {
        border-left: 0;
        background: rgba(245, 166, 35, 0.06);
        border-top: 1px solid rgba(245, 166, 35, 0.18);
    }
    .edge-table td.brand::before { color: var(--amber); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
    .reveal { opacity: 1; transform: none; }
    .stars { display: none; }
}
