:root {
  --bg: #F9FCFB;
  --surface: #FFFFFF;
  --text: #0F1F1C;
  --muted: #5E7D77;
  --primary: #00C49A;
  --secondary: #156064;
  --accent: #FFB238;
  --border: rgba(0,196,154,0.12);
  --space: space;
  --nasa: nasa;
  --telemetry: telemetry;
  --mission-control: mission control;
  --scientific: scientific;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --font-sans: "Arial Narrow", "Helvetica Neue Condensed", "Segoe UI Condensed", "Segoe UI", Arial, sans-serif;
  --max: 1200px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 42% at 8% -10%, rgba(0, 196, 154, 0.14), transparent 58%),
    radial-gradient(ellipse 55% 38% at 92% 6%, rgba(21, 96, 100, 0.1), transparent 52%),
    linear-gradient(168deg, var(--bg) 0%, rgba(0, 196, 154, 0.06) 46%, var(--bg) 100%);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

body::before {
  content: "space nasa telemetry mission control scientific";
  position: fixed;
  inset: 0;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(0, 196, 154, 0.045) 47px,
      rgba(0, 196, 154, 0.045) 48px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(21, 96, 100, 0.04) 47px,
      rgba(21, 96, 100, 0.04) 48px
    );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(0, 196, 154, 0.08), transparent 36%),
    radial-gradient(circle at 78% 72%, rgba(255, 178, 56, 0.07), transparent 32%);
}

.space,
.nasa,
.telemetry,
.mission-control,
.scientific {
  --style-kit: 1;
}

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

main {
  flex: 1 0 auto;
}

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

#offers .logo-placeholder img,
#offers .offer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  max-width: none;
}

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

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

.disclosure-banner {
  width: 100%;
  padding: 8px 16px;
  background: var(--surface);
  background-image:
    radial-gradient(circle at 0 50%, var(--bg) 8px, transparent 9px),
    radial-gradient(circle at 100% 50%, var(--bg) 8px, transparent 9px);
  border-top: 1px dotted var(--muted);
  border-bottom: 1px dotted var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  font-family: var(--font-mono);
}

.disclosure-banner p {
  margin: 0 0 6px;
}

.disclosure-banner p:last-child {
  margin-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 58px;
  background: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

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

.brand-lockup img {
  width: 32px;
  height: 35px;
  object-fit: contain;
}

.brand-name {
  white-space: nowrap;
}

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

.nav-links a {
  position: relative;
  color: var(--surface);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  font-weight: 600;
  font-family: var(--font-mono);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav-links a:hover {
  color: var(--surface);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

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

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--surface);
  box-shadow: 0 0 6px var(--primary);
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--text);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 320;
  padding: 72px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 12px 0 40px rgba(15, 31, 28, 0.35);
}

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

.nav-drawer a {
  color: var(--surface);
  padding: 12px 22px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border-left: 3px solid var(--accent);
}

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

.hud-panel {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  pointer-events: none;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.72;
}

.hud-gauge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, var(--primary) 0 42%, rgba(0, 196, 154, 0.12) 42% 100%);
  box-shadow: 0 0 16px rgba(0, 196, 154, 0.35), inset 0 0 0 2px var(--secondary);
  position: relative;
}

.hud-gauge::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0, 196, 154, 0.4);
}

.hud-radar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background:
    repeating-radial-gradient(circle, transparent 0 6px, rgba(0, 196, 154, 0.22) 6px 7px);
  box-shadow: 0 0 12px rgba(0, 196, 154, 0.35);
  position: relative;
  overflow: hidden;
}

.hud-radar::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 2px;
  top: 50%;
  left: 50%;
  background: var(--accent);
  transform-origin: left center;
  animation: radar-sweep 3.2s linear infinite;
  box-shadow: 0 0 8px var(--accent);
}

.hud-blink {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: status-blink 1.4s steps(2, end) infinite;
}

@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}

@keyframes status-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

