/* ------------------------------------------------------------------ */
/*  Media OS — marketing site                                          */
/*  Aesthetic: broadcast-control-room / mastering-suite                 */
/* ------------------------------------------------------------------ */

:root {
  --bg:        #0a0908;     /* warm near-black */
  --bg-elev:   #141210;     /* panel surface */
  --bg-deep:   #050403;     /* deeper recess */
  --text:      #f4ede4;     /* warm off-white (film leader) */
  --text-dim:  #8a857d;     /* muted */
  --text-mid:  #b8b1a6;
  --rule:      #1f1d1a;     /* hairline */
  --rule-bold: #2d2a26;
  --accent:    #ff6b35;     /* signal-orange (clip indicator) */
  --accent-2:  #00d4aa;     /* vectorscope teal */
  --warn:      #f5b943;     /* amber */
  --err:       #ff2d2d;     /* red */
  --ok:        #4ade80;

  --spec-blue:   #4d8eff;
  --spec-green:  #4ade80;
  --spec-teal:   #00d4aa;
  --spec-purple: #b794f6;
  --spec-orange: #ff6b35;
  --spec-red:    #ff2d2d;
  --spec-yellow: #f5b943;

  --display: "Departure Mono", "IBM Plex Mono", ui-monospace, monospace;
  --sans:    "IBM Plex Sans", -apple-system, system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --w-max:  1320px;
  --pad-x:  clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: var(--bg); }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

code, pre, kbd { font-family: var(--mono); font-size: 0.92em; }
code { color: var(--accent-2); background: rgba(0,212,170,0.07); padding: 1px 5px; border-radius: 2px; }

img, svg { max-width: 100%; display: block; }

/* ----- film grain overlay ----- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* ----- corner registration marks ----- */
.reg {
  position: fixed;
  width: 14px; height: 14px;
  color: var(--text-dim);
  opacity: 0.35;
  z-index: 100;
  pointer-events: none;
}
.reg-tl { top: 12px; left: 12px; }
.reg-tr { top: 12px; right: 12px; }

/* ============================================================== */
/*  NAV                                                             */
/* ============================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.brand-mark { font-weight: normal; }
.brand-ver {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid var(--rule-bold);
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-links a { color: var(--text-mid); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-github {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--rule-bold);
  padding: 6px 12px;
  color: var(--text) !important;
}
.nav-github:hover { border-color: var(--accent); color: var(--accent) !important; }

.smpte-bars {
  display: flex;
  height: 3px;
  width: 100%;
}
.smpte-bars i {
  flex: 1;
  background: var(--c);
}

/* ============================================================== */
/*  HERO                                                            */
/* ============================================================== */
.hero {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) var(--pad-x) clamp(60px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  position: relative;
}
.hero::before {
  /* faint vectorscope ring background */
  content: "";
  position: absolute;
  right: -120px; top: 200px;
  width: 480px; height: 480px;
  border: 1px dashed var(--rule-bold);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  right: -40px; top: 280px;
  width: 320px; height: 320px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.kicker {
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.kicker-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 0.92;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  font-weight: normal;
  animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both;
}
.hero-title-em {
  color: var(--accent);
  display: inline-block;
  position: relative;
}
.hero-title-em::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 0;
  width: 60%; height: 4px;
  background: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 0 36px;
  animation: rise 0.7s 0.1s cubic-bezier(.2,.7,.2,1) both;
}
.hero-sub em {
  font-style: normal;
  color: var(--text);
  background: linear-gradient(to bottom, transparent 75%, rgba(255,107,53,0.18) 75%);
  padding: 0 2px;
}

