/* ===========================================================
   Klaxon concept demo stylesheet
   Warm-light editorial page + dark "control-room" product panels.
   Self-contained. Does not extend base.css.
   =========================================================== */

:root {
  /* warm-light page (letaido-family), ONE accent locked = signal amber */
  --paper:      #eae7df;   /* page background */
  --paper-2:    #e3dfd5;   /* alt band */
  --card:       #f6f4ee;   /* raised light surface */
  --ink:        #1c1913;   /* near-black warm text */
  --ink-soft:   #4b463c;   /* secondary text */
  --ink-faint:  #837c6e;   /* tertiary / captions */
  --line:       #d3cec1;   /* hairlines on paper */
  --line-soft:  #ded9cd;

  --accent:     #b06e22;   /* signal amber, the ONE accent */
  --accent-ink: #8a5416;   /* accent text on light for contrast */
  --accent-soft:#f0e4d1;   /* accent tint background */

  /* dark product-panel surfaces ("control room") */
  --p-bg:       #161310;   /* panel background */
  --p-bg-2:     #1f1b16;   /* raised inside panel */
  --p-bg-3:     #272219;   /* row / chip inside panel */
  --p-line:     #35301f2e; /* subtle */
  --p-line-2:   #3a3327;
  --p-text:     #efe9dc;
  --p-text-soft:#b3ab99;
  --p-text-faint:#7e7767;
  --p-amber:    #e6ad57;   /* brighter amber for dark panels */

  /* status semantics, ONLY used inside panels */
  --s-ok:       #6f9a5e;
  --s-degraded: #cf9a3a;
  --s-down:     #cc5a48;

  --radius-panel: 16px;
  --radius-card:  14px;
  --radius-chip:  9px;
  --radius-pill:  999px;

  --wrap: 1140px;
  --tap: 48px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", -apple-system, "system-ui", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-fg);
  cursor: pointer; transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-primary { --b-bg: var(--accent); --b-fg: #1c1204; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.btn-primary:hover { background: #bd7a2c; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #00000008; transform: translateY(-1px); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.link-quiet { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.link-quiet:hover { color: var(--ink); }

/* ---------- header ---------- */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; transition: height .25s var(--ease); }
.site-header.is-stuck .header-inner { height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--accent-ink); flex: none; }
.brand-word { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }

.site-nav { display: flex; gap: 26px; margin-left: 8px; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.site-nav a:hover { color: var(--ink); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .1s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-title {
  font-size: clamp(2.6rem, 5.4vw, 4.15rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin: 0 0 22px;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.5;
  color: var(--ink-soft); max-width: 30ch; margin: 0 0 30px; font-weight: 400;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.panel-caption { font-size: 12.5px; color: var(--ink-faint); margin: 12px 2px 0; text-align: right; }

/* ---------- WAR-ROOM PANEL (flagship, dark) ---------- */
.warroom {
  background: var(--p-bg); color: var(--p-text);
  border: 1px solid var(--p-line-2); border-radius: var(--radius-panel);
  padding: 18px; box-shadow: 0 30px 60px -32px rgba(24,18,8,.55), 0 2px 0 rgba(0,0,0,.15);
}
.warroom-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--p-line-2); }
.wr-inc { display: flex; gap: 11px; align-items: center; }
.sev { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 7px; letter-spacing: .02em; flex: none; }
.sev-1 { background: color-mix(in srgb, var(--s-down) 22%, transparent); color: #f0a99c; border: 1px solid color-mix(in srgb, var(--s-down) 45%, transparent); }
.wr-inc-txt { display: flex; flex-direction: column; line-height: 1.3; }
.wr-inc-txt strong { font-size: 15.5px; font-weight: 600; }
.wr-inc-sub { font-family: var(--mono); font-size: 11.5px; color: var(--p-text-faint); }
.wr-clock { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.wr-clock-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--p-text-faint); }
.wr-clock-val { font-size: 22px; font-weight: 500; color: var(--p-amber); }

.wr-body { display: grid; grid-template-columns: 0.82fr 1fr; gap: 16px; padding-top: 15px; }
.wr-mini-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--p-text-faint); margin-bottom: 9px; }
.wr-affected-label { margin-top: 16px; }

