*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0e17;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f2f5;
  --text-muted: #8b95a8;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --gold: #c9a962;
  --gold-glow: rgba(201, 169, 98, 0.2);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background effects */
.bg-grid {
  position: fixed;
  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 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--left {
  top: -200px;
  left: -200px;
  background: var(--accent-glow);
}

.bg-glow--right {
  bottom: -200px;
  right: -200px;
  background: var(--gold-glow);
}

/* Layout */
.header,
.main,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  padding: 1.5rem 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
}

.logo__text {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 999px;
}

.headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.headline em {
  font-style: italic;
  background: linear-gradient(135deg, var(--text) 30%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* Email form */
.notify-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 440px;
  margin-bottom: 0.75rem;
}

.notify-form input {
  flex: 1;
  padding: 0.875rem 1.125rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notify-form input::placeholder {
  color: var(--text-muted);
}

.notify-form input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.notify-form button {
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s;
}

.notify-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.notify-form button:active {
  transform: translateY(0);
}

.form-message {
  font-size: 0.875rem;
  color: #4ade80;
  min-height: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.form-message--visible {
  opacity: 1;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4rem;
}

.countdown__value {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.countdown__label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.countdown__separator {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  padding-bottom: 1.1rem;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__divider {
  color: var(--border);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Accessibility */
.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;
}

/* Responsive */
@media (max-width: 540px) {
  .notify-form {
    flex-direction: column;
  }

  .notify-form button {
    width: 100%;
  }

  .countdown {
    padding: 1.25rem 1rem;
    gap: 0.25rem;
  }

  .countdown__item {
    min-width: 3rem;
  }

  .countdown__value {
    font-size: 1.5rem;
  }

  .countdown__separator {
    font-size: 1.125rem;
    padding-bottom: 0.85rem;
  }
}
