/* ZERO BAND landing page
   Palette pulled from the cover: deep navy void, ice white, electric blue seam. */

:root {
  --void: #03070f;
  --void-2: #060d1a;
  --line: rgba(120, 180, 255, 0.18);
  --line-strong: rgba(120, 180, 255, 0.42);
  --ice: #e6f2ff;
  --ice-dim: #a9c3de;
  --ice-faint: #6b85a3;
  --seam: #2f9bff;
  --seam-glow: rgba(47, 155, 255, 0.55);
  --ok: #4fe3a1;
  --warn: #ffb547;
  --err: #ff6b6b;

  --mono: "JetBrains Mono", ui-monospace, Consolas, "Courier New", monospace;
  --display: "Michroma", "Eurostile", "Arial Black", sans-serif;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ice);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Blurred, darkened cover fills the viewport behind everything */
.backdrop {
  position: fixed;
  inset: -40px;
  background: url("/assets/cover.webp") center 60% / cover no-repeat;
  filter: blur(36px) saturate(1.2) brightness(0.35);
  z-index: -2;
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, transparent 0%, var(--void) 75%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
}

/* ---------- Layout ---------- */

.stage {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 460px);
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4vh, 48px) clamp(16px, 4vw, 56px) 16px;
}

/* ---------- Cover ---------- */

.cover {
  position: relative;
  margin: 0;
  height: min(86vh, 960px);
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 30px 80px rgba(0,0,0,0.7), 0 0 60px rgba(47,155,255,0.12);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.booted .cover { opacity: 1; transform: none; }

.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CRT scanlines + a slow sweep line over the art */
.cover__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,8,20,0.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.cover__scan::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 18%;
  top: -20%;
  background: linear-gradient(180deg, transparent, rgba(120,190,255,0.10) 60%, rgba(160,210,255,0.22) 98%, transparent);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { to { top: 110%; } }

.cover__tick {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--seam);
  border-style: solid;
  opacity: 0.8;
}
.cover__tick--tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.cover__tick--tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.cover__tick--bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.cover__tick--br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

/* The "System initializing..." screen laid over the art */
.overlay {
  position: absolute;
  left: 0; right: 0;
  bottom: 7%;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.overlay__line {
  margin: 0;
  padding: 10px 18px;
  font-size: clamp(11px, 1.35vh, 15px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(3, 9, 20, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgba(47,155,255,0.25), inset 0 0 18px rgba(47,155,255,0.08);
  text-shadow: 0 0 10px var(--seam-glow);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.overlay__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--seam);
  box-shadow: 0 0 10px var(--seam);
  margin-right: 12px;
  animation: pulse 1.6s ease-in-out infinite;
}
.overlay__ellipsis::after {
  content: "";
  display: inline-block;
  width: 3ch;
  text-align: left;
  animation: ellipsis 1.8s steps(4, end) infinite;
}
@keyframes ellipsis {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%, 100% { content: "..."; }
}
@keyframes pulse { 50% { opacity: 0.25; } }

.overlay--locked .overlay__dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: none; }
.overlay--locked .overlay__ellipsis { display: none; }

/* ---------- Panel ---------- */

.panel {
  position: relative;
  padding: 32px 30px 28px;
  background: linear-gradient(180deg, rgba(6, 13, 26, 0.86), rgba(3, 7, 15, 0.86));
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}
.booted .panel { opacity: 1; transform: none; }
.panel::before {
  /* the glowing seam from the ring, reused as an accent */
  content: "";
  position: absolute;
  left: -1px; top: 24px; bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--seam) 20%, var(--seam) 80%, transparent);
  box-shadow: 0 0 14px var(--seam);
}

.panel__kicker {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--seam);
}

.panel__title { margin: 0 0 26px; font-weight: 400; }
.panel__title-main {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--ice);
  text-shadow: 0 0 22px rgba(47,155,255,0.45);
}
.panel__title-sub {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ice-dim);
}

.build {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(47,155,255,0.04);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.build__heading {
  margin: 0 0 12px;
  color: var(--seam);
  letter-spacing: 0.24em;
}
.build__seg + .build__seg { margin-top: 12px; }
.build__seg .build__bar { margin: 6px 0 0; }
.build__row { display: flex; justify-content: space-between; gap: 12px; }
.build__label { text-transform: uppercase; }
.build__row--footer { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.build__row--dim { color: var(--ice-faint); }
.build__bar {
  height: 4px;
  margin: 10px 0;
  background: rgba(120,180,255,0.12);
  overflow: hidden;
}
.build__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1f5fae, var(--seam), #cfe8ff);
  box-shadow: 0 0 12px var(--seam);
  transition: width 0.6s ease;
}

.panel__copy {
  margin: 0 0 24px;
  color: var(--ice-dim);
  font-size: 14px;
}

/* ---------- Form ---------- */

.signup__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
}
.signup__label span { color: var(--ice-faint); }

.signup__row { display: flex; gap: 8px; }

.signup__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ice);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup__input::placeholder { color: #45607e; }
.signup__input:focus {
  border-color: var(--seam);
  box-shadow: 0 0 0 1px var(--seam), 0 0 18px rgba(47,155,255,0.35);
}

.signup__button {
  flex: 0 0 auto;
  padding: 13px 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: #1f7ae0;
  border: 1px solid #5fb4ff;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(47,155,255,0.35);
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.signup__button:hover { background: #2b8cf5; box-shadow: 0 0 26px rgba(47,155,255,0.6); }
.signup__button:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.signup__button[disabled] { opacity: 0.55; cursor: progress; }

.signup__turnstile { margin-top: 14px; min-height: 0; }
.signup__turnstile:empty { display: none; }

.signup__status {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ice-dim);
}
.signup__status[data-state="ok"]   { color: var(--ok); }
.signup__status[data-state="warn"] { color: var(--warn); }
.signup__status[data-state="err"]  { color: var(--err); }

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

.panel__fine {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ice-faint);
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ice-faint);
}
.footer a { color: var(--ice-dim); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.footer a:hover { color: var(--ice); border-color: var(--seam); }
.footer__address span { white-space: nowrap; }
.footer__address {
  flex-basis: 100%;
  text-align: center;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ice-faint);
  opacity: 0.8;
}

/* ---------- Boot sequence ---------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  padding: 32px clamp(16px, 5vw, 64px);
  background: var(--void);
  transition: opacity 0.8s ease, visibility 0.8s;
}
.booted .boot { opacity: 0; visibility: hidden; }
.boot__log {
  margin: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ice-dim);
  white-space: pre-wrap;
}
.boot__log .ok   { color: var(--ok); }
.boot__log .warn { color: var(--warn); }
.boot__log .hi   { color: var(--seam); }

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 20px;
    gap: 24px;
  }
  .cover { height: auto; width: min(100%, 440px); }
  .panel { width: 100%; max-width: 520px; padding: 26px 20px 22px; }
}

@media (max-width: 420px) {
  .signup__row { flex-direction: column; }
  .signup__button { padding: 14px; }
  .overlay__line { letter-spacing: 0.22em; padding: 9px 14px; }
  .footer { flex-direction: column; align-items: center; gap: 4px; }
  .footer__sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .overlay__ellipsis::after { content: "..."; }
}
