/* ═══════════════════════════════════════════════
   VIROMO / TERMINAL BRUTALISM
   Palette: near-black + bone + high-voltage accent
   Type: Space Grotesk (UI) / JetBrains Mono (data) / Fraunces (display italic)
═══════════════════════════════════════════════ */

:root {
  --bg:       #0A0A0A;
  --bg-2:     #121212;
  --bg-3:     #1C1C1C;
  --fg:       #EFEBE2;
  --fg-2:     #B8B2A3;
  --fg-3:     #6E6A5F;
  --line:     #2A2A28;
  --line-2:   #3A3A37;

  --acid:     #D6FF3D;
  --amber:    #FF9A3D;
  --blood:    #FF3D3D;
  --sky:      #3DB8FF;

  --ok:       #7CE897;
  --warn:     #F4C44A;
  --err:      #FF6B5C;

  --accent:   var(--acid);
  --accent-ink: #0A0A0A;

  --sans: "Space Grotesk", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display: "Fraunces", "Times New Roman", serif;

  --unit: 8px;
}
[data-accent="acid"]   { --accent: #D6FF3D; --accent-ink: #0A0A0A; }
[data-accent="amber"]  { --accent: #FF9A3D; --accent-ink: #0A0A0A; }
[data-accent="sky"]    { --accent: #3DB8FF; --accent-ink: #0A0A0A; }
[data-accent="blood"]  { --accent: #FF3D3D; --accent-ink: #F4F1EA; }

[data-mode="light"] {
  --bg: #F0ECE0;
  --bg-2: #E8E2D2;
  --bg-3: #D8D0BC;
  --fg: #0A0A0A;
  --fg-2: #3A3A37;
  --fg-3: #6E6A5F;
  --line: #CFC7B0;
  --line-2: #B8B09A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
body.no-grain::before { display: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ═══ Layout primitives ═══ */
.mono  { font-family: var(--mono); font-feature-settings: "tnum","zero"; }
.disp  { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }
.mini  {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.lines {
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100%/12) 100%;
}

/* ═══ Top system bar ═══ */
.sysbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.sysbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 24px;
  align-items: center;
  height: 36px;
  padding: 0 24px;
  color: var(--fg-3);
}
.sysbar-inner > * { white-space: nowrap; }
.sys-live { color: var(--accent); display: flex; align-items: center; gap: 8px; }
.sys-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.8s infinite;
}
@keyframes blink {
  0%, 60%, 100% { opacity: 1; }
  80% { opacity: 0.25; }
}
.sys-path { color: var(--fg-2); }
.sys-cmd { color: var(--fg-2); }
@media (max-width: 720px) {
  .sysbar-inner { grid-template-columns: auto 1fr auto; gap: 12px; font-size: 10px; }
  .sys-hide-sm { display: none; }
}

/* ═══ Navbar ═══ */
.nav {
  position: sticky; top: 36px; z-index: 49;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  height: 72px;
  padding: 0 24px;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.logo-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  background: var(--bg);
}
.logo-mark::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px var(--bg);
}
.logo-mark::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  top: 50%; height: 1px;
  background: var(--fg);
  transform: translateY(-0.5px);
}
.logo span { display: block; }
.logo small {
  display: block;
  font-size: 9px; letter-spacing: 0.2em;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-top: 1px;
}

.navlinks {
  display: flex;
  gap: 0;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.navlinks a {
  padding: 8px 16px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: color 0.15s;
}
.navlinks a:first-child { border-left: 1px solid var(--line); }
.navlinks a:hover { color: var(--accent); }
.navlinks a .n {
  color: var(--fg-3);
  margin-right: 6px;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  transition: all 0.15s;
}
.nav-cta:hover {
  background: var(--bg);
  color: var(--accent);
}
.nav-cta::after { content: "↗"; font-size: 14px; }

@media (max-width: 960px) {
  .navlinks { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
}

/* ═══ HERO — massive asymmetric type + live board ═══ */
.hero {
  padding: 80px 0 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  padding: 0 24px;
  position: relative;
}

.hero-tag {
  grid-column: 1 / 13;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line-2);
  margin-bottom: 56px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero-tag .chip {
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--accent);
}
.hero-tag .chip::before {
  content: "●"; font-size: 10px;
}

.hero-title {
  grid-column: 1 / 10;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  color: var(--fg);
}
.hero-title .accent-word {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  display: inline-block;
}
.hero-title .underline {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1em;
  display: inline-block;
}
.hero-title .flip {
  display: inline-block;
  padding: 0 0.18em;
  background: var(--fg);
  color: var(--bg);
}

.hero-meta {
  grid-column: 10 / 13;
  align-self: end;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--fg-3);
}
.hero-meta strong { color: var(--fg); font-weight: 500; }

.hero-sub {
  grid-column: 1 / 7;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 540px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.hero-ctas {
  grid-column: 7 / 13;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  transition: all 0.2s;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn.primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn.ghost {
  background: transparent;
  color: var(--fg);
}
.btn.ghost:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn::after { content: "→"; font-size: 14px; transition: transform 0.2s; }
.btn:hover::after { transform: translateX(4px); }

/* Big stat banner */
.hero-stats {
  grid-column: 1 / 13;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hstat {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.hstat:last-child { border-right: none; }
.hstat:first-child { padding-left: 0; }
.hstat .mini { margin-bottom: 12px; }
.hstat .val {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hstat .val small {
  font-size: 18px; color: var(--fg-3);
  margin-left: 4px;
  font-family: var(--mono);
  letter-spacing: 0;
}
.hstat.live .val { color: var(--accent); }
.hstat .trend {
  font-family: var(--mono);
  font-size: 11px; color: var(--fg-3);
  margin-top: 6px;
}
.hstat .trend .up { color: var(--ok); }

@media (max-width: 1000px) {
  .hero-title { grid-column: 1 / 13; font-size: clamp(48px, 12vw, 96px); }
  .hero-meta { grid-column: 1 / 13; padding-left: 0; border-left: none; border-top: 1px dashed var(--line-2); padding-top: 20px; margin-bottom: 24px; }
  .hero-sub, .hero-ctas { grid-column: 1 / 13; }
  .hero-ctas { justify-content: flex-start; border-top: none; padding-top: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hstat { border-right: none; border-top: 1px solid var(--line); padding-left: 0; }
  .hstat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
  .hstat:first-child { padding-left: 0; }
}

/* ═══ Ticker ═══ */
.ticker {
  background: var(--fg);
  color: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: slide 48s linear infinite;
  width: max-content;
}
.ticker-track span {
  display: flex; gap: 14px; align-items: center;
}
.ticker-track span::before {
  content: "◆"; color: var(--accent-ink);
  font-size: 8px;
  background: var(--accent);
  padding: 2px;
  line-height: 1;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══ Section scaffolding ═══ */
section {
  border-bottom: 1px solid var(--line);
  position: relative;
}
section.invert {
  background: #EFEBE2;
  color: #0A0A0A;
  --fg: #0A0A0A;
  --fg-2: #3A3A37;
  --fg-3: #6E6A5F;
  --bg: #EFEBE2;
  --bg-2: #E8E2D2;
  --bg-3: #D8D0BC;
  --line: #CFC7B0;
  --line-2: #B8B09A;
}
[data-mode="light"] section.invert {
  background: #0A0A0A;
  color: #EFEBE2;
  --fg: #EFEBE2;
  --fg-2: #B8B2A3;
  --fg-3: #6E6A5F;
  --bg: #0A0A0A;
  --bg-2: #121212;
  --bg-3: #1C1C1C;
  --line: #2A2A28;
  --line-2: #3A3A37;
}

.wrap { padding: 0 24px; }

.section-header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  padding: 96px 24px 64px;
  border-bottom: 1px dashed var(--line-2);
}
.sh-id {
  grid-column: 1 / 3;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  align-self: start;
}
.sh-id strong { color: var(--accent); font-weight: 500; }
.sh-title {
  grid-column: 3 / 10;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.sh-title em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.sh-desc {
  grid-column: 10 / 13;
  align-self: end;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

@media (max-width: 900px) {
  .section-header { padding: 64px 24px 40px; }
  .sh-id { grid-column: 1 / 13; margin-bottom: 20px; }
  .sh-title { grid-column: 1 / 13; margin-bottom: 24px; }
  .sh-desc { grid-column: 1 / 13; padding-left: 0; border-left: none; }
}

/* ═══ LAYERS — index card layout with big numerals ═══ */
.layers-block {
  padding: 0;
}
.layers-rows {
  display: grid;
}
.layer-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 2fr 160px;
  border-bottom: 1px solid var(--line);
  padding: 40px 24px;
  gap: 24px;
  align-items: start;
  position: relative;
  transition: background 0.3s;
}
.layer-row:last-child { border-bottom: none; }
.layer-row:hover { background: var(--bg-2); }
.layer-row.featured { background: var(--bg-2); }
.layer-row.featured::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}

.lr-num {
  font-family: var(--display);
  font-size: 96px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--fg);
  font-weight: 400;
}
.lr-num .sup {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  display: block;
  color: var(--fg-3);
  margin-bottom: 10px;
}

.lr-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.lr-name em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lr-what {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-2);
}
.lr-what .k {
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
}
.lr-what .k:first-child { margin-top: 0; }

.lr-desc {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
}

.lr-meta {
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
  color: var(--fg-3);
  line-height: 1.8;
}
.lr-meta .badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 4px 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}
.lr-meta .badge.muted {
  background: transparent;
  color: var(--fg-2);
  border: 1px solid var(--line-2);
}

@media (max-width: 1100px) {
  .layer-row {
    grid-template-columns: 100px 1fr 1fr;
    gap: 20px;
  }
  .lr-num { font-size: 64px; }
  .lr-what { grid-column: 1 / 4; }
  .lr-desc { grid-column: 2 / 4; }
  .lr-meta { grid-column: 1 / 4; text-align: left; }
}
@media (max-width: 700px) {
  .layer-row { grid-template-columns: 1fr; padding: 28px 24px; }
  .lr-num, .lr-name, .lr-what, .lr-desc, .lr-meta { grid-column: 1 / 2; }
  .lr-num { font-size: 56px; }
}

/* ═══ Packages — catalog sheet ═══ */
.catalog-head {
  display: grid;
  grid-template-columns: 80px 1.3fr 2fr 1fr 120px;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: var(--bg-2);
  position: sticky;
  top: 108px;
  z-index: 20;
}
.pkg-row {
  display: grid;
  grid-template-columns: 80px 1.3fr 2fr 1fr 120px;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: all 0.2s;
  cursor: default;
  position: relative;
}
.pkg-row:hover {
  background: var(--bg-2);
}
.pkg-row:hover .pkg-idx {
  color: var(--accent);
}
.pkg-idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}
.pkg-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.pkg-name .cat {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 3px;
  font-weight: 400;
}
.pkg-desc {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.5;
}
.pkg-signals {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  line-height: 1.7;
}
.pkg-signals .sig {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin-right: 4px;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.pkg-tier {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
}
.pkg-tier.t3 { color: var(--accent); }
.pkg-tier.t2 { color: var(--fg); }
.pkg-tier.t1 { color: var(--fg-2); }
.pkg-tier .bar {
  display: inline-block;
  width: 28px;
  height: 3px;
  background: currentColor;
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.3;
}
.pkg-tier.t3 .bar { opacity: 1; }
.pkg-tier.t2 .bar { opacity: 0.6; }
.pkg-tier.t1 .bar { opacity: 0.3; }

@media (max-width: 1000px) {
  .catalog-head { display: none; }
  .pkg-row {
    grid-template-columns: 60px 1fr 100px;
    grid-template-areas:
      "idx name tier"
      ". desc desc"
      ". sigs sigs";
    padding: 20px 24px;
  }
  .pkg-idx { grid-area: idx; }
  .pkg-name { grid-area: name; }
  .pkg-desc { grid-area: desc; }
  .pkg-signals { grid-area: sigs; }
  .pkg-tier { grid-area: tier; }
}

/* ═══ Process — horizontal rails ═══ */
.process {
  padding: 0;
}
.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.rail-step {
  padding: 48px 32px 56px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.3s;
}
.rail-step:last-child { border-right: none; }
.rail-step:hover { background: var(--bg-2); }
.rail-step .ns {
  font-family: var(--display);
  font-size: 120px;
  line-height: 0.85;
  color: var(--fg);
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  position: relative;
}
.rail-step .ns::after {
  content: "→";
  position: absolute;
  right: -32px; bottom: 8px;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
}
.rail-step:last-child .ns::after { content: "◆"; color: var(--accent); }
.rail-step .step-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.rail-step h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.rail-step p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
}
.rail-step .time {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}
@media (max-width: 900px) {
  .rail { grid-template-columns: repeat(2, 1fr); }
  .rail-step:nth-child(2n) { border-right: none; }
  .rail-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rail-step .ns { font-size: 88px; }
}
@media (max-width: 560px) {
  .rail { grid-template-columns: 1fr; }
  .rail-step { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .rail-step .ns::after { display: none; }
}

/* ═══ Example record — terminal panel ═══ */
.record {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  align-items: stretch;
}
.record-info {
  padding: 96px 48px 96px 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 24px;
}
.record-info h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.record-info h3 em {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
}
.record-info p {
  font-size: 15px;
  color: var(--fg-2);
  max-width: 440px;
  line-height: 1.6;
}
.record-info ul {
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
  line-height: 1.8;
}
.record-info ul li::before {
  content: "▸ ";
  color: var(--accent);
}

.record-panel {
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  overflow: hidden;
  position: relative;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.panel-head .dots { display: flex; gap: 6px; }
.panel-head .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2);
}
.panel-head .dots span:first-child { background: var(--err); }
.panel-head .dots span:nth-child(2) { background: var(--warn); }
.panel-head .dots span:last-child { background: var(--ok); }

.panel-body { padding: 24px 28px; }
.panel-line {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line-2);
  align-items: baseline;
}
.panel-line:last-child { border-bottom: none; }
.panel-line .k {
  color: var(--fg-3);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.panel-line .v { color: var(--fg); }
.panel-line .v.ok { color: var(--ok); }
.panel-line .v.warn { color: var(--warn); }
.panel-line .v.muted { color: var(--fg-2); }
.panel-line .v .tag {
  display: inline-block;
  padding: 1px 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: 2px;
  font-weight: 500;
}
.panel-line .v .bar-graph {
  display: inline-flex;
  gap: 2px;
  margin-left: 8px;
  vertical-align: middle;
}
.panel-line .v .bar-graph i {
  width: 4px; height: 14px;
  background: var(--accent);
  display: inline-block;
}
.panel-line .v .bar-graph i.empty {
  background: var(--line-2);
}

.panel-foot {
  display: flex;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.panel-foot .ok { color: var(--accent); }

@media (max-width: 1000px) {
  .record { grid-template-columns: 1fr; }
  .record-info { padding: 64px 24px 48px; border-right: none; border-bottom: 1px solid var(--line); }
  .record-panel { border-left: none; }
}

/* ═══ Differentiators — stacked diagonal panels ═══ */
.diff {
  padding: 0;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.diff-cell {
  padding: 48px 32px 56px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s;
  min-height: 340px;
  display: flex; flex-direction: column;
}
.diff-cell:hover { background: var(--bg-2); }
.diff-cell:nth-child(3n) { border-right: none; }
.diff-cell:nth-child(n+4) { border-bottom: none; }
.diff-cell .dn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}
.diff-cell h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.diff-cell h3 em {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
}
.diff-cell p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  flex: 1;
}
.diff-cell .mark {
  margin-top: 24px;
  font-family: var(--display);
  font-size: 80px;
  line-height: 0.85;
  color: var(--fg-3);
  letter-spacing: -0.04em;
  opacity: 0.2;
  transition: opacity 0.3s, color 0.3s;
}
.diff-cell:hover .mark { color: var(--accent); opacity: 1; }

@media (max-width: 900px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-cell { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .diff-cell:nth-child(2n) { border-right: none !important; }
}
@media (max-width: 560px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-cell { border-right: none !important; }
}

/* ═══ Pricing — spec sheet ═══ */
.price-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.price-tier {
  padding: 48px 32px 56px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: relative;
  transition: background 0.2s;
}
.price-tier:last-child { border-right: none; }
.price-tier.featured {
  background: var(--fg);
  color: var(--bg);
}
.price-tier.featured .price-tier-badge { color: var(--accent-ink); background: var(--accent); }
.price-tier.featured .price-desc,
.price-tier.featured .price-feat li { color: color-mix(in oklab, var(--bg) 80%, transparent); }
.price-tier.featured .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.price-tier.featured .btn.primary:hover { background: transparent; color: var(--accent); }
.price-tier.featured .price-num { color: var(--accent); }

.price-tier-id {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.price-tier-badge {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--fg);
  color: var(--bg);
  margin-bottom: 16px;
  align-self: flex-start;
}
.price-tier h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.price-desc {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 280px;
}
.price-num {
  font-family: var(--display);
  font-size: 68px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 28px;
}
.price-num small {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-3);
  letter-spacing: 0;
  margin-left: 4px;
}
.price-feat {
  list-style: none;
  flex: 1;
  display: grid;
  gap: 0;
  margin-bottom: 32px;
}
.price-feat li {
  padding: 10px 0;
  border-top: 1px dashed var(--line-2);
  font-size: 13px;
  color: var(--fg-2);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}
.price-feat li::before {
  content: "+";
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
}
.price-feat li:last-child { border-bottom: 1px dashed var(--line-2); }

@media (max-width: 900px) {
  .price-wrap { grid-template-columns: 1fr; }
  .price-tier { border-right: none; border-bottom: 1px solid var(--line); }
  .price-tier:last-child { border-bottom: none; }
}

/* ═══ FAQ — accordion brutalist ═══ */
.faq-wrap {
  border-top: 1px solid var(--line);
}
details.q {
  border-bottom: 1px solid var(--line);
}
details.q summary {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  padding: 28px 24px;
  cursor: pointer;
  align-items: center;
  list-style: none;
  transition: background 0.2s;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary:hover { background: var(--bg-2); }
details.q summary:hover .q-idx { color: var(--accent); }
.q-idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  transition: color 0.2s;
}
.q-text {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.q-ico {
  width: 32px; height: 32px;
  border: 1px solid var(--line-2);
  position: relative;
  transition: all 0.2s;
}
.q-ico::before, .q-ico::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--fg);
  transition: opacity 0.2s;
}
.q-ico::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.q-ico::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
details.q[open] .q-ico { background: var(--accent); border-color: var(--accent); }
details.q[open] .q-ico::before { background: var(--accent-ink); }
details.q[open] .q-ico::after { opacity: 0; }

.q-body {
  padding: 0 24px 32px 128px;
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 820px;
}
@media (max-width: 700px) {
  details.q summary { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 22px 20px; }
  .q-text { font-size: 18px; }
  .q-body { padding: 0 20px 24px 72px; }
}

/* ═══ CTA / contact — bold closer ═══ */
.closer {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.closer-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: 96px 24px 72px;
}
.closer-title {
  grid-column: 1 / 9;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(52px, 7vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent-ink);
  margin-bottom: 40px;
}
.closer-title em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.08em;
  text-decoration-thickness: 4px;
}
.closer-sub {
  grid-column: 1 / 7;
  font-size: 18px;
  color: var(--accent-ink);
  opacity: 0.8;
  margin-bottom: 40px;
  line-height: 1.5;
}
.closer-cta {
  grid-column: 1 / 7;
}
.closer-cta .btn {
  background: var(--accent-ink);
  color: var(--accent);
  border-color: var(--accent-ink);
  padding: 20px 28px;
  font-size: 13px;
}
.closer-cta .btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.closer-contact {
  grid-column: 9 / 13;
  border-top: 1.5px solid var(--accent-ink);
  padding-top: 16px;
  align-self: start;
}
.closer-contact div {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 10px 0;
  border-bottom: 1px dashed color-mix(in oklab, var(--accent-ink) 40%, transparent);
  font-family: var(--mono);
  font-size: 12px;
}
.closer-contact div:last-child { border-bottom: none; }
.closer-contact .k {
  color: color-mix(in oklab, var(--accent-ink) 60%, transparent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10px;
  padding-top: 2px;
}
.closer-contact .v { color: var(--accent-ink); font-weight: 500; }
.closer-contact a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .closer-title, .closer-sub, .closer-cta, .closer-contact { grid-column: 1 / 13; }
  .closer-contact { margin-top: 40px; }
}

/* Running marquee in closer */
.closer-marquee {
  border-top: 1.5px solid var(--accent-ink);
  border-bottom: 1.5px solid var(--accent-ink);
  overflow: hidden;
  padding: 14px 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 80px;
  line-height: 1;
  color: var(--accent-ink);
  white-space: nowrap;
}
.closer-marquee .track {
  display: flex; gap: 48px;
  animation: slide 36s linear infinite;
  width: max-content;
}
.closer-marquee .track span::after {
  content: "◆"; margin-left: 48px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 32px;
  vertical-align: 14px;
}

@media (max-width: 700px) {
  .closer-marquee { font-size: 48px; }
  .closer-marquee .track span::after { font-size: 22px; }
}

/* ═══ Footer ═══ */
footer {
  background: var(--bg);
  color: var(--fg-2);
  padding: 72px 24px 32px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-grid h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
  font-weight: 400;
}
.foot-grid a { display: block; font-size: 13px; padding: 4px 0; color: var(--fg-2); }
.foot-grid a:hover { color: var(--accent); }
.foot-about p { font-size: 13px; line-height: 1.6; max-width: 360px; }
.foot-bottom {
  margin-top: 32px;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.foot-mark {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(60px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--fg);
  overflow: hidden;
  font-style: italic;
}
.foot-mark span { color: var(--accent); }

/* ═══ Tweaks ═══ */
#tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 300px;
  background: var(--bg);
  border: 1px solid var(--fg);
  padding: 20px;
  z-index: 100;
  display: none;
  font-family: var(--sans);
}
#tweaks.open { display: block; }
#tweaks h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
  display: flex; justify-content: space-between;
}
#tweaks h4 button { color: var(--fg); font-size: 16px; }
#tweaks .t-row { margin-bottom: 18px; }
#tweaks label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 8px;
  font-family: var(--mono);
}
#tweaks .sw-row { display: flex; gap: 8px; }
#tweaks .swatch {
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  position: relative;
}
#tweaks .swatch.active {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
#tweaks .toggle {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
}
#tweaks .toggle input { display: none; }
#tweaks .toggle .t {
  width: 36px; height: 20px;
  background: var(--line-2); position: relative;
  transition: background 0.2s;
}
#tweaks .toggle .t::after {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: var(--fg); transition: transform 0.2s;
}
#tweaks .toggle input:checked + .t { background: var(--accent); }
#tweaks .toggle input:checked + .t::after { transform: translateX(16px); background: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
