/* ============================================================
   GovPaid — Main Stylesheet  (Full Redesign)
   The Athletic + Axios + Defense One aesthetic
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
/* Single-family stack — Poppins is the same font GovCon in a Box uses.
   Headings use the heavier weights, body uses 400/500. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,600;1,700&display=swap');

/* ── Custom Properties ────────────────────────────────────── */
:root {
  --navy:          #0a0a0a;
  --navy-mid:      #141414;
  --navy-light:    #1e1e1e;
  --navy-surface:  #111111;
  --gold:          #2563EB;
  --gold-light:    #3b82f6;
  --gold-dark:     #1d4ed8;
  --gold-muted:    rgba(37,99,235,.12);
  --red-breaking:  #C8231E;
  --red-light:     #FEF2F2;
  --green:         #15803D;
  --green-light:   #F0FDF4;
  --white:         #FFFFFF;
  --surface:       #F5F7FA;
  --surface-alt:   #EDF0F5;
  --border:        #DDE2EA;
  --border-light:  #EEF1F6;
  --text-primary:  #0a0a0a;
  --text-secondary:#475569;
  --text-muted:    #94A3B8;
  --heading:       #0a0a0a;

  /* Gray ramp — used across signup / forms. Inverts under dark theme
     so `color: var(--gray-700)` remains "primary body text" either way. */
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Category colors */
  --cat-solicitation: #2563EB;
  --cat-won:          #15803D;
  --cat-recompete:    #7C3AED;
  --cat-scandal:      #C8231E;
  --cat-policy:       #0369A1;
  --cat-industry:     #B45309;
  --cat-breaking:     #C8231E;

  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-sans:    'Poppins', system-ui, -apple-system, sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 48px rgba(0,0,0,.14);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  --transition:  all .22s ease;
  --ticker-height: 0px;
  --nav-height:    68px;
  --max-width:     1400px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky-footer pattern: any direct .footer child gets pushed to the bottom
   when page content is shorter than the viewport. */
body > .footer { margin-top: auto; }

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
p { margin-bottom: 1rem; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-family: var(--font-sans); }
h5 { font-size: .95rem; font-family: var(--font-sans); }
h6 { font-size: .85rem; font-family: var(--font-sans); }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section     { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1        { gap: .5rem; }
.gap-2        { gap: 1rem; }

/* Background utilities */
.bg-white   { background: var(--white); }
.bg-surface { background: var(--surface); }
.bg-navy    { background: var(--navy); }

/* Section header pattern */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p  {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-family: var(--font-sans);
}

/* ── Section Label ────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: 700 .7rem/1 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-muted);
  padding: .3rem .85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* ── Divider Gold ─────────────────────────────────────────── */
.divider-gold {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1.25rem auto;
}

/* ── Utility Classes ──────────────────────────────────────── */
.text-center    { text-align: center; }
.text-gold      { color: var(--gold); }
.text-navy      { color: var(--navy); }
.text-white     { color: var(--white); }
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.link-gold { color: var(--gold-dark); font-weight: 600; transition: var(--transition); }
.link-gold:hover { color: var(--gold); }

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-none { display: none !important; }

/* ── Breaking News Ticker ─────────────────────────────────── */
.ticker-bar {
  background: var(--red-breaking);
  padding: .4rem 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ticker-height);
  z-index: 300;
  opacity: 1;
  transition: opacity .6s ease, height .4s ease .5s;
  /* needed to anchor the close button */
  overflow: visible;
}

.ticker-bar--fading {
  opacity: 0;
}

.ticker-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
  flex-shrink: 0;
}

.ticker-close:hover {
  background: rgba(255,255,255,.4);
}

.ticker-bar--hidden {
  height: 0 !important;
  pointer-events: none;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker-label {
  background: rgba(255,255,255,.15);
  color: white;
  font: 700 .65rem/1 var(--font-sans);
  letter-spacing: .12em;
  padding: .2rem .6rem;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}

.ticker-content:hover { animation-play-state: paused; }

.ticker-item {
  color: white;
  font: 500 .78rem/1 var(--font-sans);
  padding: 0 2.5rem;
  opacity: .92;
  flex-shrink: 0;
}

.ticker-item::before {
  content: '●';
  margin-right: .75rem;
  font-size: .5rem;
  opacity: .6;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Navigation ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: var(--ticker-height);
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(0,0,0,.97);
  backdrop-filter: blur(12px);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: var(--white);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo span { color: var(--gold); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 auto;
}

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: .4rem .55rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }

.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: .9rem;
  right: .9rem;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ───────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

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

.mobile-nav a {
  display: block;
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-nav-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .92rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-align: center;
}

/* Primary — blue bg, white text */
.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
  color: var(--white);
}

/* Outline — white border, white text (for dark backgrounds) */
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Outline dark — navy border, navy text */
.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* Navy */
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Ghost — subtle, gray border */
.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.2);
}
.btn--ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.07);
}

/* Discord */
.btn--discord {
  background: #5865F2;
  color: var(--white);
  border-color: #5865F2;
}
.btn--discord:hover {
  background: #4752C4;
  border-color: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88,101,242,.4);
}

/* Sizes */
.btn--sm  { padding: .4rem 1rem; font-size: .82rem; }
.btn--lg  { padding: .75rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(14, 165, 233, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(56, 189, 248, 0.07) 0%, transparent 60%),
    linear-gradient(160deg, #050810 0%, #080D1A 50%, #050C18 100%);
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(56,189,248,0.09) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero::after {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 3;
}

/* Hero eyebrow — glassy pill with pulse dot */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  color: #ffffff;
  font: 600 .78rem/1 var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34,197,94,.8);
  animation: pulse-dot 2.2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Hero headings — bigger, tighter, more confident */
.hero h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  max-width: 860px;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,.72);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
  font-family: var(--font-sans);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Hero stats — 4-col grid with separator lines */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  position: relative;
}

.hero-stat {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,.15);
}

.hero-stat-num {
  display: block;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-sans);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: var(--font-sans);
  font-weight: 600;
}

