/* SREInsights marketing site. Slate ink and square corners as in
   apps/web/tailwind.config.js; the accent colours are sampled from the logo
   (eye gradient #0790D8 to #20C7B6, iris #086FBA) rather than the app's #2563EB. */
:root {
  --navy: #1E2639;
  --navy-800: #283247;
  --navy-700: #34405A;
  --navy-500: #4B5A7A;
  --navy-200: #C5CBD8;
  --ink: #1E2639;
  --muted: #5B6478;
  --accent: #086FBA;
  --accent-700: #065A97;
  --accent-50: #E6F3FB;
  --canvas: #F5F6FA;
  --surface: #FFFFFF;
  --line: #E0E2EC;
  --ok: #15795B;
  --ok-tint: #E6F4EF;
  --warn: #B7791F;
  --danger: #C0443E;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 0.94rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); padding: 8px 12px; font: 500 0.9rem var(--sans); color: var(--ink); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px;
  font: 600 0.95rem var(--sans);
  border: 1px solid var(--accent);
  background: var(--accent); color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-700); border-color: var(--accent-700); text-decoration: none; }
.btn.small { padding: 8px 14px; font-size: 0.88rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--navy-200); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.on-dark .btn.ghost { color: #fff; border-color: var(--navy-500); }
.on-dark .btn.ghost:hover { border-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--navy-800) 1px, transparent 1px), linear-gradient(90deg, var(--navy-800) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  opacity: 0.7;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: #5CC3EC; }
.hero .lead { color: var(--navy-200); margin-top: 20px; }
.hero.plain { padding: 72px 0; }
.hero.plain .wrap { display: block; }
.hero.plain h1 { max-width: 20ch; font-size: clamp(2rem, 4.4vw, 3rem); }

/* The night-shift panel on the home hero */
.panel { background: #151B2A; border: 1px solid var(--navy-700); font-family: var(--mono); font-size: 0.8rem; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--navy-700); color: var(--navy-200); }
.panel-body { padding: 8px 0; }
.event { display: grid; grid-template-columns: 52px 62px 1fr; gap: 10px; padding: 9px 16px; color: #D7DCE8; align-items: baseline; }
.event time { color: var(--navy-500); }
.tag { font-size: 0.68rem; letter-spacing: 0.08em; padding: 2px 6px; text-align: center; border: 1px solid currentColor; }
.tag.alert { color: #F08A84; } .tag.page { color: #E9B85C; } .tag.fix { color: #5CC3EC; } .tag.ok { color: #5FCFA8; }
.event small { display: block; color: var(--navy-500); font-size: 0.72rem; margin-top: 2px; }
.shift { padding: 14px 16px 16px; border-top: 1px solid var(--navy-700); }
.shift-label { display: flex; justify-content: space-between; color: var(--navy-500); font-size: 0.7rem; margin-bottom: 8px; }
.shift-bar { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.shift-bar i { height: 18px; background: #0B5A94; }
.shift-bar i.night { background: var(--accent); }
.shift-bar i.now { background: #5FCFA8; }

/* Sections */
section { padding: 88px 0; }
section.tint { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--navy); color: #fff; }
section.dark .lead { color: var(--navy-200); }
section.dark .eyebrow { color: #5CC3EC; }
.section-head { margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.cell { background: var(--surface); padding: 28px; }
.cell h3 { margin-bottom: 8px; }
.cell p { color: var(--muted); font-size: 0.95rem; }
.cell .eyebrow { margin-bottom: 18px; color: var(--muted); }

/* Two offers on home */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer { border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; background: var(--surface); }
.offer.feature { background: var(--navy); color: #fff; border-color: var(--navy); }
.offer.feature p, .offer.feature li { color: var(--navy-200); }
.offer.feature .eyebrow { color: #5CC3EC; }
.offer h3 { font-size: 1.5rem; margin-bottom: 12px; }
.offer p { color: var(--muted); }
.offer .more { margin-top: auto; padding-top: 28px; font-weight: 600; }
.offer.feature .more a { color: #fff; }

ul.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
ul.ticks li { position: relative; padding: 7px 0 7px 26px; color: var(--muted); font-size: 0.95rem; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.offer.feature ul.ticks li::before, section.dark ul.ticks li::before { border-color: #5CC3EC; }
section.dark ul.ticks li { color: var(--navy-200); }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split + .split { margin-top: 72px; }
.split h2 { margin-bottom: 16px; }
.split p + p { margin-top: 14px; }
.split p { color: var(--muted); }
section.dark .split p { color: var(--navy-200); }

/* Steps: a real sequence, so numbered */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.step::before { content: "0" counter(step); font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span { font-family: var(--mono); font-size: 0.78rem; padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--navy-700); }
section.dark .chips span { background: transparent; border-color: var(--navy-700); color: var(--navy-200); }

/* Compare table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--surface); }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; }
thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--canvas); }
tbody th { font-weight: 600; width: 24%; }
tbody td { color: var(--muted); }
tbody td.us { color: var(--ink); background: var(--accent-50); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; background: var(--surface); }
.plan.feature { border: 2px solid var(--accent); }
.plan .price { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 4px; }
.plan .unit { color: var(--muted); font-size: 0.9rem; }
.plan .btn { margin-top: auto; }
.plan ul.ticks { margin-bottom: 28px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.4rem var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 32px 22px 0; }

/* CTA band */
.band { background: var(--accent); color: #fff; padding: 64px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { max-width: 22ch; }
.band .btn { background: #fff; color: var(--accent-700); border-color: #fff; }
.band .btn:hover { background: var(--accent-50); }

/* Contact */
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
form.card { border: 1px solid var(--line); padding: 32px; background: var(--surface); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label, legend { font-size: 0.85rem; font-weight: 600; }
input, select, textarea {
  font: 400 1rem var(--sans); color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--navy-200); border-radius: 0; background: #fff; width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.radios label { font-weight: 500; border: 1px solid var(--navy-200); padding: 9px 14px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.radios input { width: auto; accent-color: var(--accent); }
.radios label:has(input:checked) { border-color: var(--accent); background: var(--accent-50); }
.form-note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
dl.facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
dl.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
dl.facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
dl.facts dd { margin: 4px 0 0; font-weight: 500; }

/* Footer */
.site-footer { background: var(--navy); color: var(--navy-200); padding: 56px 0 32px; font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 { margin: 0 0 12px; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-500); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--navy-200); }
.site-footer a:hover { color: #fff; }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--navy-700); color: var(--navy-500); font-size: 0.82rem; }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .hero .wrap, .split, .offers, .contact { grid-template-columns: 1fr; gap: 40px; }
  .grid.c3, .grid.c4, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav .btn { margin-top: 8px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid.c2, .grid.c3, .grid.c4, .steps, .plans, form.card { grid-template-columns: 1fr; }
  .offer, .plan, form.card { padding: 24px; }
  .event { grid-template-columns: 44px 56px 1fr; padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Numbers strip under the home hero */
.stats { padding: 0; border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 24px 36px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.9rem; max-width: 24ch; }

/* Cells on the navy sections */
.grid.on-navy { background: var(--navy-700); border-color: var(--navy-700); }
.grid.on-navy .cell { background: var(--navy); display: flex; flex-direction: column; }
.grid.on-navy .cell p { color: var(--navy-200); }
.grid.on-navy .cell .eyebrow { color: #5CC3EC; }
.cell .more { margin-top: auto; padding-top: 20px; font-weight: 600; }
.grid.on-navy .more a { color: #fff; }
section.dark .split h2 { margin-bottom: 16px; }

ul.ticks.inline { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 28px; }
[id] { scroll-margin-top: 80px; }

@media (max-width: 900px) {
}

/* Data-flow diagram on the home page. Dots are SMIL; hidden when motion is reduced. */
.flow-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); padding: 16px; }
.flow { min-width: 700px; width: 100%; height: auto; font-family: var(--sans); }
.flow .zone { fill: var(--canvas); stroke: var(--navy-200); stroke-dasharray: 5 5; }
.flow .zl { font: 500 10px var(--mono); letter-spacing: 0.12em; fill: var(--muted); }
.flow .wire { fill: none; stroke: var(--navy-200); stroke-width: 1.5; }
.flow .node { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.flow .node.adam { fill: var(--accent); stroke: var(--accent); }
.flow .node.human { fill: var(--navy); }
.flow .nt { font-size: 14px; font-weight: 600; fill: var(--ink); }
.flow .ns { font: 400 10.5px var(--mono); fill: var(--muted); }
.flow .nt.adam, .flow .nt.human { fill: #fff; }
.flow .ns.adam { fill: #D9EEF9; }
.flow .dot { fill: var(--accent); }
.flow .dot.hot { fill: var(--danger); }

/* ADAM drift chart */
.chart-row { margin-top: 40px; align-items: center; }
.chart { margin: 0; border: 1px solid var(--line); background: var(--surface); padding: 20px; }
.chart figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.chart .band { fill: var(--accent-50); }
.chart .thresh { stroke: var(--danger); stroke-width: 1.5; stroke-dasharray: 6 5; }
.chart .series { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.chart.play .series { stroke-dasharray: 530; animation: draw 2.4s ease-out 0.3s backwards; }
.chart .pin { stroke: var(--accent); stroke-width: 1.5; }
.chart .flag { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.chart .late { fill: #fff; stroke: var(--danger); stroke-width: 2; }
.chart .cl { font: 500 11px var(--mono); fill: var(--muted); }
.chart .cl.strong { fill: var(--accent-700); }
/* Only a start state: if the animation never runs, the line is still there. */
@keyframes draw { from { stroke-dashoffset: 530; } }

/* The hero's example night plays in order */
.play .event { animation: rise 0.5s ease-out both; }
.panel .event:nth-child(1) { animation-delay: 0.3s; }
.panel .event:nth-child(2) { animation-delay: 1.0s; }
.panel .event:nth-child(3) { animation-delay: 1.7s; }
.panel .event:nth-child(4) { animation-delay: 2.4s; }
.shift-bar i.now { animation: pulse 1.6s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes pulse { 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .flow .dot { display: none; }
  .chart .series { animation: none; }
  .panel .event, .shift-bar i.now { animation: none; }
}

/* A lone last cell in a two-column grid spans the row instead of leaving a hole */
@media (min-width: 601px) and (max-width: 900px) {
  .grid.c3 > .cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Home hero, second version: a glow behind a live-looking console */
.hero::after {
  content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 160%;
  background: radial-gradient(closest-side, rgba(7, 144, 216, 0.38), transparent 70%);
  pointer-events: none;
}
.hero h1 em { font-style: normal; color: #5CC3EC; box-shadow: inset 0 -0.14em 0 rgba(7, 144, 216, 0.7); }
.hero-points { list-style: none; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--navy-700); display: grid; gap: 8px; font-size: 0.92rem; color: var(--navy-200); }
.hero-points li { padding-left: 24px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 5px; border-left: 2px solid #5FCFA8; border-bottom: 2px solid #5FCFA8; transform: rotate(-45deg); }
.console { position: relative; }
.console::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--navy-700); }
.console .panel { position: relative; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.live { display: inline-flex; align-items: center; gap: 8px; color: #5FCFA8; }
.live i { width: 7px; height: 7px; border-radius: 9999px; background: #5FCFA8; animation: pulse 1.6s ease-in-out infinite; }
.hero-chart { width: 100%; height: auto; border-bottom: 1px solid var(--navy-700); padding: 8px 6px 0; }
.hero-chart .hband { fill: rgba(92, 195, 236, 0.1); }
.hero-chart .hthresh { stroke: #F08A84; stroke-width: 1; stroke-dasharray: 5 5; }
.hero-chart .hl { font: 400 9px var(--mono); fill: var(--navy-500); letter-spacing: 0.04em; }
.hero-chart .harea { fill: url(#hg); }
.play .hero-chart .harea { animation: fadein 1.2s ease-out 1.8s backwards; }
.hero-chart .hline { fill: none; stroke: #5CC3EC; stroke-width: 2; stroke-linejoin: round; }
.play .hero-chart .hline { stroke-dasharray: 520; animation: hdraw 2.6s ease-out 0.2s backwards; }
.hero-chart .mark line { stroke: #5CC3EC; stroke-width: 1; }
.hero-chart .mark circle { fill: #086FBA; stroke: #fff; stroke-width: 1.5; }
.hero-chart .mark text { font: 500 9.5px var(--mono); fill: #fff; }
.hero-chart .m2 circle { fill: #5FCFA8; }
.play .hero-chart .m1 { animation: fadein 0.4s ease-out 2.1s backwards; }
.play .hero-chart .m2 { animation: fadein 0.4s ease-out 2.5s backwards; }
.console .event:nth-child(1) { animation-delay: 1.6s; }
.console .event:nth-child(2) { animation-delay: 2.0s; }
.console .event:nth-child(3) { animation-delay: 2.4s; }
.console .event:nth-child(4) { animation-delay: 2.8s; }
@keyframes hdraw { from { stroke-dashoffset: 520; } }
@keyframes fadein { from { opacity: 0; } }
@media (max-width: 900px) { .console::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-chart .harea, .hero-chart .hline, .hero-chart .mark, .live i { animation: none; }
}

/* Entrance animations run only under .play, which site.js adds when the block
   scrolls into view. Without it everything shows, unanimated. */
.hero .wrap { z-index: 1; }

/* Home hero, third version: centred message over a wide, live signal-flow stage */
.hero.center { padding: 80px 0 0; text-align: center; }
.hero.center::after { right: 15%; top: 20%; width: 70%; height: 110%; }
.hero.center .wrap { display: block; }
.hero.center h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); letter-spacing: -0.035em; line-height: 1.05; }
.hero.center h1 em { box-shadow: none; background: linear-gradient(90deg, #3DB4EE, #20C7B6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.center .lead { margin: 24px auto 0; max-width: 60ch; }
.hero.center .cta-row { justify-content: center; }
.hero.center .hero-points { border: 0; padding: 0; margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 7px 14px; border: 1px solid var(--navy-700); background: rgba(21, 27, 42, 0.7); font: 500 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-200); }
.pill i { width: 7px; height: 7px; border-radius: 9999px; background: #5FCFA8; animation: pulse 1.6s ease-in-out infinite; }

.stage-frame { margin-top: 56px; border: 1px solid var(--navy-700); border-bottom: 0; background: rgba(21, 27, 42, 0.82); box-shadow: 0 -20px 80px -30px rgba(7, 144, 216, 0.55); text-align: left; }
.stage-head { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--navy-700); font: 400 0.78rem var(--mono); color: var(--navy-200); }
.stage-body { padding: 28px 24px 36px; }
.stage { width: 100%; height: auto; font-family: var(--sans); overflow: visible; }
.stage .zone { fill: rgba(255, 255, 255, 0.025); stroke: var(--navy-500); stroke-dasharray: 5 6; }
.stage .zl { font: 500 10px var(--mono); letter-spacing: 0.14em; fill: var(--navy-500); }
.stage .wire { fill: none; stroke: var(--navy-700); stroke-width: 1.5; }
.stage .chip rect, .stage .node rect, .stage .card rect { fill: #151B2A; stroke: var(--navy-700); stroke-width: 1.2; }
.stage .chip text { font: 500 12px var(--mono); fill: var(--navy-200); }
.stage .node rect { stroke: var(--navy-500); }
.stage .nt { font-size: 15px; font-weight: 600; fill: #fff; }
.stage .ns { font: 400 10.5px var(--mono); fill: var(--navy-200); }
.stage .adam rect { fill: var(--accent); }
.stage .adam .nt { font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.stage .adam .ns { fill: #D9EEF9; }
.stage .ring { fill: none; stroke: #5CC3EC; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ring 2.8s ease-out infinite; }
.stage .ring.r2 { animation-delay: 1.4s; }
.stage .ct { font-size: 16px; font-weight: 600; fill: #fff; }
.stage .cs { font: 400 11.5px var(--mono); fill: var(--navy-200); }
.stage .card.human rect { fill: #fff; stroke: #fff; }
.stage .card.human .ct { fill: var(--ink); }
.stage .card.human .cs { fill: var(--muted); }
.stage .av { fill: var(--navy); }
.stage .on { fill: var(--ok); }
.stage .dot { fill: #5CC3EC; }
.stage .dot.hot { fill: #F08A84; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.55); opacity: 0; } }

.stage-mobile { display: none; list-style: none; margin: 0; padding: 0; }
.stage-mobile li { position: relative; padding: 16px 18px; border: 1px solid var(--navy-700); background: #151B2A; }
.stage-mobile li + li { margin-top: 28px; }
.stage-mobile li + li::before { content: ""; position: absolute; left: 50%; top: -29px; width: 2px; height: 28px; background: linear-gradient(#086FBA, #5FCFA8); animation: pulse 1.6s ease-in-out infinite; }
.stage-mobile b { display: block; color: #fff; font-size: 1.05rem; }
.stage-mobile span { font: 400 0.78rem var(--mono); color: var(--navy-200); }
.stage-mobile li.adam { background: var(--accent); border-color: var(--accent); }
.stage-mobile li.adam span { color: #D9EEF9; }
.stage-mobile li.human { background: #fff; border-color: #fff; }
.stage-mobile li.human b { color: var(--ink); }
.stage-mobile li.human span { color: var(--muted); }

.split.night { align-items: center; }
.split.night .console::before { border-color: var(--navy-200); }

@media (max-width: 720px) {
  .hero.center { padding-top: 56px; }
  .stage { display: none; }
  .stage-mobile { display: block; }
  .stage-body { padding: 20px 16px 28px; }
  .hero.center .hero-points { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .dot, .stage .ring { display: none; }
  .pill i, .stage-mobile li + li::before { animation: none; }
}

/* clip, not hidden: a hidden box can still be scrolled by script or focus, which
   would slide the hero's content under its own edge. */
.hero { overflow: clip; }

/* One-platform page: many tools on the left, one block on the right */
.merge { display: grid; grid-template-columns: 1.25fr 72px 1fr; gap: 24px; align-items: stretch; }
.merge-label { font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles li { position: relative; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 14px 14px 38px; }
.tiles .cat { font: 500 0.66rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tiles b { font-size: 0.92rem; font-weight: 600; line-height: 1.3; color: var(--navy-700); }
/* "replaced" sits in the corner like a stamp; the tool names stay readable */
.tiles em { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font: 500 0.66rem var(--mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-700); }
.tiles em::before { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.tiles.play li { animation: settle 0.5s ease-out backwards; }
.tiles.play em { animation: fadein 0.4s ease-out backwards; }
.tiles-note { margin-top: 16px; font-size: 0.82rem; color: var(--muted); max-width: 62ch; }
.eg { display: block; margin-top: 3px; font-size: 0.82rem; font-weight: 400; color: var(--muted); }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } }
.merge-arrow { display: flex; align-items: center; }
.merge-arrow span { position: relative; display: block; width: 100%; height: 2px; background: var(--accent); }
.merge-arrow span::after { content: ""; position: absolute; right: 0; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.merge-one { display: flex; flex-direction: column; }
.one { flex: 1; background: var(--navy); color: #fff; padding: 32px; }
.one svg { width: 44px; height: 44px; margin-bottom: 20px; }
.one h3 { font-size: 1.4rem; margin-bottom: 10px; }
.one p, .one ul.ticks li { color: var(--navy-200); }
.one ul.ticks li::before { border-color: #5CC3EC; }
.chip-m { display: inline-block; font: 500 0.66rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--accent); color: var(--accent-700); background: #fff; vertical-align: middle; }
table.two-col tbody th { width: 42%; }

/* Example status page */
.status-mock { background: #fff; color: var(--ink); border: 1px solid var(--navy-700); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.sm-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); font: 400 0.75rem var(--mono); color: var(--muted); }
.sm-ok { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem var(--sans); color: var(--ok); }
.sm-ok i { width: 10px; height: 10px; border-radius: 9999px; background: var(--ok); }
.sm-row { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sm-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.92rem; }
.sm-row span { font: 400 0.75rem var(--mono); color: var(--muted); }
.sm-strip { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; }
.sm-strip i { height: 26px; background: var(--ok); }
.sm-strip i.warn { background: var(--warn); }
.sm-foot { display: flex; justify-content: space-between; padding: 14px 20px; font: 400 0.78rem var(--mono); color: var(--muted); }
.sm-foot span:last-child { color: var(--ok); }

@media (max-width: 900px) {
  .merge { grid-template-columns: 1fr; }
  .merge-arrow { justify-content: center; height: 48px; }
  .merge-arrow span { width: 2px; height: 100%; }
  .merge-arrow span::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .tiles { grid-template-columns: 1fr 1fr; }
}

/* The logo's pulse line, travelling across the page. A dim line scrolls; a bright
   copy of it shows through a window that sweeps along. */
.pulse { position: relative; height: 48px; pointer-events: none; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='48' viewBox='0 0 220 48'%3E%3Cpath d='M0 24h84l12-18 16 34 12-16h96' fill='none' stroke='%235CC3EC' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") repeat-x 0 50% / 220px 48px; animation: wave 5s linear infinite; }
.pulse::before { opacity: 0.22; }
.pulse::after {
  -webkit-mask: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent) no-repeat -40% 0 / 40% 100%;
  mask: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent) no-repeat -40% 0 / 40% 100%;
  filter: drop-shadow(0 0 6px rgba(92, 195, 236, 0.9));
  animation: wave 5s linear infinite, sweep 6s linear infinite;
}
/* Clear space above and below, so the line reads as its own element between the
   message and the diagram and never tucks under the diagram's frame. */
.pulse.wide { width: 100vw; margin: 40px 0 36px calc(50% - 50vw); }
.pulse.edge { position: absolute; left: 0; right: 0; bottom: 0; }
.hero.center .stage-frame { margin-top: 0; }
.band { position: relative; overflow: clip; }
.band .wrap { position: relative; }
.band::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 48px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='48' viewBox='0 0 220 48'%3E%3Cpath d='M0 24h84l12-18 16 34 12-16h96' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") repeat-x 0 50% / 220px 48px; opacity: 0.22; animation: wave 5s linear infinite; }
@keyframes wave { to { background-position-x: -220px; } }
@keyframes sweep { from { -webkit-mask-position: -70% 0; mask-position: -70% 0; } to { -webkit-mask-position: 170% 0; mask-position: 170% 0; } }

/* The AI mark used wherever ADAM appears */
.ai { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.28em; margin-right: 0.5em; fill: currentColor; }
.ai .tw, .stage .spark .tw { transform-box: fill-box; transform-origin: center; animation: twinkle 2.2s ease-in-out infinite; }
.stage .spark { fill: #fff; }
.stage-mobile li.adam .ai { float: right; width: 26px; height: 26px; margin: 2px 0 0; color: #fff; }
@keyframes twinkle { 50% { opacity: 0.25; } }

@media (prefers-reduced-motion: reduce) {
  .pulse::before, .pulse::after, .band::before, .ai .tw, .stage .spark .tw { animation: none; }
  .pulse::after { display: none; }
}

.tiles.play li:nth-child(1) { animation-delay: 0.06s; } .tiles.play li:nth-child(1) em { animation-delay: 0.58s; }
.tiles.play li:nth-child(2) { animation-delay: 0.12s; } .tiles.play li:nth-child(2) em { animation-delay: 0.66s; }
.tiles.play li:nth-child(3) { animation-delay: 0.18s; } .tiles.play li:nth-child(3) em { animation-delay: 0.74s; }
.tiles.play li:nth-child(4) { animation-delay: 0.24s; } .tiles.play li:nth-child(4) em { animation-delay: 0.82s; }
.tiles.play li:nth-child(5) { animation-delay: 0.30s; } .tiles.play li:nth-child(5) em { animation-delay: 0.90s; }
.tiles.play li:nth-child(6) { animation-delay: 0.36s; } .tiles.play li:nth-child(6) em { animation-delay: 0.98s; }
.tiles.play li:nth-child(7) { animation-delay: 0.42s; } .tiles.play li:nth-child(7) em { animation-delay: 1.06s; }
.tiles.play li:nth-child(8) { animation-delay: 0.48s; } .tiles.play li:nth-child(8) em { animation-delay: 1.14s; }
.tiles.play li:nth-child(9) { animation-delay: 0.54s; } .tiles.play li:nth-child(9) em { animation-delay: 1.22s; }
.tiles.play li:nth-child(10) { animation-delay: 0.60s; } .tiles.play li:nth-child(10) em { animation-delay: 1.30s; }
.tiles.play li:nth-child(11) { animation-delay: 0.66s; } .tiles.play li:nth-child(11) em { animation-delay: 1.38s; }
.tiles.play li:nth-child(12) { animation-delay: 0.72s; } .tiles.play li:nth-child(12) em { animation-delay: 1.46s; }
@media (prefers-reduced-motion: reduce) { .tiles.play li, .tiles.play em { animation: none; } }

/* Stats strip, second version: five facts, each with a name and a line of detail */
.stats .wrap { grid-template-columns: repeat(5, 1fr); }
.stat { padding: 40px 20px 40px 0; }
.stat + .stat { padding-left: 20px; }
.stat b.accent { color: var(--accent); }
.stat h3 { margin-top: 14px; font-size: 0.98rem; }
.stat span { margin-top: 6px; max-width: none; font-size: 0.86rem; }

/* The pulse line now runs directly under the header, on every page */
.pulse.top { position: absolute; left: 0; right: 0; top: 0; }
.hero.center .stage-frame { margin-top: 56px; }

@media (max-width: 1000px) {
  .stats .wrap { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 24px 12px 24px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; }
}

/* The header's bottom border is the logo's pulse line: it sits exactly on the edge
   between header and page, scrolls along, and a brighter stretch sweeps across it. */
.site-header { border-bottom-color: transparent; }
.site-header::before, .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 48px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='48' viewBox='0 0 220 48'%3E%3Cpath d='M0 24h84l10-12 14 26 10-14h102' fill='none' stroke='%23086FBA' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") repeat-x 0 50% / 220px 48px;
  animation: wave 5s linear infinite;
}
.site-header::before { opacity: 0.45; }
.site-header::after {
  -webkit-mask: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent) no-repeat -70% 0 / 40% 100%;
  mask: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent) no-repeat -70% 0 / 40% 100%;
  filter: drop-shadow(0 0 5px rgba(7, 144, 216, 0.9));
  animation: wave 5s linear infinite, sweep 6s linear infinite;
}
@media (max-width: 900px) { .nav { z-index: 1; } }
@media (prefers-reduced-motion: reduce) {
  .site-header::before { animation: none; }
  .site-header::after { display: none; }
}

/* Stats: every column uses the same three rows, so symbols, names and detail line up */
.stat { display: grid; grid-template-rows: 3rem auto 1fr; align-content: start; }
.stat b { display: flex; align-items: flex-end; height: 3rem; font-size: 2.6rem; line-height: 1; }
.stat b.accent { font-size: 3rem; line-height: 0.82; }
.stat h3 { margin-top: 16px; white-space: nowrap; }
.stat span { text-wrap: balance; }

/* Live pulse on the header's edge, drawn by site.js. The CSS line stays as the
   fallback when scripts are off or motion is reduced. */
.pulse-canvas { position: absolute; left: 0; width: 100%; height: 48px; pointer-events: none; }
.pulse-canvas.under { bottom: -24px; }
.pulse-canvas.over { top: -24px; }
.site-header.has-pulse::before, .site-header.has-pulse::after { display: none; }

/* The footer's top edge carries the same pulse as the header's bottom edge, so the
   line lives between the footer and whatever section sits above it. */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 48px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='48' viewBox='0 0 220 48'%3E%3Cpath d='M0 24h84l10-12 14 26 10-14h102' fill='none' stroke='%23C8ECFA' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") repeat-x 0 50% / 220px 48px; opacity: 0.6; }
.site-footer.has-pulse::before { display: none; }
.band::before { display: none; }

/* Boxes that share a row share a height */
.grid, .tiles { grid-auto-rows: 1fr; }
.split:has(> .grid), .split:has(> .status-mock) { align-items: stretch; }
.split > .grid, .split > .status-mock { height: 100%; }
.split:has(> .grid) > :not(.grid), .split:has(> .status-mock) > :not(.status-mock) { align-self: center; }
.status-mock { display: flex; flex-direction: column; }
.status-mock .sm-row { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* Stacked in one column there is no row to match, so cards size to their own text */
@media (max-width: 600px) { .grid { grid-auto-rows: auto; } }

/* The real logo: full lockup in the header, the eye mark with white type on navy */
.brand img { display: block; height: 36px; width: auto; }
.site-footer .brand img { height: 32px; }
.site-footer .brand span { font-size: 1.15rem; }
.one .one-mark { height: 48px; width: auto; margin-bottom: 20px; }

/* Logo gradient, used where white text sits on it at heading size only */
.band { background: linear-gradient(90deg, #086FBA, #0790D8 60%, #0E9FCC); }
.band .btn { color: var(--accent-700); }
.stage .adam rect { fill: #086FBA; }
