: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: #020304;
}

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

.arriving-atmosphere {
  overflow: hidden;
}

.arriving-haze {
  background:
    radial-gradient(circle at 50% 36%, rgba(118, 131, 141, 0.085), transparent 24%),
    radial-gradient(circle at 50% 54%, rgba(96, 110, 119, 0.045), transparent 34%);
  filter: blur(42px);
  opacity: 0.76;
  animation: haze-drift 20s ease-in-out infinite alternate;
}

.arriving-beam {
  background: radial-gradient(ellipse at center, rgba(224, 232, 237, 0.08) 0%, rgba(224, 232, 237, 0.02) 22%, transparent 58%);
  transform: translateY(-4%);
  filter: blur(34px);
  opacity: 0.8;
}

.arriving-depth {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 18%),
    linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.42) 100%);
}

.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(760px, 100%);
  display: grid;
  justify-items: center;
  gap: clamp(28px, 5vh, 48px);
  pointer-events: auto;
}

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

.arriving-brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.arriving-wordmark {
  width: clamp(260px, 30vw, 380px);
  opacity: 0;
  animation: logo-rise 1200ms ease forwards;
}

.arriving-copy {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  width: min(420px, 100%);
}

.arriving-copy h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  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.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.arriving-cta {
  margin-top: 14px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid rgba(232, 240, 245, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(22, 26, 30, 0.72), rgba(5, 7, 9, 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;
}

.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-wordmark {
    width: clamp(230px, 42vw, 320px);
  }

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

  .arriving-subline {
    font-size: 0.84rem;
  }
}

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

  .arriving-stage {
    gap: 24px;
  }

  .arriving-copy {
    gap: 10px;
  }

  .arriving-copy h1 {
    max-width: 10ch;
    font-size: clamp(1.8rem, 8.8vw, 2.2rem);
    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;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@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,
  .arriving-wordmark {
    animation: none !important;
  }
}
