:root {
  --bg: #080015;
  --surface: #12002E;
  --text: #F0E7FF;
  --muted: #9D80C4;
  --primary: #FF00FF;
  --secondary: #00FFFF;
  --accent: #FFFF00;
  --border: rgba(255,0,255,0.2);
  --mono: "SF Mono", "Cascadia Code", "Consolas", "Liberation Mono", Menlo, monospace;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --data: "data";
  --analytics: "analytics";
  --wall: "wall";
  --dense: "dense";
  --metrics: "metrics";
}

@keyframes bar-grow {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(255, 0, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 10%, rgba(0, 255, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #080015 0%, #0e0020 45%, #080015 100%);
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(0, 255, 255, 0.03) 23px,
      rgba(0, 255, 255, 0.03) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(255, 0, 255, 0.025) 23px,
      rgba(255, 0, 255, 0.025) 24px
    );
}

body::after {
  content: var(--data) " " var(--analytics) " " var(--wall) " " var(--dense) " " var(--metrics);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.data-wall,
.analytics-panel,
.metrics-band,
.dense-grid,
.wall-scan {
  position: relative;
}

@supports (font-synthesis: none) {
  .data-analytics-wall-dense-metrics {
    font-family: data, analytics, wall, dense, metrics, var(--mono);
  }
}

.disclosure-banner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: #1a1028;
  border: none;
  background-color: #f3eef8;
  background-image: repeating-linear-gradient(
    45deg,
    #f3eef8,
    #f3eef8 8px,
    rgba(0, 0, 0, 0.04) 8px,
    rgba(0, 0, 0, 0.04) 16px
  );
  font-family: var(--sans);
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 0, 21, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 58px;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.brand-lockup img {
  width: 32px;
  height: 32px;
  display: block;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-desktop a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 8px 10px;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: width 0.28s ease;
}

.nav-desktop a:hover,
.nav-desktop a:focus,
.nav-desktop a.active {
  color: var(--text);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus::after,
.nav-desktop a.active::after {
  width: 100%;
  animation: bar-grow 0.28s ease forwards;
}

.burger {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--secondary);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 0, 21, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 110;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 88vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 120;
  padding: 72px 24px 32px;
  overflow-y: auto;
}

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

.nav-drawer a {
  display: block;
  padding: 12px 0 12px 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--sans);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
}

.nav-drawer a:hover,
.nav-drawer a:focus,
.nav-drawer a.active {
  border-left-color: var(--accent);
  color: var(--secondary);
}

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

@media (min-width: 980px) {
  .nav-desktop {
    display: flex;
  }
  .burger {
    display: none;
  }
}

.hero {
  background: var(--bg);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
  animation: fade-up 0.6s ease both;
}

.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 20%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  animation: pulse-line 2.4s ease-in-out infinite;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin-left: -12px;
  padding-left: 0;
}

