:root {
  --bg: #0b0e17;
  --bg-alt: #111623;
  --text: #f4f6fb;
  --text-muted: #9aa3b8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.04);
  --danger: #ff6b6b;
  --success: #4ade80;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fb;
    --bg-alt: #ffffff;
    --text: #14172b;
    --text-muted: #5a6178;
    --card-border: rgba(20, 23, 43, 0.08);
    --card-bg: rgba(20, 23, 43, 0.03);
  }
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --text: #14172b;
  --text-muted: #5a6178;
  --card-border: rgba(20, 23, 43, 0.08);
  --card-bg: rgba(20, 23, 43, 0.03);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px 90px;
  position: relative;
  overflow-x: hidden;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.orb-1 {
  width: 380px;
  height: 380px;
  background: var(--accent);
  top: -120px;
  left: -100px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: var(--accent-2);
  bottom: -100px;
  right: -80px;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: var(--accent);
  bottom: 20%;
  left: 60%;
  opacity: 0.18;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 800;
}

.highlight {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 40px;
}

.countdown {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.time-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 18px;
  min-width: 76px;
  backdrop-filter: blur(6px);
}

.time-value {
  display: block;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.time-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notify-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-form input[type="email"] {
  flex: 1 1 220px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.notify-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.notify-form input[type="email"]:focus {
  border-color: var(--accent);
}

.notify-form button {
  padding: 14px 22px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0b0e17;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.notify-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}

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

.form-message {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 14px;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--text-muted);
  z-index: 1;
}

@media (max-width: 420px) {
  .time-block {
    min-width: 64px;
    padding: 12px 10px;
  }

  .notify-form {
    flex-direction: column;
  }

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