.avatars { display: flex; }
.ava {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: #14110b;
  background: var(--a, #888); border: 2px solid var(--p-bg); margin-left: -7px;
}
.ava:first-child { margin-left: 0; }
.ava-more { background: var(--p-bg-3); color: var(--p-text-soft); }

.wr-services { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.wr-services li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-family: var(--mono); color: var(--p-text-soft); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--s-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-ok) 20%, transparent); }
.dot-degraded { background: var(--s-degraded); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-degraded) 20%, transparent); }
.dot-down { background: var(--s-down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-down) 20%, transparent); }

.wr-stream { border-left: 1px solid var(--p-line-2); padding-left: 16px; }
.stream { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stream li { font-size: 12.5px; line-height: 1.4; color: var(--p-text-soft); }
.st-time { color: var(--p-text-faint); margin-right: 6px; font-size: 11.5px; }
.st-who { color: var(--p-text); font-weight: 600; }
.stream b { color: var(--p-text); font-weight: 600; }
.st-live { color: var(--p-text); }
.st-live .st-who { color: var(--p-amber); }

/* ===========================================================
   INTEGRATIONS STRIP
   =========================================================== */
.integrations { padding: 26px 0 44px; }
.strip-lede { text-align: center; color: var(--ink-faint); font-size: 14px; font-weight: 500; letter-spacing: .01em; margin: 0 0 20px; }
.pill-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px dashed var(--line); color: var(--ink-soft);
  font-size: 14.5px; font-weight: 600; background: #ffffff35;
}
.pill .glyph { width: 18px; height: 18px; color: var(--ink-faint); flex: none; }

/* ===========================================================
   NARRATIVE + ALERT GROUPING
   =========================================================== */
.narrative { padding: 60px 0 76px; }
.narr-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-ink); margin: 0 0 14px; }
.narr-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 18px; }
.narr-body { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; margin: 0; }

/* alert grouping animation */
.alertgroup { position: relative; min-height: 300px; display: grid; place-items: center; }
.ag-storm { position: relative; width: 100%; max-width: 400px; height: 260px; }
.ag-alert {
  position: absolute; left: 50%; top: 50%;
  display: flex; align-items: center; gap: 9px;
  background: var(--p-bg-2); color: var(--p-text-soft);
  border: 1px solid var(--p-line-2); border-radius: 10px;
  padding: 10px 13px; font-size: 12.5px; width: 240px;
  box-shadow: 0 12px 26px -18px rgba(0,0,0,.6);
  /* scattered storm positions via per-item transform */
  transform: translate(-50%, -50%) var(--scatter);
  transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.ag-alert .ag-src { margin-left: auto; color: var(--p-text-faint); font-size: 11px; }
.ag-alert[style*="--i:0"] { --scatter: translate(-118%, -128%) rotate(-7deg); }
.ag-alert[style*="--i:1"] { --scatter: translate(12%, -138%) rotate(5deg); }
.ag-alert[style*="--i:2"] { --scatter: translate(-138%, -34%) rotate(-3deg); }
.ag-alert[style*="--i:3"] { --scatter: translate(30%, -22%) rotate(6deg); }
.ag-alert[style*="--i:4"] { --scatter: translate(-108%, 66%) rotate(4deg); }
.ag-alert[style*="--i:5"] { --scatter: translate(20%, 82%) rotate(-6deg); }
.ag-alert[style*="--i:6"] { --scatter: translate(-56%, 128%) rotate(2deg); }

.ag-result {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9);
  opacity: 0; transition: opacity .5s var(--ease) .35s, transform .6s var(--ease) .35s;
  width: 300px; pointer-events: none;
}
.ag-result-inner {
  display: flex; align-items: center; gap: 12px;
  background: var(--p-bg); border: 1px solid var(--p-line-2); border-radius: 13px;
  padding: 15px 17px; box-shadow: 0 26px 50px -26px rgba(0,0,0,.7);
}
.ag-result-txt { display: flex; flex-direction: column; line-height: 1.35; }
.ag-result-txt strong { color: var(--p-text); font-size: 15px; }
.ag-count { font-size: 12px; color: var(--p-text-faint); font-family: var(--mono); }
.ag-count b { color: var(--p-amber); }

