:root {
  --bg: #05060A;
  --surface: #0E1020;
  --text: #EDE9FE;
  --muted: #A1A1AA;
  --primary: #22D3EE;
  --secondary: #A3E635;
  --accent: #F472B6;
  --border: rgba(237, 233, 254, 0.12);
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-mono: "Courier New", Courier, monospace;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 52px;
  --max-w: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  background-image:
    linear-gradient(160deg, rgba(34, 211, 238, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 0%, rgba(244, 114, 182, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #080a14 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(34, 211, 238, 0.03) 39px, rgba(34, 211, 238, 0.03) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(34, 211, 238, 0.03) 39px, rgba(34, 211, 238, 0.03) 40px);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.disclosure-bar {
  display: flex;
  width: 100%;
  font-size: 12px;
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
}

.disclosure-icon-zone {
  flex: 0 0 40px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--bg);
}

.disclosure-text-zone {
  flex: 1;
  background: rgba(237, 233, 254, 0.06);
  padding: 8px 14px;
  color: var(--muted);
  font-family: var(--font-sans);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.nav-cta {
  display: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  background: var(--primary);
  color: var(--bg);
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--secondary);
  color: var(--bg);
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
    align-items: center;
  }

  .burger-btn {
    display: none;
  }
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.burger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.7);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 400;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 60px 24px 24px;
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav a {
  display: block;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  border-radius: 4px;
  border: 1px solid transparent;
}

.drawer-nav a:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: var(--border);
  color: var(--primary);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 16px 24px;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.footer-badges a,
.footer-badges img {
  max-height: 48px;
  width: auto;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.85);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.modal-box h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-box p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--secondary);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--muted);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px;
  z-index: 450;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.cookie-inner p {
  flex: 1 1 280px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-hero-strip {
  background: var(--bg);
  padding: 40px 16px;
  text-align: center;
  border-bottom: 8px solid var(--accent);
}

.page-hero-strip h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero-strip p {
  font-family: var(--font-sans);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
}

.legal-content,
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.legal-content h1,
.article-content h1 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.legal-content h2,
.article-content h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: var(--primary);
  font-family: var(--font-sans);
}

.legal-content h3,
.article-content h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.legal-content p,
.legal-content li,
.article-content p,
.article-content li {
  margin-bottom: 12px;
  font-size: 15px;
}

.legal-content ul,
.article-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content a,
.article-content a {
  text-decoration: underline;
}

.science-data-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.research-footnote {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  border-left: 2px solid var(--primary);
  padding-left: 12px;
  margin-top: 16px;
}

.academic-prose {
  font-family: var(--font-serif);
}

main {
  flex: 1 0 auto;
  min-height: 40vh;
  width: 100%;
  overflow-x: hidden;
}
