:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255,255,255,0.42);
  --faint: rgba(255,255,255,0.16);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.18);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

/* ── Background grid ── */
.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
  z-index: 0;
}

/* ── Scan line ── */
.scan {
  position: fixed;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.45), transparent);
  pointer-events: none;
  z-index: 2;
  animation: scanMove 14s linear infinite;
  opacity: 0.55;
}

@keyframes scanMove {
  0%   { transform: translateY(-10vh); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* ── Canvas ── */
#network {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Vignette + noise ── */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.65) 100%);
}

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

/* ── Layout shell ── */
.shell {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px clamp(24px, 4vw, 56px);
  gap: 24px;
}

/* ── Top bar ── */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  gap: 16px;
}

.top .left,
.top .right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top .right { justify-content: flex-end; }

.top .center {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}

/* ── Brand ── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand .mark {
  width: 22px;
  height: 22px;
  color: var(--fg);
  flex: 0 0 auto;
}

.brand .wordmark {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg);
}

.brand .wordmark .tld {
  color: var(--faint);
  margin-left: 0.32em;
}

/* ── Status pip ── */
.pip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--fg);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.top .sep { color: var(--faint); }

/* ── Hero ── */
.hero {
  align-self: center;
  display: grid;
  gap: 48px;
  padding: 32px 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.label-row .bar {
  flex: 0 0 48px;
  height: 1px;
  background: var(--fg);
  opacity: 0.7;
}

.label-row .tail {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

/* ── Headline ── */
h1.headline {
  font-family: var(--mono);
  font-weight: 500;
  margin: 0;
  font-size: clamp(40px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h1.headline .row {
  display: block;
  position: relative;
  overflow: hidden;
}

h1.headline .row > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards;
}

h1.headline .row:nth-child(1) > span { animation-delay: 0.05s; }
h1.headline .row:nth-child(2) > span { animation-delay: 0.18s; }
h1.headline .row:nth-child(3) > span { animation-delay: 0.31s; }
h1.headline .dim { color: var(--dim); }

@keyframes rise {
  to { transform: translateY(0); }
}

/* ── Tagline ── */
.oneliner {
  max-width: 640px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--dim);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fade 1.4s ease 0.9s forwards;
  display: grid;
  gap: 4px;
  margin: 0;
}

.oneliner .ln {
  display: block;
  text-transform: lowercase;
}

.oneliner .ln::before {
  content: "> ";
  color: var(--faint);
  margin-right: 4px;
}

.oneliner .ln.hl { color: var(--fg); }

.oneliner b {
  font-weight: 500;
  color: var(--fg);
}

@keyframes fade { to { opacity: 1; } }

/* ── Waitlist ── */
.waitlist {
  display: grid;
  gap: 12px;
  max-width: 520px;
  opacity: 0;
  animation: fade 1.4s ease 1.2s forwards;
}

.waitlist .field {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  align-items: stretch;
  transition: border-color 0.2s, background 0.2s;
}

.waitlist .field:focus-within {
  border-color: var(--fg);
  background: rgba(255,255,255,0.04);
}

.waitlist input[type="email"] {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 16px 18px;
  width: 100%;
}

.waitlist input::placeholder {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.waitlist button {
  background: var(--fg);
  color: var(--bg);
  border: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 22px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.waitlist button:hover {
  background: transparent;
  color: var(--fg);
}

.waitlist button .arr {
  transition: transform 0.2s;
}

.waitlist button:hover .arr {
  transform: translateX(4px);
}

.waitlist .meta {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  gap: 16px;
}

.waitlist .meta .ok { color: var(--dim); }
.waitlist.success .field { border-color: var(--fg); }
.waitlist.success input { color: var(--dim); }

/* ── Footer ── */
.bottom {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ── Telemetry ── */
.telemetry {
  position: fixed;
  right: clamp(24px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  display: grid;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-align: right;
  pointer-events: none;
  text-transform: uppercase;
  opacity: 0;
  animation: fade 1.4s ease 1.5s forwards;
}

.telemetry .t-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.telemetry .t-row .v {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  text-align: right;
}

.telemetry .bar-track {
  width: 80px;
  height: 2px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
  justify-self: end;
}

.telemetry .bar-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform-origin: left;
  transform: scaleX(var(--v, 0.5));
  transition: transform 0.8s ease;
}

/* ── Corner ticks ── */
.tick {
  position: fixed;
  z-index: 5;
  pointer-events: none;
}

.tick::before,
.tick::after {
  content: "";
  position: absolute;
  background: var(--fg);
}

.tick.tl { top: 18px; left: 18px; width: 14px; height: 14px; }
.tick.tr { top: 18px; right: 18px; width: 14px; height: 14px; }
.tick.bl { bottom: 18px; left: 18px; width: 14px; height: 14px; }
.tick.br { bottom: 18px; right: 18px; width: 14px; height: 14px; }

.tick.tl::before { top: 0; left: 0; width: 14px; height: 1px; }
.tick.tl::after  { top: 0; left: 0; width: 1px; height: 14px; }
.tick.tr::before { top: 0; right: 0; width: 14px; height: 1px; }
.tick.tr::after  { top: 0; right: 0; width: 1px; height: 14px; }
.tick.bl::before { bottom: 0; left: 0; width: 14px; height: 1px; }
.tick.bl::after  { bottom: 0; left: 0; width: 1px; height: 14px; }
.tick.br::before { bottom: 0; right: 0; width: 14px; height: 1px; }
.tick.br::after  { bottom: 0; right: 0; width: 1px; height: 14px; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .telemetry { display: none; }
  .top { font-size: 10px; }
  .top .left .ext,
  .top .right .ext { display: none; }
}