/* grouped state (added by JS on scroll-in) */
.alertgroup.is-grouped .ag-alert { --scatter: translate(-50%, -50%) scale(.86); opacity: 0; }
.alertgroup.is-grouped .ag-result { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .ag-alert { display: none; }
  .ag-result { opacity: 1; transform: translate(-50%,-50%); }
}

/* ===========================================================
   FEATURE BENTO
   =========================================================== */
.features { padding: 40px 0 84px; }
.section-head { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 40px; max-width: 20ch; }

.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cell {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-card);
  padding: 26px; display: flex; flex-direction: column;
}
.cell h3 { font-size: 1.18rem; letter-spacing: -0.02em; font-weight: 650; margin: 0 0 8px; }
.cell p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* full-width hero tile: text left, horizontal stepper right */
.cell-hero { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 44px; }
.cell-hero .cell-txt { flex: 0 0 36%; max-width: 380px; }
.cell-hero .mini { flex: 1; margin-top: 0; }

/* horizontal stepper (hero mini) */
.mini-steps { display: flex; gap: 10px; }
.step {
  flex: 1; display: flex; flex-direction: column; gap: 9px;
  padding: 14px 15px; background: var(--p-bg-2); border: 1px solid var(--p-line-2);
  border-radius: 10px; position: relative;
}
.step-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--p-text-faint); background: var(--p-bg); }
.step-k { font-size: 12px; color: var(--p-text-soft); line-height: 1.25; }
.step-t { font-size: 11px; color: var(--p-text-faint); }
.step-done .step-dot { background: var(--s-ok); border-color: var(--s-ok); }
.step-done .step-k { color: var(--p-text); }
.step-active .step-dot { background: var(--p-amber); border-color: var(--p-amber); }
.step-active .step-k { color: var(--p-text); font-weight: 600; }

.chip {
  width: 40px; height: 40px; border-radius: var(--radius-chip); flex: none;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 15px;
}
.chip svg { display: block; }
.chip-a { background: var(--accent-soft); color: var(--accent-ink); }
.chip-b { background: #e5e9df; color: #56673f; }
.chip-c { background: #e6e2ea; color: #5f5470; }
.chip-d { background: #dde7e9; color: #416068; }

/* mini panels (dark) */
.mini {
  background: var(--p-bg); border: 1px solid var(--p-line-2); border-radius: 12px;
  padding: 16px; margin-top: 18px; color: var(--p-text);
}
.cell-wide .mini { margin-top: 0; }

/* timeline mini */
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.tl li { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; position: relative; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--p-text-faint); background: var(--p-bg); z-index: 1; }
.tl li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: -7px; width: 2px; background: var(--p-line-2); }
.tl-k { font-size: 13px; color: var(--p-text-soft); }
.tl-t { font-size: 12px; color: var(--p-text-faint); }
.tl-done .tl-dot { border-color: var(--s-ok); background: var(--s-ok); }
.tl-done .tl-k { color: var(--p-text); }
.tl-active .tl-dot { border-color: var(--p-amber); background: var(--p-amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-amber) 22%, transparent); }
.tl-active .tl-k { color: var(--p-text); font-weight: 600; }