.hero-sub {
  margin: 18px 0 0;
  max-width: 42ch;
  margin-left: 48px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .hero h1 {
    margin-left: 0;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

.site-intro {
  padding: 28px 0 8px;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.site-intro p {
  max-width: 72ch;
  margin: 0;
}

.section {
  padding: 40px 0;
  position: relative;
}

.section h2 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
}

.section p {
  font-family: var(--sans);
  color: var(--text);
  margin: 0 0 12px;
}

.section .muted,
.muted {
  color: var(--muted);
}

.offers-section {
  padding: 48px 0;
  background-color: var(--surface);
  background-image:
    linear-gradient(180deg, rgba(8, 0, 21, 0.72), rgba(18, 0, 46, 0.88)),
    url('/images/offers_bg/offers_bg.webp');
  background-size: cover;
  background-position: center;
  border-block: 1px solid var(--border);
}

.offers-section h2 {
  font-family: var(--sans);
  margin: 0 0 10px;
}

.offers-intro {
  font-family: var(--sans);
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 24px;
  font-size: 0.9rem;
}

.offers-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .offers-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .offers-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.offer-card {
  background: #0b0018;
  border: 1px solid rgba(255, 0, 255, 0.28);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.offer-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.offer-card .offer-logo {
  width: 120px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
}

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

@media (max-width: 480px) {
  .offer-card .offer-logo {
    width: 100px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

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

.offer-card .offer-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: var(--text);
}

.offer-bonus-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.offer-bonus {
  margin: 0;
  color: var(--primary);
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.offer-terms {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--sans);
}

.offer-desc {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--sans);
  line-height: 1.4;
}

.offer-cta {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}

.offer-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.topic-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.topic-cta:hover {
  background: var(--secondary);
  color: var(--bg);
}

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

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

@media (max-width: 480px) {
  .decor-img {
    max-width: 100%;
    max-height: 200px;
  }

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

.site-footer {
  background: #050010;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  font-family: var(--sans);
  font-size: 0.86rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  display: block;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-legal p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

.footer-updated {
  color: var(--secondary) !important;
  font-family: var(--mono);
  font-size: 0.78rem;
}

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

.footer-badges img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(8, 0, 21, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

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

.age-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  max-width: 420px;
  width: 100%;
}

.age-dialog h2 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 1.2rem;
}

.age-dialog p {
  margin: 0 0 20px;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.92rem;
}

.age-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-actions button {
  font-family: var(--sans);
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.age-actions button[data-age-gate="confirm"] {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

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

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

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  color: var(--muted);
}

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

.cookie-actions button {
  font-family: var(--sans);
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.cookie-accept {
  background: var(--secondary) !important;
  color: var(--bg) !important;
  border-color: var(--secondary) !important;
}

.page-hero {
  padding: 36px 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero h1 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
}

.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  font-family: var(--sans);
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: var(--secondary);
}

.prose h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
}

.prose p,
.prose li {
  color: var(--text);
  line-height: 1.6;
}

.prose ul {
  padding-left: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  max-width: 520px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--mono);
  font-size: 0.92rem;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

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

.contact-form button {
  font-family: var(--sans);
  font-weight: 700;
  padding: 12px 16px;
  border: none;
  background: var(--primary);
  color: var(--bg);
  cursor: pointer;
  justify-self: start;
}

.email-error {
  display: none;
  color: var(--accent);
  font-size: 0.82rem;
  margin: -6px 0 0;
}

.email-error.show {
  display: block;
}

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-family: var(--sans);
}

.form-success.show {
  display: block;
}

.redirect-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 40px 24px;
}

.redirect-box {
  text-align: center;
  max-width: 480px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.redirect-box h1 {
  font-family: var(--sans);
  font-size: 1.35rem;
  margin: 16px 0 10px;
}

.ad-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 16px auto 0;
  border: 3px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.not-found {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.not-found h1 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 12px;
}

.not-found a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
}

.topic-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 28px;
}

.topic-strip h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.topic-strip .lead {
  margin: 12px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-family: var(--sans);
}

.topic-body {
  display: grid;
  gap: 28px;
  padding: 36px 0 56px;
}

@media (min-width: 900px) {
  .topic-body {
    grid-template-columns: 1fr 260px;
  }
}

.topic-prose h2 {
  font-family: var(--sans);
  color: var(--secondary);
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.topic-prose p {
  font-family: var(--sans);
  margin: 0 0 14px;
  line-height: 1.65;
}

.topic-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topic-rail .band {
  min-height: 160px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 480px) {
  .topic-rail .band {
    min-height: 120px;
    max-width: 100%;
  }
  .inline-decor {
    max-width: 100%;
    overflow: hidden;
  }
}

.topic-rail .band-a {
  background-image: linear-gradient(180deg, rgba(8,0,21,.35), rgba(8,0,21,.65)), url('/images/decorative/decor_5.webp');
}

.pull-stat {
  border: 1px solid var(--border);
  padding: 14px;
  font-family: var(--mono);
  font-size: 0.82rem;
  background: rgba(18,0,46,.7);
}

.pull-stat strong {
  display: block;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.inline-decor {
  margin: 18px 0;
  max-width: 100%;
  overflow: hidden;
}

.check-grid {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.check-grid div {
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 0.9rem;
}
