:root {
  --bg-deep: #020205;
  --bg-glass: rgba(5, 12, 25, 0.72);
  --border-subtle: rgba(0, 255, 170, 0.08);
  --border-glow: rgba(0, 242, 255, 0.22);
  --text-primary: #e8eef8;
  --text-secondary: #7a8ba8;
  --text-muted: #3d4f6a;
  --cyan: #00f2ff;
  --magenta: #ff6b9d;
  --accent: #a855f7;
  --alive-glow: rgba(0, 255, 255, 0.45);
  --font-display: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 14px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* --- Video / gradient fallback background --- */
.launch-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.launch-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.2) contrast(1.05);
  z-index: 0;
}

.launch-bg__gradient {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.launch-bg__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(168, 85, 247, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(0, 242, 255, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(2, 2, 5, 0.55) 0%, rgba(2, 2, 5, 0.88) 55%, rgba(2, 2, 5, 0.96) 100%);
}

.launch-bg--no-video .launch-bg__gradient {
  display: block;
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 0deg at 50% 50%, #020205, #0a1830, #1a0a28, #051a22, #020205);
  animation: gradientSpin 18s linear infinite;
  opacity: 0.55;
}

.launch-bg--no-video .launch-bg__gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(0, 242, 255, 0.15), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(255, 107, 157, 0.12), transparent 40%);
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes gradientSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.launch-bg__scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 170, 0.015) 2px,
    rgba(0, 255, 170, 0.015) 4px
  );
}

/* --- Layout --- */
.launch-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  padding-bottom: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-bottom, 0px));
}

.launch-lang-toggle {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 10;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-glow);
  background: rgba(5, 12, 25, 0.85);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
}

.launch-lang-toggle:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--alive-glow);
}

.launch-card {
  width: min(720px, 100%);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: calc(var(--radius) + 4px);
  backdrop-filter: blur(22px);
  box-shadow:
    0 0 0 1px rgba(0, 242, 255, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 242, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.launch-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  animation: headerScan 5s linear infinite;
}

@keyframes headerScan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.launch-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.launch-brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  box-shadow: 0 0 18px var(--alive-glow);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #020205;
}

.launch-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.launch-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #e6fbff, var(--cyan), #00ffa3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.launch-brand__sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.launch-tagline {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 52ch;
}

.launch-tagline strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Countdown --- */
.launch-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 2vw, 0.85rem);
  margin-bottom: 2rem;
}

.launch-countdown__unit {
  text-align: center;
  min-width: 0;
  padding: 0.85rem 0.5rem;
  background: rgba(0, 242, 255, 0.04);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  box-shadow: inset 0 0 20px rgba(0, 242, 255, 0.03);
}

.launch-countdown__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--alive-glow);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.launch-countdown__label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Launch choices --- */
.launch-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.launch-choice {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 142px;
  padding: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(2, 6, 16, 0.62);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.launch-choice:hover,
.launch-choice:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(0, 242, 255, 0.07);
  box-shadow: 0 0 28px rgba(0, 242, 255, 0.12);
  outline: none;
}

.launch-choice--primary {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.12), rgba(168, 85, 247, 0.10));
  border-color: rgba(0, 242, 255, 0.45);
}

.launch-choice__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--cyan);
}

.launch-choice strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
}

.launch-choice > span:last-child {
  color: var(--text-secondary);
  line-height: 1.35;
}

@media (max-width: 640px) {
  .launch-choices {
    grid-template-columns: 1fr;
  }
}

/* --- Email form --- */
.launch-form-heading {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--cyan) 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.launch-form__row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.launch-form__input {
  flex: 1 1 220px;
  min-width: 0;
  width: 100%;
  padding: 1rem 1.15rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(2, 6, 16, 0.85);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.launch-form__input::placeholder {
  color: var(--text-muted);
}

.launch-form__input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.12), 0 0 24px rgba(0, 242, 255, 0.08);
}

.launch-form__btn {
  flex: 0 0 auto;
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #020205;
  background: linear-gradient(135deg, var(--cyan), #00ffa3);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 242, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.launch-form__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(0, 242, 255, 0.5);
}

.launch-form__btn:active {
  transform: translateY(0);
}

.launch-form__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.launch-form__status {
  min-height: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.launch-form__status.is-ok {
  color: #00ffa3;
}

.launch-form__status.is-error {
  color: #ff6b9d;
}

/* --- Footer badge --- */
.launch-footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  background: rgba(255, 107, 157, 0.08);
  border: 1px solid rgba(255, 107, 157, 0.35);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.15);
  animation: badgePulse 3s ease-in-out infinite;
}

.launch-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.15);
  }
  50% {
    box-shadow: 0 0 28px rgba(255, 107, 157, 0.28);
  }
}

@keyframes dotBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.launch-footer__legal {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 40ch;
  line-height: 1.5;
}

.launch-footer__legal a {
  color: var(--cyan);
  text-decoration: none;
}

.launch-footer__legal a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .launch-countdown {
    gap: 0.45rem;
  }

  .launch-countdown__unit {
    padding: 0.7rem 0.35rem;
  }

  .launch-countdown__value {
    font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  }
}

@media (max-width: 520px) {
  .launch-countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .launch-form__row {
    flex-direction: column;
  }

  .launch-form__btn {
    width: 100%;
  }
}

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