:root {
  --bg-0: #02050f;
  --bg-1: #050d1e;
  --bg-2: #0b1837;
  --card-bg-a: rgba(10, 20, 48, 0.7);
  --card-bg-b: rgba(5, 11, 30, 0.5);
  --text-main: #f3f8ff;
  --text-soft: rgba(209, 224, 255, 0.84);
  --text-muted: rgba(173, 196, 235, 0.62);
  --accent-cyan: #58d7ff;
  --accent-blue: #3f8dff;
  --accent-purple: #9367ff;
  --border-soft: rgba(129, 181, 255, 0.24);
  --shadow-strong: 0 26px 80px rgba(0, 0, 0, 0.56);
  --radius-lg: 28px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --card-shift-x: 0px;
  --card-shift-y: 0px;
  --earth-shift-x: 0px;
  --earth-shift-y: 0px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 25% 15%, #0f1f48 0%, var(--bg-0) 42%, #010309 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

.site-shell {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}

.background-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-gradient {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: gradientDrift 22s ease-in-out infinite alternate;
}

.scene-gradient-a {
  width: min(56vw, 900px);
  height: min(56vw, 900px);
  right: -8%;
  top: -30%;
  background: radial-gradient(circle, rgba(71, 121, 255, 0.45) 0%, rgba(71, 121, 255, 0) 72%);
}

.scene-gradient-b {
  width: min(44vw, 700px);
  height: min(44vw, 700px);
  left: -18%;
  bottom: -35%;
  animation-duration: 28s;
  background: radial-gradient(circle, rgba(90, 225, 255, 0.36) 0%, rgba(90, 225, 255, 0) 74%);
}

.scene-gradient-c {
  width: min(38vw, 560px);
  height: min(38vw, 560px);
  left: 36%;
  top: 8%;
  animation-duration: 32s;
  background: radial-gradient(circle, rgba(145, 112, 255, 0.28) 0%, rgba(145, 112, 255, 0) 76%);
}

.floating-lights {
  position: absolute;
  inset: 0;
}

.light {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(1px);
  background: radial-gradient(circle, rgba(145, 220, 255, 0.7), rgba(145, 220, 255, 0));
  animation: floatPulse 11s ease-in-out infinite;
}

.light-1 {
  width: 13px;
  height: 13px;
  top: 24%;
  left: 17%;
}

.light-2 {
  width: 8px;
  height: 8px;
  top: 68%;
  left: 24%;
  animation-delay: 1.8s;
}

.light-3 {
  width: 10px;
  height: 10px;
  top: 39%;
  right: 26%;
  animation-delay: 3s;
}

.light-4 {
  width: 7px;
  height: 7px;
  top: 17%;
  right: 42%;
  animation-delay: 4.7s;
}

.earth-stage {
  position: absolute;
  width: min(122vmin, 1320px);
  aspect-ratio: 1 / 1;
  right: clamp(-44vmin, -22vw, -8vmin);
  top: 50%;
  transform: translate3d(var(--earth-shift-x), calc(-50% + var(--earth-shift-y)), 0)
    rotate(-11deg);
  will-change: transform;
}

.earth-glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 45%,
    rgba(93, 188, 255, 0.24),
    rgba(32, 111, 252, 0.2) 34%,
    rgba(129, 98, 255, 0.14) 58%,
    rgba(8, 18, 48, 0) 76%
  );
  filter: blur(46px);
  animation: breathe 8.8s ease-in-out infinite;
}

.earth-atmosphere {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(125, 194, 255, 0.42);
  box-shadow:
    0 0 42px rgba(62, 144, 255, 0.28),
    inset 0 0 16px rgba(157, 220, 255, 0.24);
}

.earth-sphere {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 38% 35%, #1f6dc2 0%, #0c2d5f 34%, #040e27 72%, #020813 100%);
  box-shadow:
    inset -90px -40px 120px rgba(0, 0, 0, 0.58),
    inset 35px 10px 60px rgba(138, 198, 255, 0.22),
    0 0 130px rgba(52, 143, 255, 0.28);
}

.earth-surface,
.earth-clouds,
.earth-shading {
  position: absolute;
  inset: -3%;
  border-radius: 50%;
}

.earth-surface {
  background-image: url("./earth-texture.png");
  background-size: 210% 100%;
  background-repeat: repeat-x;
  background-position: 0 50%;
  filter: saturate(1.2) contrast(1.08);
  animation: earthSpin 58s linear infinite;
}

.earth-clouds {
  background-image: url("./cloud-texture.svg");
  background-size: 230% 100%;
  background-repeat: repeat-x;
  background-position: 0 50%;
  mix-blend-mode: screen;
  opacity: 0.36;
  animation: earthClouds 84s linear infinite;
}

.earth-shading {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(95deg, rgba(0, 0, 0, 0.64) 30%, rgba(0, 0, 0, 0.06) 58%, rgba(4, 10, 24, 0.54) 88%);
}

.earth-ring {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(137, 198, 255, 0.16);
  transform: rotateX(70deg);
  opacity: 0.46;
  filter: blur(0.2px);
}

.scene-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 4, 12, 0.9) 0%, rgba(1, 4, 12, 0.47) 38%, rgba(1, 4, 12, 0.62) 100%),
    radial-gradient(circle at center, rgba(8, 18, 45, 0) 46%, rgba(0, 0, 0, 0.68) 100%);
}

.hero-layout {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  justify-items: start;
  padding: clamp(1.3rem, 4vw, 3rem);
}

