:root {
  --bg: #020617;
  --surface: #020F2F;
  --text: #E0F2FE;
  --muted: #7DD3FC;
  --primary: #38BDF8;
  --secondary: #818CF8;
  --accent: #22D3EE;
  --border: rgba(224,242,254,0.12);
  --font: "Avenir Next", "Segoe UI", Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  --max: 1200px;
  --cosmos: cosmos;
  --science: science;
  --exploration: exploration;
  --vast: vast;
  --dark: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: #000000;
  background-image:
    radial-gradient(ellipse 80% 50% at 12% -8%, rgba(56, 189, 248, 0.16), transparent 58%),
    radial-gradient(ellipse 60% 40% at 90% 8%, rgba(34, 211, 238, 0.12), transparent 52%),
    linear-gradient(168deg, #000000 0%, var(--bg) 42%, #000000 100%);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

body::before {
  content: "cosmos science exploration";
  position: fixed;
  inset: 0;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, rgba(224, 242, 254, 0.7), transparent),
    radial-gradient(1px 1px at 22% 62%, rgba(125, 211, 252, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 41% 28%, rgba(224, 242, 254, 0.45), transparent),
    radial-gradient(1px 1px at 58% 74%, rgba(34, 211, 238, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 73% 16%, rgba(224, 242, 254, 0.5), transparent),
    radial-gradient(1px 1px at 86% 48%, rgba(56, 189, 248, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 94% 82%, rgba(224, 242, 254, 0.4), transparent),
    radial-gradient(1px 1px at 14% 88%, rgba(129, 140, 248, 0.55), transparent),
    radial-gradient(1px 1px at 33% 8%, rgba(224, 242, 254, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 67% 44%, rgba(125, 211, 252, 0.4), transparent);
  animation: star-drift 52s linear infinite;
}

body::after {
  content: "vast dark";
  position: fixed;
  inset: 0;
  font-size: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 28% 36%, rgba(56, 189, 248, 0.08), transparent 42%),
    radial-gradient(circle at 74% 68%, rgba(34, 211, 238, 0.07), transparent 38%);
  animation: space-zoom 40s ease-in-out infinite alternate;
}

@keyframes star-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-22px, 14px, 0); }
}

@keyframes space-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.cosmos,
.science,
.exploration,
.vast,
.dark {
  --style-kit: 1;
}

body > * {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

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

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

a:hover {
  color: var(--accent);
}

.disclosure-banner {
  position: relative;
  width: 100%;
  padding: 8px 16px;
  background: linear-gradient(to right, var(--primary) 50%, #ffffff 50%);
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
}

.disclosure-light,
.disclosure-dark {
  display: block;
  font-size: 12px;
}

.disclosure-light {
  color: #ffffff;
  clip-path: inset(0 50% 0 0);
}

.disclosure-dark {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 8px 16px;
  color: #020617;
  clip-path: inset(0 0 0 50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #000000;
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.08);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
}

.brand-lockup:hover {
  color: var(--text);
}

.brand-lockup img {
  width: 28px;
  height: 38px;
  object-fit: contain;
}

.brand-name {
  position: relative;
}

.brand-name::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}

.nav-links a {
  color: var(--text);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.nav-links a:hover {
  background: rgba(224, 242, 254, 0.08);
  color: var(--text);
}

.nav-div {
  color: rgba(224, 242, 254, 0.35);
  font-size: 0.72rem;
  padding: 0 2px;
  font-weight: 300;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  box-shadow: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  box-shadow: 0 0 6px var(--accent);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #000000;
  transform: translateX(100%);
  transition: transform 0.55s ease;
  z-index: 320;
  padding: 72px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: -24px 0 60px rgba(56, 189, 248, 0.12);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer a {
  color: var(--text);
  padding: 12px 4px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.age-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-overlay.active {
  display: flex;
}

.age-dialog {
  background: var(--surface);
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 0 80px rgba(56, 189, 248, 0.25);
  text-align: center;
}

.age-dialog h2 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.age-dialog p {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.age-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-actions button,
.cookie-actions button,
.btn-plain {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.age-actions button:first-child,
#cookie-accept,
.btn-plain {
  background: var(--primary);
  color: #000000;
  font-weight: 600;
}

.age-actions button:last-child,
#cookie-reject {
  background: rgba(224, 242, 254, 0.08);
  color: var(--text);
}

#age-blocked {
  display: none;
  background: var(--surface);
  max-width: 440px;
  padding: 32px 28px;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}

#age-blocked.visible {
  display: block;
}

.cookie-banner {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  max-width: 640px;
  margin: 0 auto;
  background: #000000;
  color: var(--text);
  padding: 20px 22px;
  border-radius: 12px;
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.2);
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner.active {
  display: flex;
}

.cookie-banner p {
  flex: 1 1 260px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer {
  background: #000000;
  padding: 48px 24px 32px;
  margin-top: auto;
  box-shadow: 0 -24px 60px rgba(56, 189, 248, 0.06);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-brand img {
  width: 26px;
  height: 35px;
  object-fit: contain;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.footer-badges img {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-company,
.footer-note,
.footer-help,
.footer-updated,
.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 820px;
}

.decor-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.decor-img {
  max-width: 100%;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.info-cta {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 18px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--text);
  border-radius: 8px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.16);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.info-cta:hover {
  transform: scale(1.04);
  color: var(--text);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.28);
}

.go-page {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  gap: 16px;
}

.go-ad {
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.8rem;
}

.go-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15), 0 0 18px var(--accent);
  animation: spin-orbit 1.2s linear infinite;
  position: relative;
}

.go-spinner::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  top: -2px;
  left: 20px;
  box-shadow: 0 0 12px var(--accent);
}

@keyframes spin-orbit {
  to { transform: rotate(360deg); }
}

.go-compliance {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 480px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  .disclosure-banner,
  .disclosure-dark {
    white-space: normal;
  }

  .decor-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .decor-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 375px) {
  .decor-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .decor-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    object-position: center;
  }
}
