@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #090a0c;
  --panel: #0d1015;
  --panel-2: #11151c;
  --line: #1c222d;
  --line-strong: #2a3342;
  --ink: #e8eaef;
  --muted: #8b93a7;
  --dim: #6d7588;
  --accent: #8fb4ff;
  --accent-ink: #090a0c;
  --accent-2: #b4a7ff;
  --live: #86e0b0;
  --danger: #f0958a;
  --font: "Geist", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --canvas: #f3f4f7;
  --panel: #ffffff;
  --panel-2: #f7f7f8;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --ink: #15181e;
  --muted: #5f6573;
  --dim: #71717a;
  --accent: #3b6fd4;
  --accent-ink: #ffffff;
  --accent-2: #6d5bd0;
  --live: #146b42;
  --danger: #b4332c;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

a { color: var(--accent); }

code {
  font-family: var(--mono);
  font-size: 0.86em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  z-index: 10;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(68rem, calc(100% - 32px));
  margin-inline: auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.mark {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.text-btn,
.btn {
  min-height: 44px;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.btn:disabled { opacity: 0.6; }

.hero {
  position: relative;
  padding: 56px 0 12px;
}

.constellation {
  position: absolute;
  right: -20px;
  top: 10px;
  width: min(520px, 90vw);
  height: auto;
  color: var(--line-strong);
  pointer-events: none;
}

.constellation circle { fill: var(--accent); opacity: 0.85; }
.constellation circle:nth-child(3n) { fill: var(--accent-2); }
.constellation circle:nth-child(4n) { fill: var(--live); }

.hero .kicker,
.hero h1,
.hero .lede,
.hero .actions,
.hero .soon { position: relative; }

.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

h1, h2, h3 { font-weight: 560; letter-spacing: -0.03em; }

h1 {
  max-width: 11ch;
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 12vw, 5.4rem);
  line-height: 0.94;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.05;
  max-width: 16ch;
}

h3 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: -0.02em; }

.lede {
  max-width: 38rem;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.soon {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.stage {
  display: grid;
  margin: 36px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  overflow: hidden;
}

.pane { padding: 16px; min-width: 0; }

.pane + .pane { border-top: 1px solid var(--line); }

.pane-nav p,
.pane-note p { margin: 0 0 8px; }

.nav-on {
  color: var(--ink);
  background: var(--panel-2);
  margin-left: -8px;
  margin-right: -8px;
  padding: 4px 8px;
  border-radius: 4px;
}

.pane-nav p:not(.kicker) { color: var(--muted); font-size: 14px; }

.pane-note h2 { font-size: 1.45rem; max-width: none; }

.pane-note p:last-child { color: var(--muted); margin: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }

.pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--tag) 55%, var(--line));
  background: color-mix(in srgb, var(--tag) 18%, transparent);
  border-radius: 99px;
  padding: 3px 8px;
}

.mini-graph { width: 100%; height: auto; display: block; }

.band { padding: 56px 0 8px; }

.features, .steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.features li, .steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 8px 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.features li > span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  padding-top: 4px;
}

.features p, .steps p { margin: 0; color: var(--muted); }

.steps { counter-reset: step; }

.steps li { grid-template-columns: 1fr; }

.steps li h3::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero) "  ";
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.08em;
}

pre {
  margin: 8px 0 0;
  padding: 16px;
  overflow: auto;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

#source .soon { margin-bottom: 16px; }

.share-preview {
  margin: 8px 0 0;
  padding: 0;
}

.browser {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px 4px 0 0;
  background: var(--panel-2);
}

.traffic { display: flex; gap: 5px; flex: none; }
.traffic i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); display: block; }

.url {
  margin: 0;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

@media (max-width: 700px) {
  .url { white-space: normal; overflow: visible; line-height: 1.45; }
}

.perms {
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: var(--panel);
  padding: 14px 14px 6px;
}

.perms ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.perms li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.perms strong { color: var(--ink); font-weight: 560; margin-right: 6px; }
.perms .is-selected { color: var(--ink); }

.mark-radio {
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
}

.is-selected .mark-radio {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 4px, transparent 5px);
}

.agents li { justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
.agents li span:last-child { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.04em; }

.share-preview figcaption { margin-top: 8px; color: var(--dim); font-size: 13px; }

@media (min-width: 800px) {
  .share-preview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr); gap: 16px; align-items: start; }
  .browser, .perms { border-radius: 4px; }
  .perms { border-top: 1px solid var(--line-strong); }
  .share-preview figcaption { grid-column: 1 / -1; margin-top: 0; }
}

.waitlist, .status {
  max-width: 32rem;
  display: grid;
  gap: 8px;
}

.waitlist label { font-size: 14px; }

.waitlist label span { color: var(--dim); }

.waitlist input, .waitlist textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  padding: 12px;
  min-height: 44px;
}

.waitlist textarea { min-height: 96px; resize: vertical; }

.waitlist button { justify-self: start; margin-top: 6px; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.count { margin: 0 0 16px; color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }

.status {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
}

.status.is-ok { border-color: color-mix(in srgb, var(--live) 55%, var(--line)); }

.status.is-bad { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }

.status h3 { margin: 0; }

.status p:last-child { margin: 8px 0 0; color: var(--muted); }

.foot {
  padding: 48px 0 36px;
}

.foot p { margin: 0; color: var(--dim); font-size: 14px; }

.foot a { color: inherit; }

@media (min-width: 800px) {
  .hero { padding-top: 88px; }
  .constellation { opacity: 0.9; }
  .stage { grid-template-columns: 180px minmax(0, 1fr) 210px; margin-top: 48px; }
  .pane + .pane { border-top: 0; border-left: 1px solid var(--line); }
  .features { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .features li:nth-child(2) { border-top: 1px solid var(--line); }
  .steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .steps li { border-top: 0; padding-top: 0; }
}

@media (max-width: 800px) {
  .constellation { width: 72%; right: 0; top: 0; opacity: 0.4; }
}

@media (max-width: 420px) {
  .bar-cta { padding-inline: 12px; }
}
