:root {
  --bg: #06070b;
  --ink: #eef1f7;
  --muted: #95a0b6;
  --faint: #5b6379;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #8db8ff;
  --pad: clamp(18px, 3.4vw, 40px);
  --ui: ui-sans-serif, -apple-system, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

#field {
  position: fixed;
  inset: 0;
  display: block;
  z-index: 0;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(58vmax 42vmax at 50% 44%, rgba(74, 112, 255, 0.10), transparent 65%),
    radial-gradient(40vmax 28vmax at 84% 88%, rgba(140, 88, 255, 0.08), transparent 62%),
    radial-gradient(36vmax 26vmax at 10% 8%, rgba(60, 190, 200, 0.05), transparent 60%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar,
.foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--pad);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  pointer-events: none;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(141, 184, 255, 0.55);
  animation: pulse 2.8s ease-out infinite;
}

.stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px var(--pad);
  pointer-events: none;
  user-select: none;
}

.stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(150vmin, 1200px);
  height: min(82vmin, 640px);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(6, 7, 11, 0.8), rgba(6, 7, 11, 0.42) 42%, rgba(6, 7, 11, 0.1) 70%, rgba(6, 7, 11, 0) 88%);
  pointer-events: none;
}

.stage > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 clamp(14px, 2.6vh, 26px);
  font-size: clamp(9px, 1vw, 10.5px);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
  color: var(--faint);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  padding-bottom: 0.04em;
  font-size: clamp(2rem, 6vw, 3.9rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #ccd6ea 48%, #7d88a2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.caret {
  display: inline-block;
  width: 0.07em;
  height: 0.7em;
  margin-left: 0.07em;
  border-radius: 1px;
  background: var(--accent);
  align-self: center;
  animation: blink 1.15s steps(1, end) infinite;
}

.lede {
  margin: clamp(18px, 2.8vh, 30px) auto 0;
  max-width: 36ch;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.75;
  color: var(--muted);
  text-wrap: balance;
}

.hint {
  transition: opacity 0.8s ease;
  color: var(--muted);
}

.hint.is-used {
  opacity: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(141, 184, 255, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(141, 184, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(141, 184, 255, 0); }
}

@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

@media (max-width: 560px) {
  .foot {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    row-gap: 8px;
  }
  .lede br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dot,
  .caret {
    animation: none;
  }
}
