:root {
  --primary: #0f172a;
  --secondary: #2563eb;
  --accent: #10b981;
  --background: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --white: #ffffff;
  --soft-blue: #eff6ff;
  --soft-green: #ecfdf5;
  --soft-gold: #fff7ed;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.09);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--primary);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary);
}

.brand img {
  width: 184px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
  background: #dbeafe;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--secondary);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.14), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.14), transparent 28%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 800;
  font-size: 0.86rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  color: var(--primary);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 5.1rem;
  font-weight: 900;
}

h2 {
  font-size: 3.15rem;
  font-weight: 900;
}

h3 {
  font-size: 1.25rem;
  font-weight: 850;
}

p {
  margin: 0;
}

.hero-copy {
  max-width: 680px;
}

.hero-copy .lead {
  margin-top: 22px;
  max-width: 640px;
  color: #334155;
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.proof-item {
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.proof-item strong {
  display: block;
  color: var(--primary);
  font-size: 1.45rem;
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  display: block;
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.floating-note {
  position: absolute;
  left: -24px;
  bottom: 34px;
  max-width: 260px;
  padding: 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.floating-note strong {
  display: block;
  color: var(--primary);
}

.floating-note span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 84px 0;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.narrow {
  max-width: 840px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--secondary);
  background: var(--soft-blue);
  font-weight: 900;
}

.card:nth-child(2n) .icon {
  color: #047857;
  background: var(--soft-green);
}

.card:nth-child(3n) .icon {
  color: #c2410c;
  background: var(--soft-gold);
}

.card p,
.story p,
.feature-list p,
.timeline p,
.contact-panel p {
  margin-top: 12px;
  color: var(--muted);
}

.link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--secondary);
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.statement {
  padding: 42px;
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #047857);
  box-shadow: var(--shadow);
}

.statement h2,
.statement p {
  color: var(--white);
}

.statement p {
  margin-top: 18px;
  font-size: 1.2rem;
}

.vision-statement {
  color: var(--text);
  background: linear-gradient(135deg, #ffffff, #eff6ff 58%, #ecfdf5);
  border: 1px solid #dbeafe;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.vision-statement h2,
.vision-statement p {
  color: var(--primary);
}

.vision-statement > p:not(.eyebrow) {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list article {
  padding: 24px;
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  padding: 24px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--primary);
  background: var(--white);
  text-align: center;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.stat strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.stat .impact-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--secondary);
  background: var(--soft-blue);
  font-size: 1.02rem;
  line-height: 1;
  white-space: nowrap;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
}

.stat:nth-child(2n) .impact-word {
  color: #047857;
  background: var(--soft-green);
}

.stat:nth-child(3n) .impact-word {
  color: #c2410c;
  background: var(--soft-gold);
}

.story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  align-items: center;
  padding: 42px;
  border-radius: 28px;
  background: var(--primary);
}

.story h2,
.story h3,
.story p {
  color: var(--white);
}

.story p {
  color: #cbd5e1;
}

.story-copy,
.story-mark {
  position: relative;
  z-index: 1;
}

.story .eyebrow {
  color: var(--primary);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.story .eyebrow::before {
  background: var(--accent);
}

.story-mark {
  display: grid;
  place-items: center;
  min-height: 270px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.75), rgba(16, 185, 129, 0.72)),
    url("../assets/images/rural-students-learning.svg") center / cover;
}

.story-mark span {
  width: min(78%, 320px);
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
}

.cta-banner {
  padding: 44px;
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner h2,
.cta-banner p {
  color: var(--white);
}

.cta-banner p {
  margin-top: 10px;
  max-width: 680px;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}

.faq-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-button::after {
  content: "+";
  font-size: 1.4rem;
}

.faq-button[aria-expanded="true"]::after {
  content: "-";
}

.faq-panel {
  display: none;
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-panel.open {
  display: block;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 560px;
  margin-top: 22px;
}

.newsletter input,
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: var(--text);
  background: var(--white);
}

.newsletter .form-note {
  grid-column: 1 / -1;
}

.newsletter input:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: var(--secondary);
}

.page-hero {
  padding: 78px 0 58px;
  background:
    radial-gradient(circle at 12% 20%, rgba(37, 99, 235, 0.13), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(16, 185, 129, 0.16), transparent 28%),
    var(--white);
}

.page-hero p {
  max-width: 780px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.18rem;
}

.values {
  counter-reset: value;
}

.value-card {
  counter-increment: value;
}

.value-card::before {
  content: "0" counter(value);
  position: absolute;
  right: 22px;
  top: 18px;
  color: #dbeafe;
  font-size: 3rem;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  position: relative;
  padding: 24px 24px 24px 34px;
  border-left: 4px solid var(--secondary);
  border-radius: 0 16px 16px 0;
  background: var(--white);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badge {
  padding: 9px 12px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 800;
  font-size: 0.88rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 30px;
  align-items: start;
}

.contact-panel,
.contact-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-list a {
  display: block;
  color: var(--secondary);
  font-weight: 850;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--primary);
  font-weight: 800;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 58px 0 28px;
  color: #cbd5e1;
  background: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 30px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 900;
}

.footer-logo img {
  width: 176px;
  filter: brightness(0) invert(1);
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
}

.site-footer p {
  margin-top: 14px;
  max-width: 430px;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(203, 213, 225, 0.28);
  border-radius: 12px;
  color: var(--white);
  font-weight: 900;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(203, 213, 225, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 12px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-grid,
  .split,
  .story,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-copy .lead {
    font-size: 1.15rem;
  }

  .stat strong {
    font-size: 2.45rem;
  }

  .stat .impact-word {
    font-size: 1rem;
  }

  .floating-note {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .grid-3,
  .grid-4,
  .stats,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand img {
    width: 168px;
  }

  .hero-proof,
  .grid-2,
  .grid-3,
  .grid-4,
  .stats,
  .footer-grid,
  .form-grid,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section-head,
  .cta-banner,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .card,
  .statement,
  .story,
  .cta-banner,
  .contact-panel,
  .contact-form {
    padding: 24px;
  }

  .hero-actions .btn,
  .cta-banner .btn,
  .newsletter .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
