:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #b8c4d6;
  --panel: rgba(7, 13, 27, 0.9);
  --panel-border: rgba(255, 255, 255, 0.18);
  --accent: #ffffff;
  --accent-ink: #07101f;
  --focus: #9bdcff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #020713;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.space-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(2, 7, 19, 0.15), rgba(2, 7, 19, 0.68) 54%, #020713 100%),
    url("assets/space-background.jpg") center / cover fixed,
    #020713;
}

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

.landing::before {
  position: absolute;
  inset: 12% 18%;
  z-index: -1;
  content: "";
  background: radial-gradient(circle, rgba(155, 220, 255, 0.16), transparent 62%);
  filter: blur(18px);
}

.spaceman {
  position: absolute;
  right: clamp(1rem, 8vw, 8rem);
  bottom: clamp(3.5rem, 10vw, 7rem);
  z-index: -1;
  width: clamp(11rem, 28vw, 25rem);
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.48));
  transform: rotate(5deg);
  user-select: none;
  pointer-events: none;
}

.landing-content {
  display: grid;
  justify-items: center;
  width: min(100%, 46rem);
  gap: 1rem;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 5.1rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.62);
}

.landing-copy {
  max-width: 38rem;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.55;
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.72);
}

.contact-trigger,
.submit-button {
  min-width: 12rem;
  min-height: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.contact-trigger {
  box-shadow:
    0 0 36px rgba(155, 220, 255, 0.18),
    0 22px 90px rgba(0, 0, 0, 0.44);
}

.contact-trigger:hover,
.submit-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 42px rgba(155, 220, 255, 0.28),
    0 24px 90px rgba(0, 0, 0, 0.5);
}

.contact-trigger:focus-visible,
.submit-button:focus-visible,
.modal-close:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-footer {
  position: fixed;
  right: 1.25rem;
  bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: rgba(248, 251, 255, 0.74);
  font-size: 0.85rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(1, 5, 15, 0.76);
  backdrop-filter: blur(10px);
}

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

.contact-modal {
  position: relative;
  width: min(100%, 32rem);
  max-height: min(44rem, calc(100vh - 2.5rem));
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.54);
  padding: 2rem;
}

.contact-modal h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.contact-modal form {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.contact-modal label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-modal input,
.contact-modal textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  padding: 0.82rem 0.9rem;
}

.contact-modal textarea {
  resize: vertical;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.submit-button {
  width: 100%;
  margin-top: 0.8rem;
}

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

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(2, 7, 19, 0.84), rgba(2, 7, 19, 0.94)),
    url("assets/space-background.jpg") center / cover fixed,
    #020713;
  color: var(--ink);
}

.legal-shell {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  padding: 4rem 0;
}

.legal-shell nav {
  margin-bottom: 2rem;
}

.legal-shell nav a {
  color: var(--muted);
  text-decoration: none;
}

.legal-shell nav a:hover {
  text-decoration: underline;
}

.legal-shell h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.legal-shell h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-shell a {
  color: #dfefff;
}

.legal-shell ul {
  padding-left: 1.2rem;
}

@media (max-width: 560px) {
  .space-page,
  .legal-page {
    background-attachment: scroll;
  }

  .landing {
    min-height: 100svh;
    padding: 1.5rem 1rem 4.5rem;
  }

  .spaceman {
    right: 50%;
    bottom: 4.6rem;
    width: min(54vw, 12rem);
    opacity: 0.44;
    transform: translateX(50%) rotate(4deg);
  }

  .landing-content {
    gap: 0.85rem;
    transform: translateY(-1.5rem);
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .landing h1 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 12vw, 3.6rem);
  }

  .landing-copy {
    max-width: 20rem;
    margin-bottom: 0.35rem;
  }

  .contact-trigger,
  .submit-button {
    width: min(100%, 18rem);
  }

  .site-footer {
    right: 50%;
    transform: translateX(50%);
  }

  .contact-modal {
    width: min(100%, calc(100vw - 1rem));
    max-height: calc(100svh - 1rem);
    padding: 1.25rem;
  }
}

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