:root {
  --bg: #0f1224;
  --bg-soft: #1a1f3d;
  --text: #edf1ff;
  --muted: #a8b0d6;
  --accent: #67f5c8;
  --accent-2: #9d8bff;
  --card: #141a34;
  --danger: #ff6f91;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background:
    linear-gradient(rgba(10, 14, 30, 0.82), rgba(10, 14, 30, 0.82)),
    url("../../scenes/bg.png") center/cover fixed no-repeat,
    radial-gradient(circle at top right, #232a52 0%, var(--bg) 50%);
}
.wrap { width: min(1100px, 92%); margin: 0 auto; }
.site-header, .site-footer { background: rgba(7, 10, 20, 0.9); border-bottom: 1px solid #2f3768; }
.site-footer { border-top: 1px solid #2f3768; border-bottom: 0; margin-top: 3rem; }
.site-header .wrap, .site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.2rem; }
.brand-lockup { display: inline-flex; align-items: center; gap: .65rem; }
.brand-copy { display: flex; flex-direction: column; gap: .1rem; }
.brand-copy small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.site-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #7fd8ff;
  display: inline-block;
  position: relative;
}
.site-mark-moon::before {
  content: "";
  position: absolute;
  inset: 4px 4px 4px 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #b4f7dd 0%, #63f4c8 55%, #49d8b0 100%);
}
.brand span, h3 span { color: var(--danger); font-weight: 700; }
nav a, .site-footer a { color: var(--text); text-decoration: none; margin-right: 1rem; }
nav { display: flex; flex-wrap: wrap; gap: .75rem; }
nav a:hover, .site-footer a:hover { color: var(--accent); }
.cn-header {
  background:
    linear-gradient(120deg, rgba(5, 12, 30, 0.95), rgba(12, 25, 52, 0.95), rgba(8, 13, 30, 0.95));
  background-size: 220% 220%;
  animation: gradientShift 14s ease infinite;
}
.cn-header-grid {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.cn-nav { display: flex; justify-content: center; gap: .95rem; flex-wrap: wrap; }
.cn-nav a {
  margin-right: 0;
  position: relative;
  padding-bottom: .2rem;
}
.cn-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), #8ffce0);
  transition: transform .25s ease;
}
.cn-nav a:hover::after { transform: scaleX(1); }
.cn-badge {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid #2f6d8a;
  border-radius: 999px;
  padding: .4rem .65rem;
  background: rgba(22, 52, 79, 0.45);
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.hero { padding: 3.2rem 0 2rem; }
.hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); margin: 0 0 .7rem; }
.disclosure, .notice { background: #111735; padding: .8rem 1rem; border-left: 4px solid var(--accent); border-radius: 8px; }
.notice { border-left-color: var(--danger); }
.hero-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: start; }
.hero-highlights {
  background: var(--card);
  border: 1px solid #2a3362;
  border-radius: 12px;
  padding: .9rem;
}
.hero-highlights h2 { margin: 0 0 .45rem; font-size: 1.1rem; }
.hero-highlights ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.cards h2, .matrix h2, .transparency-panel h2, .faq h2, .methodology h2, .safer-tools h2, .regulator-cards h2, .timeline h2, .myths h2, .editorial h2 { margin-top: 2.2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid #2a3362;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: -130% auto auto -30%;
  width: 70%;
  height: 240%;
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(3, 10, 35, 0.55);
  border-color: #4b5ea8;
}
.card:hover::after { animation: shineSweep .9s ease; }
.card img { width: 140px; max-width: 100%; height: 42px; object-fit: contain; filter: brightness(1.1); }
.card-logo-link { display: inline-flex; width: fit-content; }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .6rem;
}
.editor-pick {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 999px;
  padding: .25rem .55rem;
  background: rgba(91, 245, 200, 0.2);
  border: 1px solid rgba(103, 245, 200, 0.7);
}
.score-ribbon {
  font-size: .74rem;
  font-weight: 700;
  color: #06141c;
  border-radius: 4px;
  padding: .25rem .45rem;
  background: linear-gradient(120deg, #9af6ff, #65f2c7);
}
.star-row {
  margin: .3rem 0 .5rem;
  color: #ffd87a;
  display: flex;
  gap: .45rem;
  align-items: center;
  letter-spacing: .05em;
}
.star-row strong {
  color: #f5f8ff;
  letter-spacing: normal;
}
.card-cta {
  display: inline-block;
  margin-top: auto;
  padding: .5rem .8rem;
  border-radius: 8px;
  background: var(--accent);
  color: #081a14;
  font-weight: 700;
  text-decoration: none;
}
.card-cta:hover { background: #7effd9; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.method-grid article {
  background: var(--card);
  border: 1px solid #2a3362;
  border-radius: 12px;
  padding: .9rem;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid #2a3362;
  border-radius: 12px;
}
table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--card); }
th, td { padding: .75rem; border-bottom: 1px solid #27315f; text-align: left; vertical-align: top; }
th { background: #101631; font-size: .95rem; }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; }
.reg-grid a {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 1px solid #2a3362;
  border-radius: 12px;
  padding: .9rem;
}
.reg-grid img { width: 130px; max-width: 100%; height: 34px; object-fit: contain; display: block; margin-bottom: .5rem; }
.reg-grid h3 { margin: 0 0 .3rem; font-size: 1rem; }
.timeline ol {
  margin: 0;
  padding-left: 1.2rem;
  background: var(--card);
  border: 1px solid #2a3362;
  border-radius: 12px;
  padding: 1rem 1rem 1rem 2rem;
}
.timeline li { margin-bottom: .5rem; }
.myth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.myth-grid article, .editorial {
  background: var(--card);
  border: 1px solid #2a3362;
  border-radius: 12px;
  padding: .9rem;
}
.faq details {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid #2a3362;
  margin-bottom: .8rem;
  padding: .8rem;
  overflow-wrap: anywhere;
}
.content-page { padding: 2.2rem 0; }
.content-page h1 { margin-top: 0; }

.overlay {
  position: fixed; inset: 0; display: none; place-items: center; z-index: 1000;
  background: rgba(0, 0, 0, 0.76);
}
.overlay.show { display: grid; }
.overlay-card {
  background: #111735;
  border: 1px solid #344084;
  padding: 1.2rem;
  border-radius: 12px;
  width: min(430px, 92%);
}
.overlay-actions { display: flex; gap: .8rem; }
button {
  border: 0; border-radius: 8px; padding: .65rem .9rem; cursor: pointer; font-weight: 700;
  background: var(--accent); color: #081a14;
}
button.secondary { background: #343f74; color: var(--text); }
.cookie-banner {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: #0a0f27; border: 1px solid #374179;
  border-radius: 12px; padding: .9rem 1rem; width: min(760px, 94%);
  display: none; justify-content: space-between; align-items: center; gap: 1rem; z-index: 999;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; color: var(--muted); }
.regulator-logos {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.regulator-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 32, 0.85);
  border: 1px solid #2f3768;
  border-radius: 8px;
  padding: .35rem .5rem;
}
.regulator-logos img { height: 34px; width: auto; display: block; object-fit: contain; }
.cn-footer .wrap { align-items: flex-start; }
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.1fr .9fr 1.2fr .9fr;
  gap: 1rem;
}
.footer-grid h3 {
  margin: 0 0 .45rem;
  font-size: .92rem;
  color: #bcd8ff;
}
.footer-grid p { margin: 0; }
.mini-brand { margin-bottom: .45rem; }

@media (max-width: 700px) {
  .hero-split, .myth-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cn-header-grid { grid-template-columns: 1fr; text-align: center; }
  .brand-lockup { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  nav { justify-content: center; }
  .card-meta { flex-wrap: wrap; }
  .editor-pick, .score-ribbon { white-space: normal; }
  table { min-width: 520px; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102, 245, 200, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(102, 245, 200, 0.03); }
}
@keyframes shineSweep {
  from { transform: translateX(-180%) rotate(16deg); }
  to { transform: translateX(370%) rotate(16deg); }
}
