:root {
  --bg: #08090c;
  --bg-soft: #11131a;
  --fg: #f4f5f7;
  --muted: #8a8f9e;
  --accent: #7c5cff;
  --accent-2: #00e0c7;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ---------- Background effects ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: 30%;
  left: 50%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(124, 92, 255, 0.35),
    rgba(0, 224, 199, 0.15) 35%,
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: pulse 8s ease-in-out infinite;
}

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

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

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 auto 18px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}

.headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.headline__accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 520px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Signup form ---------- */

.signup {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup:focus-within {
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.signup input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 14px;
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
}

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

.signup button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: none;
  color: #08090c;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.signup button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

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

.signup__msg {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--accent-2);
}

.signup__msg.error {
  color: #ff6b81;
}

/* ---------- Countdown ---------- */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 460px;
  margin: 48px auto 0;
}

.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.countdown__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footer p { margin: 0; }

.social {
  display: flex;
  gap: 22px;
}

.social a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.social a:hover {
  color: var(--fg);
}

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

@media (max-width: 520px) {
  .signup {
    flex-direction: column;
    padding: 10px;
  }
  .signup button {
    width: 100%;
    padding: 14px;
  }
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer {
    flex-direction: column;
  }
}