/* ── Hero two-column layout with floating dashboard cards ── */
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-visual {
  position: relative;
  height: 540px;
  animation: heroFadeUp 1s ease 0.2s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Base floating card — GSAP drives all motion, CSS animations disabled */
.float-card {
  position: absolute;
  background: rgba(10, 16, 30, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(96,165,250,.08);
  font-family: var(--font-sans);
  color: #f0f4ff;
  will-change: transform, opacity, filter;
  cursor: pointer;
  transform-origin: center center;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.float-card.is-featured {
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 16px 60px rgba(14,165,233,.35), inset 0 0 0 1px rgba(96,165,250,.18);
}

.card-label {
  font-size: 10px;
  font-weight: 600;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: #60a5fa;
  border-radius: 50%;
}

/* Central dashboard card */
.card-main {
  width: 290px;
  top: 50%; left: 50%;
  padding: 22px 24px;
  border-color: rgba(96,165,250,.32);
  z-index: 3;
}
.card-main-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.gp-logo-sm {
  width: 38px; height: 38px;
  background: #60a5fa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 14px;
  color: #050810;
}
.card-main-title {
  font-size: 14px;
  font-weight: 700;
  color: #f0f4ff;
  font-family: var(--font-serif);
}
.card-main-sub {
  font-size: 11px;
  color: rgba(180, 200, 230, 0.65);
  margin-top: 2px;
}
.award-bar-wrap { margin-bottom: 14px; }
.award-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(180, 200, 230, 0.65);
  margin-bottom: 5px;
}
.award-bar-label span:last-child {
  color: #60a5fa;
  font-weight: 600;
}
.award-bar-bg {
  height: 5px;
  background: rgba(96,165,250,.12);
  border-radius: 100px;
  overflow: hidden;
}
.award-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #60a5fa);
  border-radius: 100px;
  animation: heroBarGrow 2s ease 1s both;
}
.award-amount {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: #f0f4ff;
  margin: 14px 0 4px;
}
.award-sub {
  font-size: 11px;
  color: rgba(180, 200, 230, 0.65);
}

/* Recent awards card — top right */
.card-awards {
  width: 200px;
  top: 20px; right: 0;
  z-index: 2;
}
.award-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.award-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.award-row-name {
  font-size: 11px;
  color: rgba(180, 200, 230, 0.75);
}
.award-row-val {
  font-size: 11px;
  font-weight: 600;
  color: #f0f4ff;
  background: rgba(96,165,250,.12);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Incumbent research — bottom left */
.card-incumbent {
  width: 215px;
  bottom: 40px; left: 0;
  z-index: 2;
}
.incumbent-name {
  font-size: 13px;
  font-weight: 600;
  color: #f0f4ff;
  margin: 6px 0 2px;
}
.incumbent-sub {
  font-size: 10px;
  color: rgba(180, 200, 230, 0.65);
  margin-bottom: 10px;
}
.incumbent-tag {
  display: inline-block;
  background: rgba(96,165,250,.12);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,.3);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* NAICS intel — top left */
.card-naics {
  width: 185px;
  top: 30px; left: 0;
  z-index: 2;
}
.naics-code {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: #60a5fa;
  margin: 4px 0 2px;
}
.naics-desc {
  font-size: 10px;
  color: rgba(180, 200, 230, 0.65);
  line-height: 1.4;
}

/* Saved opps — bottom right */
.card-saved {
  width: 155px;
  bottom: 60px; right: 10px;
  z-index: 2;
}
.saved-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: #f0f4ff;
  margin: 4px 0 1px;
}
.saved-sub {
  font-size: 10px;
  color: rgba(180, 200, 230, 0.65);
}

/* Live data pulse — middle left */
.card-live {
  width: 135px;
  bottom: 150px; left: 60px;
  padding: 10px 14px;
  z-index: 4;
}
.live-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #22C55E;
  border-radius: 50%;
  animation: heroLivePulse 1.5s ease infinite;
  flex-shrink: 0;
}
.live-text {
  font-size: 11px;
  font-weight: 600;
  color: #f0f4ff;
}
.live-sub {
  font-size: 10px;
  color: rgba(180, 200, 230, 0.65);
  margin-top: 4px;
  padding-left: 14px;
}

/* Float animations */
@keyframes floatHeroMain {
  from { transform: translate(-50%, calc(-50% + 0px)); }
  to   { transform: translate(-50%, calc(-50% - 12px)); }
}
@keyframes floatHeroA {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}
@keyframes floatHeroB {
  from { transform: translateY(0) rotate(-0.5deg); }
  to   { transform: translateY(-10px) rotate(0.5deg); }
}
@keyframes floatHeroC {
  from { transform: translateY(0); }
  to   { transform: translateY(-16px); }
}
@keyframes floatHeroD {
  from { transform: translateY(0) rotate(0.3deg); }
  to   { transform: translateY(-12px) rotate(-0.3deg); }
}
@keyframes floatHeroE {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
@keyframes heroLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
@keyframes heroBarGrow {
  from { width: 0; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .float-card, .live-dot { animation: none !important; }
  .award-bar-fill { animation: none !important; }
}

/* Mobile: stack the columns, hide the floating visual */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-visual { display: none; }
}

/* ── Tools & Features Showcase ────────────────────────────── */
.tools-showcase {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(37,99,235,.06) 0%, transparent 60%),
    #ffffff;
  padding: 5rem 0 5.5rem;
  border-bottom: 1px solid var(--border-light);
}
[data-theme="dark"] .tools-showcase {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(37,99,235,.12) 0%, transparent 60%),
    #0d0d18;
  border-bottom-color: #1f2937;
}

.tools-showcase .section-header { margin-bottom: 3rem; }
.tools-showcase .section-header h2 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0) 0%, rgba(37,99,235,.05) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: #2563EB;
  box-shadow: 0 16px 40px rgba(37,99,235,.12);
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover .tool-icon {
  background: #2563EB;
  color: #ffffff;
  transform: scale(1.05) rotate(-3deg);
}
.tool-card:hover .tool-link {
  color: #2563EB;
  transform: translateX(4px);
}

