/* ============================================================================
   GAUNTLET — design system
   Terminal-grade dark-first aesthetic. Palette and status colors are lifted
   straight from the CLI (green PASS, red FAIL, amber WAIVED, purple TIMEOUT).
   Fonts: JetBrains Mono (structure) + IBM Plex Sans (prose).
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: #0f1729;
  --surface-2: #131c30;
  --elevated: #172136;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);

  /* text */
  --text: #e8edf6;
  --text-2: #aab6c9;
  --muted: #7d8aa0;

  /* brand + status (same semantics as the terminal report) */
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --red: #f43f5e;
  --red-soft: rgba(244, 63, 94, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.15);
  --slate: #64748b;
  --slate-soft: rgba(100, 116, 139, 0.16);
  --cyan: #38bdf8;

  /* type */
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* geometry */
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 1px var(--border), 0 30px 80px -30px rgba(34, 197, 94, 0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --elevated: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --green-soft: rgba(22, 163, 74, 0.12);
  --green: #16a34a;
  --red: #e11d48;
  --amber: #d97706;
  --purple: #9333ea;
  --shadow: 0 24px 50px -28px rgba(15, 23, 42, 0.35);
  --shadow-glow: 0 0 0 1px var(--border), 0 24px 60px -34px rgba(22, 163, 74, 0.28);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient grid + glow, sits behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(34, 197, 94, 0.10), transparent 60%),
    radial-gradient(760px 480px at 6% 4%, rgba(56, 189, 248, 0.08), transparent 55%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  overflow-wrap: break-word;
}

/* Grid/flex children default to min-width:auto, which lets a long
   unbreakable line (e.g. the terminal title) push the whole page wider
   than the viewport. Letting them shrink to 0 keeps mobile overflow-free. */
.hero-grid > *,
.about-grid > *,
.moneyshot > *,
.term-bar,
.install .il { min-width: 0; }

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

code, .mono { font-family: var(--font-mono); }

::selection { background: var(--green-soft); color: var(--text); }

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

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

section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--green);
  opacity: 0.7;
}

.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 0.6rem; }
.section-lead { max-width: 60ch; color: var(--text-2); font-size: 1.06rem; }

.text-green { color: var(--green); }
.text-strong { color: var(--text); }

