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

:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --surface: #18181b;
  --border: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --green: #22c55e;
  --radius: 12px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", var(--font);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Typography ===== */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ===== Hero ===== */
.hero {
  padding: 8rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 1.25rem 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-card h3 {
  margin-bottom: 1.25rem;
}

.hero-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.hero-card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.hero-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.hero-card-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* ===== Programs ===== */
.program-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .program-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.program-card:hover {
  border-color: #3f3f46;
  transform: translateY(-2px);
}

.program-card.featured {
  border-color: var(--accent);
  position: relative;
}

.program-card.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  opacity: 0.15;
  pointer-events: none;
}

.program-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.program-card.featured .program-tag {
  color: var(--accent);
}

.program-card h3 {
  margin-bottom: 0.5rem;
}

.program-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.program-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.program-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}

.program-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.85rem;
}

/* ===== Why ===== */
.why-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-item {
  padding: 0.5rem 0;
}

.why-num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.why-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Testimonials ===== */
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.testimonial p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.testimonial footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== CTA ===== */
.cta-section {
  padding-bottom: 6rem;
}

.cta-box {
  background: linear-gradient(145deg, #1a1a1e 0%, #111113 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-box h2 {
  margin-bottom: 0.75rem;
}

.cta-box > p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
  margin: 0 auto 1rem;
}

@media (min-width: 480px) {
  .cta-form {
    flex-direction: row;
  }
}

.cta-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.cta-form input:focus {
  border-color: var(--accent);
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-note.success {
  color: var(--green);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.footer-copy p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Hero Meme ===== */
.meme-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  max-width: 380px;
  width: 100%;
}

.hero-meme {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ===== Content Blocks (Lawfare sections) ===== */
.content-block {
  max-width: 720px;
  margin: 0 auto;
}

.content-block p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== Stat strip ===== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
  border-color: #3f3f46;
  transform: translateY(-2px);
}

.stat-num {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.35rem;
  color: var(--text);
}

.stat-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ===== Callouts ===== */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.callout-red {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, var(--surface) 40%);
}

.callout-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.callout p {
  margin-bottom: 0.75rem !important;
  color: var(--text) !important;
}

.callout p:last-child {
  margin-bottom: 0 !important;
}

/* ===== Pull quote ===== */
.pull-quote {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
  max-width: 36rem;
}

/* ===== Fact grid ===== */
.fact-grid {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0;
}

@media (min-width: 640px) {
  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.fact-item:hover {
  border-color: #3f3f46;
}

.fact-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.fact-item p {
  font-size: 0.9rem !important;
  margin-bottom: 0 !important;
  color: var(--text-muted) !important;
  line-height: 1.55;
}

/* ===== Section subhead ===== */
.section-subhead {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.25rem 0 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
