:root {
  color-scheme: dark;
  --home-bg: #020812;
  --home-text: #f4f8fb;
  --home-muted: #a6b7c3;
  --home-line: rgba(157, 198, 221, 0.18);
  --home-blue: #4fc5f7;
  --home-blue-soft: rgba(79, 197, 247, 0.14);
  --home-width: 1240px;
  --home-header: 86px;
}

html:has(.landing-page),
body:has(.landing-page) {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--home-bg);
}

.landing-page,
.landing-page * {
  box-sizing: border-box;
}

.landing-page {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  color: var(--home-text);
  background: var(--home-bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.landing-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 8, 18, 0.99) 0%, rgba(2, 8, 18, 0.92) 35%, rgba(2, 8, 18, 0.4) 54%, rgba(2, 8, 18, 0.04) 78%),
    linear-gradient(180deg, rgba(2, 8, 18, 0.08), rgba(2, 8, 18, 0.38));
}

.landing-page a {
  color: inherit;
  text-decoration: none;
}

.landing-page img,
.landing-page canvas {
  max-width: 100%;
}

.section-shell,
.header-inner {
  width: min(var(--home-width), calc(100% - 72px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  color: #001018;
  background: var(--home-blue);
  font: 700 0.82rem/1 "Segoe UI", sans-serif;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--home-header);
  border-bottom: 1px solid transparent;
  transition: height 260ms ease, border-color 260ms ease, background-color 260ms ease;
}

.site-header.is-scrolled {
  height: 72px;
  border-color: var(--home-line);
  background: rgba(2, 8, 18, 0.88);
  backdrop-filter: blur(18px) saturate(1.15);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-brand img {
  display: block;
  width: 168px;
  max-height: 54px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(147, 194, 219, 0.16);
  border-radius: 999px;
  background: rgba(4, 16, 28, 0.48);
  backdrop-filter: blur(14px);
}

.primary-nav .nav-group {
  display: contents;
}

.primary-nav a {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #aebdca;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.primary-nav .nav-login {
  min-width: 124px;
  gap: 9px;
  margin-left: 3px;
  color: #00121c;
  background: var(--home-blue);
}

.primary-nav .nav-login:hover,
.primary-nav .nav-login:focus-visible {
  color: #00121c;
  background: #7bd8ff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(115, 199, 236, 0.32);
  border-radius: 50%;
  color: #fff;
  background: rgba(4, 16, 28, 0.76);
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

.landing-page main {
  position: relative;
  z-index: 2;
  height: 100%;
}

.hero {
  height: 100%;
  min-height: 620px;
  padding-top: var(--home-header);
  display: grid;
  grid-template-columns: minmax(440px, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
  padding-bottom: 2vh;
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b7cad7;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 32px;
  height: 1px;
  background: var(--home-blue);
  box-shadow: 0 0 16px rgba(79, 197, 247, 0.7);
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  color: var(--home-text);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(4.4rem, 6.2vw, 6.65rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  color: var(--home-blue);
  font-style: normal;
  font-weight: 700;
}

.hero-lede {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  min-width: 180px;
  color: #00121c !important;
  background: var(--home-blue);
  box-shadow: 0 14px 42px rgba(23, 151, 208, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #7bd8ff;
}

.button-quiet {
  color: #d8e7ef;
  border-color: rgba(160, 203, 224, 0.24);
  background: rgba(5, 18, 31, 0.42);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: rgba(121, 210, 250, 0.48);
  background: rgba(9, 32, 50, 0.62);
}

.hero-note {
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #718998;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-note span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--home-blue);
}

.earth-stage {
  min-width: 0;
  min-height: 56vh;
  pointer-events: none;
}

body:has(.landing-page) > .orbit-moon,
.landing-page .site-aircraft-layer,
.landing-page [class*="aircraft"],
.landing-page [class*="airliner"],
.landing-page .hero-airspace::before,
.landing-page .hero-airspace::after {
  display: none !important;
}

@media (max-width: 1120px) {
  .section-shell,
  .header-inner {
    width: min(var(--home-width), calc(100% - 48px));
  }

  .primary-nav a {
    padding-inline: 9px;
    font-size: 0.62rem;
  }

  .primary-nav .nav-login {
    min-width: 110px;
  }

  .hero {
    grid-template-columns: minmax(410px, 0.92fr) minmax(340px, 1.08fr);
  }
}

@media (max-width: 900px) {
  :root {
    --home-header: 76px;
  }

  .section-shell,
  .header-inner {
    width: min(100% - 36px, var(--home-width));
  }

  .site-brand img {
    width: 150px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    padding: 104px 24px 32px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    border: 0;
    border-radius: 0;
    background: rgba(2, 8, 18, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav a {
    min-height: 54px;
    padding: 0;
    justify-content: space-between;
    border-bottom: 1px solid var(--home-line);
    border-radius: 0;
    color: #d7e5ed;
    font-size: 0.76rem;
  }

  .primary-nav .nav-login {
    min-height: 48px;
    margin: 22px 0 0;
    padding-inline: 18px;
    justify-content: center;
    border: 0;
    border-radius: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0;
  }

  .hero-copy {
    max-width: 630px;
    padding-top: 30px;
  }

  .hero h1 {
    max-width: 590px;
    font-size: clamp(3.75rem, 10vw, 5.4rem);
  }

  .hero-lede {
    max-width: 540px;
  }

  .earth-stage {
    display: none;
  }

  .landing-page::before {
    background:
      linear-gradient(90deg, rgba(2, 8, 18, 0.96) 0%, rgba(2, 8, 18, 0.78) 58%, rgba(2, 8, 18, 0.24) 100%),
      linear-gradient(180deg, rgba(2, 8, 18, 0.18), rgba(2, 8, 18, 0.7));
  }
}

@media (max-width: 620px) {
  .section-shell,
  .header-inner {
    width: min(100% - 28px, var(--home-width));
  }

  .hero-copy {
    padding-top: 20px;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 0.6rem;
    letter-spacing: 0.11em;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.5rem);
    line-height: 0.9;
  }

  .hero-lede {
    margin-top: 24px;
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 26px;
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-note {
    margin-top: 22px;
    font-size: 0.57rem;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .hero h1 {
    font-size: clamp(3.75rem, 5.5vw, 5.4rem);
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .hero-lede {
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-note {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .primary-nav,
  .button,
  .menu-toggle > span:not(.sr-only) {
    transition: none;
  }
}
