:root {
  color-scheme: dark;
  --bg-1: #03050d;
  --bg-2: #0f1b2f;
  --accent: #00ff9c;
  --text: #f4f6ff;
  --muted: #9aa6c2;
  --panel: rgba(8, 12, 22, 0.8);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: 10rem;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 70%, rgba(3, 5, 13, 0.8)),
    linear-gradient(60deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%),
    linear-gradient(-60deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1%, transparent 1.5%);
  background-size: 100% 100%, 70px 140px, 70px 140px, 70px 70px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: 0.6;
  pointer-events: none;
}

.backdrop {
  position: absolute;
  inset: -20% -10% auto;
  height: 120vh;
  background: radial-gradient(circle at 50% 20%, rgba(0, 255, 156, 0.3), transparent 60%),
    radial-gradient(circle at 30% 40%, rgba(0, 126, 255, 0.25), transparent 55%),
    radial-gradient(circle at 70% 35%, rgba(124, 93, 255, 0.25), transparent 55%);
  filter: blur(50px);
  animation: breathe 18s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -3%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

.particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 100%;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.75rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.35);
}

.wordmark {
  font-weight: 600;
  letter-spacing: 0.18em;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
}

h1 .highlight {
  position: relative;
  font-weight: 700;
  display: inline-block;
  margin: 0 0.15em;
  animation: highlight-pulse 3s ease-in-out infinite;
}

h1 .highlight-alone {
  color: #ff6b9d;
  background: linear-gradient(135deg, #ff6b9d, #ff8fab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

h1 .highlight-alone::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff6b9d, transparent);
  border-radius: 2px;
  opacity: 0.6;
  animation: underline-glow-pink 2s ease-in-out infinite;
}

h1 .highlight-status {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 255, 156, 0.5);
}

h1 .highlight-status::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  opacity: 0.6;
  animation: underline-glow 2s ease-in-out infinite;
}

h1 .highlight-online {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 255, 156, 0.5);
}

h1 .highlight-online::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  opacity: 0.6;
  animation: underline-glow 2s ease-in-out infinite;
}

@keyframes highlight-pulse {
  0%, 100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.2);
    transform: scale(1.02);
  }
}

@keyframes underline-glow {
  0%, 100% {
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.3);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(0, 255, 156, 0.6);
  }
}

@keyframes underline-glow-pink {
  0%, 100% {
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
  }
}

/* Thank You Modal */
.thank-you-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 13, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.thank-you-modal.show {
  opacity: 1;
  visibility: visible;
}

.thank-you-content {
  background: var(--panel);
  border: 2px solid rgba(0, 255, 156, 0.3);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 156, 0.2);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.thank-you-modal.duplicate .thank-you-content {
  border-color: rgba(124, 93, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 93, 255, 0.2);
}

.thank-you-modal.show .thank-you-content {
  transform: scale(1) translateY(0);
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #041311;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(0, 255, 156, 0.5);
  animation: icon-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  position: relative;
}

.thank-you-modal.duplicate .thank-you-icon {
  background: linear-gradient(135deg, #7c5dff, #a78bfa);
  box-shadow: 0 0 30px rgba(124, 93, 255, 0.5);
  font-size: 2.5rem;
}

.thank-you-icon::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00d4ff);
  opacity: 0.3;
  animation: icon-pulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes icon-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes icon-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

.thank-you-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 700;
}

.thank-you-message {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.thank-you-close {
  border: none;
  border-radius: 999px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #041311;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.thank-you-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 156, 0.35);
}

.thank-you-close:active {
  transform: translateY(0);
}

.description {
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 52ch;
  line-height: 1.6;
  font-size: 0.95rem;
  opacity: 0.85;
}

.pixel-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(3, 5, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 156, 0.15);
  min-height: 120px;
  max-height: 200px;
  overflow: hidden;
}

.pixel-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120px;
  max-height: 200px;
}

.pixel-character {
  position: absolute;
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  animation: pixel-pop 0.5s ease-out;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
  pointer-events: none;
}

@keyframes pixel-pop {
  0% {
    opacity: 0;
    transform: scale(0) translateY(20px);
  }
  50% {
    transform: scale(1.2) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


.waitlist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.waitlist input {
  border: none;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1rem;
}

.waitlist input::placeholder {
  color: rgba(244, 246, 255, 0.5);
  text-transform: none;
}

.waitlist input:focus {
  outline: 2px solid rgba(0, 255, 156, 0.6);
  background: rgba(0, 255, 156, 0.08);
}

.waitlist button {
  border: none;
  border-radius: 999px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #041311;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.waitlist button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 156, 0.35);
}

#form-status {
  min-height: 1.2rem;
  font-size: 0.95rem;
}

#form-status.success {
  color: var(--accent);
}

#form-status.error {
  color: #ff6b81;
}

.privacy-note {
  margin-top: -2.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
  text-align: center;
  line-height: 1.4;
}

.app-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  width: 100%;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #000;
  border: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: default;
  width: 100%;
  max-width: 280px;
  min-height: 60px;
}

.app-badge:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 156, 0.2);
}

.app-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-icon {
  width: 36px;
  height: 36px;
  color: #fff;
}

.app-icon-google {
  width: 40px;
  height: 40px;
}

.badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}

.badge-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  line-height: 1.2;
}

.badge-store {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}

.notice {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  display: flex;
  width: 100%;
  max-width: 620px;
  justify-content: space-between;
  color: rgba(244, 246, 255, 0.6);
  font-size: 0.85rem;
}

.social {
  display: flex;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.social span,
.social a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.social a:hover {
  color: var(--accent);
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 600px) {
  body {
    padding: 1.5rem;
    padding-top: 9rem;
  }

  .pixel-header {
    min-height: 100px;
    max-height: 150px;
  }

  .pixel-container {
    min-height: 100px;
    max-height: 150px;
  }

  .pixel-character {
    width: 24px;
    height: 24px;
  }

  .app-badges {
    gap: 0.625rem;
    margin-top: 1.5rem;
  }

  .app-badge {
    padding: 0.875rem 1.25rem;
    gap: 0.875rem;
    max-width: 100%;
    min-height: 56px;
  }

  .app-icon {
    width: 32px;
    height: 32px;
  }

  .app-icon-google {
    width: 36px;
    height: 36px;
  }

  .badge-label {
    font-size: 0.65rem;
  }

  .badge-store {
    font-size: 0.9rem;
  }

  .hero {
    padding: 2rem;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .social {
    justify-content: center;
  }
}
