:root {
  --bg: #05060a;
  --text: #ffffff;
  --muted: #cbd5f5;
  --accent: #1ac9a1;
  --accent-2: #16a34a;
  --card: #0f172a;
  --brand-blue: #3366ff;
  --brand-purple: #994dcc;
  --brand-pink: #e666b3;
  --brand-gradient: linear-gradient(
    135deg,
    var(--brand-blue) 0%,
    var(--brand-purple) 50%,
    var(--brand-pink) 100%
  );
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 900px;
}

.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;
}

/* ---------- STARFIELD ---------- */

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#starCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- TOP BAR / STORE BADGES ---------- */

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, #565656, #3f3f3f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.store-badge img {
  height: 30px;
  display: block;
}

.store-badge__label {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-badge__line {
  color: #f8fafc;
  white-space: nowrap;
}

.store-badge__sub {
  font-size: 12px;
  opacity: 0.88;
}

.store-badge__main {
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .top-bar {
    justify-content: center;
    padding-top: 12px;
  }

  .store-badge img {
    height: 28px;
  }
}

/* ---------- MAIN CONTENT ---------- */

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  padding: 0px 20px 220px;
  text-align: center;
  margin: 0 auto;
}

.content h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(56px, 8vw, 68px);
  letter-spacing: 0.12em;
  margin-bottom: 30px;
  transform-origin: center;
  transform-style: preserve-3d;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: notifyEnter 800ms cubic-bezier(0.16, 1, 0.3, 1) 250ms both;
}

/* Countdown */

.countdown {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  background: var(--brand-gradient);
  border: 1px solid rgba(230, 102, 179, 0.3);
  box-shadow: 0 0 40px rgba(153, 77, 204, 0.35);
  margin-bottom: 24px;
  transform-origin: center;
  transform-style: preserve-3d;
  animation: notifyEnter 800ms cubic-bezier(0.16, 1, 0.3, 1) 350ms both;
}

.time-block {
  min-width: 70px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(
    145deg,
    rgba(51, 102, 255, 0.9),
    rgba(230, 102, 179, 0.92)
  );
  border: 1px solid rgba(230, 102, 179, 0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.time-number {
  font-size: 20px;
  font-weight: 700;
}

.time-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.colon {
  align-self: center;
  font-weight: 700;
  font-size: 18px;
  opacity: 0.72;
}

/* Notify card */

.notify-card {
  margin: 0 auto;
  max-width: 480px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(
    140deg,
    rgba(51, 102, 255, 0.18) 0%,
    rgba(153, 77, 204, 0.24) 48%,
    rgba(230, 102, 179, 0.32) 100%
  );
  border: 1px solid rgba(230, 102, 179, 0.35);
  box-shadow: 0 0 30px rgba(153, 77, 204, 0.28);
  text-align: left;
  font-size: 14px;
  transform-origin: center;
  transform-style: preserve-3d;
  animation: notifyEnter 800ms cubic-bezier(0.16, 1, 0.3, 1) 350ms both;
}

.notify-card h2 {
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 500;
}

.notify-success {
  text-align: left;
  display: grid;
  gap: 8px;
}

.notify-success h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.notify-success p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notify-input {
  flex: 1 1 180px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(230, 102, 179, 0.55);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.notify-input:focus {
  border-color: rgba(230, 102, 179, 0.9);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 102, 179, 0.2);
}

.notify-input::placeholder {
  color: #9ca3af;
}

.notify-button {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  background: var(--brand-gradient);
  color: #f8fafc;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 18px rgba(153, 77, 204, 0.4);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.notify-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(153, 77, 204, 0.38);
}

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

.notify-button:focus-visible {
  outline: 2px solid rgba(230, 102, 179, 0.9);
  outline-offset: 2px;
}

/* Check circle inside button */
.notify-button .check {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.75);
  display: inline-block;
  position: relative;
}

.notify-button .check::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 6px;
  height: 9px;
  border-right: 2px solid rgba(248, 250, 252, 0.75);
  border-bottom: 2px solid rgba(248, 250, 252, 0.75);
  transform: rotate(40deg);
}

.notify-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.notify-email {
  font-size: 13px;
  margin-top: 2px;
  color: #93c5fd;
}

/* ---------- ROBOT IMAGE ---------- */

.robot-hero {
  position: absolute;
  bottom: -450px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1200px;
  width: 90vw;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

@media (max-width: 768px) {
  .robot-hero {
    bottom: -150px;
    width: 100vw;
    max-width: 600px;
  }
}

@media (max-width: 640px) {
  .robot-hero {
    bottom: -185px;
    width: 120vw;
  }
}

.noscript {
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 12px;
  border-radius: 12px;
  margin-top: 12px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 640px) {
  .top-bar {
    justify-content: center;
    padding-top: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .store-badge {
    padding: 6px 8px;
  }

  .store-badge img {
    height: 24px;
  }

  .store-badge__sub {
    font-size: 10px;
  }

  .store-badge__main {
    font-size: 13px;
  }

  .content {
    padding-top: 80px;
    padding-bottom: 180px;
  }

  .content h1 {
    font-size: clamp(32px, 10vw, 56px);
    margin-bottom: 20px;
  }

  .countdown {
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 14px 16px;
    gap: 8px;
    margin-bottom: 20px;
  }

  .time-block {
    min-width: 50px;
    padding: 6px 10px;
  }

  .time-number {
    font-size: 18px;
  }

  .time-label {
    font-size: 9px;
  }

  .colon {
    font-size: 16px;
  }
}

@keyframes notifyEnter {
  0% {
    transform: translateZ(-260px) scale(0.4) translateY(20px) rotateX(3deg);
    opacity: 0;
    filter: blur(8px);
  }

  20% {
    transform: translateZ(-150px) scale(0.6) translateY(14px) rotateX(2deg);
    opacity: 0.35;
    filter: blur(4px);
  }

  40% {
    transform: translateZ(-60px) scale(0.8) translateY(8px) rotateX(1deg);
    opacity: 0.7;
    filter: blur(2px);
  }

  60% {
    transform: translateZ(0) scale(1.03) translateY(0) rotateX(0deg);
    opacity: 1;
    filter: blur(0);
  }

  100% {
    transform: translateZ(0) scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
    filter: blur(0);
  }
}