:root {
  --bg: #09090b;
  --text: #f5f2ec;
  --muted: #a39e96;
  --silver: #c9ccd2;
  --line: rgba(255, 255, 255, 0.2);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --silver-grad: linear-gradient(175deg, #ffffff 8%, #dfe2e7 34%, #9aa0aa 62%, #e9ebef 92%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; min-height: 100svh;
  display: flex; flex-direction: column;
  font: 400 17px/1.5 var(--body);
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
p, h1 { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Background: mini bunny masks */
.bg-bunny { --tile: 230px; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-bunny::before, .bg-bunny::after {
  content: ""; position: absolute; inset: 0;
  background: url("bunny-tile.svg") 0 0 / var(--tile) var(--tile);
  filter: drop-shadow(0 0 5px rgba(225, 230, 240, 0.65));
  animation: flash 6s ease-in-out infinite;
}
/* second group sits in the gaps of the first and flashes on the opposite beat */
.bg-bunny::after { background-position: calc(var(--tile) / 2) calc(var(--tile) / 2); animation-delay: -3s; }
@keyframes flash { 0%, 100% { opacity: 0.04; } 50% { opacity: 0.42; } }

/* The one screen */
.stage {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 20px 40px; text-align: center;
}
/* soft dark pool behind the words so the pattern never fights the text */
.stage::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(980px, 130vw); height: min(820px, 110%); transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(9, 9, 11, 0.94) 45%, rgba(9, 9, 11, 0));
}

.wordmark {
  font: 600 clamp(1.4rem, 6.2vw, 3.7rem)/1 var(--display);
  letter-spacing: 0.3em; margin-right: -0.3em; text-transform: uppercase;
}
.eyebrow, .tagline {
  font: 600 clamp(0.68rem, 1.9vw, 0.9rem)/1.5 var(--body);
  letter-spacing: 0.32em; margin-right: -0.32em; text-transform: uppercase;
}
.eyebrow { margin-bottom: 22px; color: var(--muted); }
.tagline {
  margin-top: 22px; color: var(--silver);
  background: var(--silver-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.copy { width: min(620px, 100%); margin-top: 30px; display: grid; gap: 12px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.copy strong { color: var(--text); font-weight: 700; }

/* Sign-up */
.signup { width: min(460px, 100%); margin-top: 36px; }
.signup form { display: grid; gap: 12px; }
.signup input[type="email"] {
  width: 100%; padding: 17px 18px; text-align: center;
  font: 500 1.05rem/1 var(--body); color: var(--text);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.signup input[type="email"]::placeholder { color: #8b8780; }
.signup input[type="email"]:focus { outline: 0; border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.signup button {
  width: 100%; padding: 17px 18px; cursor: pointer;
  font: 700 0.92rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  color: #0b0b0d; background: var(--silver-grad); border: 0; border-radius: 4px;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.signup button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.signup button:disabled { opacity: 0.6; cursor: default; transform: none; }
.promote {
  display: block; width: min(460px, 100%); margin-top: 12px; padding: 16px 18px;
  font: 700 0.92rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--text); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.promote:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.signup-error { margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: #ff9c9c; }
.signup-done { padding: 20px; font-weight: 600; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.fine { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.fine + .fine { margin-top: 20px; }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  padding: 0 20px 26px; font-size: 0.86rem; color: var(--muted);
}
.footer a { color: inherit; text-decoration: none; padding: 0 16px; }
.footer a + a { border-left: 1px solid var(--line); }
.footer a:hover { color: var(--text); }

.preview-note {
  position: fixed; left: 14px; bottom: 14px; z-index: 30; margin: 0;
  padding: 8px 13px; border-radius: 999px; background: #1c1c22; border: 1px solid var(--line);
  font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted);
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .bg-bunny { --tile: 170px; }
  .stage { padding-top: 40px; }
  .preview-note { position: static; align-self: center; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-bunny::before, .bg-bunny::after { animation: none; opacity: 0.16; }
  .signup button { transition: none; }
}