/* --------------------------------------------------------------- nav */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--maxw);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px 11px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow); border-color: var(--border-strong); }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand .brand-sub { color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 8px 13px;
  border-radius: 9px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--green); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: #04120a;
  box-shadow: 0 12px 30px -12px rgba(34, 197, 94, 0.6);
}
.btn-primary:hover { background: #34d572; box-shadow: 0 16px 40px -12px rgba(34, 197, 94, 0.75); }
:root[data-theme="light"] .btn-primary { color: #fff; }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-block { width: 100%; }

/* --------------------------------------------------------------- hero */
.hero { padding-top: clamp(140px, 20vh, 200px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

.hero h1 {
  font-size: clamp(2.1rem, 6.4vw, 4.3rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.35em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tag {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}
.hero-lead { font-size: 1.16rem; max-width: 44ch; color: var(--text-2); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.9rem; }

.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--text); }
.hero-stats .stat .l { font-size: 0.82rem; color: var(--muted); }

/* ------------------------------------------------------- terminal card */
.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.term-dots i:nth-child(1) { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #febc2e; }
.term-dots i:nth-child(3) { background: #28c840; }
.term-title { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body {
  padding: 18px 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 320px;
}
.term-body .prompt { color: var(--green); }
.term-body .cmd { color: var(--text); }
.term-body .dim { color: var(--muted); }
.cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--green); transform: translateY(2px); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* status tokens reused across terminal + tables */
.st { font-weight: 700; }
.st-pass { color: var(--green); }
.st-fail { color: var(--red); }
.st-waived { color: var(--amber); }
.st-timeout { color: var(--purple); }
.st-skipped { color: var(--slate); }

/* --------------------------------------------------- logos / marquee */
.trust { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; }
.trust-row .t {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.trust-row svg { width: 18px; height: 18px; opacity: 0.85; }

/* ----------------------------------------------------------- pipeline */
.pipe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.node {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 18px 16px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.node:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.node .n-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.node .n-id { font-family: var(--font-mono); font-size: 0.92rem; color: var(--text); font-weight: 700; }
.node .badge { font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.badge.b-pass { color: var(--green); background: var(--green-soft); }
.badge.b-waived { color: var(--amber); background: var(--amber-soft); }
.badge.b-fail { color: var(--red); background: var(--red-soft); }
.badge.b-skip { color: var(--slate); background: var(--slate-soft); }
.node .n-tool { font-size: 0.82rem; color: var(--muted); font-family: var(--font-mono); }
.node .n-dep { margin-top: 12px; font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); border-top: 1px dashed var(--border); padding-top: 10px; }

/* ----------------------------------------------------------- features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .ic {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
  margin-bottom: 16px;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.96rem; margin: 0; color: var(--text-2); }
.card.span-2 { grid-column: span 2; }

/* --------------------------------------------------------- moneyshot */
.moneyshot { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; align-items: stretch; }
.run-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.run-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.run-head .rc-title { font-family: var(--font-mono); font-size: 0.86rem; color: var(--text); }
.run-head .verdict { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; padding: 4px 10px; border-radius: 7px; }
.verdict.v-pass { color: var(--green); background: var(--green-soft); }
.verdict.v-fail { color: var(--red); background: var(--red-soft); }
.run-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.82rem; }
.run-table td { padding: 11px 18px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.run-table tr:last-child td { border-bottom: none; }
.run-table .tstatus { width: 92px; }
.run-table .tstep { color: var(--text); }
.run-table .tnote { color: var(--muted); text-align: right; font-size: 0.76rem; }

.diff-banner {
  grid-column: span 2;
  border: 1px solid var(--red-soft);
  background: linear-gradient(180deg, var(--red-soft), transparent);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.diff-banner .db-left { display: flex; align-items: center; gap: 16px; }
.diff-banner .db-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none; }
.diff-banner .db-ic svg { width: 24px; height: 24px; }
.diff-banner h4 { margin: 0 0 2px; font-size: 1rem; }
.diff-banner p { margin: 0; font-size: 0.9rem; }
.diff-banner code { color: var(--red); font-weight: 700; }
.diff-exit { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.diff-exit b { color: var(--red); }

/* ------------------------------------------------------- design notes */
.notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 20px 22px;
}
.note h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.note p { margin: 0; font-size: 0.93rem; color: var(--text-2); }
.note code { color: var(--green); font-size: 0.86em; }

/* ------------------------------------------------------------- steps */
.install {
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.install .il { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); }
.install .il:last-child { border-bottom: none; }
.install .il .txt { color: var(--text-2); font-size: 0.9rem; overflow-wrap: anywhere; }
.install .il .txt .p { color: var(--green); }
.install .il .txt .c { color: var(--text); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 12px; cursor: pointer; flex: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.copy-btn:hover { color: var(--green); border-color: var(--green); }
.copy-btn svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------- CTA */
.cta-band {
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 50% -30%, var(--green-soft), transparent 70%),
    var(--surface);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.cta-band p { max-width: 52ch; margin: 0 auto 1.8rem; color: var(--text-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer .brand { margin-bottom: 12px; }
.footer .f-tag { font-size: 0.92rem; color: var(--muted); max-width: 32ch; }
.footer .f-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer .f-col h5 { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer .f-col a { display: block; font-size: 0.92rem; color: var(--text-2); padding: 4px 0; transition: color 0.2s var(--ease); }
.footer .f-col a:hover { color: var(--green); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.footer-base .avail { display: inline-flex; align-items: center; gap: 8px; }
.footer-base .avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* ==================================================== about / project */
.page-hero { padding-top: clamp(150px, 18vh, 210px); padding-bottom: 20px; }
.lede { font-size: 1.2rem; color: var(--text-2); max-width: 62ch; }

.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start; }
.prose p { margin-bottom: 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--green); border-bottom: 1px solid var(--green-soft); transition: border-color 0.2s var(--ease); }
.prose a:hover { border-color: var(--green); }

.side-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 24px; position: sticky; top: 96px; }
.side-card h4 { font-size: 0.95rem; margin-bottom: 14px; }
.side-links { display: grid; gap: 8px; }
.side-links a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.side-links a:hover { color: var(--text); border-color: var(--border-strong); transform: translateX(3px); }
.side-links svg { width: 17px; height: 17px; flex: none; }

.learn-list { display: grid; gap: 14px; margin-top: 40px; counter-reset: learn; }
.learn {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 22px 24px;
}
.learn .num { counter-increment: learn; font-family: var(--font-mono); font-weight: 700; color: var(--green); font-size: 1.1rem; }
.learn .num::before { content: "0" counter(learn); }
.learn h4 { font-size: 1.04rem; margin-bottom: 0.3rem; }
.learn p { margin: 0; font-size: 0.95rem; color: var(--text-2); }

/* timeline */
.timeline { position: relative; margin-top: 46px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--green), var(--border)); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.tl-item .tl-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--green); letter-spacing: 0.04em; }
.tl-item h4 { font-size: 1.08rem; margin: 4px 0 0.35rem; }
.tl-item p { margin: 0; font-size: 0.95rem; color: var(--text-2); }
.tl-item.hard::before { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.tl-item.hard .tl-date { color: var(--amber); }
.tl-item.launch::before { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16); }
.tl-item.launch .tl-date { color: var(--cyan); }

/* stack table */
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.stack-row { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 18px 20px; }
.stack-row .s-name { font-family: var(--font-mono); color: var(--text); font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 9px; }
.stack-row .s-name .tag { font-size: 0.68rem; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 6px; }
.stack-row p { margin: 0; font-size: 0.9rem; color: var(--text-2); }

/* contact form */
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: clamp(26px, 4vw, 40px); }
.contact-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2); }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 0.98rem;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; width: 100%; resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-status { font-family: var(--font-mono); font-size: 0.86rem; margin-top: 14px; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--green); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ------------------------------------------------------- responsive */
@media (max-width: 940px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .moneyshot { grid-template-columns: 1fr; }
  .diff-banner { grid-column: span 1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card.span-2 { grid-column: span 2; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .notes, .stack-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .contact-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    padding: 10px; gap: 4px;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: inline-grid; }
  .feature-grid, .pipe { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .contact-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 20px; }
  .footer .f-cols { gap: 32px; }
}
