/* berry.me — a dark technical drawing: hairline rails, red crosshairs,
   pixel art drawn in code and monospace labels. Red is the only accent,
   and text is always a solid colour. */

@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #0c0b0b;
  --card: #110f0f;
  --raised: #1a1717;
  --ink: #f5f3f1;
  --ink-2: #d6d1cd;
  --muted: #a6a09c;
  --faint: #6e6966;
  --line: #242121;
  --line-strong: #363232;
  --red: #f2475d;
  --red-bright: #ec2b45;
  --red-soft: rgb(236 43 69 / 0.12);
  --red-glow: rgb(236 43 69 / 0.35);
  --sans: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --frame: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--red-bright); color: #fff; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Pixel art tones ---------- */
.px-icon { width: 28px; height: auto; color: var(--ink); }
.px-ink { fill: var(--ink); }
.px-red { fill: var(--red-bright); }
.px-muted { fill: var(--faint); }

/* ---------- Frame: full-width hairline bands with a ruled column ---------- */
.band { position: relative; border-top: 1px solid var(--line); }
.band.no-rule { border-top: 0; }
.frame {
  position: relative;
  margin-inline: 12px;
  border-inline: 1px solid var(--line);
}
@media (min-width: 640px) { .frame { margin-inline: 24px; } }
@media (min-width: 1260px) { .frame { max-width: var(--frame); margin-inline: auto; } }
.band > .frame::before,
.band > .frame::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 11px;
  height: 11px;
  z-index: 3;
  background:
    linear-gradient(var(--red-bright), var(--red-bright)) center / 1px 100% no-repeat,
    linear-gradient(var(--red-bright), var(--red-bright)) center / 100% 1px no-repeat;
}
.band > .frame::before { left: -6px; }
.band > .frame::after { right: -6px; }
.band.no-rule > .frame::before,
.band.no-rule > .frame::after { display: none; }
.pad { padding: 88px 20px; }
@media (min-width: 900px) { .pad { padding: 112px 64px; } }
.pad-x { padding-inline: 20px; }
@media (min-width: 900px) { .pad-x { padding-inline: 64px; } }
.container { width: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 900px) { .container { padding-inline: 48px; } }