/* on-call mini */
.mini-oncall { display: flex; flex-direction: column; gap: 9px; }
.oc-row { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.oc-name { color: var(--p-text); }
.oc-tag { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--p-text-faint); border: 1px solid var(--p-line-2); border-radius: 6px; padding: 2px 7px; }
.oc-now { color: #b8d3a3; border-color: color-mix(in srgb, var(--s-ok) 40%, transparent); }

/* doc mini */
.mini-doc { display: flex; flex-direction: column; gap: 9px; }
.doc-h { font-size: 12.5px; color: var(--p-text); font-weight: 600; }
.doc-line { height: 8px; border-radius: 4px; background: var(--p-bg-3); }
.doc-line.w80 { width: 80%; } .doc-line.w70 { width: 70%; } .doc-line.w60 { width: 60%; }

/* group mini */
.mini-group { display: flex; align-items: center; justify-content: center; gap: 14px; }
.mg-many { font-family: var(--mono); font-size: 13px; color: var(--p-text-faint); }
.mg-arrow { color: var(--p-amber); font-size: 18px; }
.mg-one { font-family: var(--mono); font-size: 14px; color: var(--p-text); font-weight: 600; background: var(--p-bg-3); padding: 5px 11px; border-radius: 7px; }

/* status mini */
.mini-status { display: flex; flex-direction: column; gap: 12px; }
.ms-row { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 12px; }
.ms-name { font-size: 12.5px; color: var(--p-text-soft); }
.ms-bars { display: flex; gap: 3px; }
.ms-bars i { flex: 1; height: 20px; border-radius: 2px; background: var(--s-ok); opacity: .85; }
.ms-bars i.b-d { background: var(--s-down); }
.ms-bars i.b-w { background: var(--s-degraded); }
.ms-pct { font-size: 12px; color: var(--p-text-faint); }

/* ===========================================================
   HOW IT WORKS (tabs)
   =========================================================== */
.how { padding: 84px 0; background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.how-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 26px; max-width: 15ch; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab {
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 18px; min-height: 42px; cursor: pointer; transition: all .2s var(--ease);
}
.tab:hover { color: var(--ink); border-color: var(--ink-faint); }
.tab.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.how-points { list-style: none; margin: 0; padding: 0; min-height: 3.4em; }
.how-points li { font-size: 1.12rem; color: var(--ink-soft); line-height: 1.5; max-width: 40ch; }

/* all panels stacked in one grid cell so the wrapper is always as tall as
   the tallest panel: switching tabs never changes the section height */
.how-panelwrap { display: grid; }
.how-panel {
  grid-area: 1 / 1;
  background: var(--p-bg); color: var(--p-text);
  border: 1px solid var(--p-line-2); border-radius: var(--radius-panel);
  padding: 20px; box-shadow: 0 30px 60px -34px rgba(24,18,8,.5);
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.how-panel.is-active {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .how-panel { transition: opacity .01s, visibility 0s linear .01s; transform: none; }
  .how-panel.is-active { transition: opacity .01s, visibility 0s; }
}

.hp-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--p-line-2); margin-bottom: 14px; }
.hp-title { font-weight: 600; font-size: 15px; }
.hp-tag { font-size: 11.5px; color: var(--p-text-faint); border: 1px solid var(--p-line-2); border-radius: 6px; padding: 3px 8px; }
.hp-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hp-item { display: flex; align-items: center; gap: 9px; font-size: 13px; font-family: var(--mono); color: var(--p-text-soft); background: var(--p-bg-2); border: 1px solid var(--p-line-2); border-radius: 8px; padding: 9px 12px; }
.hp-src { margin-left: auto; color: var(--p-text-faint); font-size: 11.5px; }
.hp-foot { font-size: 13px; color: var(--p-text-soft); padding-top: 4px; }
.hp-foot strong, .hp-foot b { color: var(--p-text); }
.hp-resp { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hp-resp-txt { font-size: 13.5px; color: var(--p-text-soft); margin: 0; line-height: 1.45; }
.hp-resp-txt strong { color: var(--p-text); }
.tl-panel li { padding: 9px 0; }
.mini-doc-panel { gap: 11px; }
.mini-doc-panel .doc-line { background: var(--p-bg-2); }

/* ===========================================================
   PROOF (metrics + testimonial)
   =========================================================== */
.proof { padding: 84px 0; }
.proof-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.stat-big { font-size: clamp(3.4rem, 8vw, 6rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 12px; color: var(--accent-ink); }
.stat-cap { font-size: 1.15rem; color: var(--ink); max-width: 24ch; margin: 0 0 10px; line-height: 1.4; }
.stat-note { font-size: 12.5px; color: var(--ink-faint); margin: 0; }

.quote { margin: 0; }
.quote blockquote { font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.4; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 22px; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.ava-lg { width: 46px; height: 46px; font-size: 15px; border-width: 0; }
.q-who { display: flex; flex-direction: column; line-height: 1.35; }
.q-who strong { font-weight: 650; }
.q-who span { font-size: 14px; color: var(--ink-faint); }

.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 34px; }
.pr-col { display: flex; flex-direction: column; gap: 8px; }
.pr-num { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.pr-lab { font-size: 14.5px; color: var(--ink-soft); max-width: 24ch; }

/* ===========================================================
   PUBLIC STATUS BOARD
   =========================================================== */
.status { padding: 40px 0 90px; }
.statusboard {
  background: var(--p-bg); color: var(--p-text);
  border: 1px solid var(--p-line-2); border-radius: 20px;
  padding: 26px 28px; box-shadow: 0 40px 80px -44px rgba(24,18,8,.55);
}
.sb-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--p-line-2); }
.sb-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; }
.sb-overall { font-size: 13.5px; color: var(--s-degraded); font-family: var(--mono); }
.sb-list { list-style: none; margin: 0; padding: 8px 0 0; }
.sb-item { display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--p-line); }
.sb-item + .sb-item { border-top: none; }
.sb-svc { display: flex; flex-direction: column; gap: 5px; }
.sb-name { font-size: 15px; font-weight: 550; }
.sb-state { font-size: 11.5px; font-family: var(--mono); }
.sb-ok { color: #9fc088; }
.sb-degraded { color: var(--s-degraded); }
.sb-history { display: flex; gap: 2px; height: 30px; }
.sb-history i { flex: 1; border-radius: 2px; background: var(--s-ok); opacity: .8; }
.sb-uptime { font-size: 13.5px; color: var(--p-text-soft); }
.sb-foot { padding-top: 18px; font-size: 12.5px; color: var(--p-text-faint); }

/* ===========================================================
   FINAL CTA
   =========================================================== */
.cta { padding: 0 0 90px; }
.cta-card {
  background: var(--p-bg); color: var(--p-text);
  border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
  box-shadow: 0 40px 90px -50px rgba(24,18,8,.6);
}
.cta-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; margin: 0 0 22px; }
.cta-checks { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-checks li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: var(--p-text-soft); }
.cta-checks li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--s-ok) 30%, transparent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4 10-10' fill='none' stroke='%239fc088' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 15px; background-repeat: no-repeat; background-position: center; }
.cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-fine { font-size: 13.5px; color: var(--p-text-faint); }
.cta-side { display: grid; place-items: center; }
.cta-badge { display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--p-amber); }
.cta-badge-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--p-text-soft); background: var(--p-bg-2); border: 1px solid var(--p-line-2); border-radius: var(--radius-pill); padding: 8px 15px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 60px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 14.5px; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-note { padding-top: 24px; }
.concept-credit { font-size: 14.5px; color: var(--ink); margin: 0 0 8px; font-weight: 500; }
.concept-credit a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.concept-credit a:hover { text-decoration: underline; }
.concept-disclaimer { font-size: 13px; color: var(--ink-faint); max-width: 62ch; margin: 0; line-height: 1.5; }

