@font-face {
  font-family: "Nacelle";
  src: url("./fonts/nacelle-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nacelle";
  src: url("./fonts/nacelle-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color: #e5e7eb;
  background: #05060c;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #05060c;
}

body {
  overflow-x: hidden;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-start;
  overflow: hidden;
  padding: 7rem 1.5rem 5rem;
  isolation: isolate;
}

#scene {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 700ms ease;
}

#scene.is-ready {
  opacity: 1;
}

.logo-fallback {
  position: absolute;
  z-index: -1;
  top: 73%;
  right: -22%;
  width: 16rem;
  height: 16rem;
  transform: translateY(-50%);
  opacity: 1;
  transition: opacity 700ms ease;
}

.logo-fallback.is-hidden {
  opacity: 0;
}

.fallback-mark {
  position: absolute;
  inset: 13%;
  animation: fallback-spin 22s linear infinite;
}

.fallback-mark span {
  position: absolute;
  left: 50%;
  width: 42%;
  height: 2.25rem;
  transform-origin: left center;
  border-radius: 999px;
  background: linear-gradient(90deg, #a5b4fc, #6366f1 58%, #1e1b4b);
  box-shadow: 0 0 46px rgb(99 102 241 / 48%);
}

.fallback-mark span:nth-child(1) {
  top: 17%;
  transform: translateX(-25%);
}

.fallback-mark span:nth-child(2) {
  top: 50%;
  left: 68%;
  transform: translateY(-25%) rotate(90deg);
}

.fallback-mark span:nth-child(3) {
  top: 75%;
  transform: translateX(-25%) rotate(180deg);
}

.fallback-mark span:nth-child(4) {
  top: 50%;
  left: 32%;
  transform: translateY(-25%) rotate(-90deg);
}

.fallback-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.25rem;
  height: 2.25rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #c7d2fe;
  box-shadow: 0 0 45px rgb(165 180 252 / 90%);
}

.fallback-ring {
  position: absolute;
  border: 1px solid rgb(165 180 252 / 20%);
  border-radius: 50%;
  animation: fallback-spin 32s linear infinite;
}

.fallback-ring-outer {
  inset: 4%;
}

.fallback-ring-inner {
  inset: 18%;
  border-color: rgb(165 180 252 / 15%);
  animation-direction: reverse;
  animation-duration: 26s;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  margin: 0 auto;
}

.copy {
  max-width: 36rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: #a5b4fc;
  font-family: "Nacelle", Inter, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

h1 {
  margin: 0;
  color: #fff;
  font-family: "Nacelle", Inter, sans-serif;
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.description {
  max-width: 26rem;
  margin: 1.75rem auto 0;
  color: rgb(224 231 255 / 65%);
  font-size: 1rem;
  line-height: 1.75;
}

.bottom-fade {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 10rem;
  pointer-events: none;
  background: linear-gradient(to top, #05060c, transparent);
}

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

@media (min-width: 640px) {
  .hero {
    align-items: center;
    padding: 0;
  }

  .logo-fallback {
    top: 50%;
    right: -2%;
    width: 20rem;
    height: 20rem;
  }

  .hero-content {
    padding: 0 2.5rem;
  }

  .copy {
    text-align: left;
  }

  .description {
    margin-left: 0;
  }
}

@media (min-width: 768px) {
  .logo-fallback {
    right: 4%;
    width: 28rem;
    height: 28rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fallback-mark,
  .fallback-ring {
    animation: none;
  }

  #scene,
  .logo-fallback {
    transition: none;
  }
}