/* ==========================================================================
   Bessnetic — Overnight NOC
   ========================================================================== */

@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0a0f0d;
  --bg-2: #0d1411;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e2ede7;
  --muted: #a8bab0;
  --dim: #7d9188;

  --sun: #ffb547;
  --sun-2: #ff7a59;
  --dusk: #c8506a;
  --brand: #3dffa0;
  --ok: #3dffa0;
  --ok-dim: rgba(61, 255, 160, 0.12);
  --accent: #3dffa0;
  --accent-2: #7dffc0;
  --accent-deep: #1f8f5a;
  --warn: #ffcc4d;
  --crit: #ff7a6b;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; font-family: var(--display); }
h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.03em; }
h3 { font-size: 20px; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }

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

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #04130b; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

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

.grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* over the sky scenes the green gets a soft shadow so it reads against the sunset */
.hero h1 .grad { filter: drop-shadow(0 2px 14px rgba(6,9,20,.7)); }

.lead { color: var(--muted); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; max-width: 62ch; }

.kicker {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px; font-family: var(--display);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  color: #04130b;
  box-shadow: 0 8px 30px -8px rgba(61, 255, 160, .45);
}
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 12px 40px -8px rgba(61, 255, 160, .6); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 15, 13, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: baseline; font: 600 19px/1 var(--mono); letter-spacing: .12em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--brand); }
.brand small { font: 500 11px var(--mono); color: var(--muted); letter-spacing: .14em; margin-left: 9px; padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 5px; transform: translateY(-2px); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 15.5px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.nav__mobile { display: grid; gap: 4px; padding: 8px var(--gutter) 20px; background: rgba(10,15,13,.96); border-bottom: 1px solid var(--line); }
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) { padding: 12px 4px; text-decoration: none; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 12px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.menu-open { background: rgba(10,15,13,.96); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(680px, 100svh);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #1d2a5a;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,9,20,.62) 0%, rgba(6,9,20,.32) 38%, rgba(6,9,20,0) 62%),
    linear-gradient(180deg, rgba(6,9,20,.35) 0%, rgba(6,9,20,0) 22%, rgba(6,9,20,0) 70%, var(--bg) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .72fr);
  gap: 48px; align-items: end;
  padding-top: 120px; padding-bottom: 96px;
}
.hero__copy { max-width: 760px; }
.hero h1 {
  font-size: clamp(36px, 4.9vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 18px 0 22px;
  text-shadow: 0 2px 40px rgba(6,9,20,.35);
}
.hero .lead { color: rgba(240, 243, 250, .92); text-shadow: 0 1px 20px rgba(6,9,20,.5); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__ctas--center { justify-content: center; }
.hero__proof { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: rgba(240,243,250,.88); text-shadow: 0 1px 12px rgba(6,9,20,.6); }
.hero__proof li { display: flex; align-items: center; gap: 7px; }
.hero__proof li::before { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.5 3 3L15 6.5' fill='none' stroke='%233dffa0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 15px 8px 13px; border-radius: 999px;
  background: rgba(6,9,20,.35); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,.88);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,255,160,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61,255,160,0); } 100% { box-shadow: 0 0 0 0 rgba(61,255,160,0); } }

.clocks { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; }
.clock {
  padding: 10px 16px; border-radius: 12px; min-width: 128px;
  background: rgba(6,9,20,.38); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.clock dt { font-size: 12.5px; color: rgba(255,255,255,.62); letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); }
