:root {
  --bg: #070914;
  --text: #f8fafc;
  --muted: #a8b3cf;
  --soft: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.16);
  --success: #7ef2b0;
  --error: #ff8f8f;
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 18px;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.22), transparent 32%),
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.18), transparent 34%),
    radial-gradient(circle at 50% 80%, rgba(45, 212, 191, 0.16), transparent 30%),
    linear-gradient(135deg, #070914 0%, #0b1020 50%, #070914 100%);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  z-index: -3;
}

.background-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.55;
  z-index: -2;
  animation: float 9s ease-in-out infinite;
}

.glow-one {
  top: 12%;
  left: 10%;
  background: rgba(99, 102, 241, 0.35);
}

.glow-two {
  right: 8%;
  bottom: 14%;
  background: rgba(236, 72, 153, 0.28);
  animation-delay: -3s;
}

.glow-three {
  left: 45%;
  bottom: 8%;
  background: rgba(45, 212, 191, 0.22);
  animation-delay: -6s;
}

.hero-card {
  width: min(100%, 760px);
  padding: 54px 28px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.045)
  );
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: fadeIn 900ms ease forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.4rem, 12vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff, #dbeafe 40%, #a5f3fc 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  max-width: 620px;
  margin: 0 auto 14px;
  font-size: clamp(1.1rem, 3.6vw, 1.5rem);
  line-height: 1.55;
  color: #eef2ff;
  font-weight: 500;
}

.description {
  max-width: 520px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

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

.time-box {
  padding: 18px 10px;
  border-radius: 20px;
  background: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.time-box span {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.time-box small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.subscribe-form {
  max-width: 560px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 0 16px;
  font: inherit;
}

input::placeholder {
  color: rgba(168, 179, 207, 0.78);
}

button {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  padding: 15px 22px;
  color: #07111f;
  background: linear-gradient(135deg, #ffffff, #a5f3fc);
  font: inherit;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(165, 243, 252, 0.24);
}

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

.form-message {
  min-height: 24px;
  margin-top: 14px;
  font-size: 0.95rem;
}

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

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

footer {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 18px;
  text-align: center;
  color: rgba(168, 179, 207, 0.72);
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -24px, 0) scale(1.08);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 28px 14px 70px;
  }

  .hero-card {
    padding: 42px 18px;
    border-radius: 26px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .input-group {
    flex-direction: column;
    border-radius: 24px;
    padding: 10px;
  }

  input {
    min-height: 50px;
    text-align: center;
  }

  button {
    width: 100%;
  }

  footer {
    bottom: 18px;
  }
}
