:root {
  --bg: #0a0b0f;
  --bg-elev: #11131a;
  --border: #1c1f2a;
  --border-strong: #262a36;
  --text: #f4f6fb;
  --text-dim: #8b90a0;
  --text-faint: #5a6072;
  --accent: #3b6cff;
  --accent-soft: rgba(59, 108, 255, 0.12);
  --accent-border: rgba(59, 108, 255, 0.35);
  --radius: 10px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.5;
}

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

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 28px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(48px, 9vw, 96px);
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin: 0 auto;
}

.logo-pult {
  color: var(--text-dim);
}

.logo-fun {
  color: var(--accent);
}

.menu {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.menu:hover {
  border-color: var(--border-strong);
  background: var(--bg-elev);
}

.menu span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 10px 18px;
  margin-bottom: clamp(40px, 8vw, 72px);
}

.badge-dot {
  color: var(--accent);
  opacity: 0.6;
}

.headline {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(56px, 12vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(28px, 5vw, 44px);
  color: var(--text);
}

.headline-line {
  display: block;
}

.headline .accent {
  color: var(--accent);
}

.lede {
  max-width: 560px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 clamp(36px, 6vw, 56px);
}

/* Signup */
.signup {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: min(560px, 100%);
  margin: 0 0 24px;
}

.signup input {
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  padding: 0 18px;
  height: 56px;
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.signup input::placeholder {
  color: var(--text-faint);
}

.signup input:focus {
  outline: none;
  border-color: var(--accent-border);
  background: #13161f;
}

.signup input:invalid:not(:placeholder-shown) {
  border-color: #b54b4b;
}

.signup button {
  background: var(--bg-elev);
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0 28px;
  height: 56px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.signup button:hover {
  background: #181b25;
  border-color: #2f3447;
}

.signup button:active {
  transform: translateY(1px);
}

.signup button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signup.is-success input {
  border-color: rgba(70, 180, 120, 0.4);
}

.signup.is-success button {
  background: rgba(70, 180, 120, 0.15);
  border-color: rgba(70, 180, 120, 0.4);
  color: #6fd29a;
}

/* Waiting line */
.waiting {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-faint);
  margin: 16px 0 0;
}

.waiting-count {
  color: var(--text);
  font-weight: 700;
  margin-right: 6px;
}

/* Stats footer */
.stats {
  margin-top: auto;
  padding-top: clamp(48px, 8vw, 80px);
  border-top: 1px solid var(--border);
}

.stats dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stat dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

.stat dd {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 560px) {
  .page {
    padding: 20px 20px 36px;
  }

  .menu {
    top: 20px;
    right: 20px;
  }

  .signup {
    flex-direction: column;
  }

  .signup button {
    height: 52px;
  }

  .stats dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