.age-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 31, 28, 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: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0, 196, 154, 0.2), 0 24px 60px rgba(15, 31, 28, 0.18);
  text-align: center;
}

.age-dialog h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.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 {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.age-actions button:first-child,
#cookie-accept {
  background: var(--primary);
  color: var(--text);
  font-weight: 700;
}

.age-actions button:last-child,
#cookie-reject {
  background: var(--secondary);
  color: var(--surface);
}

#age-blocked {
  display: none;
  background: var(--surface);
  max-width: 440px;
  padding: 32px 28px;
  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: var(--text);
  color: var(--surface);
  padding: 20px 22px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 0 40px rgba(0, 196, 154, 0.22);
  border: 1px solid rgba(0, 196, 154, 0.28);
}

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

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

.cookie-banner a {
  color: var(--accent);
}

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

.site-footer {
  background: var(--text);
  color: var(--surface);
  padding: 48px 24px 32px;
  margin-top: auto;
}

.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(--surface);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-brand:hover {
  color: var(--accent);
}

.footer-brand img {
  width: 28px;
  height: 30px;
  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: rgba(249, 252, 251, 0.78);
  font-size: 0.85rem;
}

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

.ca-disclosure {
  font-size: 12px;
  color: rgba(249, 252, 251, 0.62);
  max-width: 860px;
  line-height: 1.55;
}

.footer-company,
.footer-note,
.footer-help,
.footer-updated,
.footer-copy {
  font-size: 0.78rem;
  color: rgba(249, 252, 251, 0.68);
  max-width: 820px;
  font-family: var(--font-mono);
}

.footer-help a,
.footer-note a,
.ca-disclosure a {
  color: var(--accent);
}

.disclosure-banner a {
  color: var(--secondary);
  text-decoration: underline;
}

.decor-wrap,
.mosaic-bg,
.bank-band,
.rtp-rail-img,
.hero {
  max-width: 100%;
  overflow: hidden;
}

.decor-wrap {
  width: 100%;
}

.decor-img {
  max-width: min(100%, 500px);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.info-cta {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 18px;
  background: var(--secondary);
  color: var(--surface);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(0, 196, 154, 0.35);
  box-shadow: 0 0 18px rgba(0, 196, 154, 0.18);
}

.info-cta:hover {
  color: var(--accent);
}

.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(--secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.go-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(0, 196, 154, 0.18);
  border-top-color: var(--primary);
  box-shadow: 0 0 18px rgba(0, 196, 154, 0.28);
  animation: spin-orbit 1.1s linear infinite;
}

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

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

.error-page {
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 {
  font-family: var(--font-mono);
  font-size: 3rem;
  margin-bottom: 12px;
}

.legal-wrap,
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.legal-wrap h1,
.page-content h1,
.legal-wrap h2,
.page-content h2,
.legal-wrap h3,
.page-content h3 {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin: 28px 0 12px;
}

.legal-wrap h1,
.page-content h1 {
  margin-top: 0;
  font-size: 1.7rem;
}

.legal-wrap p,
.page-content p,
.legal-wrap li,
.page-content li {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-wrap ul,
.page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-hero {
  background: var(--secondary);
  color: var(--surface);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(0, 196, 154, 0.35);
  border-radius: 50%;
  right: 8%;
  top: -40px;
  box-shadow: 0 0 24px rgba(0, 196, 154, 0.2);
}

.page-hero h1,
.page-kicker {
  position: relative;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  background: var(--primary);
  color: var(--text);
  border: 0;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.field-error,
.contact-success {
  display: none;
  font-size: 0.85rem;
}

.field-error.visible,
.contact-success.visible {
  display: block;
}

.field-error {
  color: var(--secondary);
}

.contact-success {
  color: var(--secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
}

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

  .nav-toggle {
    display: flex;
  }

  .hud-panel {
    display: none;
  }
}

@media (max-width: 720px) {
  .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,
  .mosaic-bg,
  .bank-band,
  .rtp-rail-img,
  .hero,
  .page-hero {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-img,
  .hero-art {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 180px;
  }
}
