:root {
  --bg: #020304;
  --bg-soft: #06080a;
  --panel: rgba(10, 12, 15, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2f5;
  --muted: rgba(223, 231, 236, 0.58);
  --muted-low: rgba(223, 231, 236, 0.36);
  --glow: rgba(213, 226, 234, 0.16);
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #020304;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html,
body.arriving-page {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a,
button,
input {
  font: inherit;
}

.arriving-page {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.018), transparent 24%),
    radial-gradient(circle at 50% 48%, rgba(113, 128, 140, 0.04), transparent 34%),
    #020304;
}

.arriving-noise,
.arriving-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arriving-noise {
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.09) 0 0.7px, transparent 0.9px),
    radial-gradient(circle at 76% 48%, rgba(255, 255, 255, 0.05) 0 0.8px, transparent 1px);
  background-size: 26px 26px, 30px 30px;
  mix-blend-mode: soft-light;
}

.arriving-haze {
  background:
    radial-gradient(circle at 50% 36%, rgba(140, 160, 173, 0.06), transparent 28%),
    radial-gradient(circle at 42% 58%, rgba(122, 137, 148, 0.05), transparent 30%);
  filter: blur(34px);
  opacity: 0.66;
  animation: haze-drift 18s ease-in-out infinite alternate;
}

.arriving-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  padding: calc(18px + env(safe-area-inset-top)) 24px calc(22px + env(safe-area-inset-bottom));
}

.arriving-stage {
  position: relative;
  width: min(1120px, 100%);
  height: min(84dvh, 900px);
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  pointer-events: none;
}

.arriving-brand,
.arriving-copy {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.arriving-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(10px, 2.2vh, 22px);
}

.arriving-wordmark {
  width: clamp(220px, 24vw, 300px);
  opacity: 0;
  animation: logo-rise 1600ms ease forwards;
}

.arriving-visual {
  position: relative;
  width: min(1180px, 96vw);
  height: clamp(280px, 40vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.aircraft-hero,
.aircraft-light,
.aircraft-sweep,
.aircraft-floor {
  position: absolute;
}

.aircraft-hero {
  width: min(1160px, 96vw);
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter:
    drop-shadow(0 48px 140px rgba(0, 0, 0, 0.82))
    drop-shadow(0 0 24px rgba(203, 219, 228, 0.04));
}

.aircraft-floor {
  left: 50%;
  bottom: 10px;
  width: min(780px, 68vw);
  height: clamp(42px, 7vw, 78px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 226, 234, 0.12), transparent 72%);
  filter: blur(20px);
  opacity: 0.58;
}

.aircraft-light {
  top: 52%;
  width: min(360px, 28vw);
  height: min(220px, 16vw);
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.15;
}

.aircraft-light-left {
  left: calc(50% - min(340px, 28vw));
  transform: translate(-50%, -12%);
  background: radial-gradient(circle, rgba(232, 240, 245, 0.16), transparent 68%);
}

.aircraft-light-right {
  left: calc(50% + min(340px, 28vw));
  transform: translate(-50%, -12%);
  background: radial-gradient(circle, rgba(206, 219, 227, 0.12), transparent 68%);
}

.aircraft-sweep {
  width: min(460px, 36vw);
  height: min(200px, 16vw);
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%) rotate(-3deg);
  background: linear-gradient(96deg, transparent 18%, rgba(232, 240, 245, 0.12) 48%, transparent 78%);
  filter: blur(20px);
  opacity: 0.16;
  animation: sweep-shift 14s ease-in-out infinite;
}

.arriving-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  margin-top: clamp(8px, 1.8vh, 18px);
}

.arriving-copy h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.arriving-subline {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.diag-visible {
  margin: 0;
  color: rgba(241, 243, 245, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arriving-cta {
  margin-top: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(232, 240, 245, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(24, 28, 32, 0.52), rgba(7, 9, 11, 0.98)),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 38px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.arriving-cta:hover,
.arriving-cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(232, 240, 245, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(205, 220, 228, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.34);
}

.arriving-powered {
  margin: 0;
  position: absolute;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  color: var(--muted-low);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.access-modal[hidden] {
  display: none;
}

.access-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
}

.access-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
}

.access-modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100vw - 28px));
  margin: 12vh auto 0;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    rgba(9, 11, 13, 0.94);
  box-shadow: var(--shadow);
}

