@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --clr-primary: #ff0000;
  --clr-secondary: #ff006e;
  --clr-ink: #1a1a2e;
  --clr-ink-deep: #0d0d1a;
  --clr-neon-cyan: #00ffff;
  --clr-neon-blue: #0080ff;
  --clr-surface: #16213e;
  --clr-surface-2: #1f2b47;
  --clr-text: #e8e8f0;
  --clr-text-muted: #8888aa;
  --clr-text-dim: #555577;
  --clr-border: rgba(255, 0, 110, 0.25);
  --clr-border-bright: rgba(255, 0, 110, 0.6);
  --glow-red: 0 0 8px rgba(255,0,0,0.7), 0 0 20px rgba(255,0,0,0.4);
  --glow-pink: 0 0 8px rgba(255,0,110,0.7), 0 0 20px rgba(255,0,110,0.4);
  --glow-cyan: 0 0 8px rgba(0,255,255,0.7), 0 0 20px rgba(0,255,255,0.3);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --header-h: 72px;
  --sidebar-w: 220px;
  --content-max: 760px;
  --radius-card: 28px;
  --transition: 0.2s ease;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--clr-ink-deep);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-ink-deep);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--clr-secondary); text-decoration: underline; transition: color var(--transition); }
a:hover { color: var(--clr-neon-cyan); }

/* ============================================================
   CRT SCANLINES OVERLAY
   ============================================================ */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
}

/* ============================================================
   GLITCH EFFECT
   ============================================================ */
@keyframes glitch-skew {
  0%   { transform: skewX(0deg); }
  10%  { transform: skewX(-2deg); }
  20%  { transform: skewX(1.5deg); }
  30%  { transform: skewX(0deg); }
  100% { transform: skewX(0deg); }
}
@keyframes glitch-offset {
  0%   { clip-path: inset(0 0 95% 0); transform: translate(-3px, 0); }
  25%  { clip-path: inset(40% 0 50% 0); transform: translate(3px, 0); }
  50%  { clip-path: inset(70% 0 20% 0); transform: translate(-2px, 0); }
  75%  { clip-path: inset(20% 0 70% 0); transform: translate(2px, 0); }
  100% { clip-path: inset(0 0 95% 0); transform: translate(0, 0); }
}

.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
.glitch::before {
  color: var(--clr-neon-cyan);
  animation: glitch-offset 5s infinite linear;
  opacity: 0.6;
}
.glitch::after {
  color: var(--clr-primary);
  animation: glitch-offset 5s infinite linear 0.15s;
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .glitch::before,
  .glitch::after,
  .glitch { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(13,13,26,0.95);
  border-bottom: 1px solid var(--clr-border);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-mark { width: 36px; height: 36px; object-fit: contain; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  text-shadow: var(--glow-red);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name:hover { color: var(--clr-secondary); text-shadow: var(--glow-pink); }

/* Primary nav */
.primary-nav {
  flex: 1;
  overflow: hidden;
}
.primary-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav p::-webkit-scrollbar { display: none; }
.primary-nav p a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  white-space: nowrap;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.primary-nav p a:hover {
  color: var(--clr-neon-cyan);
  background: rgba(0,255,255,0.06);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 8px;
}
.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header CTAs */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  transition: box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
}
.cta-signup {
  background: var(--clr-primary);
  color: #fff;
  border: 2px solid var(--clr-primary);
  box-shadow: var(--glow-red);
}
.cta-signup:hover {
  background: var(--clr-secondary);
  border-color: var(--clr-secondary);
  color: #fff;
  box-shadow: var(--glow-pink);
}
.cta-login {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}
.cta-login:hover {
  background: rgba(255,0,0,0.1);
  color: #fff;
  box-shadow: var(--glow-red);
}

/* ============================================================
   HERO — HOME
   ============================================================ */
.hero--home {
  position: relative;
  margin-top: var(--header-h);
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 40%, rgba(255,0,110,0.15));
}

/* Boxing ring geometry */
.ring-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ring-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--clr-secondary);
  border-style: solid;
  opacity: 0.5;
}
.rc-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.rc-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.rc-bl { bottom: 30px; left: 12px; border-width: 0 0 2px 2px; }
.rc-br { bottom: 30px; right: 12px; border-width: 0 2px 2px 0; }

.hero-copy {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 560px;
  padding: 3rem 2rem 5rem;
  text-align: right;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-neon-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 0.75rem;
}
.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: var(--glow-red);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  background: var(--clr-secondary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: var(--glow-pink);
  transition: box-shadow var(--transition), background var(--transition);
  min-height: 44px;
}
.hero-cta:hover {
  background: var(--clr-primary);
  box-shadow: var(--glow-red);
  color: #fff;
}