.tool-card--featured {
  border-color: rgba(37,99,235,.4);
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}
.tool-card--featured::before {
  background: linear-gradient(135deg, rgba(37,99,235,.03) 0%, rgba(37,99,235,.08) 100%);
  opacity: 1;
}

.tool-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #2563EB;
  color: #ffffff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 20px;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(37,99,235,.1);
  color: #2563EB;
  margin-bottom: .35rem;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  flex-shrink: 0;
}

.tool-card h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.tool-card p {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.tool-link {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .01em;
  transition: color .25s ease, transform .25s ease;
  margin-top: .5rem;
  position: relative;
  z-index: 1;
}

.tools-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.tools-footer-note {
  font-size: .78rem;
  color: var(--text-muted);
}

/* Dark mode tweaks */
[data-theme="dark"] .tool-card {
  background: #161622;
  border-color: #2a2a3a;
  color: #ffffff;
}
[data-theme="dark"] .tool-card h3 { color: #ffffff; }
[data-theme="dark"] .tool-card p { color: #cbd5e1; }
[data-theme="dark"] .tool-link { color: #ffffff; }
[data-theme="dark"] .tool-card--featured {
  background: linear-gradient(135deg, #161622 0%, #1a1d2e 100%);
  border-color: rgba(96,165,250,.35);
}
[data-theme="dark"] .tool-icon {
  background: rgba(96,165,250,.12);
  color: #60a5fa;
}
[data-theme="dark"] .tool-card:hover { border-color: #60a5fa; }
[data-theme="dark"] .tool-card:hover .tool-icon { background: #60a5fa; color: #0a0a0a; }

/* Responsive */
@media (max-width: 960px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tools-showcase { padding: 3.5rem 0 4rem; }
  .tools-showcase .section-header h2 { font-size: 1.85rem; }
}

/* ── Category Navigation Bar ──────────────────────────────── */
.category-nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: .6rem 0;
  overflow-x: auto;
  position: sticky;
  top: calc(var(--ticker-height) + var(--nav-height));
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.category-nav-bar::-webkit-scrollbar { height: 0; }

.cat-nav-links {
  display: flex;
  gap: .25rem;
  align-items: center;
  justify-content: center;
}

.cat-nav-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: var(--radius-full);
  font: 600 .8rem/1 var(--font-sans);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}

.cat-nav-link:hover {
  background: var(--surface);
  color: var(--text-primary);
}

/* ── Article Cards ────────────────────────────────────────── */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-card:hover .article-title { color: var(--navy-light); }

/* Top accent bar */
.article-card[data-cat="solicitation"]::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cat-solicitation); }
.article-card[data-cat="won"]::before          { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cat-won); }
.article-card[data-cat="recompete"]::before    { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cat-recompete); }
.article-card[data-cat="scandal"]::before      { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cat-scandal); }
.article-card[data-cat="policy"]::before       { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cat-policy); }
.article-card[data-cat="industry"]::before     { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cat-industry); }