.hero-card {
  width: min(92vw, 640px);
  border-radius: var(--radius-lg);
  padding: clamp(1.45rem, 3.6vw, 2.6rem);
  background: linear-gradient(145deg, var(--card-bg-a), var(--card-bg-b));
  border: 1px solid var(--border-soft);
  box-shadow:
    var(--shadow-strong),
    inset 0 1px 0 rgba(225, 241, 255, 0.14);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  transform: translate3d(var(--card-shift-x), var(--card-shift-y), 0);
  transition: border-color 360ms ease, box-shadow 360ms ease;
}

.hero-card:hover {
  border-color: rgba(156, 214, 255, 0.38);
  box-shadow:
    0 28px 96px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(235, 248, 255, 0.19);
}

.eyebrow {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  color: rgba(152, 205, 255, 0.84);
}

.hero-title {
  margin: 0.5rem 0 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(2.1rem, 5vw, 4.65rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-wrap: balance;
  background: linear-gradient(110deg, #f5f9ff 12%, #9fd8ff 45%, #b8a0ff 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 1rem 0 0;
  font-size: clamp(1.02rem, 1.8vw, 1.38rem);
  font-weight: 600;
  color: var(--text-soft);
  text-wrap: balance;
}

.hero-description {
  margin: 0.75rem 0 0;
  max-width: 52ch;
  font-size: clamp(0.95rem, 1.35vw, 1.06rem);
  line-height: 1.72;
  color: var(--text-muted);
}

.subscribe-form {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.subscribe-form input {
  width: 100%;
  min-height: 3rem;
  border-radius: 14px;
  border: 1px solid rgba(136, 181, 255, 0.28);
  padding: 0.85rem 1rem;
  background: rgba(5, 12, 28, 0.72);
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.subscribe-form input::placeholder {
  color: rgba(170, 198, 235, 0.55);
}

.subscribe-form input:focus-visible {
  border-color: rgba(128, 211, 255, 0.88);
  box-shadow: 0 0 0 4px rgba(74, 165, 255, 0.18);
  background: rgba(7, 15, 36, 0.85);
}

.subscribe-form button {
  min-height: 3rem;
  border: 0;
  border-radius: 14px;
  padding: 0.82rem 1.2rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f7fbff;
  background: linear-gradient(130deg, #31a3ff 0%, #5d7cff 46%, #8c66ff 100%);
  box-shadow:
    0 12px 22px rgba(64, 128, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.subscribe-form button:hover {
  filter: saturate(1.16) brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 16px 28px rgba(80, 144, 255, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.subscribe-form button:focus-visible {
  outline: 3px solid rgba(125, 211, 255, 0.48);
  outline-offset: 2px;
}

.form-status {
  margin: 0.6rem 0 0;
  min-height: 1.3rem;
  font-size: 0.9rem;
  color: rgba(150, 227, 197, 0.92);
}

.countdown {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
}

.time-box {
  padding: 0.72rem 0.5rem 0.66rem;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(150deg, rgba(20, 32, 66, 0.78), rgba(7, 12, 30, 0.56));
  border: 1px solid rgba(133, 178, 255, 0.23);
}

.time-value {
  display: block;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.56rem);
  font-weight: 700;
  color: rgba(229, 240, 255, 0.95);
}

.time-label {
  margin-top: 0.15rem;
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(167, 192, 228, 0.7);
}

.socials {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.socials a {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(136, 181, 255, 0.27);
  color: rgba(209, 228, 255, 0.92);
  background: rgba(8, 17, 41, 0.58);
  transition: transform 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.socials a svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(136, 220, 255, 0.68);
  color: rgba(223, 245, 255, 1);
  box-shadow: 0 0 14px rgba(94, 183, 255, 0.24);
}

.socials a:focus-visible {
  outline: none;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 760ms var(--ease-smooth),
    transform 760ms var(--ease-smooth);
}

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

@keyframes earthSpin {
  from {
    background-position: 0 50%;
  }

  to {
    background-position: -210% 50%;
  }
}

@keyframes earthClouds {
  from {
    background-position: 0 50%;
  }

  to {
    background-position: -230% 50%;
  }
}

@keyframes gradientDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.98);
    opacity: 0.42;
  }

  50% {
    transform: translate3d(24px, -16px, 0) scale(1.04);
    opacity: 0.56;
  }

  100% {
    transform: translate3d(-14px, 22px, 0) scale(1.08);
    opacity: 0.44;
  }
}

@keyframes floatPulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0.35;
  }

  50% {
    transform: translate3d(-6px, -10px, 0) scale(1.2);
    opacity: 0.95;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.76;
  }

  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .hero-layout {
    justify-items: center;
  }

  .earth-stage {
    right: clamp(-56vmin, -35vw, -16vmin);
    width: min(138vmin, 1200px);
  }

  .scene-vignette {
    background:
      linear-gradient(180deg, rgba(1, 4, 12, 0.72) 0%, rgba(1, 4, 12, 0.45) 36%, rgba(1, 4, 12, 0.82) 100%),
      radial-gradient(circle at center, rgba(8, 18, 45, 0) 50%, rgba(0, 0, 0, 0.68) 100%);
  }
}

@media (max-width: 760px) {
  .hero-layout {
    align-items: end;
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .hero-card {
    width: min(100%, 560px);
    border-radius: 22px;
    padding: 1.22rem;
  }

  .subscribe-form {
    grid-template-columns: 1fr;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .earth-stage {
    width: 172vmin;
    right: -73vmin;
    top: 46%;
    transform: translate3d(var(--earth-shift-x), calc(-50% + var(--earth-shift-y)), 0)
      rotate(-8deg);
  }
}

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

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