/* ---------- Type ---------- */
.mono { font-family: var(--mono); }
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label b { color: var(--red); font-weight: 500; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--red-bright); }
.display {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.h2 {
  font-size: clamp(36px, 5.2vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 650; }
.red { color: var(--red-bright); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--muted); max-width: 640px; }
.small { font-size: 13px; color: var(--muted); }
.section-head { display: grid; gap: 24px; margin-bottom: 56px; }
.section-head .h2 { margin-top: 10px; }
@media (min-width: 900px) {
  .section-head.split-head { grid-template-columns: 1.35fr 1fr; align-items: end; column-gap: 48px; }
  .section-head.split-head .label { grid-column: 1 / -1; }
  .section-head.split-head .lead { font-size: 17px; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms var(--ease), opacity 150ms ease;
}
.button:active { transform: scale(0.97); }
.button-primary {
  background: var(--red-bright);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 8px 24px -8px var(--red-glow);
}
.button-primary:hover { background: var(--red); }
.button-ghost { background: rgb(255 255 255 / 0.03); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button-ghost:hover { box-shadow: inset 0 0 0 1px var(--faint); background: rgb(255 255 255 / 0.06); }
.button-ink { background: var(--ink); color: var(--paper); }
.button-ink:hover { opacity: 0.9; }
.button-small { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.button .arrow { transition: transform 200ms var(--ease); }
.button:hover .arrow { transform: translateX(3px); }
.text-link { font-family: var(--mono); font-size: 13px; color: var(--red); display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 14px 12px auto; z-index: 50; pointer-events: none; }
.header-row {
  pointer-events: auto;
  max-width: calc(var(--frame) + 24px);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px 0 24px;
  border-radius: 16px;
  background: rgb(20 18 18 / 0.72);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 20px 40px -24px rgb(0 0 0 / 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 22px; letter-spacing: -0.035em; }
.brand img { width: 19px; height: auto; }
.site-nav { display: none; flex: 1; justify-content: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.site-nav a { padding: 8px 14px; border-radius: 10px; transition: color 150ms ease, background-color 150ms ease; }
.site-nav a:hover { color: var(--ink); background: rgb(255 255 255 / 0.05); }
.header-actions .button-small { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
.header-actions .text-btn { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 0 12px; }
.header-actions .text-btn:hover { color: var(--ink); }
.header-actions { display: none; }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-content: center; gap: 6px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 200ms var(--ease); }
.menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 24px)); display: grid; padding: 8px; border-radius: 14px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 48px -16px #000; }
.menu-panel a { padding: 12px 14px; border-radius: 8px; color: var(--ink-2); }
.menu-panel a:hover { background: rgb(255 255 255 / 0.05); color: var(--ink); }
@media (min-width: 960px) {
  .site-nav, .header-actions { display: flex; }
  .header-actions { gap: 8px; align-items: center; }
  .menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-tiles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero .frame { padding: 140px 16px 72px; text-align: center; }
@media (min-width: 900px) { .hero .frame { padding: 168px 48px 104px; } }
.corner { position: absolute; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--faint); white-space: pre; }
.corner.tl { top: 112px; left: 20px; }
.corner.tr { top: 112px; right: 20px; }
.corner.bl { top: 520px; left: 24px; }
.corner.br { top: 520px; right: 24px; }
@media (max-width: 899px) { .corner.bl, .corner.br { display: none; } }
@media (max-width: 520px) { .corner { display: none; } }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
.pill i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--red-glow); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { margin: 28px auto 0; max-width: 1100px; }
.hero h1 .line { display: block; }
.hero .lead { margin: 28px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.sparkle { position: absolute; width: 20px; height: 20px; fill: var(--red-bright); }
.sparkle.l { left: 8%; top: 290px; }
.sparkle.r { right: 8%; top: 290px; }
@media (max-width: 899px) { .sparkle { display: none; } }

/* ---------- Console (hero demo) ---------- */
.console {
  margin: 64px auto 0;
  max-width: 1060px;
  text-align: left;
  border-radius: 16px;
  background: rgb(17 15 15 / 0.94);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 80px -40px #000;
  overflow: hidden;
}
.console-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.console-tabs::-webkit-scrollbar { display: none; }
.console-tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 36px; padding: 0 12px; border-radius: 9px; border: 0;
  background: transparent; color: var(--muted); font: 500 14px var(--sans); cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.console-tab .px-icon { width: 16px; }
.console-tab:hover { color: var(--ink); }
.console-tab[aria-selected="true"] { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.console-body { display: grid; }
@media (min-width: 900px) { .console-body { grid-template-columns: 1fr 1fr; } }
.console-prompt { padding: 22px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
@media (min-width: 900px) { .console-prompt { border-bottom: 0; border-right: 1px solid var(--line); } }
.console-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 7px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); white-space: nowrap;
  background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.chip.is-red { color: var(--red); box-shadow: inset 0 0 0 1px rgb(236 43 69 / 0.4); background: var(--red-soft); }
.chip i { width: 5px; height: 5px; background: currentColor; }
.typed { min-height: 84px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.caret { display: inline-block; width: 8px; height: 19px; margin-left: 2px; vertical-align: -3px; background: var(--red-bright); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.answer { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: 14.5px; color: var(--ink-2); min-height: 92px; opacity: 0; transition: opacity 400ms ease; }
.answer.is-in { opacity: 1; }
.answer strong { color: var(--ink); font-weight: 600; }
.console-log { padding: 12px 10px; font-family: var(--mono); font-size: 12.5px; min-height: 300px; }
.log-row {
  display: grid; grid-template-columns: 40px 12px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 8px; color: var(--ink-2);
  opacity: 0; transform: translateY(4px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), background-color 260ms ease;
}
.log-row.is-in { opacity: 1; transform: none; }
.log-row.is-last { background: rgb(255 255 255 / 0.035); }
.log-row time { color: var(--faint); font-variant-numeric: tabular-nums; }
.log-row .sq { width: 9px; height: 9px; background: var(--ink); justify-self: center; }
.log-row .sq.is-red { background: var(--red-bright); }
.log-row .sq.is-hollow { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.log-row .tail { color: var(--faint); white-space: nowrap; }
.log-row .tail.is-red { color: var(--red); }
.log-row .what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row .what b { color: var(--ink); font-weight: 500; }
.console-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding: 12px 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

/* ---------- Strip of facts ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 32px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) {
  .fact { padding: 36px 28px; border-bottom: 0; }
  .fact:nth-child(2n) { border-right: 1px solid var(--line); }
  .fact:last-child { border-right: 0; }
}
.fact .num { font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact .num small { font-size: 0.42em; letter-spacing: -0.01em; color: var(--muted); margin-left: 6px; font-weight: 600; }
.fact p { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile {
  position: relative;
  background: var(--paper);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  overflow: hidden;
  transition: background-color 300ms ease;
}
@media (min-width: 900px) { .tile { padding: 32px; } }
.tile:hover { background: #0f0d0d; }
.tile::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 8px; height: 8px;
  background: var(--red-bright);
  transform: scale(0);
  transform-origin: top right;
  transition: transform 220ms var(--ease);
}
.tile:hover::after { transform: scale(1); }
.tile-copy { margin-top: auto; display: grid; gap: 8px; }
.tile p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.tile .px-icon { width: 30px; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-head .label { font-size: 10.5px; }
@media (min-width: 1100px) {
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }
}
@media (min-width: 760px) and (max-width: 1099px) { .md-span-2 { grid-column: span 2; } }
.viz { position: relative; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* Tool chips */
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tools .chip { transition: color 250ms ease, box-shadow 250ms ease, background-color 250ms ease; }
.tools .chip.is-hot { color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px rgb(236 43 69 / 0.45); }

/* Sandbox terminal */
.term { line-height: 1.75; white-space: pre-wrap; word-break: break-word; min-height: 160px; }
.term .p { color: var(--red); }
.term .dim { color: var(--faint); }

/* Approval card */
.approve { display: grid; gap: 12px; }
.approve-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.approve .btns { display: flex; gap: 6px; }
.mini-btn { height: 28px; padding: 0 10px; border-radius: 7px; font: 500 12px var(--mono); display: inline-flex; align-items: center; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); transition: transform 200ms var(--ease); }
.mini-btn.is-red { background: var(--red-bright); color: #fff; box-shadow: none; }
.approve-state { color: var(--faint); }
.approve.is-approved .approve-state { color: var(--red); }

/* Schedule list */
.sched { display: grid; gap: 2px; }
.sched-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; border-radius: 8px; transition: background-color 300ms ease; }
.sched-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-row .when { color: var(--faint); }
.sched-row.is-running { background: rgb(255 255 255 / 0.04); }
.sched-row.is-running .when { color: var(--red); }

/* Bars (budgets / usage) */
.bars { display: grid; gap: 14px; }
.bar { display: grid; gap: 7px; }
.bar-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.bar-track { height: 10px; background: rgb(255 255 255 / 0.05); }
.bar-fill { height: 100%; width: 0; background-color: var(--ink); background-image: repeating-linear-gradient(90deg, transparent 0 6px, var(--card) 6px 8px); transition: width 1400ms var(--ease); }
.bar-fill.is-red { background-color: var(--red-bright); }
.in-view .bar-fill { width: var(--w); }

/* Audit ticker */
.audit { display: grid; height: 228px; overflow: hidden; align-content: start; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.audit-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--line); animation: slide-in 420ms var(--ease); }
.audit-row time { color: var(--faint); }
.audit-row .who { color: var(--faint); }
.audit-row .act { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-row .act b { font-weight: 500; color: var(--ink); }
.audit-row .act b.r { color: var(--red); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }

/* Router diagram */
.router { display: grid; gap: 16px; align-items: center; }
@media (min-width: 1000px) { .router { grid-template-columns: 1fr 120px 1.15fr 120px 1fr; gap: 0; } }
.node { position: relative; z-index: 1; padding: 20px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; gap: 12px; }
.node .h3 { font-size: 17px; }
.node p { font-size: 13.5px; color: var(--muted); }
.node.is-core { box-shadow: inset 0 0 0 1px rgb(236 43 69 / 0.55), 0 0 0 6px rgb(236 43 69 / 0.06), 0 30px 60px -30px var(--red-glow); }
.wires { height: 100%; min-height: 220px; }
.wires svg { width: 100%; height: 100%; overflow: visible; }
.wire { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.wire-hot { fill: none; stroke: var(--red-bright); stroke-width: 2; stroke-dasharray: 12 188; animation: travel 2.4s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes travel { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
@media (max-width: 999px) { .wires { display: none; } }
.sources { display: grid; gap: 6px; }
.providers { display: grid; gap: 6px; }
.provider { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: box-shadow 300ms ease; }
.provider span { font-family: var(--mono); font-size: 11px; color: var(--faint); transition: color 300ms ease; }
.provider.is-hot { box-shadow: inset 0 0 0 1px rgb(236 43 69 / 0.5); }
.provider.is-hot span { color: var(--red); }
.routes { display: grid; gap: 4px; font-family: var(--mono); font-size: 12px; }
.route-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 7px 9px; border-radius: 6px; color: var(--ink-2); transition: background-color 300ms ease, color 300ms ease; }
.route-row span { color: var(--faint); }
.route-row.is-hot { background: var(--red-soft); color: var(--ink); }
.route-row.is-hot span { color: var(--red); }

/* Data center */
.dc { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .dc { grid-template-columns: 0.85fr 1.25fr; gap: 56px; } }
.racks { width: 100%; height: auto; }
.rk-frame { fill: var(--line-strong); }
.rk-inner { fill: var(--paper); }
.rk-unit { fill: #171414; }
.rk-vent { fill: var(--line-strong); }
.rk-led { fill: var(--muted); animation: led 2s steps(1) infinite; }
.rk-led.is-red { fill: var(--red-bright); }
.rk-label { fill: var(--faint); font: 10px var(--mono); letter-spacing: 0.12em; }
.rk-floor { fill: var(--line-strong); }
@keyframes led { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.18; } }
.code-block { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.code-block .p { color: var(--red); user-select: none; }
.code-block .c { color: var(--faint); }
.grid-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .grid-list.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid-list.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-cell { background: var(--paper); padding: 20px; display: grid; gap: 8px; align-content: start; }
.grid-cell .h3 { font-size: 16px; }
.grid-cell p { font-size: 13.5px; color: var(--muted); }
.grid-cell .px-icon { width: 24px; margin-bottom: 6px; }

/* Globe */
.globe { width: min(100%, 420px); margin-inline: auto; height: auto; }
.gl-rim { fill: none; stroke: var(--line-strong); stroke-dasharray: 2 4; }
.gl-dots rect { fill: var(--ink); }
.gl-arc { fill: none; stroke: var(--red-bright); stroke-width: 1.2; stroke-dasharray: 2 4; opacity: 0.8; animation: dash 3s linear infinite; }
.gl-node { fill: var(--red-bright); animation: led 2.4s steps(1) infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }

/* Trust row */
.trust { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-item { background: var(--paper); padding: 32px 24px; display: grid; gap: 10px; align-content: start; }
.trust-item .px-icon { width: 34px; margin-bottom: 12px; }
.trust-item .h3 { font-size: 17px; }
.trust-item p { color: var(--muted); font-size: 14px; }

/* Devices */
.devices { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .devices { grid-template-columns: 1fr 1fr; } }
.phones { display: flex; justify-content: center; gap: 18px; padding-top: 28px; }
.phone { width: min(44%, 250px); border-radius: 34px; padding: 8px; background: #050404; box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 80px -30px #000; overflow: hidden; }
.phone img { border-radius: 27px; width: 100%; height: auto; }
.phone.raised { transform: translateY(-28px); }
.steps-list { display: grid; gap: 12px; margin-top: 28px; counter-reset: step; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: 15px; }
.steps-list li::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 12px; color: var(--red); padding-top: 3px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--ink); color: var(--paper); }
.store-badge.is-soon { background: rgb(255 255 255 / 0.04); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.store-badge small { font-family: var(--mono); font-size: 10.5px; color: var(--faint); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--red); transition: transform 200ms var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq > div { padding: 0 4px 24px; color: var(--muted); max-width: 820px; }
.faq a, .prose a, .lead a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 3px; }

/* CTA */
.cta-band { text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.cta-band .lead { margin: 22px auto 0; }
.cta-band .hero-actions { margin-top: 32px; }
.cta-grid { position: absolute; inset: 0; z-index: -1; opacity: 0.6; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: center; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }

/* ---------- Inner pages ---------- */
.page-hero .frame { padding: 150px 20px 64px; }
@media (min-width: 900px) { .page-hero .frame { padding: 168px 64px 72px; } }
.page-hero .display { font-size: clamp(40px, 6vw, 76px); max-width: 960px; }
.page-hero .lead { margin-top: 24px; }
.cards { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); padding: 32px 24px; display: grid; gap: 12px; align-content: start; }
.card .px-icon { width: 32px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card-index { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--red); }
.checks { list-style: none; display: grid; margin-top: 8px; }
.checks li { position: relative; padding: 18px 0 18px 28px; border-bottom: 1px dashed var(--line-strong); color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 8px; height: 8px; background: var(--red-bright); }
.checks strong { color: var(--ink); font-weight: 600; }
.two-col { display: grid; gap: 48px; }
@media (min-width: 1000px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.support-grid { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .support-grid { grid-template-columns: repeat(3, 1fr); } }
.support-grid .card a { color: var(--red); font-family: var(--mono); font-size: 13px; }

.doc .frame { padding: 140px 20px 96px; }
@media (min-width: 900px) { .doc .frame { padding: 160px 64px 112px; } }
.doc-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: 200px 1fr; gap: 72px; } }
.doc-toc { display: none; }
@media (min-width: 1000px) {
  .doc-toc { display: grid; gap: 2px; align-content: start; position: sticky; top: 108px; font-size: 13px; }
  .doc-toc a { padding: 6px 10px; border-left: 1px solid var(--line); color: var(--muted); }
  .doc-toc a:hover { color: var(--ink); border-left-color: var(--red-bright); }
}
.doc-head { margin-bottom: 40px; display: grid; gap: 14px; }
.doc-head .h2 { font-size: clamp(36px, 5vw, 56px); }
.doc-head p { color: var(--muted); }
.prose { max-width: 760px; color: var(--ink-2); font-size: 16px; }
.prose h2 { margin: 48px 0 14px; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 100px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--red-bright); }
.callout { padding: 20px 22px; margin-bottom: 32px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); border-left: 3px solid var(--red-bright); }

/* ---------- Footer ---------- */
.site-footer .frame { padding: 64px 20px 28px; }
@media (min-width: 900px) { .site-footer .frame { padding: 72px 64px 28px; } }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 300px; }
.footer-grid h2 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-grid a { display: block; padding: 5px 0; color: var(--ink-2); font-size: 14px; }
.footer-grid a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 6px; height: 6px; background: var(--red-bright); animation: led 2s steps(1) infinite; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* Cells of hairline grids keep their background so the grid never shows
   through; only their contents fade in. */
.js :is(.tile, .trust-item, .grid-cell, .card, .fact)[data-reveal] { opacity: 1; transform: none; filter: none; }
.js :is(.tile, .trust-item, .grid-cell, .card, .fact)[data-reveal] > * { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js :is(.tile, .trust-item, .grid-cell, .card, .fact)[data-reveal].is-in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal], .js [data-reveal] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .rk-led, .gl-node, .status i, .wire-hot, .gl-arc { animation: none !important; }
}

/* Icons inside controls and rows */
.button .px-icon { width: 15px; }
.provider { justify-content: flex-start; }
.provider .px-icon { width: 16px; flex: none; }
.provider span { margin-left: auto; }
.grid-cell .card-index { margin-top: 2px; }
.dc > *, .devices > *, .two-col > *, .router > * { min-width: 0; }
.rack-viz { padding: 18px; display: grid; gap: 16px; }
.rack-viz .tile-head { font-size: 11px; }


/* ---------- Hero, refined ---------- */
.intro { opacity: 0; animation: intro 900ms var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes intro { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero .display { font-size: clamp(42px, 7.4vw, 96px); }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 680px; }
.hero-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 30px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.hero-strip span { display: inline-flex; align-items: center; gap: 8px; }
.hero-strip .px-icon { width: 14px; }
.console-wrap { position: relative; margin: 72px auto 0; max-width: 1080px; }
.console-wrap::before { content: ""; position: absolute; inset: 40px 10% -40px; z-index: -1; background: radial-gradient(closest-side, rgb(236 43 69 / 0.16), transparent); filter: blur(30px); }
.console-wrap .console { margin: 0; max-width: none; }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); }
.console-bar .dots { display: flex; gap: 6px; }
.console-bar .dots i { width: 8px; height: 8px; background: var(--line-strong); }
.console-bar .dots i:first-child { background: var(--red-bright); }
.console-bar .console-tabs { flex: 1; border-bottom: 0; padding: 10px 0; }
.console-bar .addr { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }
@media (max-width: 760px) { .console-bar .addr, .console-bar .dots { display: none; } }
.log-row .what b { font-weight: 600; }
.log-row .tag { font-size: 10.5px; color: var(--faint); margin-left: 8px; }

/* Spotlight that follows the pointer across bento tiles */
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgb(236 43 69 / 0.07), transparent 60%); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.stage { position: relative; height: 230px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.stage.dots-bg { background-image: radial-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px); background-size: 14px 14px; background-color: var(--card); }

/* Orbit: a hub joined to nodes by dashed lines; one route lights at a time */
.orbit svg.links { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit .link { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.orbit .pulse { fill: none; stroke: var(--red-bright); stroke-width: 2; stroke-dasharray: 14 86; stroke-dashoffset: 100; opacity: 0; vector-effect: non-scaling-stroke; }
.orbit .pulse.is-hot { opacity: 1; animation: pulse-run 1.1s var(--ease) infinite; }
@keyframes pulse-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.o-node { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; transition: color 300ms ease, box-shadow 300ms ease, background-color 300ms ease; }
.o-node .px-icon { width: 14px; }
.o-node.is-hot { color: var(--ink); background: #1a1012; box-shadow: inset 0 0 0 1px rgb(236 43 69 / 0.6), 0 0 24px -6px var(--red-glow); }
.o-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; padding: 14px 18px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px rgb(236 43 69 / 0.5), 0 0 0 6px rgb(236 43 69 / 0.05), 0 20px 40px -20px var(--red-glow); z-index: 1; }
.o-hub .px-icon { width: 30px; }
.o-hub .status { font-family: var(--mono); font-size: 11px; color: var(--red); min-width: 120px; text-align: center; }
.o-hub .ring { position: absolute; inset: -10px; border-radius: 20px; border: 1px solid rgb(236 43 69 / 0.4); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { opacity: 0.8; transform: scale(0.94); } to { opacity: 0; transform: scale(1.18); } }

/* Timeline with a sweeping playhead */
.timeline { padding: 18px 16px 14px; display: grid; gap: 14px; height: auto; }
.tl-track { position: relative; height: 104px; border-radius: 8px; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), var(--line) calc(20% - 1px) 20%); }
.tl-days { display: grid; grid-template-columns: repeat(5, 1fr); font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.1em; }
.tl-job { position: absolute; height: 18px; border-radius: 4px; background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px var(--line-strong); animation: tl-hit 7s linear infinite; animation-delay: calc(var(--x) * 7s / 100); }
.tl-head { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--red-bright); box-shadow: 0 0 12px var(--red-glow); animation: tl-sweep 7s linear infinite; }
.tl-head::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; background: var(--red-bright); }
@keyframes tl-sweep { from { left: 0; } to { left: 100%; } }
@keyframes tl-hit { 0%, 6% { background: var(--red-bright); box-shadow: 0 0 16px var(--red-glow); } 12%, 100% { background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px var(--line-strong); } }
.tl-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tl-legend b { color: var(--red); font-weight: 500; }

/* Approval sequence */
.approval { padding: 16px; display: grid; gap: 12px; height: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.ap-cmd { padding: 10px 12px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.ap-cmd .p { color: var(--red); }
.ap-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ap-state { color: var(--faint); transition: color 300ms ease; }
.ap-btn { height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; font: 500 12px var(--mono); background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); transition: transform 180ms var(--ease), background-color 200ms ease, color 200ms ease; }
.ap-btn.is-go { background: var(--red-bright); color: #fff; box-shadow: none; }
.ap-progress { height: 4px; background: rgb(255 255 255 / 0.06); overflow: hidden; }
.ap-progress i { display: block; height: 100%; width: 0; background: var(--red-bright); }
.approval[data-step="1"] .ap-btn.is-go { transform: scale(0.92); }
.approval[data-step="2"] .ap-state, .approval[data-step="3"] .ap-state { color: var(--red); }
.approval[data-step="2"] .ap-progress i { width: 100%; transition: width 1500ms var(--ease); }
.approval[data-step="3"] .ap-progress i { width: 100%; }

/* Choice (steer) */
.choice { padding: 16px; display: grid; gap: 10px; height: auto; font-size: 13.5px; }
.choice .q { color: var(--ink); }
.choice .opts { display: grid; gap: 6px; }
.choice .opt { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 13px; transition: box-shadow 300ms ease, color 300ms ease, background-color 300ms ease; }
.choice .opt::after { content: ""; width: 10px; height: 10px; align-self: center; box-shadow: inset 0 0 0 1.5px var(--faint); transition: background-color 300ms ease, box-shadow 300ms ease; }
.choice .opt.is-hot { color: var(--ink); background: rgb(236 43 69 / 0.08); box-shadow: inset 0 0 0 1px rgb(236 43 69 / 0.5); }
.choice .opt.is-hot::after { background: var(--red-bright); box-shadow: none; }

/* Document scan */
.scan { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; padding: 20px; }
.scan-doc { position: relative; overflow: hidden; }
.scan-doc .px-icon { width: 100%; }
.scan-doc::after { content: ""; position: absolute; left: -6px; right: -6px; height: 2px; background: var(--red-bright); box-shadow: 0 0 14px 2px var(--red-glow); animation: scan 2.8s var(--ease) infinite; }
@keyframes scan { 0% { top: 0; } 50% { top: calc(100% - 2px); } 100% { top: 0; } }
.scan-out { display: grid; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.scan-out div { display: flex; gap: 10px; align-items: center; opacity: 0.15; animation: extract 5.6s steps(1) infinite; animation-delay: var(--d); }
.scan-out div::before { content: ""; width: 6px; height: 6px; background: var(--red-bright); flex: none; }
.scan-out span { color: var(--faint); margin-left: auto; }
@keyframes extract { 0% { opacity: 0.15; } 8%, 92% { opacity: 1; } }

/* Ranked retrieval */
.rank { padding: 16px; display: grid; gap: 10px; height: auto; font-family: var(--mono); font-size: 11.5px; }
.rank .query { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }
.rank .query .px-icon { width: 14px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px; gap: 10px; align-items: center; color: var(--ink-2); }
.rank-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .bar-track { height: 6px; }
.rank-row .bar-fill { width: var(--w); transition: width 900ms var(--ease); }
.rank-row .s { color: var(--faint); text-align: right; }
.rank-row.is-top .s { color: var(--red); }
.rank-row.is-top .bar-fill { background-color: var(--red-bright); }

/* Pixel painting (image generation) */
.paint { display: grid; place-items: center; }
.paint-grid { display: grid; gap: 2px; }
.paint-grid i { width: 11px; height: 11px; background: #171414; transition: background-color 260ms ease, transform 260ms var(--ease); }
.paint-grid i.on { transform: scale(1); }
.paint-meta { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.paint-meta b { color: var(--red); font-weight: 500; }

/* Toggle switches (roles) */
.toggles { padding: 14px 16px; display: grid; gap: 4px; height: auto; font-size: 13px; }
.toggle { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.toggle:last-child { border-bottom: 0; }
.toggle .sw { width: 30px; height: 16px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background-color 300ms ease; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform 300ms var(--ease), background-color 300ms ease; }
.toggle.is-on .sw { background: var(--red-bright); }
.toggle.is-on .sw::after { transform: translateX(14px); background: #fff; }

/* Identity flow */
.flow { padding: 22px 16px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 8px; height: auto; }
.flow-node { display: grid; justify-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: center; }
.flow-node .box { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); }
.flow-node .box .px-icon { width: 20px; }
.flow-node.is-core .box { box-shadow: inset 0 0 0 1px rgb(236 43 69 / 0.6), 0 0 20px -6px var(--red-glow); }
.flow-line { height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px); position: relative; overflow: hidden; margin-bottom: 18px; }
.flow-line::after { content: ""; position: absolute; top: 0; width: 18px; height: 2px; background: var(--red-bright); box-shadow: 0 0 8px var(--red-glow); animation: flow 1.8s linear infinite; }
.flow-line.rev::after { animation-delay: -0.9s; }
@keyframes flow { from { left: -18px; } to { left: 100%; } }

/* Sparkline with an alert threshold */
.spark { padding: 14px 14px 10px; height: auto; display: grid; gap: 8px; }
.spark svg { width: 100%; height: 92px; overflow: visible; }
.spark .grid-l { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark .limit { stroke: var(--red-bright); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: 0.7; }
.spark .line { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 6s var(--ease) infinite; }
.spark .area { fill: rgb(255 255 255 / 0.04); }
@keyframes draw { 0% { stroke-dashoffset: 100; } 45%, 100% { stroke-dashoffset: 0; } }
.spark .alert { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.spark .alert b { color: var(--red); font-weight: 500; animation: alert 6s steps(1) infinite; }
@keyframes alert { 0%, 38% { opacity: 0; } 40%, 100% { opacity: 1; } }

/* Router wires drawn from the live layout */
.router { position: relative; }
.router-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
@media (min-width: 1000px) { .router { grid-template-columns: 1fr 1.15fr 1fr; column-gap: 96px; } }
.router .wires { display: none; }
.router-wires .w { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 5; }
.router-wires .w-hot { fill: none; stroke: var(--red-bright); stroke-width: 2; stroke-dasharray: 16 84; stroke-dashoffset: 100; opacity: 0; transition: opacity 300ms ease; }
.router-wires .w-hot.is-hot { opacity: 1; animation: pulse-run 1.2s linear infinite; }
@media (max-width: 999px) { .router-wires { display: none; } }

/* Footer wordmark */
.wordmark { margin-top: 56px; color: var(--ink); }
.wordmark svg { width: 100%; height: auto; }
.wordmark .px-ink { fill: #1d1a1a; }
.wordmark .px-red { fill: var(--red-bright); }
.wm-cell { transition: fill 400ms ease; }

/* BerryCrawl's grainy light streak, under the hero's lower half and the CTA */
.hero-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 78%; z-index: -2; background: url("/assets/hero-glow.avif") center bottom / cover no-repeat; opacity: 0.55; -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); pointer-events: none; }
.cta-band .hero-glow { height: 100%; opacity: 0.4; background-position: center 70%; }

/* Official store badges */
.store-badge { height: auto; padding: 0; background: none; display: inline-grid; gap: 6px; justify-items: start; }
.store-badge img { height: 44px; width: auto; }
.store-badge.is-soon { background: none; box-shadow: none; }
.store-badge.is-soon img { opacity: 0.55; filter: grayscale(1); }
.store-badge small { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Mockup-inspired details ---------- */
.px-white { fill: #fff; }
.rk-top { fill: #1f1b1b; }
.rk-side { fill: #141111; }
.rk-floor { stroke: var(--line); stroke-width: 1; }
.rk-path { fill: none; stroke: var(--red-bright); stroke-width: 1.4; stroke-dasharray: 2 6; animation: dash 2.4s linear infinite; opacity: 0.85; }
.rk-path.is-alt { animation-direction: reverse; stroke: var(--muted); opacity: 0.6; }
.rack-viz { background: radial-gradient(120% 90% at 50% 100%, rgb(236 43 69 / 0.08), transparent 60%), var(--card); }

/* Orbit rings */
.orbit .ring-l { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.orbit .ring-dot { fill: var(--red-bright); animation: led 2s steps(1) infinite; }

/* Sandbox progress squares */
.squares { display: flex; gap: 3px; margin-top: 12px; }
.squares i { flex: 1; height: 8px; background: var(--line-strong); animation: sq 4.2s steps(1) infinite; animation-delay: calc(var(--i) * 0.15s); }
@keyframes sq { 0% { background: var(--line-strong); } 10%, 80% { background: var(--red-bright); } 100% { background: var(--line-strong); } }

/* Approval cursor */
.approval { position: relative; }
.ap-cursor { position: absolute; width: 16px; right: 18%; bottom: -24px; opacity: 0; transition: right 700ms var(--ease), bottom 700ms var(--ease), opacity 300ms ease; z-index: 2; }
.ap-cursor .px-icon { width: 16px; }
.approval[data-step="0"] .ap-cursor { opacity: 1; right: 6%; bottom: 8px; }
.approval[data-step="1"] .ap-cursor { opacity: 1; right: 10%; bottom: 30px; }
.approval[data-step="2"] .ap-cursor { opacity: 0.6; right: 10%; bottom: 30px; }

/* Scan brackets and a wide scanline */
.scan-doc { padding: 10px; }
.scan-doc::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(var(--red-bright), var(--red-bright)) top left / 12px 2px no-repeat,
  linear-gradient(var(--red-bright), var(--red-bright)) top left / 2px 12px no-repeat,
  linear-gradient(var(--red-bright), var(--red-bright)) top right / 12px 2px no-repeat,
  linear-gradient(var(--red-bright), var(--red-bright)) top right / 2px 12px no-repeat,
  linear-gradient(var(--red-bright), var(--red-bright)) bottom left / 12px 2px no-repeat,
  linear-gradient(var(--red-bright), var(--red-bright)) bottom left / 2px 12px no-repeat,
  linear-gradient(var(--red-bright), var(--red-bright)) bottom right / 12px 2px no-repeat,
  linear-gradient(var(--red-bright), var(--red-bright)) bottom right / 2px 12px no-repeat; }
.scan-doc::after { left: -40px; right: -40px; background: linear-gradient(90deg, transparent, var(--red-bright) 20%, var(--red-bright) 80%, transparent); }
.scan { overflow: visible; }

/* Wordmark: big, red, a grid of squares */
.wordmark .px-red { fill: var(--red-bright); }
.wordmark { margin-top: 64px; }

/* ---------- Pixel icons and dot-matrix art ---------- */
.tile-head .px-icon { width: 30px; }
.trust-item .px-icon, .card .px-icon, .grid-cell .px-icon { color: var(--red-bright); }
.hero-strip .px-icon, .console-tab .px-icon, .provider .px-icon, .o-node .px-icon { color: currentColor; }
.button .px-icon { color: currentColor; }
.paint-canvas { position: absolute; inset: 16px 16px 30px; width: calc(100% - 32px); height: calc(100% - 46px); }
.ap-cursor .px-icon { width: 16px; }
.scan-doc .px-icon { color: var(--ink); width: 100%; }
.footer-grid a.brand { display: inline-flex; padding: 0; font-size: 22px; color: var(--ink); }
.cta-band .hero-glow { opacity: 0.32; }

/* ---------- Higher-resolution bento details ---------- */
.orbit .link { stroke-width: 1; stroke-dasharray: 1.5 3.5; vector-effect: none; }
.orbit .pulse { stroke-width: 1.5; vector-effect: none; }
.orbit .ring-l { stroke-width: 1; stroke-dasharray: 1 4; vector-effect: none; }
.orbit .ring-tick { fill: var(--line-strong); }
.orbit .ring-dot { fill: var(--red-bright); }
.stage.dots-bg { background-size: 10px 10px; background-image: radial-gradient(rgb(255 255 255 / 0.07) 0.8px, transparent 0.8px); }
.bar-fill { background-image: repeating-linear-gradient(90deg, transparent 0 3px, var(--card) 3px 4px); }
.bar-track { height: 8px; }
.rank-row .bar-track { height: 5px; }
.squares { gap: 2px; }
.squares i { height: 5px; animation-delay: calc(var(--i) * 0.075s); }
.tl-track { background:
  repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), var(--line) calc(20% - 1px) 20%),
  repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgb(255 255 255 / 0.025) calc(5% - 1px) 5%); }
.tl-job { height: 14px; border-radius: 3px; }
.tl-head { width: 1px; }
.tl-head::before { width: 7px; height: 7px; left: -3px; }
.flow-line { height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 3px, transparent 3px 6px); }
.flow-line::after { height: 1px; width: 22px; }
.ap-progress { height: 3px; }
.spark .line { stroke-width: 1.4; }
.toggle .sw { width: 28px; height: 15px; }
.toggle .sw::after { width: 11px; height: 11px; }
.toggle.is-on .sw::after { transform: translateX(13px); }

/* ---------- Section headings: smaller, one sentence, clearly structured ---------- */
.h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 560px;
  text-wrap: balance;
}
.h2-cta { font-size: clamp(32px, 3.8vw, 52px); max-width: 720px; margin-inline: auto; }
.section-head { gap: 16px; margin-bottom: 48px; }
.section-head .h2 { margin-top: 0; }
@media (min-width: 900px) {
  .section-head.split-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 64px; row-gap: 18px; }
  .section-head.split-head .lead { font-size: 16px; line-height: 1.7; padding-top: 4px; max-width: 480px; justify-self: end; }
}
.pad { padding-block: 80px; }
@media (min-width: 900px) { .pad { padding-block: 96px; } }
.doc-head .h2 { font-size: clamp(32px, 4vw, 48px); max-width: none; }
.dc .lead, .devices .lead { font-size: 16px; line-height: 1.7; margin-top: 16px !important; }
.h2 { max-width: none; text-wrap: initial; }
.h2 .red { display: block; }
@media (min-width: 900px) {
  .section-head.split-head { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
}
.h2 { font-size: clamp(28px, 2.8vw, 38px); }
.px-black { fill: #0c0b0b; }

/* ---------- Bento titles: big, left, next to the icon ---------- */
.tile-head { justify-content: flex-start; gap: 12px; }
.tile-head .px-icon { width: 30px; flex: none; }
.tile-head .label { font-family: var(--sans); font-size: 20px; font-weight: 650; letter-spacing: -0.02em; text-transform: none; color: var(--ink); gap: 0; }
.node .tile-head .label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.node .tile-head { justify-content: space-between; }
.rack-viz .tile-head .label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rack-viz .tile-head { justify-content: space-between; }
.tile .h3 { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.tile-copy { gap: 6px; }

/* ---------- Durable runs ---------- */
.durable { padding: 18px 16px; display: grid; gap: 12px; height: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.du-row { display: grid; grid-template-columns: 64px 1fr 70px; gap: 10px; align-items: center; }
.du-track { height: 6px; background: rgb(255 255 255 / 0.05); overflow: hidden; }
.du-bar { display: block; height: 100%; width: 0; background-color: var(--ink); background-image: repeating-linear-gradient(90deg, transparent 0 3px, var(--card) 3px 4px); transition: width 500ms var(--ease), background-color 300ms ease; }
.du-state { text-align: right; }
.du-row.is-down .du-bar { background-color: var(--red-bright); }
.du-row.is-down .du-state { color: var(--red); }
.du-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 4px; }
.du-steps span { padding: 6px 0; text-align: center; font-size: 10px; border-radius: 4px; background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.du-steps span.is-done { color: var(--ink); background: rgb(255 255 255 / 0.06); }
.du-steps span.is-now { color: #fff; background: var(--red-bright); box-shadow: none; }
.du-note b { color: var(--red); font-weight: 500; }

/* Orbit in a narrower tile */
.orbit .o-hub { padding: 12px 14px; }
.orbit .o-hub .status { min-width: 104px; font-size: 10.5px; }
.orbit .o-node { height: 30px; padding: 0 10px; font-size: 11px; }

/* ---------- Console: fill the wait ---------- */
.console-log { min-height: 0; }
.console-body { min-height: 300px; }
.skeleton { display: grid; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--line-strong); margin-top: auto; }
.skeleton i { height: 9px; border-radius: 3px; background: linear-gradient(90deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.04)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:nth-child(2) { width: 86%; }
.skeleton i:nth-child(3) { width: 62%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
.console-prompt.is-done .skeleton { display: none; }
.console-prompt:not(.is-done) .answer { display: none; }
.run-bar { position: relative; height: 2px; background: var(--line); overflow: hidden; }
.run-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red-bright); box-shadow: 0 0 10px var(--red-glow); transition: width 450ms var(--ease); }
.log-row.is-pending { opacity: 0.35; transform: none; }
.log-row.is-pending .sq { background: transparent; box-shadow: inset 0 0 0 1px var(--faint); }
.log-row.is-pending .what, .log-row.is-pending .tail { color: var(--faint); }
.stage { min-height: 236px; }
.durable, .approval, .choice, .timeline, .rank, .toggles, .flow, .spark { align-content: center; }
.span-2 .orbit { height: 260px; }

/* ---------- Footer wordmark: a quiet outline that draws itself in ---------- */
.wordmark { margin-top: 64px; }
.wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }
/* The font's letters are built from overlapping shapes, so a plain stroke
   traces lines inside them. Painting the stroke first and the fill on top
   (in the page colour) hides those inner lines and leaves a clean outline. */
.wordmark text { font-family: var(--sans); font-weight: 700; font-size: 300px; letter-spacing: 0; fill: var(--paper); stroke: #4a4242; stroke-width: 2.5px; stroke-linejoin: round; paint-order: stroke fill; vector-effect: non-scaling-stroke; transition: stroke 600ms ease, fill 600ms ease; }
.js .wordmark svg { opacity: 0; transform: translateY(12px); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); }
.js .wordmark.in-view svg { opacity: 1; transform: none; }
.wordmark:hover text { stroke: rgb(236 43 69 / 0.7); fill: #120d0e; }
@media (prefers-reduced-motion: reduce) { .js .wordmark svg { opacity: 1; transform: none; } }
.footer-base .legal-link { color: var(--ink-2); }
.footer-base .legal-link:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 3px; }
.px-icon { display: block; height: auto; aspect-ratio: 1; image-rendering: auto; }
.hero-strip .px-icon, .console-tab .px-icon, .provider .px-icon, .o-node .px-icon { display: inline-block; vertical-align: -2px; }
.fact .est { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-left: 4px; white-space: nowrap; }
.facts-note { padding: 12px 20px 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--faint); }
@media (min-width: 900px) { .facts-note { padding-inline: 28px; } }

/* Provider logos */
.provider .brand-logo { width: 16px; height: 16px; object-fit: contain; flex: none; }
.provider .px-icon { width: 16px; }
.route-row span { display: inline-flex; align-items: center; gap: 6px; }
.route-logo { width: 11px; height: 11px; object-fit: contain; opacity: 0.7; }
.route-row.is-hot .route-logo { opacity: 1; }

/* Enterprise checklist */
.ent-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .ent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ent-grid { grid-template-columns: repeat(4, 1fr); } }
.ent-item { background: var(--paper); padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start; transition: background-color 250ms ease; }
.ent-item:hover { background: #0f0d0d; }
.ent-item .px-icon { width: 26px; flex: none; margin-top: 2px; }
.ent-item strong { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.ent-item span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.js .ent-item[data-reveal] { opacity: 1; transform: none; filter: none; }
.js .ent-item[data-reveal] > * { opacity: 0; transform: translateY(10px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .ent-item[data-reveal].is-in > * { opacity: 1; transform: none; }

/* Cloud logos in the deployment section */
.clouds { margin-top: 28px; display: grid; gap: 12px; }
.clouds-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cloud-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 640px) { .cloud-row { grid-template-columns: repeat(4, 1fr); } }
.cloud { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px 14px; background: var(--card); font-size: 13px; color: var(--ink-2); transition: background-color 250ms ease, color 250ms ease; }
.cloud img, .cloud .px-icon { height: 24px; width: auto; opacity: 1; transition: opacity 250ms ease; }
.cloud .px-icon { width: 24px; }
.cloud:hover { background: #161212; color: var(--ink); }
.cloud:hover img, .cloud:hover .px-icon { opacity: 1; }
.hero .display { font-size: clamp(40px, 6.8vw, 86px); }
.cloud { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1399px) { .dc .cloud-row { grid-template-columns: repeat(2, 1fr); } .dc .cloud { flex-direction: row; justify-content: flex-start; padding: 14px 16px; } }

/* ---------- Hero fits above the fold: sizes follow the viewport height ---------- */
.hero .frame { padding-top: clamp(104px, 13vh, 140px); padding-bottom: clamp(48px, 7vh, 88px); }
.hero .display { font-size: clamp(38px, min(6.2vw, 8.4vh), 78px); }
.hero h1 { margin-top: clamp(14px, 2.2vh, 24px); }
.hero .lead { margin-top: clamp(12px, 2vh, 20px); font-size: clamp(16px, min(1.4vw, 2.1vh), 19px); }
.hero-actions { margin-top: clamp(18px, 3vh, 30px); }
.hero-strip { margin-top: clamp(14px, 2.2vh, 24px); }
.console-wrap { margin-top: clamp(26px, 4.5vh, 56px); }
.console-body { min-height: clamp(210px, 29vh, 300px); }
.corner.tl, .corner.tr { top: clamp(92px, 11vh, 112px); }
@media (max-height: 760px) and (min-width: 900px) { .hero-strip { display: none; } }

/* ---------- Console: closer to the real app ---------- */
.console-meta { margin-bottom: 14px; }
.typed { align-self: flex-end; max-width: 92%; min-height: 0; padding: 12px 16px; border-radius: 14px 14px 4px 14px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15.5px; line-height: 1.55; }
.console-prompt { gap: 0; }
.console-log { padding: 10px; }
.log-row { padding: 8px 12px; }
.run-bar { border-radius: 0 0 16px 16px; }
.corner.bl, .corner.br { display: none; }

/* ---------- Console v3: one bar, request + answer, step timeline ---------- */
.cbar { display: flex; align-items: center; gap: 22px; padding: 0 18px; height: 52px; border-bottom: 1px solid var(--line); }
.cbrand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; flex: none; }
.cbrand img { width: 12px; height: auto; }
.cbar .console-tabs { flex: 1; align-self: stretch; padding: 0; gap: 22px; border: 0; }
.cbar .console-tab { height: 100%; padding: 0 2px; border-radius: 0; font-size: 14px; color: var(--muted); background: none; box-shadow: none; position: relative; }
.cbar .console-tab[aria-selected="true"] { color: var(--ink); background: none; box-shadow: none; }
.cbar .console-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red-bright); }
.cbar .addr { font-family: var(--mono); font-size: 12px; color: var(--faint); flex: none; }
@media (max-width: 760px) { .cbrand, .cbar .addr { display: none; } .cbar { padding: 0 14px; } }
.console-body { display: grid; min-height: clamp(250px, 32vh, 330px); }
@media (min-width: 900px) { .console-body { grid-template-columns: 1.15fr 1fr; } }
.cleft { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .cleft { border-bottom: 0; border-right: 1px solid var(--line); } }
.cright { padding: 20px 22px; }
.clabel { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }
.clabel b { color: var(--ink-2); font-weight: 500; }
.cleft .typed { align-self: auto; max-width: none; padding: 0; background: none; box-shadow: none; border-radius: 0; font-size: 17px; line-height: 1.5; color: var(--ink); min-height: 52px; }
.answer-card { margin-top: 4px; padding: 14px 16px; border-radius: 12px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.answer-card.is-in { opacity: 1; transform: none; }
.ac-who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ac-who img { width: 10px; height: auto; }
.ac-title { margin-top: 6px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.ac-text { margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.ac-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 12.5px; }
.ac-table th { text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 0 0 6px; border-bottom: 1px solid var(--line-strong); }
.ac-table td { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ac-table tr.is-first td { color: var(--ink); font-weight: 600; }
.ac-table th:last-child, .ac-table td:last-child { text-align: right; }
.ac-sources { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.ac-sources span { display: inline-flex; align-items: center; gap: 6px; }
.ac-sources b { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--line-strong); color: var(--ink-2); font: 500 10px var(--mono); }
.tl-steps { --fill: 0%; position: relative; list-style: none; margin-top: 14px; display: grid; gap: 4px; }
.tl-steps::before, .tl-steps::after { content: ""; position: absolute; left: 6px; top: 14px; width: 1px; }
.tl-steps::before { bottom: 14px; background: var(--line-strong); }
.tl-steps::after { height: calc((100% - 28px) * var(--fill) / 100%); background: var(--red-bright); transition: height 500ms var(--ease); }
.tl-step { position: relative; display: grid; grid-template-columns: 14px 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px 7px 0; border-radius: 8px; opacity: 0.35; transition: opacity 300ms ease, background-color 300ms ease; }
.tl-step.is-now, .tl-step.is-done { opacity: 1; }
.tl-step.is-now { background: rgb(255 255 255 / 0.035); }
.tl-dot { position: relative; z-index: 1; width: 13px; height: 13px; border-radius: 3px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--faint); transition: background-color 300ms ease, box-shadow 300ms ease; }
.tl-step.is-done .tl-dot { background: var(--ink-2); box-shadow: none; }
.tl-step.is-now .tl-dot { background: var(--red-bright); box-shadow: 0 0 0 4px rgb(236 43 69 / 0.15); }
.tl-time { font-family: var(--mono); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tl-title { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-step.is-now .tl-title, .tl-step.is-done .tl-title { color: var(--ink); }
.tl-tag { font-family: var(--mono); font-size: 10.5px; padding: 2px 7px; border-radius: 5px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tl-step.is-now .tl-tag { color: var(--red); box-shadow: inset 0 0 0 1px rgb(236 43 69 / 0.5); }
.console.is-done .tl-step:last-child .tl-tag { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Fixed console height: no jump when the answer lands */
@media (min-width: 900px) {
  .console-body { height: clamp(280px, 35vh, 340px); min-height: 0; }
  .cleft, .cright { overflow: hidden; }
}
.cleft { gap: 8px; padding: 16px 20px; }
.cright { padding: 16px 20px; }
.cleft .typed { font-size: 15.5px; min-height: 46px; }
.answer-card { padding: 12px 14px; }
.ac-title { margin-top: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ac-title img { width: 10px; height: auto; }
.ac-text { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-table { margin-top: 8px; font-size: 12px; }
.ac-table td { padding: 4px 0; }
.ac-sources { margin-top: 8px; font-size: 11.5px; }
.tl-steps { margin-top: 10px; gap: 2px; }
@media (max-height: 940px) and (min-width: 900px) { .hero-strip { display: none; } }
@media (max-width: 899px) {
  .console-body { min-height: 0; }
  .tl-step { grid-template-columns: 14px minmax(0, 1fr) auto; }
  .tl-time { display: none; }
}
/* Taller console so the whole answer card shows */
@media (min-width: 900px) { .console-body { height: clamp(400px, 46vh, 460px); } }
.cleft .typed { min-height: 52px; }
.answer-card { padding: 16px 18px; }
.ac-table td { padding: 7px 0; }
.ac-sources { margin-top: 12px; }
.tl-steps { gap: 6px; margin-top: 14px; }
.tl-step { padding: 9px 8px 9px 0; }
.tl-steps::after { transition-duration: 260ms; }
.answer-card { transition-duration: 350ms; }
.run-bar i { transition-duration: 250ms; }

/* ---------- Console left side as the real chat ---------- */
.cleft { gap: 14px; }
.msg-user { display: flex; justify-content: flex-end; }
.cleft .msg-user .typed { max-width: 86%; min-height: 0; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.answer-card.msg-berry { margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.ac-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ac-avatar { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ac-avatar img { width: 9px; height: auto; }
.ac-worked { margin-left: 4px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--faint); }
.msg-berry .ac-title { margin-top: 10px; font-size: 15px; }
.msg-berry .ac-title img { display: none; }
.msg-berry .ac-table, .msg-berry .ac-text, .msg-berry .ac-title, .msg-berry .ac-sources { margin-left: 30px; }
.msg-berry .ac-table { width: calc(100% - 30px); }
/* A sent message: rises from below and springs into place from its corner. */
.js .msg-user { opacity: 0; }
.js .msg-user.is-in { opacity: 1; }
.js .msg-user.is-in .typed { animation: msg-send 560ms cubic-bezier(0.2, 1.3, 0.35, 1) both; transform-origin: 100% 100%; }
@keyframes msg-send {
  0% { opacity: 0; transform: translateY(46px) scale(0.86); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.answer-card.msg-berry { transform-origin: 0 0; }
.js .answer-card.msg-berry.is-in { animation: msg-reply 520ms cubic-bezier(0.2, 1.2, 0.35, 1) both; }
@keyframes msg-reply { 0% { opacity: 0; transform: translateY(26px) scale(0.97); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .msg-user { opacity: 1; } .js .msg-user.is-in .typed, .js .answer-card.msg-berry.is-in { animation: none; } }

/* Tab icons and the auto-advance underline */
.cbar .console-tab { display: inline-flex; align-items: center; gap: 7px; }
.cbar .console-tab .px-icon { width: 15px; opacity: 0.7; transition: opacity 200ms ease; }
.cbar .console-tab[aria-selected="true"] .px-icon { opacity: 1; }
.cbar .console-tab::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--line-strong); opacity: 0; }
.cbar .console-tab[aria-selected="true"]::before { opacity: 1; }
.cbar .console-tab[aria-selected="true"]::after { transform-origin: 0 50%; }
.cbar .console-tab.is-running::after { animation: tab-run var(--run, 6000ms) linear both; }
@keyframes tab-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.footer-base { justify-content: center; text-align: center; }
