/* SpaceX design tokens & typography — sourced from spacex.com styles */
@font-face {
  font-family: D-DIN;
  src:
    url("../fonts/D-DIN.woff2") format("woff2"),
    url("../fonts/D-DIN.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: D-DIN-Bold;
  src: url("../fonts/D-DIN-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root {
  --white-100: rgba(240, 240, 250, 1);
  --white-90: rgba(240, 240, 250, 0.9);
  --white-80: rgba(240, 240, 250, 0.8);
  --white-70: rgba(240, 240, 250, 0.7);
  --white-60: rgba(240, 240, 250, 0.6);
  --white-50: rgba(240, 240, 250, 0.5);
  --white-35: rgba(240, 240, 250, 0.35);
  --white-30: rgba(240, 240, 250, 0.3);
  --white-25: rgba(255, 255, 255, 0.25);
  --white-15: rgba(240, 240, 250, 0.15);
  --white-10: rgba(240, 240, 250, 0.1);
  --black-50: rgba(0, 0, 0, 0.5);
  --black-80: rgba(0, 0, 0, 0.8);
  --gray-80: rgba(37, 38, 40, 0.8);
  --gray-60: rgba(37, 38, 40, 0.6);
  --gray-40: rgba(37, 38, 40, 0.4);
  --canvas-night: #000000;
  --canvas-night-soft: #0a0a0a;
  --hairline-on-dark: #3a3a3f;
  --spx-pill-radius: 32px;
  --spx-header-height: 128px;
}

* {
  box-sizing: border-box;
}

body.app-background,
body {
  margin: 0;
  font:
    400 1rem/1.5rem D-DIN,
    Arial,
    Verdana,
    sans-serif;
  background-color: var(--canvas-night);
  color: var(--white-100);
  min-height: 100vh;
}

p,
td,
h3,
h4,
button {
  font-family: D-DIN, Arial, Verdana, sans-serif;
}

h1,
h2 {
  font-family: D-DIN-Bold, Arial Narrow, Arial, Verdana, sans-serif;
  letter-spacing: 0.02em;
  color: var(--white-100);
  text-transform: uppercase;
  font-weight: 400;
}

h1 {
  font-size: 3rem;
  line-height: 0.95;
}

h2 {
  font-size: 2.25rem;
  line-height: 1.2;
}

h3 {
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--white-100);
}

h4 {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

a {
  color: var(--white-100);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.spx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.spx-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.spx-logo img {
  display: block;
  height: 80px;
  width: auto;
}

.spx-logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.spx-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.spx-nav a {
  font-family: D-DIN, Arial, Verdana, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-100);
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.spx-nav a:hover,
.spx-nav a.active {
  text-decoration: underline;
  background: transparent;
  color: var(--white-100);
}

.spx-nav-dropdown {
  position: relative;
}

.spx-nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.spx-nav-dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
}

.spx-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 11rem;
  padding: 0.75rem 0 0.5rem;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid var(--hairline-on-dark);
  border-radius: 4px;
  z-index: 30;
}

.spx-nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.5rem;
}

.spx-nav-dropdown:hover .spx-nav-dropdown-menu,
.spx-nav-dropdown:focus-within .spx-nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.spx-nav-dropdown-menu a {
  padding: 0.55rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.spx-nav-dropdown-menu a:hover,
.spx-nav-dropdown-menu a.active {
  background: var(--white-10);
  text-decoration: none;
}

.spx-btn-ghost,
.button.primary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--white-100);
  color: var(--white-100);
  font-family: D-DIN, Arial, Verdana, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--spx-pill-radius);
  padding: 18px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.spx-btn-ghost:hover,
.button.primary:hover {
  background: var(--white-10);
  text-decoration: none;
}

.spx-page-hero {
  padding: calc(var(--spx-header-height) + 2.5rem) 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.spx-page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.spx-page-hero .tagline {
  margin: 0;
  color: var(--white-70);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spx-footer {
  padding: 2rem;
  color: var(--white-60);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid var(--hairline-on-dark);
}

@media (max-width: 961px) {
  body {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 0.825rem;
  }

  .spx-header {
    padding: 16px 20px;
  }

  .spx-logo img {
    height: 60px;
  }

  .spx-nav {
    gap: 0.75rem;
  }

  .spx-nav a {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
}