:root {
  --navy-950: #040b16;
  --navy-900: #071428;
  --navy-800: #0c1f3d;
  --blue-500: #2f6fed;
  --blue-300: #4f8fe8;
  --accent: #7eb0ff;
  --ink: #eef3fb;
  --ink-muted: #9eb2cc;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 50% -15%, #163a72 0%, transparent 55%),
    radial-gradient(80% 50% at 110% 90%, #0a2a4a 0%, transparent 45%),
    linear-gradient(168deg, var(--navy-900) 0%, var(--navy-950) 58%, #030912 100%);
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  position: relative;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.mesh-a {
  width: min(58vw, 460px);
  height: min(58vw, 460px);
  background: #1a4f9a;
  top: 4%;
  left: -10%;
  animation: drift 16s ease-in-out infinite alternate;
}

.mesh-b {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  background: #0d2f5c;
  bottom: 0%;
  right: -8%;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.mesh-c {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  background: #143a6a;
  top: 42%;
  left: 48%;
  opacity: 0.35;
  animation: drift 12s ease-in-out infinite alternate;
  animation-delay: -3s;
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 143, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 143, 232, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  animation: grid-breathe 8s ease-in-out infinite;
}

.constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.horizon {
  position: absolute;
  inset: auto 0 18%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(79, 143, 232, 0.18) 20%,
    rgba(47, 111, 237, 0.45) 50%,
    rgba(79, 143, 232, 0.18) 80%,
    transparent 100%
  );
  transform-origin: center;
  animation: horizon-draw 2.2s var(--ease-out) both;
}

.horizon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 18px rgba(126, 176, 255, 0.45);
  transform: translate(-50%, -50%);
  animation: courier 4s ease-in-out 1.2s infinite;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 44rem);
  text-align: center;
  padding: 2rem 0 3.5rem;
}

.brand {
  display: grid;
  place-items: center;
  margin: 0;
}

.logo {
  width: min(100%, 22rem);
  height: auto;
  overflow: visible;
}

.logo-echo,
.logo-word {
  opacity: 0;
  transform-origin: center;
  animation: logo-in 0.95s var(--ease-out) both;
}

.logo-echo {
  animation-delay: 0.08s;
  transform: translate(5px, 5px);
  animation-name: logo-echo-in;
}

.logo-sheen {
  animation: sheen 3.6s ease-in-out 1.15s infinite;
}

.logo-underline {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: route-draw 1.2s var(--ease-out) 0.55s both;
}

.logo-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pop 0.45s var(--ease-out) 0.7s both;
}

.logo-dot-end {
  animation-delay: 1.05s;
}

.headline {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 5.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
  display: grid;
  gap: 0.2rem;
}

.headline-line {
  display: block;
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise 0.85s var(--ease-out) both;
}

.headline-line:nth-child(1) { animation-delay: 0.45s; }
.headline-line:nth-child(2) { animation-delay: 0.58s; }

.headline-line.accent {
  background: linear-gradient(105deg, var(--blue-300) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.description {
  margin: 1.35rem auto 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.85s var(--ease-out) 0.72s both;
}

.cta {
  margin-top: 2.4rem;
  opacity: 0;
  transform: translateY(0.85rem);
  animation: rise 0.85s var(--ease-out) 0.9s both;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(79, 143, 232, 0.28);
  background: rgba(12, 31, 61, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 999px;
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(126, 176, 255, 0.55);
  animation: ping 1.8s ease-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-echo-in {
  from {
    opacity: 0;
    transform: translate(5px, 14px) scale(0.96);
  }
  to {
    opacity: 0.35;
    transform: translate(5px, 5px) scale(1);
  }
}

@keyframes sheen {
  0%,
  35% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(700px);
  }
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes node-pop {
  from {
    opacity: 0;
    transform: scale(0.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4%, 5%) scale(1.1);
  }
}

@keyframes grid-breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes horizon-draw {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes courier {
  0% {
    left: 8%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 92%;
    opacity: 0;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(126, 176, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(126, 176, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(126, 176, 255, 0);
  }
}

@media (max-width: 480px) {
  .hero {
    width: min(100% - 1.75rem, 44rem);
  }

  .headline {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .logo-echo,
  .logo-word,
  .logo-underline,
  .logo-dot,
  .headline-line,
  .description,
  .cta {
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}