/* Slanted bottom edge */
.hero-slant {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--clr-ink-deep);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

/* ============================================================
   GUIDE / INNER HERO
   ============================================================ */
.guide-hero {
  position: relative;
  margin-top: var(--header-h);
  height: 260px;
  overflow: hidden;
  background: var(--clr-ink);
}
.guide-hero-media {
  position: absolute;
  inset: 0;
}
.guide-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.guide-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,26,46,0.95) 50%, transparent);
}
.guide-hero-slant {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--clr-ink-deep);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}
.guide-hero-spacer {
  margin-top: var(--header-h);
  height: 40px;
  background: var(--clr-ink-deep);
}

/* Inner hero (no bg image) */
.inner-hero {
  position: relative;
  margin-top: var(--header-h);
  padding: 3rem 2rem 4rem;
  background: linear-gradient(135deg, var(--clr-ink) 60%, rgba(255,0,110,0.08));
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
}
.inner-hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.inner-hero-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  text-shadow: var(--glow-pink);
  margin-bottom: 0.6rem;
}
.inner-hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 16px rgba(255,0,0,0.3);
  line-height: 1.25;
}

/* ============================================================
   BYLINE
   ============================================================ */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}
.byline-author { font-weight: 600; color: var(--clr-text); }
.byline-sep { color: var(--clr-text-dim); }
.byline-date time { color: var(--clr-secondary); }
.stage-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255,0,110,0.15);
  color: var(--clr-secondary);
  border: 1px solid rgba(255,0,110,0.3);
}

/* ============================================================
   MAIN LAYOUT — BODY CONTAINER
   main > article.wrap > div > section
   ============================================================ */
#main-content {
  padding: 2.5rem 0 4rem;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.content-section {
  width: 100%;
}
.content-article {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ============================================================
   SIDEBAR (LEFT)
   ============================================================ */
.sidebar--left {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-border) transparent;
}
.sidebar-inner {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 1.25rem;
}
.sidebar-heading {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 0.75rem;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.sidebar-link {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  text-decoration: none;
  border-radius: 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background var(--transition), color var(--transition);
  border-left: 2px solid transparent;
}
.sidebar-link:hover {
  background: rgba(255,0,110,0.08);
  color: var(--clr-secondary);
  border-left-color: var(--clr-secondary);
}
.sidebar-link--highlight {
  color: var(--clr-secondary);
  font-weight: 600;
}
.sidebar-cta-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-cta {
  width: 100%;
  font-size: 0.78rem;
  padding: 0.5rem 0.75rem;
}

/* ============================================================
   CONTENT BODY
   ============================================================ */
.content-body {
  flex: 1;
  min-width: 0;
}
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--clr-border);
}
.article-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 0 12px rgba(255,0,0,0.25);
}

/* ============================================================
   PAGE CONTENT (injected HTML)
   ============================================================ */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--font-head);
  color: #fff;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.page-content h2 { font-size: 1.5rem; text-shadow: 0 0 10px rgba(255,0,110,0.2); }
.page-content h3 { font-size: 1.2rem; }
.page-content h4 { font-size: 1rem; }
.page-content p { margin-bottom: 1.1rem; max-width: var(--content-max); }
.page-content ul,
.page-content ol { margin: 0 0 1.1rem 1.4rem; }
.page-content li { margin-bottom: 0.35rem; }
.page-content a { color: var(--clr-secondary); text-decoration: underline; }
.page-content a:hover { color: var(--clr-neon-cyan); }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}
.page-content th {
  background: var(--clr-surface);
  color: var(--clr-secondary);
  text-align: left;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--clr-border);
  font-weight: 600;
}
.page-content td {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
}
.page-content tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.page-content blockquote {
  border-left: 3px solid var(--clr-secondary);
  padding: 0.75rem 1.25rem;
  color: var(--clr-text-muted);
  background: rgba(255,0,110,0.05);
  border-radius: 0 8px 8px 0;
  margin-bottom: 1rem;
}
.page-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: rgba(0,255,255,0.08);
  color: var(--clr-neon-cyan);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}
.page-content pre {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.page-content pre code {
  background: none;
  padding: 0;
}
.page-content img { border-radius: 8px; margin: 1rem 0; }
.page-content strong { color: var(--clr-text); font-weight: 600; }
.page-content time { color: var(--clr-secondary); }

/* ============================================================
   EYEBROW LABELS
   ============================================================ */
small.eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  text-shadow: var(--glow-pink);
  margin-bottom: 0.35rem;
}