.clock dd { margin: 2px 0 0; font-family: var(--mono); font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.clock--noc { border-color: rgba(61,255,160,.4); }
.clock--noc dd { color: var(--ok); }

/* feed */
.feed {
  align-self: end;
  background: rgba(6, 9, 20, .62);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 14px 14px 10px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  font-family: var(--mono);
  height: 330px;
  display: flex; flex-direction: column;
}
.feed__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; border-bottom: 1px solid var(--line); }
.feed__status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sun); transition: color .4s; }
.feed__status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.feed__status.is-noc { color: var(--ok); }
.feed__status.is-hand { color: #b38cff; }
.feed__replay { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.feed__replay:hover { color: var(--text); border-color: var(--line-2); }
.feed__replay svg { width: 15px; height: 15px; }
.feed__log { list-style: none; margin: 0; padding: 10px 4px 0; display: grid; gap: 9px; flex: 1; min-height: 0; align-content: end; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px); mask-image: linear-gradient(180deg, transparent 0, #000 28px); }
.feed__log li {
  display: grid; grid-template-columns: 54px 1fr; gap: 10px;
  font-size: 13.5px; line-height: 1.45; color: rgba(240,243,250,.92);
  animation: feedIn .5s var(--ease) both;
}
.feed__log time { color: var(--dim); font-variant-numeric: tabular-nums; }
.feed__log li.ok b { color: var(--ok); font-weight: 600; }
.feed__log li.warn b { color: var(--warn); font-weight: 600; }
.feed__log li.info b { color: #b38cff; font-weight: 600; }
.feed__foot { font-size: 12px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; padding: 8px 4px 0; border-top: 1px solid var(--line); margin-top: 10px; }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 64px; }
  .feed { max-width: 520px; height: 280px; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(6,9,20,.55) 0%, rgba(6,9,20,.25) 45%, rgba(6,9,20,.55) 80%, var(--bg) 100%);
  }
}
@media (max-width: 560px) {
  .clock { min-width: 0; flex: 1 1 0; padding: 8px 10px; }
  .clock dd { font-size: 16px; }
  .clock dt { font-size: 11.5px; }
  .feed__log li { grid-template-columns: 48px 1fr; font-size: 12.5px; }
}

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.strip__inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip__inner > div { padding: 26px 20px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.strip__inner > div:first-child { border-left: 0; padding-left: 0; }
.strip b { font-size: 20px; letter-spacing: -0.02em; font-family: var(--display); font-weight: 800; }
.strip span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 1100px) {
  .strip__inner { grid-template-columns: 1fr 1fr; }
  .strip__inner > div { padding: 20px 16px; }
  .strip__inner > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip__inner > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .strip__inner > div:last-child { grid-column: 1 / -1; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); border-block: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head .lead { margin-top: 18px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  padding: 28px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.card__num { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.card h3 { margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 17px; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 31px; color: var(--muted); font-size: 17px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--ok-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14 7.6' fill='none' stroke='%233dffa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split .lead { margin-top: 22px; }
.split > div > p:not(.lead):not(.kicker) { color: var(--muted); margin-top: 16px; max-width: 62ch; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.tl {
  margin: 0; padding: 28px 24px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 18px;
}
.tl__row { display: grid; gap: 8px; }
.tl__row:first-child { padding-bottom: 10px; }
.tl__label { font-weight: 700; font-size: 16px; font-family: var(--display); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tl__label small { font-family: var(--mono); color: var(--dim); font-weight: 500; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.tl__bar { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; position: relative; }
.tl__cell {
  height: 42px; border-radius: 6px; background: rgba(255,255,255,.04);
  display: grid; align-items: end; justify-items: center; padding-bottom: 5px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--dim); font-variant-numeric: tabular-nums;
}
.tl__cell.is-day { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); color: var(--text); }
.tl__cell.is-hand { background: repeating-linear-gradient(135deg, rgba(61,255,160,.16) 0 6px, rgba(61,255,160,.06) 6px 12px); color: var(--accent-2); }
.tl__cell.is-noc { background: linear-gradient(180deg, rgba(61,255,160,.34), rgba(61,255,160,.1)); color: #b8ffdb; }
.tl__cell.is-off { opacity: .55; }
.tl__cell b { font-weight: 500; white-space: nowrap; }
.tl__cell i { display: none; font-style: normal; }
@media (max-width: 760px) { .tl__cell b { display: none; } .tl__cell i { display: inline; } }
.tl__now { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; border-radius: 2px; box-shadow: 0 0 12px rgba(255,255,255,.8); pointer-events: none; }
.tl__now::after { content: "now"; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: #fff; letter-spacing: .08em; text-transform: uppercase; }
.tl__legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14.5px; color: var(--muted); }
.tl__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg--day { background: rgba(255,255,255,.3); }
.lg--hand { background: repeating-linear-gradient(135deg, rgba(61,255,160,.5) 0 3px, rgba(61,255,160,.2) 3px 6px); }
.lg--noc { background: rgba(61,255,160,.6); }
.tl figcaption { font-family: var(--mono); font-size: 13px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 560px) {
  .tl { padding: 22px 14px 18px; }
  .tl__bar { gap: 2px; }
  .tl__cell { height: 36px; font-size: 0; }
  .tl__cell:nth-child(2n+1) { font-size: 11px; }
}

/* ---------- Tiers ---------- */
.tier { padding: 32px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tier header { display: grid; gap: 14px; }
.tier--accent { background: linear-gradient(160deg, rgba(61,255,160,.07), rgba(255,255,255,.02) 60%); border-color: rgba(61,255,160,.22); }
.badge { justify-self: start; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--line-2); }
.badge--accent { background: var(--ok-dim); color: var(--ok); border-color: rgba(61,255,160,.3); }
.tier h3 { font-size: 23px; }
.stack { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.stack > span { font-family: var(--mono); font-size: 13.5px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 15px; }

/* ---------- Rules ---------- */
.split--rev { align-items: start; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rule { padding: 22px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.rule::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--accent), var(--accent-deep)); border-radius: 2px; }
.rule h3 { font-size: 18px; margin-bottom: 8px; }
.rule p { color: var(--muted); font-size: 16.5px; line-height: 1.55; }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }

.quote { margin: 36px 0 0; padding: 22px 24px; border-left: 2px solid var(--accent); background: linear-gradient(90deg, rgba(61,255,160,.06), transparent); border-radius: 0 12px 12px 0; }
.quote p { font-size: 19px; line-height: 1.5; color: var(--text); font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Security ---------- */
.sec__item { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, background .3s; }
.sec__item:hover { border-color: rgba(61,255,160,.3); background: rgba(61,255,160,.035); }
.sec__item svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--ok-dim); stroke: var(--ok); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.sec__item h3 { font-size: 19px; margin-bottom: 8px; }
.sec__item p { color: var(--muted); font-size: 16.5px; line-height: 1.55; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.fact b { font-size: 32px; letter-spacing: -0.03em; font-weight: 800; font-family: var(--display); }
.fact b { color: var(--accent); }
.fact span { color: var(--muted); font-size: 16.5px; line-height: 1.55; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; padding: 34px 28px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan h3 { font-size: 23px; }
.plan__tag { font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.plan__price { margin: 26px 0 10px; color: var(--muted); font-size: 15px; }
.plan__price span { font-size: 46px; font-weight: 800; font-family: var(--display); color: var(--text); letter-spacing: -0.035em; margin-right: 4px; }
.plan__desc { color: var(--muted); font-size: 16.5px; min-height: 3.2em; }
.plan .ticks { margin-bottom: 30px; flex: 1; align-content: start; }
.plan .ticks li { font-size: 16.5px; }
.plan--featured {
  background: linear-gradient(170deg, rgba(61,255,160,.08) 0%, rgba(255,255,255,.025) 60%);
  border-color: rgba(61,255,160,.38);
  box-shadow: 0 40px 100px -40px rgba(61,255,160,.3);
}
.plan__ribbon { position: absolute; top: -12px; left: 28px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #04130b; font-weight: 600; }
.plan__ribbon--muted { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line-2); }
.plans__note { text-align: center; color: var(--dim); font-size: 15.5px; margin-top: 30px; max-width: 70ch; margin-inline: auto; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq .section__head { position: sticky; top: 110px; margin-bottom: 0; }
.faq__list { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 21px 56px 21px 22px; font-weight: 700; font-size: 17.5px; font-family: var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); font-size: 17px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 0; } .faq .section__head { position: static; margin-bottom: 40px; } }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(100px, 13vw, 170px) 0; overflow: hidden; text-align: center; isolation: isolate; }
.cta__sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 120%, rgba(255,140,70,.35), transparent 70%),
    radial-gradient(40% 50% at 50% 110%, rgba(255,181,71,.35), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #0d1233 55%, #2a1d4a 100%);
}
.cta__sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 48%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 16%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 38%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 52%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 62%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 56% 64%, rgba(255,255,255,.5) 50%, transparent 51%);
  opacity: .8;
}
.cta__inner { max-width: 860px; }
.cta h2 { font-size: clamp(32px, 5vw, 58px); letter-spacing: -0.04em; }
.cta .lead { margin: 22px auto 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; background: var(--bg); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: end; }
.footer__tag { color: var(--dim); font-size: 15px; margin-top: 10px; }
.footer__meta { text-align: right; color: var(--dim); font-size: 14.5px; display: grid; gap: 6px; }
.footer__meta a { color: var(--muted); }
@media (max-width: 640px) { .footer__meta { text-align: left; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  .feed__log li { animation: none; }
}

/* ---------- Legal page ---------- */
.legal { padding: 140px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.04em; margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 44px 0 14px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; color: var(--text); }
.legal a { color: var(--accent); }
.legal__updated { font-family: var(--mono); font-size: 13.5px; color: var(--dim) !important; margin-top: -28px; }
.legal__addr { font-style: normal; color: var(--text); margin: 12px 0; line-height: 1.7; padding: 16px 20px; border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }

/* ---------- Scope: covered areas ---------- */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.layer { display: flex; gap: 18px; align-items: flex-start; padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.layer__n {
  flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--ok);
  background: var(--ok-dim); border: 1px solid rgba(61,255,160,.3);
}
.layer h3 { font-size: 19px; margin-bottom: 6px; }
.layer p { color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (max-width: 920px) { .layers { grid-template-columns: 1fr; } }

.oos { margin-top: 18px; padding: 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: rgba(255,255,255,.015); display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
.oos__head { display: grid; gap: 12px; }
.oos__head p { color: var(--muted); font-size: 16.5px; }
.oos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.oos li { padding: 7px 14px; border-radius: 999px; font-size: 15px; color: var(--dim); border: 1px solid var(--line); text-decoration: line-through; text-decoration-color: var(--dim); text-decoration-thickness: 1.5px; }
.badge--muted { background: rgba(255,255,255,.04); color: var(--dim); border-color: var(--line-2); }
@media (max-width: 820px) { .oos { grid-template-columns: 1fr; } }

/* ---------- Contracting ---------- */
.assure__item { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, rgba(61,255,160,.04), rgba(255,255,255,.02) 55%); display: grid; gap: 10px; align-content: start; }
.assure__tag { justify-self: start; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--accent); }
.assure__item h3 { font-size: 19px; }
.assure__item p { color: var(--muted); font-size: 16.5px; line-height: 1.55; }

/* ---------- References ---------- */
.refs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ref { padding: 30px 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 18px; align-content: start; }
.ref__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ref__where { font-family: var(--mono); font-size: 13.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ref__metric { text-align: right; flex: none; }
.ref__metric b { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; color: var(--ok); line-height: 1; }
.ref__metric span { font-size: 13.5px; color: var(--dim); }
.ref h3 { font-size: 23px; line-height: 1.2; }
.ref__cols { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
.ref h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 8px; font-weight: 700; }
.ref__cols p { color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.ref .ticks { margin-top: 0; gap: 9px; }
.ref .ticks li { font-size: 16px; }
.ref--stack { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(61,255,160,.06), rgba(255,255,255,.02) 50%); border-color: rgba(61,255,160,.2); }
.ref__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ref__chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(61,255,160,.25); background: var(--ok-dim); color: var(--text); font-size: 16px; font-weight: 500; }
.ref__vendors { font-family: var(--mono); font-size: 14.5px; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 980px) { .refs { grid-template-columns: minmax(0, 1fr); } }
.ref { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 400px) { .ref { padding: 24px 18px; } .ref__cols { gap: 16px; } }
@media (max-width: 560px) { .ref__cols { grid-template-columns: 1fr; } .ref__top { flex-direction: column; } .ref__metric { text-align: left; } }

/* ---------- Dawn finale ---------- */
.dawn { min-height: max(760px, 100svh); }
.dawn .hero__inner { align-items: center; }
.dawn .hero__copy { max-width: 600px; }
.dawn h2 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -0.035em; line-height: 1.06; margin-bottom: 22px; text-shadow: 0 2px 40px rgba(6,9,20,.35); }
.kicker--light { color: #fff; opacity: .85; }
.report { height: auto; min-height: 0; background: rgba(6, 9, 20, .9); border-color: rgba(255,255,255,.16); box-shadow: 0 30px 90px -20px rgba(0,0,0,.75); }
.dawn .lead { color: #f3f5fb; text-shadow: 0 1px 14px rgba(6,9,20,.85); }
.dawn .kicker--light { opacity: 1; text-shadow: 0 1px 10px rgba(6,9,20,.8); }
.dawn h2 .grad { background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 14px rgba(6,9,20,.7)); }
.report__list { list-style: none; margin: 0; padding: 8px 2px 0; display: grid; gap: 4px; }
.report__list li {
  display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 6px; border-radius: 8px; transition: background .4s;
}
.report__id { font-size: 12.5px; color: #8f99b5; }
.report__txt { display: grid; min-width: 0; }
.report__txt b { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report__txt em { font-style: normal; font-size: 12.5px; color: #aab3cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .4s; }
.pill { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; white-space: nowrap; transition: background .4s, color .4s; }
.report__list li.is-open .pill { background: rgba(255,181,71,.14); color: var(--warn); }
.report__list li.is-ok { background: rgba(61,255,160,.05); }
.report__list li.is-ok .pill { background: var(--ok-dim); color: var(--ok); }
.report__list li.is-ok em { color: #b5eadc; }
.report__list li.is-esc .pill { background: rgba(179,140,255,.14); color: #c9b2ff; }
.report__list li.is-esc em { color: #c9b2ff; }
.report__sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.report__sum div { text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.03); }
.report__sum b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.1; }
.report__sum div:nth-child(1) b { color: var(--ok); }
.report__sum div:nth-child(2) b { color: #b38cff; }
.report__sum div:nth-child(3) b { color: var(--warn); }
.report__sum span { font-size: 12px; color: #aab3cc; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 560px) {
  .report__list li { grid-template-columns: 1fr auto; }
  .report__id { display: none; }
}
.dawn .hero__shade {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(6,9,20,0) 16%),
    linear-gradient(90deg, rgba(6,9,20,.72) 0%, rgba(6,9,20,.5) 32%, rgba(6,9,20,.12) 52%, rgba(6,9,20,0) 60%),
    linear-gradient(180deg, rgba(6,9,20,0) 70%, var(--bg) 100%);
}
@media (max-width: 980px) {
  .dawn .hero__shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(6,9,20,.55) 14%, rgba(6,9,20,.5) 60%, var(--bg) 100%); }
}

/* ==========================================================================
   Animated visuals (problem cards, globe, shift flow)
   Animations stay paused until their block has revealed.
   ========================================================================== */
.reveal:not(.is-in) .viz *, .reveal:not(.is-in) .fviz *, .reveal:not(.is-in).flow *,
.reveal:not(.is-in) .globe *, .reveal:not(.is-in).globe * { animation-play-state: paused !important; }

/* shared text cycler: 3 states, 7.5 s */
.cycle { position: relative; height: 2.9em; flex: 1; min-width: 0; line-height: 1.45; }
.cycle > span { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; animation: cycle3 7.5s infinite; }
.cycle > span:nth-child(2) { animation-delay: 2.5s; }
.cycle > span:nth-child(3) { animation-delay: 5s; }
@keyframes cycle3 {
  0% { opacity: 0; transform: translateY(8px); }
  4%, 30% { opacity: 1; transform: none; }
  34%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* ---------- Problem cards ---------- */
.pain { display: flex; flex-direction: column; }
.viz {
  height: 148px; margin-bottom: 20px; padding: 14px 16px;
  border-radius: 12px; border: 1px solid rgba(255,93,108,.18);
  background: linear-gradient(160deg, rgba(255,93,108,.08), rgba(255,255,255,.02) 70%);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 14px; color: var(--text);
  position: relative; overflow: hidden;
}
.viz b { font-weight: 600; }
.viz .dim { color: var(--dim); }

.churn__row { display: flex; align-items: center; gap: 12px; }
.churn__seat { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.06); fill: none; stroke: var(--muted); stroke-width: 1.8; }
.cycle .is-bad { color: var(--crit); }
.cycle > span > em { font-style: normal; }
.viz__label { font-size: 12px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.viz__bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.viz__bar i { display: block; height: 100%; width: 0; border-radius: 4px; animation: churnBar 7.5s infinite; }
@keyframes churnBar {
  0% { width: 0; background: var(--ok); }
  30% { width: 84%; background: var(--ok); }
  34% { width: 84%; background: var(--crit); }
  62% { width: 0; background: var(--crit); }
  66% { width: 0; background: var(--ok); }
  96% { width: 22%; background: var(--ok); }
  100% { width: 0; background: var(--ok); }
}

.viz--pager { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.pager__phone { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.pager__phone svg { width: 34px; height: 34px; fill: rgba(255,93,108,.12); stroke: var(--crit); stroke-width: 1.8; stroke-linecap: round; animation: shake 1.8s infinite; position: relative; }
.pager__phone .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--crit); opacity: 0; animation: ring 1.8s infinite; }
.pager__phone .ring + .ring { animation-delay: .45s; }
.pager__txt { display: grid; gap: 2px; min-width: 0; }
.pager__txt b { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--crit); line-height: 1.1; }
.pager__txt span { font-size: 13.5px; line-height: 1.4; }
@keyframes shake {
  0%, 45%, 100% { transform: rotate(0); }
  5%, 15%, 25%, 35% { transform: rotate(-13deg); }
  10%, 20%, 30%, 40% { transform: rotate(13deg); }
}
@keyframes ring { 0% { transform: scale(.55); opacity: .85; } 100% { transform: scale(1.5); opacity: 0; } }

.ticket__top { display: flex; justify-content: space-between; align-items: center; }
.ticket__arrow { color: var(--warn); font-size: 18px; animation: fwd 2.5s ease-in-out infinite; }
.cycle--subject { flex: none; font-weight: 600; font-size: 14.5px; }
.ticket__age { font-size: 13.5px; color: var(--muted); }
.ticket__age em { font-style: normal; color: var(--warn); font-weight: 600; }
@keyframes fwd { 0%, 60%, 100% { transform: none; opacity: 1; } 75% { transform: translateX(14px); opacity: 0; } 76% { transform: translateX(-10px); opacity: 0; } }

.viz--chat { justify-content: flex-start; }
.chat__head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.chat__head time { margin-left: auto; color: var(--crit); font-weight: 600; }
.chat__av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #2a3d35; color: #fff; font-family: var(--display); font-weight: 800; font-size: 12px; }
.chat__bubble { display: grid; align-self: flex-start; padding: 10px 13px; border-radius: 4px 14px 14px 14px; background: #16231e; font-family: var(--font); font-size: 14.5px; font-weight: 500; line-height: 1.35; min-height: 42px; }
.chat__bubble > * { grid-area: 1 / 1; align-self: center; }
.chat__dots { display: flex; gap: 4px; animation: typing 6s infinite; }
.chat__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.chat__dots i:nth-child(2) { animation-delay: .15s; }
.chat__dots i:nth-child(3) { animation-delay: .3s; }
.chat__msg { opacity: 0; animation: msgIn 6s infinite; }
@keyframes typing { 0%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes msgIn { 0%, 38% { opacity: 0; transform: translateY(4px); } 44%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes bounce { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }

/* ---------- Globe ---------- */
.globe { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: #050907; box-shadow: 0 40px 100px -40px rgba(61,255,160,.2); }
.globe svg { width: 100%; height: auto; display: block; }
.globe .g-mono { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .1em; fill: #b3c4ba; }
.globe .g-ok { fill: var(--ok); }
.globe .g-pill { fill: #c4ffe1; font-size: 12px; }
.globe .g-big { font-family: var(--display); font-weight: 800; font-size: 28px; fill: #fff; }
.globe .g-sub { font-family: var(--font); font-size: 14.5px; fill: #bccbc3; }
.globe .tw { animation: twinkle 3s ease-in-out infinite; }
.globe .tw2 { animation-delay: 1s; }
.globe .tw3 { animation-delay: 2s; }
.globe .g-arc { stroke-dasharray: 6 8; animation: dash 1.1s linear infinite; }
.globe .g-pulse { transform-box: fill-box; transform-origin: center; animation: gpulse 2.2s ease-out infinite; }
.globe .g-pulse2 { animation-delay: 1.1s; }
.globe .g-sunglow { transform-box: fill-box; transform-origin: center; animation: glow 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }
@keyframes dash { to { stroke-dashoffset: -14; } }
@keyframes gpulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes glow { 50% { opacity: .65; transform: scale(1.08); } }
.tl--wide { margin-top: 40px; }

/* ---------- How it works: one-time onboarding, then the nightly flow ---------- */
.onboard { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: var(--surface); margin-bottom: 56px; }
.onboard h3 { margin: 14px 0 10px; }
.onboard p { color: var(--muted); font-size: 17px; max-width: 58ch; }
.onboard .fviz { margin: 0; }
.flow__label { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.flow__label svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .onboard { grid-template-columns: 1fr; gap: 22px; padding: 22px; } }

.flow { position: relative; --gap: 18px; }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.flow__track {
  position: absolute; top: 28px; height: 2px; border-radius: 2px; background: var(--line-2);
  left: 28px; right: calc((100% - 2 * var(--gap)) / 3 - 28px);
}
.flow__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); animation: flowFill 12s linear infinite; }
.flow__dot { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.12), 0 0 20px #fff; animation: flowDot 12s linear infinite; z-index: 2; }
@keyframes flowDot { 0% { left: 0; } 90%, 100% { left: 100%; } }
@keyframes flowFill { 0% { width: 0; opacity: 1; } 90% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }

.fstep { position: relative; display: flex; flex-direction: column; }
.fstep { --c: var(--accent); }
.fstep__node {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--c);
  background: var(--bg); border: 1.5px solid var(--line-2); margin-bottom: 14px;
  animation: nodeLit 12s infinite;
}
.fstep:nth-child(2) .fstep__node { animation-delay: 5.4s; }
.fstep:nth-child(3) .fstep__node { animation-delay: 10.8s; }
@keyframes nodeLit {
  0%, 24% { border-color: var(--c); box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 0 30px var(--c); transform: scale(1.08); }
  32%, 100% { border-color: var(--line-2); box-shadow: none; transform: none; }
}
.fstep__when { font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--c); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.fstep h3 { margin-bottom: 10px; }
.fstep p:not(.fstep__when) { color: var(--muted); font-size: 17px; }

.fviz { height: 138px; margin-bottom: 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; font-family: var(--mono); font-size: 13.5px; }

/* 1 · checklist */
.fviz--check { display: grid; align-content: center; gap: 9px; }
.fviz--check span { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.fviz--check i { flex: none; width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-2); position: relative; animation: tick 6s infinite; }
.fviz--check i::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #06231b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fviz--check span:nth-child(2) i { animation-delay: .7s; }
.fviz--check span:nth-child(3) i { animation-delay: 1.4s; }
.fviz--check span:nth-child(4) i { animation-delay: 2.1s; }
@keyframes tick { 0%, 6% { background: transparent; border-color: var(--line-2); } 12%, 82% { background: var(--ok); border-color: var(--ok); } 90%, 100% { background: transparent; border-color: var(--line-2); } }

/* 2 · handover */
.fviz--hand { display: grid; align-content: center; gap: 14px; }
.hand__row { position: relative; display: flex; align-items: center; justify-content: space-between; height: 52px; }
.hand__row svg { width: 40px; height: 40px; fill: none; stroke-width: 1.8; stroke-linecap: round; position: relative; z-index: 1; }
.hand__sun { stroke: var(--muted); animation: spin 14s linear infinite; }
.hand__moon { stroke: var(--accent); fill: rgba(61,255,160,.15) !important; }
.hand__line { position: absolute; left: 52px; right: 52px; top: 50%; border-top: 2px dashed var(--line-2); }
.hand__doc { position: absolute; top: 50%; left: 52px; width: 24px; height: 30px; margin-top: -15px; border-radius: 4px; background: #e9edf7; display: grid; align-content: center; gap: 3px; padding: 0 5px; box-shadow: 0 4px 14px rgba(0,0,0,.4); animation: handDoc 3.2s ease-in-out infinite; }
.hand__doc i { height: 2px; background: #8790ad; border-radius: 1px; }
.hand__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.hand__labels span:nth-child(2) { color: var(--muted); }
@keyframes handDoc { 0% { left: 52px; opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 90%, 100% { left: calc(100% - 76px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* 3 · radar */
.fviz--radar { display: flex; align-items: center; gap: 16px; }
.radar {
  flex: none; width: 104px; height: 104px; border-radius: 50%; position: relative; overflow: hidden;
  border: 1px solid rgba(61,255,160,.35);
  background:
    radial-gradient(circle, rgba(61,255,160,.5) 0 2px, transparent 3px),
    radial-gradient(circle, transparent 33%, rgba(61,255,160,.18) 34%, transparent 35.5%, transparent 66%, rgba(61,255,160,.18) 67%, transparent 68.5%);
}
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(61,255,160,.5), rgba(61,255,160,0) 28%); animation: spin 3s linear infinite; }
.radar i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; animation: blip 9s infinite; }
.radar i:nth-child(1) { left: 70%; top: 30%; }
.radar i:nth-child(2) { left: 28%; top: 62%; animation-delay: 3s; }
.radar i:nth-child(3) { left: 68%; top: 74%; animation-delay: 6s; }
@keyframes blip { 0% { background: var(--warn); box-shadow: 0 0 12px var(--warn); opacity: 1; } 18% { background: var(--warn); box-shadow: 0 0 12px var(--warn); } 22%, 60% { background: var(--ok); box-shadow: 0 0 10px var(--ok); opacity: 1; } 70%, 100% { opacity: 0; } }
.radar__log { display: grid; gap: 8px; min-width: 0; }
.radar__log span { color: var(--muted); white-space: nowrap; opacity: .25; animation: logOn 9s infinite; }
.radar__log b { color: var(--text); font-weight: 600; }
.radar__log span:nth-child(2) { animation-delay: 3s; }
.radar__log span:nth-child(3) { animation-delay: 6s; }
@keyframes logOn { 0%, 18% { opacity: .25; } 22%, 92% { opacity: 1; color: var(--ok); } 100% { opacity: .25; } }

/* 4 · report */
.fviz--report { display: grid; align-content: center; gap: 9px; }
.rep__head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.rep__head b { color: var(--ok); background: var(--ok-dim); padding: 3px 9px; border-radius: 6px; font-weight: 600; animation: pop 5s infinite; }
.rep__row { display: grid; grid-template-columns: 96px 1fr 20px; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.rep__row i { height: 8px; border-radius: 4px; background: var(--ok); width: 0; animation: grow 5s infinite; }
.rep__row:nth-child(2) i { --w: 100%; background: var(--warn); }
.rep__row:nth-child(3) i { --w: 86%; animation-delay: .25s; }
.rep__row:nth-child(4) i { --w: 15%; background: var(--dim); animation-delay: .5s; }
.rep__row em { font-style: normal; color: var(--text); font-weight: 600; text-align: right; }
@keyframes grow { 0% { width: 0; } 30%, 88% { width: var(--w); } 100% { width: 0; } }
@keyframes pop { 0%, 34% { transform: scale(.6); opacity: 0; } 42% { transform: scale(1.12); opacity: 1; } 48%, 88% { transform: none; opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .flow__steps { grid-template-columns: 1fr; row-gap: 44px; }
  .flow__track { display: none; }
}

/* ---------- References: scope tag ---------- */
.ref__scope { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); background: var(--ok-dim); border: 1px solid rgba(61,255,160,.28); padding: 4px 9px; border-radius: 6px; }
.ref__where { display: block; }
.ref__before { color: var(--muted); font-size: 16.5px; line-height: 1.55; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ref__before b { color: var(--text); }
.ref__cols { grid-template-columns: 1fr 1fr; }
.ref__managed { margin: -12px -14px; padding: 12px 14px; border-radius: 12px; background: var(--ok-dim); border: 1px solid rgba(61,255,160,.22); }
.ref__managed h4 { color: var(--accent); }
.ref__path { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); }
.ref__path span { display: grid; gap: 2px; }
.ref__path b { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ref__path .is-live b { color: var(--accent); }
.ref__path .is-live { color: var(--muted); }
.ref__path i { flex: 1; min-width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--line-2), var(--accent)); position: relative; }
.ref__path i::after { content: ""; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@media (max-width: 560px) { .ref__cols { grid-template-columns: 1fr; } .ref__managed { margin: 0; } }

@media (prefers-reduced-motion: reduce) {
  .viz *, .fviz *, .flow *, .globe * { animation: none !important; }
  .cycle > span:first-child, .chat__msg { opacity: 1; }
  .chat__dots { display: none; }
  .viz__bar i { width: 60%; background: var(--ok); }
  .rep__row i { width: var(--w); }
  .rep__head b { opacity: 1; }
  .radar__log span { opacity: 1; }
  .radar i { background: var(--ok); }
  .fviz--check i { background: var(--ok); border-color: var(--ok); }
}

/* ---------- Guide cards (homepage + blog) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.pcard:hover { border-color: rgba(61,255,160,.35); background: rgba(61,255,160,.03); transform: translateY(-3px); }
.pcard__cat { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.pcard__title { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.28; letter-spacing: -0.015em; }
.pcard__desc { color: var(--muted); font-size: 16px; line-height: 1.55; flex: 1; }
.pcard__meta { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-top: 6px; }
.pcard:hover .pcard__meta { color: var(--brand); }
.guides__all { margin-top: 26px; }
.guides__all a { color: var(--brand); font-weight: 600; text-decoration: none; }
.guides__all a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Small phones & tap targets ---------- */
.brand { padding-block: 10px; }
.guides__all a { display: inline-block; padding: 10px 0; }
.nav__toggle { flex: none; }
@media (max-width: 400px) {
  .nav__inner { gap: 12px; }
  .brand { font-size: 16px; letter-spacing: .08em; }
  .brand small { font-size: 10px; margin-left: 7px; padding: 2px 5px; }
  .funnel__back { padding: 9px 12px; font-size: 13.5px; }
  .eyebrow { font-size: 12px; letter-spacing: .04em; }
}