.hero-install {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
  background: var(--bg-elev);
  border: 1px solid var(--rule-bold);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 0 0 32px;
  color: var(--text);
  animation: rise 0.7s 0.15s cubic-bezier(.2,.7,.2,1) both;
  position: relative;
  overflow-x: auto;
}
.hero-install::before {
  content: "INSTALL";
  position: absolute;
  top: -1px; right: -1px;
  background: var(--accent);
  color: var(--bg);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  font-family: var(--mono);
}
.prompt {
  color: var(--accent);
  user-select: none;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 40px;
  animation: rise 0.7s 0.2s cubic-bezier(.2,.7,.2,1) both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule-bold);
}
.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.hero-tags {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  animation: rise 0.7s 0.25s cubic-bezier(.2,.7,.2,1) both;
}
.hero-tags li {
  border: 1px solid var(--rule);
  color: var(--text-dim);
  padding: 4px 9px;
  transition: all 0.15s;
}
.hero-tags li:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ----- DISPATCH PANEL (the showpiece) ----- */
.dispatch {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--rule-bold);
  font-family: var(--mono);
  font-size: 13px;
  animation: rise 0.7s 0.3s cubic-bezier(.2,.7,.2,1) both;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.dispatch-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  background: rgba(0,0,0,0.3);
}
.rec {
  width: 8px; height: 8px;
  background: var(--err);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--err);
  animation: rec 1.4s ease-in-out infinite;
}
@keyframes rec {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
.dispatch-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  flex: 1;
}
.dispatch-tc {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.dispatch-screen {
  padding: 22px 22px 14px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.dispatch-screen::before {
  /* subtle scanline overlay */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
}
.dispatch-line {
  display: grid;
  grid-template-columns: 96px 64px 1fr;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.9;
  opacity: 0;
  transform: translateY(4px);
  animation: lineIn 0.35s forwards;
}
.dispatch-line .tc   { color: var(--text-dim); }
.dispatch-line .op   { color: var(--accent); font-weight: 500; }
.dispatch-line .op-route   { color: var(--text-mid); }
.dispatch-line .op-match   { color: var(--accent-2); }
.dispatch-line .op-read    { color: var(--text-mid); }
.dispatch-line .op-spawn   { color: var(--accent); }
.dispatch-line .op-dispatch { color: var(--ok); }
.dispatch-line .arg  { color: var(--text); }
.dispatch-line .quote { color: var(--warn); }
.dispatch-line .spec-tag {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid currentColor;
  font-size: 11px;
  margin-left: 4px;
  letter-spacing: 0.04em;
}
@keyframes lineIn {
  to { opacity: 1; transform: none; }
}

.dispatch-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--rule);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.dispatch-foot-bars {
  display: flex; gap: 3px;
}
.dispatch-foot-bars i {
  display: block;
  width: 16px; height: 3px;
  background: var(--rule-bold);
  transition: background 0.3s;
}
.dispatch-foot-bars i.on { background: var(--accent); }

/* ============================================================== */
/*  SECTION HEAD                                                    */
/* ============================================================== */
.section-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
  border: 1px solid var(--accent);
  padding: 3px 8px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  margin: 0;
  font-weight: normal;
  letter-spacing: -0.01em;
}
.section-sub {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--text-mid);
  max-width: 720px;
}

/* ============================================================== */
/*  STATS                                                           */
/* ============================================================== */
.stats {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}
.stats-grid {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat {
  padding: 36px 22px;
  border-left: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.stat:first-child { border-left: none; }
.stat-n {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  color: var(--text);
  line-height: 1;
}
.stat-l {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================== */
/*  WHY                                                             */
/* ============================================================== */
.why {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(80px, 9vw, 120px) var(--pad-x);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}
.why-grid article {
  padding: 36px 32px 32px;
  border-left: 1px solid var(--rule);
  position: relative;
}
.why-grid article:first-child { border-left: none; }
.why-grid article::before {
  content: "";
  position: absolute;
  top: -1px; left: 24px;
  width: 32px; height: 3px;
  background: var(--accent);
}
.why-grid h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: normal;
  letter-spacing: -0.005em;
}
.why-grid p {
  margin: 0;
  color: var(--text-mid);
  font-size: 15px;
}

/* ============================================================== */
/*  CONTRACT FLOW                                                   */
/* ============================================================== */
.contract {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 60px) var(--pad-x) clamp(80px, 9vw, 120px);
}
.contract-flow {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  align-items: stretch;
  gap: 0;
}
.flow-step {
  padding: 28px 24px;
  border: 1px solid var(--rule-bold);
  background: var(--bg-elev);
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.flow-step:hover {
  border-color: var(--accent);
  background: var(--bg-deep);
}
.flow-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.flow-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.flow-step h4 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: normal;
}
.flow-step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-mid);
  flex: 1;
}
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 20px;
}

/* ============================================================== */
/*  MODES                                                           */
/* ============================================================== */
.modes {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(80px, 9vw, 120px);
}
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}
.mode {
  padding: 24px 22px 26px;
  border: 1px solid var(--rule);
  margin: -1px 0 0 -1px;
  background: var(--bg);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  position: relative;
  display: flex; flex-direction: column;
  cursor: pointer;
}
.mode:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
  transform: translateY(-2px);
  z-index: 2;
}
.mode::before {
  /* color tab */
  content: "";
  position: absolute;
  top: -1px; left: 22px;
  width: 28px; height: 3px;
  background: var(--c);
}
.mode[data-color="blue"]   { --c: var(--spec-blue); }
.mode[data-color="green"]  { --c: var(--spec-green); }
.mode[data-color="teal"]   { --c: var(--spec-teal); }
.mode[data-color="purple"] { --c: var(--spec-purple); }
.mode[data-color="orange"] { --c: var(--spec-orange); }
.mode[data-color="red"]    { --c: var(--spec-red); }
.mode[data-color="yellow"] { --c: var(--spec-yellow); }