/* ============================================================
   HOME CARDS GRID
   ============================================================ */
.guides-index {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}
.section-heading {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.guide-card {
  background: var(--clr-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.guide-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow var(--transition);
}
.guide-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--clr-primary), var(--clr-secondary));
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255,0,110,0.2);
}
.card-inner { padding: 1.5rem 1.5rem 1.75rem; }
.card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.card-title a {
  color: #fff;
  text-decoration: none;
}
.card-title a:hover { color: var(--clr-secondary); }
.card-desc {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.card-date {
  font-size: 0.75rem;
  color: var(--clr-text-dim);
  margin-bottom: 0.75rem;
}
.card-date time { color: var(--clr-secondary); }
.card-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-secondary);
  text-decoration: none;
  gap: 0.3rem;
  min-height: 44px;
}
.card-link:hover { color: var(--clr-neon-cyan); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-content details {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-content details summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--clr-text);
  min-height: 44px;
}
.faq-content details summary::-webkit-details-marker { display: none; }
.faq-content details summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--clr-secondary);
  flex-shrink: 0;
}
.faq-content details[open] summary::after { content: '−'; }
.faq-content details > *:not(summary) {
  padding: 0 1.25rem 1rem;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   CHANGELOG
   ============================================================ */
.changelog-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(0,255,255,0.08);
  color: var(--clr-neon-cyan);
  border: 1px solid rgba(0,255,255,0.25);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 1.5rem;
}
.changelog-meta { margin-bottom: 1.5rem; }
.changelog-content h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--clr-secondary);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.changelog-content h2::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--clr-secondary);
  border-radius: 50%;
  box-shadow: var(--glow-pink);
}

/* ============================================================
   AUTHOR CARD (ABOUT)
   ============================================================ */
.author-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
}
.author-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--clr-primary), var(--clr-secondary));
}
.author-card-header { margin-bottom: 1rem; }
.author-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,0,0,0.2);
}
.author-credentials {
  font-size: 0.85rem;
  color: var(--clr-secondary);
  margin-top: 0.25rem;
}
.author-bio p {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ============================================================
   PROSE (PRIVACY / LONG TEXT)
   ============================================================ */
.prose h2 { margin-top: 2rem; }
.prose p { max-width: var(--content-max); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-ink);
  border-top: 1px solid var(--clr-border);
  margin-top: 4rem;
}

.footer-brand-section {
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--clr-border);
}
.footer-wordmark {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--clr-primary);
  text-shadow: var(--glow-red);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.footer-links-section {
  display: flex;
  gap: 2rem;
  padding: 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-col {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-col-heading {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}
.footer-col a {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  text-decoration: none;
  padding: 0.3rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--clr-secondary); }
.rg-notice {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.footer-bottom-section {
  text-align: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.copyright {
  font-size: 0.75rem;
  color: var(--clr-text-dim);
}
.rg-bar {
  font-size: 0.72rem;
  color: var(--clr-text-dim);
}

/* ============================================================
   SCROLL REVEAL (JS adds .is-visible)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MOBILE NAV — ≤768px
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(13,13,26,0.98);
    border-bottom: 1px solid var(--clr-border);
    z-index: 999;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(8px);
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav p {
    flex-direction: column;
    overflow: visible;
    gap: 0;
  }
  .primary-nav p a {
    font-size: 0.9rem;
    border-bottom: 1px solid var(--clr-border);
    border-radius: 0;
    padding: 0.75rem 0;
    min-height: 44px;
    white-space: normal;
  }
  .primary-nav p a:last-child { border-bottom: none; }

  .header-inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .header-ctas {
    gap: 0.35rem;
  }
  .cta {
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
    min-height: 44px;
  }

  .content-article {
    flex-direction: column;
  }
  .sidebar--left {
    width: 100%;
    position: static;
    max-height: none;
  }
  .sidebar-inner {
    border-radius: 8px;
  }

  .hero-copy {
    text-align: left;
    padding: 2rem 1.25rem 4rem;
    max-width: 100%;
  }

  .footer-links-section {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .inner-hero { padding: 2rem 1.25rem 3rem; }

  .wrap { padding: 0 1rem; }
}

/* ============================================================
   DESKTOP ≥769px — FINE-TUNING
   ============================================================ */
@media (min-width: 769px) {
  .content-article {
    flex-direction: row;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .guide-card,
  .reveal { transition: none; opacity: 1; transform: none; }
  .scanlines { display: none; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}