:root {
  --bg: #08090a;
  --panel: #0e1011;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f4f3;
  --dim: #9aa3a0;
  --dimmer: #6b7471;
  --accent: #54e6a0;
  --accent-deep: #16a06a;
  --radius: 14px;
  --max: 1120px;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ambience ---------------------------------------------------------------- */
.aura {
  position: fixed; inset: -20% -10% auto -10%; height: 90vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(52% 46% at 50% 12%, rgba(84, 230, 160, 0.14) 0%, transparent 70%),
    radial-gradient(40% 40% at 82% 6%, rgba(96, 165, 250, 0.07) 0%, transparent 70%);
  filter: blur(2px);
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

main, .topbar, footer { position: relative; z-index: 1; }

/* header ------------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(8, 9, 10, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
}
.mark { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.4; }
.mark rect { stroke: var(--line-strong); }
.mark path { stroke-linecap: round; stroke-width: 2; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 9px; transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn-ghost {
  color: var(--text) !important;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
}
.btn-ghost:hover { border-color: rgba(84,230,160,0.5); }

/* hero -------------------------------------------------------------------- */
.hero { padding: clamp(64px, 12vh, 132px) clamp(20px, 5vw, 40px) 0; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.02);
}
.eyebrow.plain { border: 0; background: none; padding: 0; color: var(--accent); }
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(84,230,160,0.45); animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(84,230,160,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(84,230,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(84,230,160,0); }
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.038em;
  font-weight: 600;
}
h1 .muted {
  color: transparent;
  background: linear-gradient(180deg, #cfd6d3 0%, #7d8a85 100%);
  -webkit-background-clip: text; background-clip: text;
}

.lede {
  margin: 0 auto 40px; max-width: 58ch;
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 1.65; color: var(--dim);
}

/* form -------------------------------------------------------------------- */
.signup {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 780px; margin: 0 auto;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dimmer);
  padding-left: 2px;
}

.signup input,
.signup select {
  width: 100%; height: 46px;
  padding: 0 14px;
  font-family: inherit; font-size: 15px; color: var(--text);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  appearance: none; -webkit-appearance: none;
}
.signup input::placeholder { color: #5d6663; }
.signup input:focus,
.signup select:focus {
  border-color: rgba(84,230,160,0.55);
  box-shadow: 0 0 0 3px rgba(84,230,160,0.12);
  background: rgba(0,0,0,0.5);
}
.select-wrap { position: relative; }
.select-wrap select { padding-right: 34px; cursor: pointer; }
.select-wrap option { background: #101314; color: var(--text); }
.chev {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 8px; fill: none; stroke: var(--dim); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}

.signup button {
  height: 46px; padding: 0 22px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em;
  color: #05130c;
  background: linear-gradient(180deg, #7cf0b8 0%, var(--accent) 100%);
  border: 0; border-radius: 11px; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 28px -14px rgba(84,230,160,0.75);
}
.signup button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.signup button:active { transform: translateY(0); }
.signup button:disabled { opacity: .55; cursor: progress; transform: none; filter: none; }

.note {
  grid-column: 1 / -1; margin: 4px 2px 0; min-height: 19px;
  font-size: 13.5px; font-weight: 500; color: var(--dim);
}
.note.ok { color: var(--accent); }
.note.err { color: #ff8f7a; }

.counter {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 22px 0 0; font-size: 13.5px; color: var(--dimmer);
}
.counter strong { color: var(--text); font-weight: 600; }
.avatars { display: inline-flex; }
.avatars i {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--bg);
  background: linear-gradient(140deg, #2c3a34, #56655d);
  margin-left: -6px;
}
.avatars i:first-child { margin-left: 0; }

/* line art ---------------------------------------------------------------- */
.line-art { margin: clamp(56px, 9vw, 104px) 0 0; overflow: hidden; }
.line-art svg { display: block; width: 100%; height: auto; }
.line-art .track { stroke: var(--line-strong); stroke-width: 1; }
.line-art .stroke {
  fill: none; stroke: rgba(242,244,243,0.55); stroke-width: 1.25;
  stroke-linecap: round; stroke-linejoin: round;
}
.line-art .bean { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.consist { animation: roll 26s linear infinite; }
@keyframes roll {
  from { transform: translateX(-300px); }
  to   { transform: translateX(1250px); }
}

/* metrics ----------------------------------------------------------------- */
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(24px, 5vw, 48px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.metric { padding: 34px 4px 34px 28px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; padding-left: 0; }
.num {
  display: block; font-size: clamp(24px, 3vw, 32px); font-weight: 600;
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.cap { display: block; font-size: 14px; color: var(--dim); max-width: 30ch; }

/* route ------------------------------------------------------------------- */
.route { padding: clamp(64px, 10vw, 116px) clamp(20px, 5vw, 40px) clamp(56px, 9vw, 100px); }
.section-head { max-width: 44ch; margin-bottom: clamp(34px, 5vw, 54px); }
.section-head .eyebrow { margin-bottom: 14px; }
.route h2 {
  margin: 0; font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.12; letter-spacing: -0.032em; font-weight: 600;
}

.stops {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stops li {
  background: var(--panel);
  padding: 26px 24px 28px;
  transition: background .2s ease;
}
.stops li:hover { background: #131617; }
.idx {
  display: block; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px;
}
.stops h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.stops p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dim); }

/* footer ------------------------------------------------------------------ */
footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; font-size: 13px; color: var(--dimmer);
}
.footer-inner .dim { color: #4d5653; }

/* responsive -------------------------------------------------------------- */
@media (max-width: 760px) {
  .signup { grid-template-columns: 1fr; }
  .signup button { width: 100%; }
  .nav a:not(.btn-ghost) { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .metric:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .consist, .pulse { animation: none; }
}
