:root {
  --bg: #0b0b0f;
  --panel: #161622;
  --cyan: #3de0ff;
  --cyan-dim: #7ad7f0;
  --hot: #ff4d8d;
  --muted: #5a7a88;
  --line: #2a2a3d;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

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

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

body {
  min-height: 100vh;
  color: var(--cyan);
  background: var(--bg);
  font-family: var(--font-body);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.atmosphere {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(61, 224, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 85%, rgba(255, 77, 141, 0.1), transparent 50%),
    linear-gradient(165deg, #0b0b0f 0%, #101018 45%, #0b0b0f 100%);
  z-index: -2;
}

.grid-glow {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 224, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 224, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  z-index: -1;
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 56px 56px, 56px 56px;
  }
}

.hero {
  flex: 1;
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 7rem) 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "brand stage"
    "title stage"
    "lede stage"
    "cta stage";
  column-gap: clamp(2rem, 6vw, 5rem);
  align-content: center;
  min-height: calc(100vh - 4.5rem);
}

.brand {
  grid-area: brand;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--cyan);
  opacity: 0;
  animation: rise 0.8s ease forwards;
}

h1 {
  grid-area: title;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  color: #e8f9ff;
  max-width: 16ch;
  opacity: 0;
  animation: rise 0.8s ease 0.12s forwards;
}

.lede {
  grid-area: lede;
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--cyan-dim);
  opacity: 0;
  animation: rise 0.8s ease 0.22s forwards;
}

.cta-row {
  grid-area: cta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  opacity: 0;
  animation: rise 0.8s ease 0.32s forwards;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  background: var(--cyan);
  color: #061018;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 rgba(61, 224, 255, 0);
}

.cta:hover {
  background: #7aedff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(61, 224, 255, 0.18);
}

.cta:active {
  transform: translateY(0);
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage {
  grid-area: stage;
  position: relative;
  min-height: clamp(260px, 42vh, 420px);
  display: grid;
  place-items: center;
  opacity: 0;
  animation: rise 1s ease 0.18s forwards;
}

.cursor-mark {
  width: min(220px, 48vw);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(61, 224, 255, 0.2));
  animation: cursorFloat 4.5s ease-in-out infinite;
  z-index: 1;
}

.cursor-body {
  transform-origin: 30% 20%;
  animation: cursorNudge 4.5s ease-in-out infinite;
}

.orbit {
  position: absolute;
  width: min(340px, 70vw);
  height: min(340px, 70vw);
  border: 1px solid rgba(61, 224, 255, 0.18);
  border-radius: 50%;
  animation: spin 22s linear infinite;
}

.orbit::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 16px rgba(255, 77, 141, 0.7);
}

.orbit-b {
  width: min(240px, 52vw);
  height: min(240px, 52vw);
  border-color: rgba(255, 77, 141, 0.2);
  animation-direction: reverse;
  animation-duration: 16s;
}

.orbit-b::before {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(61, 224, 255, 0.7);
}

.foot {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot a {
  color: var(--cyan-dim);
  text-decoration: none;
}

.foot a:hover {
  color: var(--cyan);
}

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

@keyframes cursorFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -14px);
  }
}

@keyframes cursorNudge {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-4deg);
  }
}

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

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "stage"
      "title"
      "lede"
      "cta";
    padding-top: 3rem;
    min-height: auto;
  }

  .brand {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .stage {
    min-height: 240px;
    margin: 0.5rem 0 1.5rem;
  }

  h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .grid-glow,
  .brand,
  h1,
  .lede,
  .cta-row,
  .stage,
  .cursor-mark,
  .cursor-body,
  .orbit {
    animation: none !important;
    opacity: 1 !important;
  }
}
