*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0b;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #a3e635;
  --accent-dim: rgba(163, 230, 53, 0.12);
  --font: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --max-width: 640px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.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;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.bg__orb--1 {
  width: 50vw;
  max-width: 500px;
  height: 50vw;
  max-height: 500px;
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.25) 0%, transparent 70%);
}

.bg__orb--2 {
  width: 40vw;
  max-width: 400px;
  height: 40vw;
  max-height: 400px;
  bottom: 10%;
  left: -15%;
  background: radial-gradient(circle, rgba(120, 120, 255, 0.15) 0%, transparent 70%);
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
}

/* Layout */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header */
.header {
  padding: 0.5rem 0 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo__mark {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.logo__brand {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.2;
}

.logo__text {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo__tagline {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.headline {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.headline em {
  font-style: normal;
  color: var(--text-muted);
}

.subtext {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

/* Form */
.notify {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.notify input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notify input::placeholder {
  color: var(--text-muted);
}

.notify input:focus {
  border-color: rgba(163, 230, 53, 0.4);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.2s;
}

.btn:hover {
  box-shadow: 0 0 24px rgba(163, 230, 53, 0.35);
}

.btn:active {
  transform: scale(0.98);
}

.btn__arrow {
  transition: transform 0.2s;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.form-message {
  min-height: 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--accent);
}

.form-message.is-error {
  color: #f87171;
}

/* Footer */
.footer {
  padding: 2rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
  padding: 0.75rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.countdown__value {
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.countdown__label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.375rem;
}

.countdown__sep {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  padding-bottom: 1rem;
}

.social {
  display: flex;
  gap: 0.75rem;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social__link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.contact-email {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--accent);
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Desktop */
@media (min-width: 640px) {
  .page {
    padding: 2.5rem;
  }

  .notify {
    flex-direction: row;
    align-items: stretch;
  }

  .notify input {
    flex: 1;
  }

  .btn {
    width: auto;
    white-space: nowrap;
  }

  .countdown__item {
    min-width: 4.5rem;
    padding: 1rem 0.75rem;
  }

  .countdown__value {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --max-width: 720px;
  }

  .hero {
    padding: 4rem 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn__arrow,
  .notify input,
  .social__link {
    transition: none;
  }
}
