/* CERwatch front page, v2 - dark editorial. The product's own palette, brightened for a black ground. */
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/plex-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/plex-serif-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #030409; --card: #0A0D13; --card-2: #0F131B; --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.14);
  --text: #F0F2F6; --muted: #9AA3B2; --dim: #7F8898;
  --accent: #2F7DFF; --accent-hi: #7DB4FF; --clear: #74D6A2; --amber: #F0BE63; --red: #FF8A7D; --red-solid: #D9493B; --blue: #B9A8F5;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --w: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; position: relative; }
.mono { font-family: var(--mono); }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
.grad { background: linear-gradient(180deg, #FFFFFF 0%, #A9B1C0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-accent { background: linear-gradient(180deg, #C4DDFF 0%, #2F7DFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(3,4,9,0.72); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; letter-spacing: -0.01em; }
.brand b { font-weight: 700; }
.brand svg { width: 16px; height: 24px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.signin { color: var(--muted); text-decoration: none; font-size: 15px; }
.signin:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 13px 22px; font: 700 15px/1 var(--sans); text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn-light { background: var(--text); color: #05070C; box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 8px 30px rgba(125,180,255,0.15); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.3), 0 10px 40px rgba(125,180,255,0.28); }
.btn-dark { background: linear-gradient(180deg, #161A22, #0B0E14); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 0 1px var(--line-2); }
.btn-dark:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 0 0 1px rgba(255,255,255,0.24); }
.btn-text { color: var(--muted); padding-left: 8px; padding-right: 8px; }
.btn-text:hover { color: var(--text); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; }
.beam { position: absolute; inset: -20% -10% auto auto; width: 75%; height: 140%; pointer-events: none;
  background: linear-gradient(118deg, transparent 38%, rgba(255,255,255,0.075) 48%, rgba(255,255,255,0.02) 54%, transparent 62%);
  filter: blur(18px); transform: rotate(-6deg); }
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); }
.glow.g1 { width: 620px; height: 420px; right: -120px; top: 260px; background: rgba(47,125,255,0.20); }
.glow.g2 { width: 420px; height: 300px; left: -160px; top: -60px; background: rgba(47,125,255,0.08); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 99px; text-decoration: none; font-size: 14px; color: var(--text);
  background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px rgba(125,180,255,0.30), 0 0 24px rgba(47,125,255,0.12); }
.badge .dot { display: inline-flex; padding: 3px 8px; border-radius: 99px; background: rgba(47,125,255,0.18); color: var(--accent-hi); font: 400 12px/1.2 var(--mono); }
.badge .arr { color: var(--muted); }
.hero h1 { font-family: var(--serif); font-size: clamp(52px, 8.2vw, 104px); line-height: 0.98; letter-spacing: -0.035em; margin: 30px 0 0; max-width: 11.5em; }
.hero h1 em { font-style: italic; }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 28px 0 36px; max-width: 34em; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- product panel ---------- */
.stage { position: relative; margin-top: 72px; }
.stage::before { content: ""; position: absolute; inset: 10% 8% -6% 8%; background: radial-gradient(closest-side, rgba(47,125,255,0.22), transparent); filter: blur(40px); pointer-events: none; }
.panel { position: relative; max-width: 880px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,24,33,0.92), rgba(8,10,15,0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px var(--line-2), 0 40px 120px rgba(0,0,0,0.7); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.panel-head .doc { font-weight: 700; font-size: 14.5px; }
.panel-head .doc span { color: var(--dim); font-weight: 400; }
.tag { font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 9px; white-space: nowrap; }
.ticker { padding: 10px 22px; font: 400 12.5px/1.4 var(--mono); color: var(--dim); border-bottom: 1px solid var(--line); }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 10px var(--accent-hi); margin-right: 9px; vertical-align: 1px; animation: pulse 1.4s ease-in-out 4; }
.cols { display: grid; grid-template-columns: 1.08fr 1fr; }
.col { padding: 6px 0 14px; }
.col + .col { border-left: 1px solid var(--line); }
.plabel { padding: 14px 22px 8px; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sources, .claims { list-style: none; margin: 0; padding: 0 12px; }
.src { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; row-gap: 7px; padding: 10px 10px; border-radius: 10px; transition: background .5s; }
.src .num { font: 400 12px/1.5 var(--mono); color: var(--dim); }
.src .cite { font-family: var(--serif); font-size: 14px; line-height: 1.4; color: #DDE2EA; }
.status { grid-column: 2; display: inline-grid; justify-items: start; }
.status > span { grid-area: 1 / 1; font: 700 11.5px/1 var(--sans); padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.pending { color: var(--dim); background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line); }
.final { opacity: 0; transform: translateY(3px); }
.final.clear { color: var(--clear); background: rgba(62,160,111,0.14); box-shadow: inset 0 0 0 1px rgba(116,214,162,0.25); }
.final.corr { color: var(--blue); background: rgba(150,125,240,0.14); box-shadow: inset 0 0 0 1px rgba(185,168,245,0.28); }
.final.eoc { color: var(--amber); background: rgba(224,165,58,0.13); box-shadow: inset 0 0 0 1px rgba(240,190,99,0.28); }
.final.ret { color: #FFE2DE; background: rgba(217,73,59,0.32); box-shadow: inset 0 0 0 1px rgba(255,138,125,0.45), 0 0 18px rgba(217,73,59,0.35); }
.claim { display: grid; grid-template-columns: 3px 34px 1fr; gap: 12px; padding: 10px 10px; border-radius: 10px; transition: background .5s; }
.band { border-radius: 2px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; inset: 0; transform: scaleY(0); transform-origin: top; }
.c41 .band::after { background: var(--amber); }
.c43 .band::after { background: var(--blue); opacity: .6; }
.c52 .band::after { background: var(--red); box-shadow: 0 0 12px var(--red); }
.cid { font: 400 12px/1.6 var(--mono); color: var(--dim); }
.ctext { font-family: var(--serif); font-size: 14px; line-height: 1.45; color: #DDE2EA; }
.callout { margin: 6px 22px 4px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; color: #F6D9D5; background: rgba(217,73,59,0.10); box-shadow: inset 0 0 0 1px rgba(255,138,125,0.28); opacity: 0; transform: translateY(4px); }
.callout b { color: var(--red); }
.pfoot { padding: 12px 22px 16px; border-top: 1px solid var(--line); font: 400 11.5px/1.5 var(--mono); color: var(--dim); }

/* the sequence plays once on load and rests on its final state */
.go .pending { animation: out .35s ease forwards; }
.go .final { animation: in .45s ease forwards; }
.go .s2 .pending { animation-delay: 1.0s; } .go .s2 .final { animation-delay: 1.1s; }
.go .s3 .pending { animation-delay: 2.0s; } .go .s3 .final { animation-delay: 2.1s; }
.go .s1 .pending { animation-delay: 3.0s; } .go .s1 .final { animation-delay: 3.1s; }
.go .s4 .pending { animation-delay: 4.3s; } .go .s4 .final { animation-delay: 4.4s; }
.go .c43 .band::after { animation: fill .7s ease forwards 2.3s; }
.go .c41 .band::after { animation: fill .7s ease forwards 3.3s; }
.go .c52 .band::after { animation: fill .8s ease forwards 4.6s; }
.go .c52, .go .s4 { animation: flag .6s ease forwards 4.7s; }
.go .callout { animation: in .5s ease forwards 5.3s; }
@keyframes out  { to { opacity: 0; } }
@keyframes in   { to { opacity: 1; transform: none; } }
@keyframes fill { to { transform: scaleY(1); } }
@keyframes flag { to { background: rgba(217,73,59,0.08); } }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- sections ---------- */
section { padding: 120px 0; scroll-margin-top: 64px; position: relative; }
.center { text-align: center; }
.kicker { font: 400 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 18px; }
.sec-h { font-family: var(--serif); font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.sec-lede { color: var(--muted); font-size: 19px; max-width: 36em; margin: 22px auto 0; }
.card { border-radius: 20px; background: linear-gradient(180deg, var(--card-2), var(--card)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px var(--line); }

/* stat */
.statcard { position: relative; overflow: hidden; max-width: 980px; margin: 0 auto; padding: 64px 56px; display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.statcard::before { content: ""; position: absolute; width: 520px; height: 360px; left: -80px; top: -60px; background: radial-gradient(closest-side, rgba(47,125,255,0.30), transparent); filter: blur(30px); }
.statcard > * { position: relative; }
.statlabel { font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.big { font-family: var(--serif); font-size: clamp(64px, 9vw, 120px); line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.statcard p { margin: 0; font-size: 20px; line-height: 1.5; color: #DDE2EA; }
.split { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chip { font: 400 12.5px/1 var(--mono); padding: 8px 11px; border-radius: 99px; color: var(--muted); background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip b { color: var(--text); font-weight: 400; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; text-align: left; }
.step { padding: 32px; }
.icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1B202A, #0A0D13); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 0 1px var(--line-2), 0 12px 32px rgba(47,125,255,0.16); }
.icon svg { width: 24px; height: 24px; stroke: #DDE2EA; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step .n { float: right; font: 400 12px/1 var(--mono); color: var(--dim); }
.step h3 { font-family: var(--sans); font-weight: 700; font-size: 21px; margin: 24px 0 10px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.step .split { margin-top: 20px; }

/* real-run timeline */
.timeline { max-width: 880px; margin: 64px auto 0; padding: 12px 28px; text-align: left; }
.ev { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 22px 0; position: relative; }
.ev + .ev { border-top: 1px solid var(--line); }
.node { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(180deg, #1B202A, #0A0D13); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 0 1px var(--line-2); }
.node svg { width: 18px; height: 18px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node.r svg { stroke: var(--red); } .node.a svg { stroke: var(--amber); }
.ev-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { font: 700 12px/1 var(--sans); padding: 6px 10px; border-radius: 8px; }
.pill.r { color: #FFD3CD; background: rgba(217,73,59,0.24); box-shadow: inset 0 0 0 1px rgba(255,138,125,0.4); }
.pill.a { color: var(--amber); background: rgba(224,165,58,0.12); box-shadow: inset 0 0 0 1px rgba(240,190,99,0.3); }
.when { font: 400 12.5px/1 var(--mono); color: var(--dim); }
.ev-title { font-family: var(--serif); font-size: 18px; line-height: 1.4; margin: 12px 0 10px; color: #E7EBF2; }
.ev-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: 14px; }
.ev-meta .chip { font-size: 12px; padding: 6px 9px; border-radius: 7px; }
.ev-note { margin-top: 12px; color: var(--muted); font-size: 15px; }
.tl-foot { max-width: 880px; margin: 18px auto 0; color: var(--muted); font-size: 15px; text-align: center; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-areas: "a a b" "c d d" "e e f"; gap: 18px; margin-top: 64px; text-align: left; }
.tile { padding: 32px; position: relative; overflow: hidden; }
.tile h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin: 0 0 10px; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 36em; }
.tile .fine { margin-top: 12px; font-size: 13.5px; color: var(--dim); }
.t-a { grid-area: a; } .t-b { grid-area: b; } .t-c { grid-area: c; } .t-d { grid-area: d; } .t-e { grid-area: e; } .t-f { grid-area: f; }
.map { margin-top: 24px; display: grid; gap: 10px; }
.map-row { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: center; gap: 10px; font-size: 13.5px; }
.map-row .from, .map-row .to { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line); }
.map-row .arrow { color: var(--dim); text-align: center; font-family: var(--mono); }
.to.a { color: var(--amber); } .to.b { color: var(--blue); } .to.r { color: var(--red); }
.snap { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.log { margin-top: 22px; font: 400 12.5px/1.75 var(--mono); color: var(--muted); padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,0.35); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; white-space: nowrap; }
.log .k { color: var(--accent-hi); } .log .x { color: var(--red); }
.t-a::after, .t-d::after { content: ""; position: absolute; width: 360px; height: 260px; right: -120px; top: -100px; background: radial-gradient(closest-side, rgba(47,125,255,0.16), transparent); filter: blur(20px); pointer-events: none; }

.quote { margin: 96px auto 0; max-width: 24em; font: italic 400 clamp(26px, 3.2vw, 38px)/1.3 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }

.who { padding: 40px 0 120px; }
.who p { margin: 0 auto; color: var(--muted); font-size: 18px; max-width: 34em; }
.who .split { justify-content: center; margin-top: 22px; }

.final-cta { padding: 140px 0; overflow: hidden; }
.final-cta .glow-c { position: absolute; left: 50%; top: 50%; width: 760px; height: 420px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(47,125,255,0.24), transparent); filter: blur(40px); pointer-events: none; }
.final-cta h2 { font-family: var(--serif); font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.final-cta p { color: var(--muted); font-size: 19px; max-width: 32em; margin: 24px auto 36px; }
.final-cta .or { margin-top: 20px; font: 400 14px/1 var(--mono); color: var(--dim); }
.final-cta .or a { color: var(--text); }

footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--dim); font-size: 13.5px; }
footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .pending { display: none; }
  .final, .callout { opacity: 1; transform: none; }
  .band::after { transform: scaleY(1); }
  .c52, .s4 { background: rgba(217,73,59,0.08); }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .cols { grid-template-columns: 1fr; }
  .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f"; }
  .statcard { grid-template-columns: 1fr; gap: 28px; padding: 44px 32px; }
  section { padding: 88px 0; }
  .hero { padding-top: 64px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .lede { font-size: 18px; }
  .panel-head { flex-wrap: wrap; }
  .map-row { grid-template-columns: 1fr; }
  .map-row .arrow { display: none; }
  .tile, .step { padding: 26px; }
  .top-right .signin { display: none; }
}