/* ===========================================================
   LIVENESS / MOTION
   All opt-in via prefers-reduced-motion: no-preference. Under reduced
   motion none of it applies and every panel renders in its end state.
   =========================================================== */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-amber); display: inline-block; flex: none; }
.wr-live-label { display: inline-flex; align-items: center; gap: 7px; }

@media (prefers-reduced-motion: no-preference) {

  /* pulsing status dots (live-monitoring feel) */
  @keyframes klx-ring {
    0%   { box-shadow: 0 0 0 0 var(--pc); }
    70%  { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }
  .wr-services .dot-down   { --pc: color-mix(in srgb, var(--s-down) 55%, transparent);     animation: klx-ring 2.2s ease-out infinite; }
  .sb-brand .dot-degraded  { --pc: color-mix(in srgb, var(--s-degraded) 55%, transparent); animation: klx-ring 2.2s ease-out infinite; }
  .step-active .step-dot   { --pc: color-mix(in srgb, var(--p-amber) 60%, transparent);    animation: klx-ring 2s ease-out infinite; }
  .tl-active .tl-dot       { --pc: color-mix(in srgb, var(--p-amber) 60%, transparent);    animation: klx-ring 2s ease-out infinite; }
  .live-dot                { --pc: color-mix(in srgb, var(--p-amber) 65%, transparent);    animation: klx-ring 1.8s ease-out infinite; }
  .cta-badge-live .dot-ok  { --pc: color-mix(in srgb, var(--s-ok) 55%, transparent);       animation: klx-ring 2.4s ease-out infinite; }

  /* war-room update stream: items slide in on reveal */
  @keyframes klx-slidein { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
  .hero-panel .stream li { opacity: 0; }
  .hero-panel.is-visible .stream li { animation: klx-slidein .5s var(--ease) forwards; }
  .hero-panel.is-visible .stream li:nth-child(1) { animation-delay: .30s; }
  .hero-panel.is-visible .stream li:nth-child(2) { animation-delay: .48s; }
  .hero-panel.is-visible .stream li:nth-child(3) { animation-delay: .66s; }
  .hero-panel.is-visible .stream li:nth-child(4) { animation-delay: .84s; }

  /* hero stepper: steps rise in on reveal */
  @keyframes klx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .cell-hero .step { opacity: 0; }
  .cell-hero.is-visible .step { animation: klx-rise .5s var(--ease) forwards; }
  .cell-hero.is-visible .step:nth-child(1) { animation-delay: .10s; }
  .cell-hero.is-visible .step:nth-child(2) { animation-delay: .22s; }
  .cell-hero.is-visible .step:nth-child(3) { animation-delay: .34s; }
  .cell-hero.is-visible .step:nth-child(4) { animation-delay: .46s; }

  /* public status board: uptime bars grow up on reveal, staggered */
  @keyframes klx-grow { from { transform: scaleY(.12); opacity: .35; } to { transform: scaleY(1); opacity: .8; } }
  .statusboard .sb-history i { transform-origin: bottom; transform: scaleY(.12); opacity: .35; }
  .statusboard.is-visible .sb-history i { animation: klx-grow .45s var(--ease) forwards; animation-delay: calc(var(--bi, 0) * 6ms); }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 960px) {
  .hero-grid, .narr-grid, .how-grid, .proof-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 56px; }
  .hero-sub { max-width: 42ch; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cta-card { grid-template-columns: 1fr; padding: 36px; }
  .cta-side { display: none; }
  .site-nav { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .bento { grid-template-columns: 1fr; }
  .cell-hero { flex-direction: column; align-items: stretch; gap: 22px; grid-column: 1 / -1; }
  .cell-hero .cell-txt { flex: none; max-width: none; }
  .mini-steps { flex-wrap: wrap; }
  .mini-steps .step { flex: 1 1 calc(50% - 5px); }
  .wr-body { grid-template-columns: 1fr; }
  .wr-stream { border-left: none; border-top: 1px solid var(--p-line-2); padding-left: 0; padding-top: 14px; }
  .proof-row { grid-template-columns: 1fr; gap: 22px; }
  .sb-item { grid-template-columns: 1fr auto; gap: 12px 16px; }
  .sb-history { grid-column: 1 / -1; order: 3; }
  .header-actions .link-quiet { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
