:root {
  --ink: #172033;
  --muted: #5e687a;
  --line: #dde4ee;
  --soft: #f5f8fb;
  --white: #ffffff;
  --blue: #055eb8;
  --blue-dark: #033f7c;
  --green: #1e8c4d;
  --red: #d43f4d;
  --purple: #6f37b3;
  --gold: #f4b731;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  color: var(--blue);
}

.brand small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 9px 11px;
  border-radius: 7px;
  color: #344055;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  background: #eaf3ff;
  color: var(--blue-dark);
}

.site-nav .nav-cta {
  background: var(--blue);
  color: var(--white);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  background: var(--blue-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: clamp(54px, 8vw, 112px) clamp(18px, 6vw, 86px) 40px;
  background:
    linear-gradient(135deg, rgba(5, 94, 184, 0.08), rgba(30, 140, 77, 0.08) 46%, rgba(212, 63, 77, 0.08)),
    var(--white);
}

.hero h1,
.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(5, 94, 184, 0.22);
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--blue-dark);
}

.button.ghost {
  background: transparent;
  border-color: rgba(5, 94, 184, 0.22);
  color: var(--blue-dark);
}

.hero-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  border: 1px solid rgba(5, 94, 184, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 94, 184, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(5, 94, 184, 0.08) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel:before {
  content: "";
  position: absolute;
  inset: 46px;
  border: 2px dashed rgba(111, 55, 179, 0.35);
  border-radius: 50%;
}

.hero-panel img {
  position: relative;
  z-index: 2;
  width: min(64%, 300px);
  filter: drop-shadow(0 18px 24px rgba(23, 32, 51, 0.16));
}

.orbit {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 84px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(23, 32, 51, 0.16);
}

.orbit-one { top: 58px; left: 52px; background: var(--blue); }
.orbit-two { top: 92px; right: 42px; background: var(--green); }
.orbit-three { bottom: 78px; left: 42px; background: var(--purple); }
.orbit-four { right: 54px; bottom: 54px; background: var(--red); }

.section,
.page-hero,
.cta-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 86px);
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(5, 94, 184, 0.09), rgba(30, 140, 77, 0.06) 52%, rgba(244, 183, 49, 0.12)),
    var(--white);
}

.soft {
  background: var(--soft);
}

.split,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.section h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section h3 {
  margin: 14px 0 8px;
  font-size: 1.25rem;
}

.rich-text p:first-child {
  margin-top: 0;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.feature-grid,
.program-grid,
.blog-grid,
.roadmap-cards,
.course-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.program-card,
.blog-grid article,
.roadmap-cards article,
.course-card,
.event-list article,
.admin-grid article,
.quote-box,
.contact-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.06);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--blue);
  font-weight: 900;
}

.tag {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #edf7f1;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.program-card a {
  color: var(--blue);
  font-weight: 900;
}

.roadmap-band {
  background: #162031;
  color: var(--white);
}

.roadmap-band .eyebrow,
.roadmap-band p {
  color: #b9d9ff;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
}

.roadmap div {
  min-height: 120px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.roadmap strong {
  display: block;
  color: var(--gold);
  font-size: 2rem;
}

.roadmap span {
  display: block;
  font-weight: 900;
}

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

.stats div,
.dashboard article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.stats strong,
.dashboard strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.stats span,
.dashboard span {
  color: var(--muted);
  font-weight: 800;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-list a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 900;
}

.cta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #edf7f1, #eaf3ff);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 28px;
  padding: 42px clamp(18px, 6vw, 86px);
  background: #111827;
  color: #d7deea;
}

.site-footer img {
  width: 100px;
  padding: 8px;
  border-radius: 8px;
  background: var(--white);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #d7deea;
}

.site-footer.compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.value-grid span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-weight: 900;
}

.about-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.about-proof {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.06);
}

.about-proof span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-proof strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-dark);
  font-size: 1.18rem;
  line-height: 1.25;
}

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

.mission-grid article,
.problem-list article,
.audience-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.06);
}

.mission-grid p:last-child {
  color: var(--muted);
}

.problem-list,
.audience-grid {
  display: grid;
  gap: 14px;
}

.problem-list strong,
.problem-list span {
  display: block;
}

.problem-list strong {
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.problem-list span {
  margin-top: 6px;
  color: var(--muted);
}

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

.community-list article {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.06);
}

.community-list h3 {
  margin: 0;
}

.community-list p {
  margin: 0;
  color: var(--muted);
}

.community-list a {
  margin-top: 8px;
  color: var(--blue);
  font-weight: 900;
}

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

.site-link-grid a {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.06);
}

.site-link-grid span {
  color: var(--blue);
  font-weight: 900;
}

.site-link-grid strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.timeline,
.event-list {
  display: grid;
  gap: 16px;
}

.timeline article {
  padding: 20px;
  border-left: 5px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.filter.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

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

.course-card h2,
.blog-grid h2,
.event-list h2,
.admin-grid h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.course-card.is-hidden,
.blog-grid article.is-hidden {
  display: none;
}

.search-row {
  display: grid;
  gap: 8px;
  max-width: 640px;
  margin-bottom: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.form-card {
  display: grid;
  gap: 16px;
}

.form-card.wide {
  align-content: start;
}

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

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-top: 20px;
  border: 1px dashed #aeb9ca;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 900;
}

.form-notice {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgba(30, 140, 77, 0.24);
  border-radius: 7px;
  background: #edf7f1;
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 91px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 18px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(23, 32, 51, 0.12);
  }

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

  .hero,
  .split,
  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .program-grid,
  .blog-grid,
  .roadmap-cards,
  .admin-grid,
  .about-intro,
  .mission-grid,
  .community-list,
  .site-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 680px) {
  .brand img {
    width: 54px;
    height: 54px;
  }

  .site-nav {
    top: 83px;
  }

  .site-nav.open,
  .feature-grid,
  .program-grid,
  .blog-grid,
  .roadmap-cards,
  .course-grid,
  .admin-grid,
  .about-intro,
  .mission-grid,
  .community-list,
  .site-link-grid,
  .roadmap,
  .stats,
  .dashboard,
  .form-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 360px;
  }

  .orbit {
    min-width: 72px;
    font-size: 0.84rem;
  }

  .row-heading,
  .cta-section,
  .site-footer.compact {
    display: grid;
    justify-content: stretch;
  }

  .hero-actions .button,
  .cta-section .button {
    width: 100%;
  }
}