.access-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.access-modal-form {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.modal-field {
  display: grid;
  gap: 8px;
}

.modal-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-field input {
  width: 100%;
  padding: 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.modal-field input::placeholder {
  color: rgba(223, 231, 236, 0.34);
}

.modal-field input:focus {
  border-color: rgba(232, 240, 245, 0.16);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 0 1px rgba(232, 240, 245, 0.04),
    0 0 24px rgba(205, 220, 228, 0.08);
}

.modal-submit {
  min-height: 48px;
  border: 1px solid rgba(232, 240, 245, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(24, 28, 32, 0.48), rgba(7, 9, 11, 0.92)),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.modal-response {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.legal-page {
  background:
    radial-gradient(circle at 50% 18%, rgba(143, 160, 173, 0.06), transparent 24%),
    #040506;
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.88), rgba(5, 6, 7, 0.54));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-wordmark {
  width: 136px;
  opacity: 0.97;
}

.brand-glyph {
  opacity: 0.7;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(232, 240, 245, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(24, 28, 32, 0.48), rgba(7, 9, 11, 0.92)),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-main {
  position: relative;
  z-index: 1;
  padding: 76px 0 56px;
}

.legal-shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.legal-panel {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    rgba(9, 11, 13, 0.94);
  box-shadow: var(--shadow);
}

.legal-intro h1 {
  margin: 12px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.eyebrow {
  margin: 0;
  color: var(--muted-low);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal-intro p,
.legal-section p,
.legal-section li,
.legal-section a {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 820px) {
  .arriving-stage {
    height: min(82dvh, 740px);
  }

  .aircraft-hero {
    width: min(1040px, 126vw);
  }

  .aircraft-sweep {
    width: min(340px, 56vw);
    height: min(156px, 24vw);
  }

  .arriving-wordmark {
    width: clamp(200px, 48vw, 260px);
  }

  .arriving-copy {
    margin-top: 6px;
  }

  .arriving-copy h1 {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
  }

  .arriving-subline {
    font-size: 0.88rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 480px) {
  .arriving-shell {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .arriving-stage {
    height: min(80dvh, 620px);
    grid-template-rows: auto minmax(220px, 1fr) auto;
  }

  .aircraft-hero {
    width: 165vw;
  }

  .aircraft-light {
    width: 42vw;
    height: 26vw;
  }

  .aircraft-floor {
    width: 96vw;
    height: 52px;
  }

  .aircraft-sweep {
    width: 54vw;
    height: 24vw;
  }

  .arriving-copy {
    gap: 8px;
    margin-top: 0;
  }

  .arriving-copy h1 {
    max-width: 10ch;
    font-size: clamp(1.75rem, 8.6vw, 2.15rem);
    line-height: 1.02;
  }

  .arriving-subline {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }

  .arriving-cta {
    min-height: 44px;
    padding: 0 20px;
  }

  .arriving-powered {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .access-modal-panel {
    margin-top: max(36px, calc(10vh + env(safe-area-inset-top)));
    padding: 26px 18px 20px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }
}

.legal-section h2 {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.legal-section ul {
  margin: 0;
  padding-left: 18px;
}

@keyframes logo-rise {
  from {
    opacity: 0.18;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sweep-shift {
  0%,
  100% {
    opacity: 0.06;
    transform: translate(-54%, -50%) rotate(-4deg);
  }
  50% {
    opacity: 0.16;
    transform: translate(-46%, -50%) rotate(-2deg);
  }
}

@keyframes haze-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, -1%, 0) scale(1.02);
  }
}

@media (max-width: 720px) {
  .header-shell,
  .legal-shell {
    width: calc(100vw - 28px);
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-panel,
  .access-modal-panel {
    padding: 22px 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arriving-haze,
  .aircraft-sweep,
  .arriving-wordmark {
    animation: none !important;
  }
}
