:root {
  --bg: #090909;
  --paper: #efeeeb;
  --muted: #aaa39b;
  --line: #3b3b3b;
  --red: #ed372f;
  --red-soft: #ed372f33;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 42%, #44120f 0, transparent 28rem),
    linear-gradient(180deg, #101010 0%, #070707 100%);
}

.texture,
.scanlines,
.grid,
.planet {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -4;
}

.texture {
  background-image: url("assets/background.png");
  background-position: center;
  background-size: cover;
  opacity: 0.43;
}

.scanlines {
  z-index: -2;
  background-image: url("assets/scan-line-noise.png");
  background-size: 560px 560px;
  mix-blend-mode: screen;
  opacity: 0.08;
}

.grid {
  top: auto;
  right: auto;
  width: min(42rem, 38vw);
  height: min(20rem, 38vh);
  background-image: url("assets/grid-effect.png");
  background-position: bottom left;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.36;
}

.planet {
  inset: auto -13vw -24vh auto;
  z-index: -1;
  width: min(42vw, 54rem);
  aspect-ratio: 1;
  background-image: url("assets/planet.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.64;
  filter: saturate(0.92);
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.25rem, 2vw, 1.55rem) clamp(1.5rem, 2.5vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.48rem;
}

.brand img:first-child {
  display: block;
  width: clamp(6rem, 6.5vw, 7.8rem);
  height: auto;
}

.dex-tag {
  width: clamp(1.35rem, 1.55vw, 1.75rem);
  height: auto;
  margin-bottom: 0.25rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.launch-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
  padding: 0 0.95rem;
  box-shadow: 0 18px 44px #000a;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: not-allowed;
}

.launch-button {
  background: var(--paper);
  color: #0b0b0b;
}

.launch-button:disabled {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(19rem, 0.45fr);
  align-items: center;
  min-height: calc(100svh - 5.5rem);
  padding: 0 clamp(1.5rem, 2.5vw, 3rem) clamp(2.25rem, 4vh, 3.25rem);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 40rem;
  margin-left: clamp(0rem, 16vw, 22rem);
  transform: translateY(3.5vh);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.8vw, 0.88rem);
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 38rem;
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.85rem, 2.2vw, 2.45rem);
  font-weight: 900;
  line-height: 1.08;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
  padding: 0 1.1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.primary-action {
  background: var(--red);
  color: #120d0c;
  box-shadow:
    inset 0 0 0 1px #ff736d,
    0 18px 40px #000a;
}

.primary-action span {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 900;
}

.orbital {
  position: relative;
  justify-self: center;
  width: min(22vw, 24.5rem);
  min-width: 18rem;
  aspect-ratio: 1;
  transform: translate3d(
    calc(-4.8vw + (var(--mx, 0) * -8px)),
    calc(3vh + (var(--my, 0) * -8px)),
    0
  );
}

.orbital::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background-image: url("assets/planet.png");
  background-position: 58% 47%;
  background-size: 112%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 24px 64px #000);
  opacity: 0.78;
}

.orbital-ring {
  position: absolute;
  inset: 1.45rem;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px #000,
    0 0 92px #ed372f12;
}

.orbital-ring::before,
.orbital-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.orbital-ring::before {
  inset: 19%;
  border: 1px solid #ed372f2a;
}

.orbital-ring::after {
  inset: 38%;
  border: 1px solid #ffffff14;
}

.orbital-frame span {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-color: #ffffffc7;
  opacity: 0.86;
}

.orbital-frame span:nth-child(1) {
  top: 0;
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.orbital-frame span:nth-child(2) {
  top: 0;
  right: 0;
  border-top: 1px solid;
  border-right: 1px solid;
}

.orbital-frame span:nth-child(3) {
  right: 0;
  bottom: 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.orbital-frame span:nth-child(4) {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .site-shell {
    min-height: 100svh;
    overflow: hidden;
  }

  .topbar {
    padding: 1rem;
  }

  .launch-button {
    min-height: 2.45rem;
    padding: 0 0.82rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2.1rem;
    min-height: calc(100svh - 4.9rem);
    padding: 3rem 1rem 2.5rem;
  }

  .hero-copy {
    max-width: 24rem;
    margin-left: 0;
    transform: none;
  }

  h1 {
    max-width: 22rem;
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .orbital {
    align-self: flex-end;
    width: min(17rem, 72vw);
    min-width: 0;
    opacity: 0.78;
    transform: translate3d(0, 0, 0);
  }

  .planet {
    width: 34rem;
    right: -17rem;
    bottom: -11rem;
  }

  .grid {
    width: 34rem;
    opacity: 0.28;
  }
}

@media (max-width: 520px) {
  .brand img:first-child {
    width: 5.35rem;
  }

  .dex-tag {
    width: 1.32rem;
  }

  .hero {
    justify-content: flex-start;
    padding-top: 4.4rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 17rem;
  }

  .primary-action {
    width: 100%;
  }
}

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