/* HitherGate brand: Ink ground, Panel surfaces, Line rules, Fog quiet text,
   Bone text, Signal as the one accent. Archivo (expanded 700 for display),
   JetBrains Mono for labels and addresses. Square corners. */
:root {
  --ink: #0b0d10;
  --panel: #14181d;
  --line: #262c33;
  --line-2: #3a424b;
  --fog: #9aa3ad;
  --fog-2: #7c858f;
  --text-2: #c4cad1;
  --bone: #eceae4;
  --signal: #c9f24b;
  --grid: #13171b;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--sans); font-size: 1.125rem; line-height: 1.55; }
a { color: var(--bone); text-decoration: none; }
a:hover { color: var(--signal); }
input:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-stretch: 125%; line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-stretch: 125%; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.heading { max-width: 46rem; }
.mono { font-family: var(--mono); font-size: 0.9375rem; line-height: 1.6; }
.dim { color: var(--fog); }
.signal { color: var(--signal); }
.fine { font-size: 0.9375rem; color: var(--fog); }
.eyebrow { font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); }
.eyebrow.signal { color: var(--signal); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.wordmark { font-size: 1.375rem; font-weight: 700; font-stretch: 125%; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 1rem; }
.nav a { display: flex; align-items: center; min-height: 44px; }
.nav-cta { padding: 0 20px; background: var(--signal); color: var(--ink); font-weight: 600; }
.nav-cta:hover { color: var(--ink); background: #d9f77a; }

/* Hero */
.hero { background-color: var(--ink); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; border-bottom: 1px solid var(--line); }
.hero-grid { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 64px; align-items: center; }
.hero .stack { gap: 28px; }
.lede { color: var(--text-2); max-width: 34rem; }

/* Waitlist forms */
.waitlist { display: flex; flex-direction: column; gap: 8px; max-width: 34rem; }
.waitlist .eyebrow { font-size: 0.8125rem; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.waitlist input { flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 16px; background: var(--panel); border: 1px solid var(--line-2); color: var(--bone); font-family: inherit; font-size: 1rem; border-radius: 0; }
.waitlist input::placeholder { color: var(--fog-2); }
.waitlist button { flex: 0 0 auto; height: 52px; padding: 0 24px; background: var(--signal); color: var(--ink); border: 0; font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; border-radius: 0; }
.waitlist button:hover { background: #d9f77a; }
.waitlist button:disabled { opacity: .6; cursor: default; }
.waitlist.on-signal .eyebrow { color: var(--ink); }
.waitlist.on-signal input { background: var(--ink); border-color: var(--ink); }
.waitlist.on-signal button { background: var(--ink); color: var(--bone); }
.waitlist.on-signal button:hover { background: #262c33; }
.waitlist.on-signal .fine { color: var(--ink); }
.waitlist [data-waitlist-note]:empty { display: none; }

/* Demo panels */
.demo { display: flex; flex-direction: column; align-items: stretch; }
.panel { border: 1px solid var(--line-2); background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.panel .eyebrow { font-size: 0.8125rem; }
.panel-signal { border-color: var(--signal); gap: 14px; }
.demo-link { display: flex; align-items: center; gap: 16px; padding-left: 40px; }
.demo-line { width: 2px; height: 96px; background: var(--signal); }
.urlbar { border: 1px solid var(--line-2); background: var(--ink); padding: 10px 14px; overflow-wrap: anywhere; }
.ok { display: flex; align-items: center; gap: 10px; font-size: 1rem; }

/* Bands */
.band { border-bottom: 1px solid var(--line); }
.band .wrap { padding-top: 96px; padding-bottom: 96px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); background: var(--panel); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--text-2); }
.card.plain { background: transparent; gap: 14px; }
.card.plain h3 { font-size: 1.375rem; }
.card.highlight { border-color: var(--signal); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.steps li { border-top: 2px solid var(--signal); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.steps p { color: var(--text-2); }
.step-n { font-family: var(--mono); font-size: 0.875rem; color: var(--signal); }

/* Call to action */
.cta { background: var(--signal); color: var(--ink); }
.cta-grid { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px; align-items: end; }
.cta h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.02; }
.cta p { max-width: 32rem; }

/* Legal pages (privacy/) */
.legal .wrap { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.legal h1 { margin: 12px 0 24px; font-size: clamp(2.5rem, 5vw, 3.5rem); }
.legal h2 { margin: 56px 0 16px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.legal h3 { margin: 32px 0 12px; font-size: 1.25rem; }
.legal p, .legal ul { color: var(--text-2); margin: 0 0 16px; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--bone); font-weight: 600; }
.legal a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-family: var(--mono); font-size: 0.95em; color: var(--bone); }

/* Footer */
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; font-size: 1rem; color: var(--fog); }
.brand.small { gap: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.links a { min-height: 44px; display: flex; align-items: center; color: var(--fog); }
.links a:hover { color: var(--signal); }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-grid, .band .wrap, .cta-grid { padding-top: 64px; padding-bottom: 64px; }
  .demo-link { padding-left: 24px; }
}
