:root {
  --raspberry: #bd2f5c;
  --teal: #48a8c0;
  --bg: #fdf6f8;
  --bg-deep: #eef6f9;
  --text: #2a1c24;
  --muted: #6c5a63;
  --line: rgba(42, 28, 36, 0.1);
  --glass: rgba(255, 255, 255, 0.55);
  --radius: 20px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

.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 ---------- */
.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(72, 168, 192, 0.22), transparent 55%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  will-change: transform;
}

.blob--raspberry {
  width: 46vmax;
  height: 46vmax;
  top: -12vmax;
  left: -8vmax;
  background: radial-gradient(circle at 30% 30%, var(--raspberry), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}

.blob--teal {
  width: 42vmax;
  height: 42vmax;
  bottom: -14vmax;
  right: -10vmax;
  background: radial-gradient(circle at 70% 70%, var(--teal), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 28, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 28, 36, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 30%, #000 20%, transparent 78%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
}

/* ---------- Layout ---------- */
.stage {
  position: relative;
  z-index: 1;
  width: min(1080px, 92vw);
  padding: clamp(2rem, 5vh, 4rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.75rem, 4vh, 3rem);
}

/* ---------- Brand ---------- */
.logo {
  width: clamp(190px, 30vw, 320px);
  height: auto;
  filter: drop-shadow(0 14px 40px rgba(189, 47, 92, 0.28));
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.4vh, 1.6rem);
}

.eyebrow {
  font-size: clamp(0.72rem, 1.6vw, 0.85rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.gradient-text {
  display: block;
  background: linear-gradient(100deg, var(--raspberry) 10%, var(--teal) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtext {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  line-height: 1.7;
}

/* ---------- Countdown ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
  width: min(680px, 100%);
  margin-top: clamp(0.5rem, 2vh, 1.25rem);
}

.unit {
  position: relative;
  padding: clamp(1rem, 2.6vw, 1.6rem) clamp(0.4rem, 1.4vw, 1rem);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.unit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--raspberry), var(--teal));
  opacity: 0.85;
}

.unit:hover {
  border-color: rgba(72, 168, 192, 0.4);
  transform: translateY(-3px);
}

.unit__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(180deg, var(--raspberry), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.unit__label {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(0.62rem, 1.5vw, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.launched {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
}

.launched__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(72, 168, 192, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(72, 168, 192, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(72, 168, 192, 0); }
}

/* ---------- Notify form ---------- */
.notify {
  display: flex;
  gap: 0.5rem;
  width: min(480px, 100%);
  margin-top: clamp(0.5rem, 2vh, 1rem);
  padding: 0.4rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.notify__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
}

.notify__input::placeholder {
  color: rgba(108, 90, 99, 0.7);
}

.notify__button {
  border: 0;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(100deg, var(--raspberry), var(--teal));
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.notify__button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(189, 47, 92, 0.4);
  filter: brightness(1.05);
}

.notify__button:disabled {
  cursor: default;
  opacity: 0.75;
}

.notify__input:focus-visible,
.notify__button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.notify__message {
  min-height: 1.4em;
  font-size: 0.86rem;
  color: var(--muted);
}

.notify__message.is-error { color: var(--raspberry); }
.notify__message.is-success { color: var(--teal); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__date {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0.85;
}

/* ---------- Entrance animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.brand      { animation-delay: 0.05s; }
.eyebrow    { animation-delay: 0.15s; }
.headline   { animation-delay: 0.25s; }
.subtext    { animation-delay: 0.35s; }
.countdown  { animation-delay: 0.45s; }
.notify     { animation-delay: 0.55s; }
.footer     { animation-delay: 0.65s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .notify {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .notify__button {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .launched__pulse { animation: none; }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
