:root {
  --bg: #020617;
  --surface: #0F172A;
  --text: #ECFEFF;
  --muted: #67E8F9;
  --primary: #14B8A6;
  --secondary: #CBD5E1;
  --accent: #22C55E;
  --border: rgba(236, 254, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  background-image:
    linear-gradient(165deg, var(--bg) 0%, var(--surface) 50%, #041024 100%),
    radial-gradient(ellipse 70% 45% at 80% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 65%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(236, 254, 255, 0.02) 39px,
      rgba(236, 254, 255, 0.02) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(236, 254, 255, 0.015) 39px,
      rgba(236, 254, 255, 0.015) 40px
    );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 15% 85%, rgba(34, 197, 94, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

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

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

a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.disclosure-banner {
  max-width: 1200px;
  margin: 0 auto;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  text-align: left;
  padding: 10px 16px 10px 20px;
  border-left: 4px solid #f59e0b;
  line-height: 1.5;
}

.site-header {
  position: static;
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  height: 70px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 70px;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.mission-control-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-left {
  justify-self: start;
}

.nav-right {
  justify-self: end;
}

.mission-control-nav a {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.mission-control-nav a:hover {
  color: var(--primary);
}

.burger-btn {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(236, 254, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 102;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  z-index: 200;
}

.nav-overlay.open {
  display: block;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--surface);
  z-index: 201;
  padding: 80px 24px 24px;
  overflow-y: auto;
  transition: right 0.35s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile a {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 340px;
}

.footer-links h3 {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-legal {
  margin-top: 20px;
}

.footer-legal p {
  color: var(--secondary);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.footer-br-disclosure {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-br-disclosure p {
  font-size: 11px;
  color: rgba(203, 213, 225, 0.72);
  line-height: 1.65;
  max-width: 920px;
}

.footer-notice {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(236, 254, 255, 0.08);
}

.footer-notice p {
  font-size: 11px;
  color: rgba(203, 213, 225, 0.65);
  line-height: 1.65;
  max-width: 920px;
  margin-bottom: 8px;
}

.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate-overlay.hidden {
  display: none;
}

.age-gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 440px;
  text-align: center;
}

.age-gate-card h2 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 12px;
}

.age-gate-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
  min-width: 200px;
}

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

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--bg);
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--text);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-content h1 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 20px 0 8px;
}

.legal-content p {
  color: var(--secondary);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  color: var(--secondary);
  margin: 0 0 14px 20px;
  font-size: 0.95rem;
}

.legal-content li {
  margin-bottom: 6px;
}

.contact-form-wrap {
  margin-top: 32px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-form-wrap label {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 6px;
  margin-top: 16px;
}

.contact-form-wrap label:first-of-type {
  margin-top: 0;
}

.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
}

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

.form-error {
  color: #f59e0b;
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  padding: 24px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
}

.form-success.hidden {
  display: none;
}

.redirect-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.redirect-ad {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.redirect-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 24px;
}

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

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

.redirect-page h1 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
}

.redirect-page p {
  color: var(--secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin-bottom: 8px;
}

.redirect-notes {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.redirect-notes p {
  font-size: 0.82rem;
}

.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.page-404 h1 {
  font-family: "Courier New", Courier, monospace;
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-404 p {
  color: var(--secondary);
  margin-bottom: 24px;
}

.telemetry-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink-status 1.4s ease-in-out infinite;
  margin-right: 8px;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    position: relative;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1;
  }
}

@media (max-width: 375px) {
  .subpage-image-band,
  .subpage-image-band img,
  .live-hero-split,
  .live-hero-visual,
  .page-hero-strip,
  .rtp-hero {
    max-width: 100%;
    overflow: hidden;
  }

  .subpage-image-band img {
    width: 100%;
  }
}
