:root {
  color-scheme: dark;
  --bg: #000;
  --surface: rgba(7, 11, 18, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --accent-start: #6b5bff;
  --accent-end: #36e4da;
  --text: #f5f7ff;
  --muted: rgba(245, 247, 255, 0.65);
  --danger: #ff6b6b;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 2.5rem clamp(1.5rem, 4vw, 4rem) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  background: #000;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Crect width="1" height="1" fill="white"/%3E%3C/svg%3E');
  mix-blend-mode: soft-light;
  z-index: 0;
}

.background-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 90%);
}

.glow {
  position: absolute;
  width: clamp(240px, 35vw, 480px);
  height: clamp(240px, 35vw, 520px);
  background: radial-gradient(circle at 30% 20%, rgba(107, 91, 255, 0.65), transparent 70%);
  filter: blur(40px);
  opacity: 0.6;
  animation: pulse 8s ease-in-out infinite;
}

.glow-right {
  right: 5%;
  top: 10%;
  background: radial-gradient(circle at 70% 30%, rgba(54, 228, 218, 0.7), transparent 70%);
  animation-delay: 2s;
}

.glow-left {
  left: 0;
  bottom: 15%;
}

.grid-overlay {
  position: absolute;
  inset: 15% 10% 10%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  opacity: 0.12;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  filter: drop-shadow(0 25px 65px rgba(0, 0, 0, 0.45));
  animation: float 12s ease-in-out infinite;
}

.planet-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(60%, 780px);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0)),
    url('assets/hero-globe-new.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(-8%);
  filter: saturate(1.18);
  mix-blend-mode: screen;
  animation: sweep 1.3s ease-out forwards;
  pointer-events: none;
}

.form-stack {
  position: relative;
  padding-top: clamp(3rem, 9vw, 5.5rem);
  z-index: 1;
}

.page-header,
.page-footer,
.hero-card {
  width: min(1100px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 44px;
}

.brand img {
  height: 120px;
  width: auto;
  filter: invert(1) brightness(1.8) drop-shadow(0 8px 25px rgba(0, 0, 0, 0.85));
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  margin-top: clamp(2rem, 5vw, 6rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  animation: fade-up 1.2s ease forwards;
  position: relative;
  overflow: hidden;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.03em;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.lede {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 620px;
  color: var(--muted);
  margin: 0;
}

.waitlist {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.waitlist input {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
  transition: border 0.3s ease, background 0.3s ease;
}

.waitlist input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.waitlist button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #050608;
  background-image: linear-gradient(120deg, var(--accent-start), var(--accent-end));
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 15px 35px rgba(54, 228, 218, 0.3);
}

.waitlist button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.waitlist button:hover {
  transform: translateY(-2px);
}

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

.waitlist .helper {
  grid-column: span 2;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.recaptcha-wrapper {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: scale(0.92);
  transform-origin: left;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  margin-bottom: 0.25rem;
}

.waitlist .success {
  grid-column: span 2;
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent-end);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease;
}

.waitlist.success-visible .success {
  opacity: 1;
}

.meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: -0.75rem;
  position: relative;
  font-size: 0.95rem;
}

.avatar::before {
  content: attr(data-name);
}

.avatar-count {
  background: rgba(107, 91, 255, 0.35);
  border-color: rgba(107, 91, 255, 0.65);
}

.meta p {
  margin: 0;
  font-size: 0.95rem;
}

.page-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(15px);
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(120px) scale(0.9);
  }
  100% {
    opacity: 0.85;
    transform: translateY(0) scale(1);
  }
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateX(-20%);
  }
  100% {
    opacity: 0.85;
    transform: translateX(0);
  }
}

@media (max-width: 720px) {
  .page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .page-header .brand {
    justify-content: center;
  }

  .page-header .pill {
    display: none;
  }

  .waitlist {
    grid-template-columns: 1fr;
  }

  .waitlist button,
  .waitlist input,
  .waitlist .helper,
  .waitlist .success {
    grid-column: 1;
  }

  .hero-card {
    padding: 2rem;
    background: rgba(5, 7, 12, 0.45);
    backdrop-filter: blur(6px);
    border-color: rgba(255, 255, 255, 0.03);
  }

  .form-stack {
    padding-top: clamp(3rem, 20vw, 6rem);
  }

  .planet-overlay {
    width: 100%;
    background-position: center;
    mix-blend-mode: normal;
  }

  .waitlist input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .waitlist button {
    width: 100%;
    justify-content: center;
  }

  .recaptcha-wrapper {
    justify-content: center;
    transform: scale(0.9);
  }
}
