:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --text: #111827;
  --text-muted: #4B5563;
  --bg: #ffffff;
  --bg-alt: #F3F6FB;
  --card-bg: #ffffff;
  --border: #E2E8F0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--primary); }

.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-cta {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.hero {
  padding: 72px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg) 70%);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: #EFF6FF;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--text);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0 0 32px;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.cta-button:hover { background: var(--primary-dark); }

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.stats-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-eyebrow {
  display: block;
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.subjects h2, .counties h2, .final-cta h2 {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 32px;
  color: var(--text);
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.subject-card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.subject-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.subject-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--text);
}

.subject-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.counties-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: -16px auto 32px;
}

.county-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.final-cta {
  text-align: center;
}

.final-cta p {
  color: var(--text-muted);
  margin: 0 0 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-inner p { margin: 6px 0; }
.footer-inner a { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 640px) {
  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 1.75rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .subject-grid { grid-template-columns: 1fr; }
}