/* Article image area */
.article-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.article-img.cat-solicitation { background: linear-gradient(135deg, #1D3A6E, #2D5599); }
.article-img.cat-won          { background: linear-gradient(135deg, #0A4A28, #18894E); }
.article-img.cat-recompete    { background: linear-gradient(135deg, #3D1A6E, #6B3AA0); }
.article-img.cat-scandal      { background: linear-gradient(135deg, #6E1A1A, #C0392B); }
.article-img.cat-policy       { background: linear-gradient(135deg, #0A3A5E, #1565A0); }
.article-img.cat-industry     { background: linear-gradient(135deg, #5E3A0A, #A0651A); }

/* Article content */
.article-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.article-date,
.article-time,
.article-author {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.article-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: .6rem;
  transition: color var(--transition);
}

.article-excerpt {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: .75rem;
}

.article-footer {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.read-more {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .82rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .25rem;
}

.read-more:hover { color: var(--gold); gap: .5rem; }

/* ── Category Badges ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font: 700 .68rem/1 var(--font-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35em .75em;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--heading);
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Soft pastel pills: tint the background, keep the label in a
   readable accent color. */
.badge--solicitation { background: rgba(37,99,235,.1);  color: #1d4ed8; border-color: rgba(37,99,235,.22); }
.badge--won          { background: rgba(21,128,61,.1);  color: #15803d; border-color: rgba(21,128,61,.22); }
.badge--recompete    { background: rgba(124,58,237,.1); color: #6d28d9; border-color: rgba(124,58,237,.22); }
.badge--scandal      { background: rgba(200,35,30,.1);  color: #b91c1c; border-color: rgba(200,35,30,.22); }
.badge--policy       { background: rgba(3,105,161,.1);  color: #0369a1; border-color: rgba(3,105,161,.22); }
.badge--industry     { background: rgba(180,83,9,.1);   color: #b45309; border-color: rgba(180,83,9,.22); }
.badge--breaking     { background: rgba(200,35,30,.16); color: #b91c1c; border-color: rgba(200,35,30,.35); animation: badge-pulse .9s ease-in-out infinite alternate; }
.badge--newsletter   { background: rgba(10,10,10,.08);  color: var(--heading); border-color: var(--border); }

[data-theme="dark"] .badge--solicitation { background: rgba(37,99,235,.18);  color: #93c5fd; }
[data-theme="dark"] .badge--won          { background: rgba(21,128,61,.2);   color: #86efac; }
[data-theme="dark"] .badge--recompete    { background: rgba(124,58,237,.22); color: #c4b5fd; }
[data-theme="dark"] .badge--scandal      { background: rgba(200,35,30,.22);  color: #fca5a5; }
[data-theme="dark"] .badge--policy       { background: rgba(3,105,161,.22);  color: #7dd3fc; }
[data-theme="dark"] .badge--industry     { background: rgba(180,83,9,.22);   color: #fcd34d; }
[data-theme="dark"] .badge--breaking     { background: rgba(200,35,30,.28);  color: #fca5a5; }

@keyframes badge-pulse {
  from { opacity: 1; }
  to   { opacity: .65; }
}

/* ── Editorial Grid (Hero + Stack layout) ─────────────────── */
.editorial-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

/* Hero article card */
.article-card--hero .article-title {
  font-size: 1.4rem;
  font-family: var(--font-display);
  line-height: 1.3;
}

/* Article stack (right column) */
.article-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Compact (horizontal) card */
.article-card--compact {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: .9rem;
  transition: var(--transition);
  position: relative;
}

.article-card--compact:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}

.article-card--compact .article-img {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.article-card--compact .article-content {
  padding: 0;
  flex: 1;
  min-width: 0;
}

.article-card--compact .article-title {
  font-size: .9rem;
  line-height: 1.4;
  margin-bottom: .35rem;
}

.article-card--compact .article-excerpt { display: none; }
.article-card--compact .article-footer { padding-top: .4rem; }

/* ── Feature Cards ────────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-muted);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

.feature-card h4 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: .6rem;
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── Newsletter Mockup ────────────────────────────────────── */
.newsletter-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-header {
  background: var(--navy);
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.mockup-dots { display: flex; gap: .4rem; }
.mockup-dot  { width: 11px; height: 11px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #28CA41; }

.mockup-bar {
  flex: 1;
  background: rgba(255,255,255,.09);
  border-radius: var(--radius-full);
  padding: .28rem .85rem;
  font: 400 .72rem/1 var(--font-sans);
  color: rgba(255,255,255,.45);
  text-align: center;
}

.mockup-body { padding: 1.5rem; }

.mockup-masthead {
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
}

.mockup-masthead h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: .2rem;
}

.mockup-masthead p {
  color: rgba(255,255,255,.6);
  font-size: .78rem;
  margin: 0;
  font-family: var(--font-sans);
}

.mockup-issue-line {
  font: 400 .73rem/1 var(--font-sans);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.mockup-story {
  padding: .85rem 0;
  border-bottom: 1px solid var(--border-light);
  border-left: 3px solid var(--gold);
  padding-left: .85rem;
  margin-bottom: .75rem;
}

.mockup-story:last-of-type { border-bottom: none; margin-bottom: 0; }

.mockup-story-cat {
  font: 700 .65rem/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cat-solicitation);
  margin-bottom: .3rem;
}

.mockup-story-title {
  font: 700 .9rem/1.35 var(--font-sans);
  color: var(--text-primary);
  margin-bottom: .3rem;
}

.mockup-story-blurb {
  font: 400 .78rem/1.55 var(--font-sans);
  color: var(--text-secondary);
}

/* ── Testimonial Cards ────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.testimonial-quote {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  float: left;
  margin-right: .25rem;
  margin-top: -.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: .9rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.testimonial-role {
  font-size: .78rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* ── Discord Banner ───────────────────────────────────────── */
.discord-banner {
  background: linear-gradient(135deg, #3730A3 0%, #4F46E5 50%, #5865F2 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.discord-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.06), transparent 60%);
  pointer-events: none;
}

.discord-banner h2 { color: var(--white); }
.discord-banner p  { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 2rem; font-family: var(--font-sans); }

/* Discord inline stats */
.discord-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.discord-stat-num {
  display: block;
  font: 800 1.5rem/1 var(--font-sans);
  color: var(--gold);
  margin-bottom: .3rem;
}

.discord-stat-label {
  font: 500 .75rem/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.55);
}

/* ── Newsletter Band ──────────────────────────────────────── */
.newsletter-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,.12) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-band .container { position: relative; }

/* Inline newsletter form */
.newsletter-form-inline {
  display: flex;
  gap: .75rem;
  max-width: 520px;
  flex-wrap: wrap;
}

.newsletter-form-inline input {
  flex: 1;
  min-width: 200px;
  padding: .85rem 1.1rem;
  border: none;
  border-radius: var(--radius-md);
  font: 400 .95rem/1 var(--font-sans);
  outline: none;
  color: var(--text-primary);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font: 600 .85rem/1 var(--font-sans);
  color: var(--text-secondary);
  margin-bottom: .45rem;
}

.form-control {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font: 400 .95rem/1.5 var(--font-sans);
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.form-control::placeholder { color: var(--text-muted); }
.form-control.error        { border-color: var(--red-breaking); }

.form-error {
  display: none;
  font: 400 .75rem/1 var(--font-sans);
  color: var(--red-breaking);
  margin-top: .3rem;
}

.form-control.error + .form-error { display: block; }

.form-success {
  display: none;
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(21,128,61,.2);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font: 600 .88rem/1.4 var(--font-sans);
  margin-bottom: 1rem;
}

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

/* ── Page Hero (blog, newsletter, etc.) ───────────────────── */
.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, #06070f 100%);
  padding: calc(var(--ticker-height) + var(--nav-height) + 4.5rem) 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(37,99,235,.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.1) 50%, transparent 100%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,.7);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 620px;
  margin: 0 auto 1.5rem;
  font-family: var(--font-sans);
  line-height: 1.6;
}

.hero-search {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-search input {
  flex: 1;
  padding: .85rem 1.25rem;
  border: none;
  font: 400 .95rem/1 var(--font-sans);
  color: var(--text-primary);
  outline: none;
}

.hero-search button {
  background: var(--gold);
  color: var(--white);
  padding: .85rem 1.5rem;
  font: 700 .9rem/1 var(--font-sans);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.hero-search button:hover { background: var(--gold-dark); }

/* ── Category Tabs (blog filter) ─────────────────────────── */
.cat-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cat-tab {
  padding: .45rem 1.1rem;
  border-radius: var(--radius-full);
  font: 600 .82rem/1 var(--font-sans);
  cursor: pointer;
  background: var(--white);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}

.cat-tab:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

.cat-tab.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ── Blog Layout (2-col with sidebar) ────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

/* Sidebar widgets */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font: 700 .82rem/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gold);
}

.sidebar-search {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-search input {
  flex: 1;
  padding: .6rem .9rem;
  border: none;
  outline: none;
  font: 400 .9rem/1 var(--font-sans);
  color: var(--text-primary);
}

.sidebar-search button {
  background: var(--navy);
  color: var(--white);
  padding: .6rem .9rem;
  font-size: .9rem;
  transition: background .2s;
}

.sidebar-search button:hover { background: var(--navy-light); }

.popular-posts { display: flex; flex-direction: column; gap: 1rem; }

.popular-post {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  cursor: pointer;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.popular-post:last-child { border: none; padding: 0; }

.popular-num {
  font: 800 1.4rem/1 var(--font-sans);
  color: var(--border);
  flex-shrink: 0;
  min-width: 28px;
}

.popular-post h5 {
  font: 600 .85rem/1.4 var(--font-sans);
  color: var(--text-primary);
  margin-bottom: .2rem;
  transition: color .2s;
}

.popular-post:hover h5 { color: var(--navy-light); }
.popular-post span     { font-size: .73rem; color: var(--text-muted); }

.category-list { display: flex; flex-direction: column; gap: .35rem; }

.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem .7rem;
  border-radius: var(--radius-md);
  transition: background .2s;
  cursor: pointer;
  font-size: .88rem;
  font-family: var(--font-sans);
}

.cat-item:hover { background: var(--surface); }
.cat-item span:first-child { font-weight: 500; color: var(--text-secondary); }

.cat-count {
  font: 600 .73rem/1 var(--font-sans);
  background: var(--surface-alt);
  color: var(--text-muted);
  padding: .15rem .5rem;
  border-radius: var(--radius-full);
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 3rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font: 600 .9rem/1 var(--font-sans);
  cursor: pointer;
  background: var(--white);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}

.page-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Stats bar (community page) ───────────────────────────── */
.stats-bar {
  background: var(--gold);
  padding: 1.5rem 0;
}

.stats-bar-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stats-bar-item { text-align: center; }
.stats-bar-item .num { font: 800 2rem/1 var(--font-sans); color: var(--white); display: block; margin-bottom: .25rem; }
.stats-bar-item .lbl { font: 600 .78rem/1 var(--font-sans); color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .07em; }

/* ── Channel cards (community page) ──────────────────────── */
.channel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #5865F2;
}

.channel-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #36393f, #4a4f55);
  border-radius: var(--radius-lg);
}

.channel-card h4  { font: 700 1.05rem/1.3 var(--font-sans); margin-bottom: .5rem; color: var(--text-primary); }
.channel-card p   { font-size: .88rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.channel-tag      { display: inline-block; font: 700 .7rem/1 var(--font-sans); color: #5865F2; margin-top: .75rem; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #070F1E;
  padding: 4rem 0 0;
  color: rgba(255,255,255,.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  max-width: 280px;
  margin-top: 1rem;
  font-family: var(--font-sans);
}

.footer h5 {
  font: 700 .75rem/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; }
.footer-links li { margin-bottom: .55rem; }

.footer-links a {
  font: 400 .85rem/1 var(--font-sans);
  color: rgba(255,255,255,.5);
  transition: color .2s;
}

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

.footer-newsletter p {
  font-size: .88rem;
  margin-bottom: 1rem;
  line-height: 1.65;
  font-family: var(--font-sans);
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-newsletter-form input {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font: 400 .9rem/1 var(--font-sans);
  outline: none;
  transition: border-color .2s;
}

.footer-newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.footer-newsletter-form input:focus { border-color: var(--gold); }

.footer-bottom { padding: 1.5rem 0; }

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font: 400 .8rem/1 var(--font-sans);
  color: rgba(255,255,255,.35);
  margin: 0;
}

.social-links { display: flex; gap: .5rem; }

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font: 400 .8rem/1 var(--font-sans);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* ── Fade-up Animation ────────────────────────────────────── */
/* When GSAP is loaded, it handles all scroll animations directly.
   The .gsap-ready class is added by gsap-init.js to prevent
   CSS transitions from conflicting with GSAP. */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.fade-up.visible    { opacity: 1; transform: translateY(0); }
.fade-up.delay-1    { transition-delay: .1s; }
.fade-up.delay-2    { transition-delay: .2s; }
.fade-up.delay-3    { transition-delay: .3s; }

/* When GSAP is active, kill CSS transitions so GSAP has full control */
.gsap-ready .fade-up {
  transition: none;
}

/* ── Pricing (other pages) ────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--gold); transform: scale(1.02); }
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.pricing-header { background: var(--navy); padding: 2rem; text-align: center; color: var(--white); }
.pricing-card.featured .pricing-header { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }

.pricing-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font: 800 .7rem/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .6rem;
  border-radius: var(--radius-full);
  margin-bottom: .75rem;
}

.pricing-name  { font: 700 1.05rem/1 var(--font-sans); color: var(--white); margin-bottom: 1rem; }
.pricing-price { margin-bottom: .5rem; }
.pricing-price .amount { font: 800 2.75rem/1 var(--font-sans); color: var(--gold); }
.pricing-price .period { font: 400 .9rem/1 var(--font-sans); color: rgba(255,255,255,.55); }
.pricing-desc  { font: 400 .85rem/1.5 var(--font-sans); color: rgba(255,255,255,.6); }

.pricing-features { padding: 2rem; }
.pricing-features ul { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.pricing-features li { font: 400 .9rem/1.4 var(--font-sans); display: flex; align-items: flex-start; gap: .6rem; color: var(--text-secondary); }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-features li.not-included { color: var(--text-muted); }
.pricing-features li.not-included::before { content: '✕'; color: var(--border); }

/* Check / Cross / Partial for comparison tables */
.check   { color: var(--green); font-size: 1.1rem; }
.cross   { color: var(--border); font-size: 1.1rem; }
.partial { color: var(--gold); font-size: .85rem; font-weight: 600; }

/* ── Rules list (community page) ─────────────────────────── */
.rules-list { display: flex; flex-direction: column; gap: .75rem; }

.rule-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.rule-num { font: 800 1.1rem/1 var(--font-sans); color: var(--gold); flex-shrink: 0; }
.rule-text h5 { font: 700 .95rem/1.3 var(--font-sans); margin-bottom: .2rem; color: var(--text-primary); }
.rule-text p  { font: 400 .85rem/1.55 var(--font-sans); color: var(--text-secondary); margin: 0; }

/* Dark mode — Newsletter mockup */
[data-theme="dark"] .newsletter-mockup {
  border-color: #2a2a3a;
}
[data-theme="dark"] .mockup-body {
  background: #161622;
}
[data-theme="dark"] .mockup-issue-line {
  color: #64748b;
  border-bottom-color: #2a2a3a;
}
[data-theme="dark"] .mockup-story {
  border-bottom-color: #2a2a3a;
}
[data-theme="dark"] .mockup-story-title {
  color: #e2e8f0;
}
[data-theme="dark"] .mockup-story-blurb {
  color: #94a3b8;
}

/* Dark mode — Testimonials */
[data-theme="dark"] .testimonial-card {
  background: #161622;
  border-color: #2a2a3a;
  box-shadow: none;
}
[data-theme="dark"] .testimonial-card:hover {
  border-color: #3b82f6;
}
[data-theme="dark"] .testimonial-quote {
  color: #94a3b8;
}
[data-theme="dark"] .testimonial-name {
  color: #e2e8f0;
}
[data-theme="dark"] .testimonial-role {
  color: #64748b;
}

/* Dark mode — Rules */
[data-theme="dark"] .rule-item {
  background: #161622;
  box-shadow: none;
  border-left-color: #2563EB;
}
[data-theme="dark"] .rule-text h5 { color: #e2e8f0; }
[data-theme="dark"] .rule-text p { color: #94a3b8; }

/* ── Issue cards (newsletter archive) ────────────────────── */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.issue-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1.5px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.issue-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.issue-num   { font: 700 .7rem/1 var(--font-sans); color: var(--gold-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.issue-date  { font: 400 .73rem/1 var(--font-sans); color: var(--text-muted); margin-bottom: .6rem; }
.issue-title { font: 700 .88rem/1.4 var(--font-sans); color: var(--text-primary); margin-bottom: .5rem; }

.issue-topics { display: flex; gap: .4rem; flex-wrap: wrap; }

.issue-topic {
  font: 500 .68rem/1 var(--font-sans);
  background: var(--surface-alt);
  color: var(--text-muted);
  padding: .15rem .5rem;
  border-radius: var(--radius-full);
}

/* ── Bundle card (library page) ──────────────────────────── */
.bundle-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.bundle-card h3 { color: var(--white); font-family: var(--font-display); margin-bottom: .5rem; }
.bundle-card p  { color: rgba(255,255,255,.7); margin: 0; font-family: var(--font-sans); }
.bundle-price   { text-align: center; }
.bundle-original { font: 400 1rem/1 var(--font-sans); color: rgba(255,255,255,.45); text-decoration: line-through; margin-bottom: .25rem; }
.bundle-new      { font: 800 3rem/1 var(--font-sans); color: var(--gold); }
.bundle-save     { font: 700 .85rem/1 var(--font-sans); background: var(--gold); color: var(--white); padding: .2rem .75rem; border-radius: var(--radius-full); display: inline-block; margin-top: .5rem; }

/* ── Book cards ───────────────────────────────────────────── */
.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.book-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}

.book-cover {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  overflow: hidden;
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 100%;
  background: rgba(0,0,0,.25);
}

.book-cover-emoji { font-size: 3rem; position: relative; z-index: 1; }
.book-cover-title { font: 700 .75rem/1.3 var(--font-sans); color: rgba(255,255,255,.9); text-align: center; max-width: 80%; position: relative; z-index: 1; }

.book-cover-1 { background: linear-gradient(160deg, #000000, #2563EB); }
.book-cover-2 { background: linear-gradient(160deg, #0a0a0a, #15803D); }
.book-cover-3 { background: linear-gradient(160deg, #2D1A4E, #7C3AED); }
.book-cover-4 { background: linear-gradient(160deg, #0A2A1A, #196F3D); }
.book-cover-5 { background: linear-gradient(160deg, #3A0A0A, #C0392B); }
.book-cover-6 { background: linear-gradient(160deg, #0A2233, #0369A1); }
.book-cover-7 { background: linear-gradient(160deg, #1A1A0A, #B45309); }

.book-info    { padding: 1.25rem; }
.book-title   { font: 700 1rem/1.35 var(--font-sans); color: var(--text-primary); margin-bottom: .4rem; }
.book-desc    { font: 400 .83rem/1.55 var(--font-sans); color: var(--text-secondary); margin-bottom: 1rem; }
.book-price   { font: 800 1.4rem/1 var(--font-sans); color: var(--gold-dark); margin-bottom: 1rem; }
.book-price span { font: 400 .85rem/1 var(--font-sans); color: var(--text-muted); text-decoration: line-through; margin-left: .4rem; }
.book-actions { display: flex; gap: .5rem; }
.book-actions .btn { flex: 1; justify-content: center; }

/* ── Benefit cards (newsletter page) ─────────────────────── */
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }

.benefit-icon {
  font-size: 1.5rem;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-text h4 { font: 700 1rem/1.3 var(--font-sans); margin-bottom: .35rem; color: var(--text-primary); }
.benefit-text p  { font: 400 .87rem/1.6 var(--font-sans); color: var(--text-secondary); margin: 0; }

/* ── Comparison Table ─────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font: 400 .9rem/1.4 var(--font-sans);
}

.comparison-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.comparison-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.comparison-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.comparison-table tr:nth-child(even) td { background: var(--surface); }
.comparison-table td:first-child { font-weight: 500; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .blog-layout  { grid-template-columns: 1fr; }
  .bundle-card  { grid-template-columns: 1fr; text-align: center; }
  .issue-grid   { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 62px; }

  .hero { padding: calc(var(--nav-height) + 2.5rem) 0 3rem; }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .hero-stat:nth-child(3)::before { display: none; }

  .hero-stat {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .hero-stat:nth-child(1),
  .hero-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }

  .grid-2,
  .grid-3,
  .grid-4     { grid-template-columns: 1fr; }

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

  .nav-links, .nav-cta { display: none; }
  .hamburger  { display: flex; }

  .section    { padding: 3.5rem 0; }

  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .discord-banner   { padding: 2.25rem 1.5rem; }
  .discord-stats    { gap: 1.5rem; }

  .hero-cta { flex-direction: column; align-items: flex-start; }

  .pricing-card.featured { transform: scale(1); }
  .issue-grid { grid-template-columns: 1fr; }

  .stats-bar-inner { gap: 1.5rem; }

  .newsletter-form-inline { flex-direction: column; }

  .blog-layout { grid-template-columns: 1fr; }

  .bundle-card { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero-cta .btn    { justify-content: center; width: 100%; }
  .hero-stats       { grid-template-columns: repeat(2, 1fr); }

  .cat-tabs         { gap: .35rem; }
  .cat-tab          { font-size: .78rem; padding: .4rem .85rem; }

  .discord-banner   { padding: 2rem 1.25rem; }

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

/* ── Long-form content readability in dark mode ─────────────
   Issue/newsletter pages and DB-stored post HTML often carry hard-coded
   inline styles like `color:#333` on every <p> (newsletter posts were
   originally rendered as email-style HTML and that inlining persisted).
   Inline styles beat CSS without !important — so we use !important here
   to force the dark-mode color through any inline overrides. Affects
   only [data-theme="dark"]; light mode behaviour is unchanged. */
[data-theme="dark"] .issue-body p,
[data-theme="dark"] .issue-body li,
[data-theme="dark"] .issue-body blockquote,
[data-theme="dark"] .issue-body span,
[data-theme="dark"] .issue-body div,
[data-theme="dark"] .issue-data-table td,
[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-body li,
[data-theme="dark"] .article-body span:not(.badge),
[data-theme="dark"] .article-body div {
  color: var(--text-primary) !important;
}
[data-theme="dark"] .issue-body strong,
[data-theme="dark"] .article-body strong {
  color: var(--heading) !important;
}
[data-theme="dark"] .article-body a:not(.btn),
[data-theme="dark"] .issue-body a:not(.btn) {
  color: #93c5fd !important;
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --navy:          #0a0a0a;
  --navy-mid:      #141414;
  --navy-light:    #1e1e1e;
  --navy-surface:  #111111;
  --white:         #ffffff;
  --surface:       #0d0d14;
  --surface-alt:   #141420;
  --border:        #2a2a3a;
  --border-light:  #22222e;
  --text-primary:  #e6edf3;
  --text-secondary:#cbd5e1;
  --text-muted:    #64748b;
  --heading:       #f1f5f9;
  --red-light:     #1c0a0a;
  --green-light:   #0a1c0f;

  /* Inverted gray ramp — keeps semantic intent: --gray-700 still means
     "primary body text", --gray-500 still means "muted helper". */
  --gray-50:  #18181B;
  --gray-100: #1F1F24;
  --gray-200: #27272E;
  --gray-300: #3F3F46;
  --gray-400: #71717A;
  --gray-500: #A1A1AA;
  --gray-600: #D4D4D8;
  --gray-700: #E4E4E7;
  --gray-800: #F4F4F5;
  --gray-900: #FAFAFA;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:  0 10px 32px rgba(0,0,0,.5);
  --shadow-xl:  0 24px 48px rgba(0,0,0,.6);
}

[data-theme="dark"] body {
  background: var(--surface);
  color: var(--text-primary);
}

/* Override card/section backgrounds that used --white */
[data-theme="dark"] .article-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .lib-card,
[data-theme="dark"] .comm-channel-card,
[data-theme="dark"] .opp-card,
[data-theme="dark"] .live-recent,
[data-theme="dark"] .live-recent-card,
[data-theme="dark"] .contract-card,
[data-theme="dark"] .incumbent-card,
[data-theme="dark"] .feed-post,
[data-theme="dark"] .comment-card,
[data-theme="dark"] .opp-filter-bar,
[data-theme="dark"] .opp-error {
  background: #161622;
}

[data-theme="dark"] .navbar {
  background: #0a0a0a;
  border-bottom: 1px solid #1f2937;
}

[data-theme="dark"] .nav-logo {
  color: #f1f5f9;
}

[data-theme="dark"] .nav-links a {
  color: rgba(255,255,255,.75);
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: #fff;
}

[data-theme="dark"] .nav-cta span,
[data-theme="dark"] .nav-cta a,
[data-theme="dark"] .nav-cta {
  color: #fff !important;
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(10,10,10,.97);
}

[data-theme="dark"] .mobile-nav {
  background: #111;
}

/* Cards, sections, backgrounds */
[data-theme="dark"] .section.bg-white,
[data-theme="dark"] .bg-white {
  background: #111119 !important;
}

[data-theme="dark"] .section.bg-surface,
[data-theme="dark"] .bg-surface {
  background: #0d0d14 !important;
}

[data-theme="dark"] .article-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .lib-card,
[data-theme="dark"] .comm-channel-card {
  background: #161622;
  border-color: #2a2a3a;
}

[data-theme="dark"] .article-card:hover,
[data-theme="dark"] .feature-card:hover {
  border-color: #3b82f6;
}

/* Hero */
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(14, 165, 233, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(56, 189, 248, 0.07) 0%, transparent 60%),
    linear-gradient(160deg, #050810 0%, #080D1A 50%, #050C18 100%);
}

/* Category tabs */
[data-theme="dark"] .cat-tab {
  background: #1a1a2e;
  color: #94a3b8;
  border-color: #2a2a3a;
}
[data-theme="dark"] .cat-tab.active,
[data-theme="dark"] .cat-tab:hover {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}

/* Buttons */
[data-theme="dark"] .btn--outline-dark {
  border-color: #475569;
  color: #e2e8f0;
}
[data-theme="dark"] .btn--outline-dark:hover {
  background: rgba(255,255,255,.08);
}

/* Footer */
[data-theme="dark"] .footer {
  background: #070710;
  border-top: 1px solid #1f2937;
}

/* Forms & inputs */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #1a1a2e !important;
  border-color: #2a2a3a !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .comment-toolbar-btn {
  background: #1a1a2e !important;
  border-color: #2a2a3a !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #475569;
}

/* Stats — transparent, let divider lines handle the separation */
[data-theme="dark"] .hero-stat {
  background: transparent;
  border: none;
}

/* Article meta */
[data-theme="dark"] .article-meta {
  color: #64748b;
}

/* Discord / CTA banner */
[data-theme="dark"] .discord-banner {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
}

/* Pricing featured */
[data-theme="dark"] .pricing-card--featured {
  border-color: #2563EB;
  background: #12122a;
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar { width: 8px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0d0d14; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 4px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3a3a4a; }

/* Global text overrides for any remaining dark text */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #e2e8f0;
}

[data-theme="dark"] p {
  color: #cbd5e1;
}

[data-theme="dark"] label {
  color: #cbd5e1;
}

[data-theme="dark"] .section-label {
  color: #60a5fa;
}

[data-theme="dark"] .divider-gold {
  background: #1e3a8a;
}

[data-theme="dark"] .discord-banner h2,
[data-theme="dark"] .discord-banner h3 {
  color: #fff;
}

/* Category nav bar */
[data-theme="dark"] .category-nav-bar {
  background: #111119;
  border-bottom-color: #2a2a3a;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
[data-theme="dark"] .cat-nav-link {
  color: #94a3b8;
}
[data-theme="dark"] .cat-nav-link:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,.06);
}

/* Category tabs (blog) */
[data-theme="dark"] .cat-tab {
  background: #1a1a2e;
  border-color: #2a2a3a;
  color: #94a3b8;
}
[data-theme="dark"] .cat-tab:hover {
  color: #e2e8f0;
  border-color: #475569;
}
[data-theme="dark"] .cat-tab.active {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}

/* Pagination */
[data-theme="dark"] .page-btn {
  background: #1a1a2e;
  border-color: #2a2a3a;
  color: #94a3b8;
}
[data-theme="dark"] .page-btn:hover {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}
[data-theme="dark"] .page-btn.active {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}

/* Article cards */
[data-theme="dark"] .article-card,
[data-theme="dark"] .article-card--compact {
  background: #161622;
  border-color: #2a2a3a;
}
[data-theme="dark"] .article-card:hover,
[data-theme="dark"] .article-card--compact:hover {
  border-color: #3b82f6;
}
[data-theme="dark"] .article-card--compact .article-date,
[data-theme="dark"] .article-card--compact .article-author {
  color: #64748b;
}
[data-theme="dark"] .article-card--compact .article-title {
  color: #e2e8f0;
}
[data-theme="dark"] .article-card--hero {
  background: #161622;
  border-color: #2a2a3a;
}
[data-theme="dark"] .article-card--hero:hover {
  border-color: #3b82f6;
}
[data-theme="dark"] .article-read-link {
  color: #60a5fa;
}
[data-theme="dark"] .article-title,
[data-theme="dark"] .article-title a {
  color: #e2e8f0;
}
[data-theme="dark"] .article-card:hover .article-title,
[data-theme="dark"] .article-card:hover .article-title a,
[data-theme="dark"] .article-title a:hover {
  color: #93c5fd;
}
[data-theme="dark"] .article-excerpt {
  color: #94a3b8;
}
[data-theme="dark"] .article-footer {
  border-top-color: #2a2a3a;
}

/* Blog post titles */
[data-theme="dark"] .feed-post-title a {
  color: #e2e8f0;
}
[data-theme="dark"] .feed-post-title a:hover {
  color: #60a5fa;
}
[data-theme="dark"] .feed-post--pro .feed-post-title a {
  color: #cbd5e1;
}

/* Article page body content */
[data-theme="dark"] .article-body,
[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-body li,
[data-theme="dark"] .article-body td,
[data-theme="dark"] .article-body th {
  color: #cbd5e1;
}
[data-theme="dark"] .article-body h1,
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .article-body h4 {
  color: #f1f5f9;
}
[data-theme="dark"] .article-body a {
  color: #60a5fa;
}
[data-theme="dark"] .article-body blockquote {
  border-left-color: #2563EB;
  background: #111119;
  color: #cbd5e1;
}
[data-theme="dark"] .article-body code {
  background: #1a1a2e;
  color: #e2e8f0;
}
[data-theme="dark"] .article-body strong {
  color: #f1f5f9;
}

/* Comments section */
[data-theme="dark"] .comments-section {
  border-top-color: #2a2a3a;
}

/* Read count / like button */
[data-theme="dark"] .feed-like-btn {
  border-color: #2a2a3a;
  color: #94a3b8;
}
[data-theme="dark"] .feed-like-btn:hover {
  background: rgba(244,63,94,.1);
}

/* Feed divider */
[data-theme="dark"] .feed-divider {
  border-top-color: #2a2a3a;
}

/* Tools navigation bar */
.tools-nav {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: .5rem 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 99;
}
.tools-nav-inner {
  display: flex;
  align-items: center;
  gap: .25rem;
  justify-content: center;
  overflow-x: auto;
}
.tools-nav-inner::-webkit-scrollbar { display: none; }
.tools-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .4rem .85rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  transition: background .15s, color .15s;
  line-height: 1.15;
}
/* Allow stacked labels (e.g. Capability/Statement/Builder) to wrap */
.tools-nav-item .tools-nav-label[style*="white-space:normal"],
.tools-nav-item .tools-nav-label[style*="white-space: normal"] {
  white-space: normal !important;
}
.tools-nav-item:hover { background: rgba(255,255,255,.06); color: #ffffff; }
.tools-nav-item.active { background: rgba(37,99,235,.15); color: #60a5fa; }
.tools-nav-back { color: #60a5fa; margin-right: .5rem; padding-right: 1rem; border-right: 1px solid #1e293b; }
.tools-nav-back:hover { color: #93c5fd; }
.tools-nav-icon { display: flex; align-items: center; }
.tools-nav-label { }

/* Dark mode toggle button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  color: rgba(255,255,255,.7);
}
.theme-toggle:hover {
  background: rgba(255,255,255,.1);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