.mode header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mode-spec { color: var(--c); }
.mode-dot {
  width: 6px; height: 6px;
  background: var(--c);
  border-radius: 50%;
}
.mode-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 10px;
}
.approval {
  display: inline-block;
  font-size: 9px;
  background: var(--warn);
  color: var(--bg);
  padding: 1px 6px;
  margin-left: 6px;
  letter-spacing: 0.1em;
  vertical-align: middle;
  font-weight: 600;
}
.mode p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ============================================================== */
/*  SPECIALISTS                                                     */
/* ============================================================== */
.specialists {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(80px, 9vw, 120px);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}
.spec {
  padding: 28px 22px;
  border-left: 1px solid var(--rule);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 180px;
}
.spec:first-child { border-left: none; }
.spec::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--c);
}
.spec[data-color="blue"]   { --c: var(--spec-blue); }
.spec[data-color="green"]  { --c: var(--spec-green); }
.spec[data-color="teal"]   { --c: var(--spec-teal); }
.spec[data-color="purple"] { --c: var(--spec-purple); }
.spec[data-color="orange"] { --c: var(--spec-orange); }
.spec[data-color="red"]    { --c: var(--spec-red); }
.spec[data-color="yellow"] { --c: var(--spec-yellow); }

.spec-tag {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c);
  margin-bottom: 14px;
  display: inline-block;
}
.spec p {
  margin: 0;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ============================================================== */
/*  CLI / TERMINAL                                                  */
/* ============================================================== */
.cli {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(80px, 9vw, 120px);
}
.terminal {
  background: var(--bg-deep);
  border: 1px solid var(--rule-bold);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.terminal-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: rgba(0,0,0,0.4);
}
.terminal-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.terminal-title {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.terminal-body {
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text);
}
.terminal-body p { margin: 0; }
.terminal-body br { line-height: 1; }
.terminal-body b { color: var(--accent-2); font-weight: 500; }
.ps { color: var(--accent); user-select: none; padding-right: 6px; }
.terminal-body .out { color: var(--text-mid); }
.terminal-body .ok { color: var(--ok); }

/* ============================================================== */
/*  SKILLS TABLE                                                    */
/* ============================================================== */
.skills {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(80px, 9vw, 120px);
}
.layers {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.layers th, .layers td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.layers th {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--rule-bold);
  padding-bottom: 12px;
}
.layers td:first-child {
  font-family: var(--mono);
  color: var(--text-dim);
  width: 48px;
}
.layers td:nth-child(2) {
  font-family: var(--display);
  font-size: 16px;
  color: var(--text);
}
.layers td:nth-child(3) {
  font-family: var(--display);
  font-size: 22px;
  color: var(--accent);
  width: 80px;
}
.layers td:nth-child(4) {
  color: var(--text-mid);
  font-size: 13.5px;
}
.layers tr:hover td:nth-child(2) { color: var(--accent); }

/* ============================================================== */
/*  INSTALL                                                         */
/* ============================================================== */
.install {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(80px, 9vw, 120px);
}
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.install-card {
  border: 1px solid var(--rule-bold);
  background: var(--bg-elev);
  padding: 32px 30px;
  position: relative;
}
.install-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 24px;
  width: 32px; height: 3px;
  background: var(--accent-2);
}
.install-card h4 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: normal;
}
.install-card p {
  margin: 18px 0 0;
  color: var(--text-mid);
  font-size: 14px;
}
.install-code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  background: var(--bg-deep);
  border: 1px solid var(--rule);
  padding: 16px 18px;
  overflow-x: auto;
  white-space: nowrap;
}
.install-req {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ============================================================== */
/*  FOOT                                                            */
/* ============================================================== */
.foot {
  border-top: 1px solid var(--rule-bold);
  background: var(--bg-deep);
  padding: clamp(60px, 7vw, 90px) var(--pad-x) 0;
}
.foot-grid {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.foot-brand p {
  margin: 14px 0 8px;
  color: var(--text-mid);
  font-size: 14px;
  max-width: 280px;
}
.foot-brand .copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.foot h5 {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.foot ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.foot ul a {
  font-size: 14px;
  color: var(--text-mid);
  transition: color 0.15s;
}
.foot ul a:hover { color: var(--accent); }
.foot-bottom {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.foot-tc {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ============================================================== */
/*  RESPONSIVE                                                      */
/* ============================================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero::before, .hero::after { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid article { border-left: none; border-top: 1px solid var(--rule); }
  .why-grid article:first-child { border-top: none; }
  .contract-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .flow-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(odd) { border-left: none; }
  .install-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-github) { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-tags li { font-size: 10px; padding: 3px 7px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .terminal-body { font-size: 12px; }
  .dispatch-line {
    grid-template-columns: 80px 56px 1fr;
    font-size: 11.5px;
  }
}

/* ----- reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .rec, .brand-dot { animation: none; }
}
