:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-soft: #ebe6db;
  --text: #1c2520;
  --muted: #667069;
  --line: rgba(28, 37, 32, 0.14);
  --accent: #305c43;
  --accent-2: #b58b4a;
  --accent-soft: rgba(48, 92, 67, 0.12);
  --shadow: 0 24px 70px rgba(21, 35, 28, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(181, 139, 74, 0.18), transparent 30rem),
    radial-gradient(circle at 85% 18%, rgba(48, 92, 67, 0.15), transparent 28rem),
    var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--text);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 238, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  letter-spacing: -0.06em;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

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

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

.section {
  padding: 88px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  letter-spacing: -0.075em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.055em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.lead {
  margin: 24px 0 0;
  max-width: 760px;
  color: #3c4640;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-actions,
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 32px rgba(48, 92, 67, 0.22);
}

.btn-secondary {
  background: white;
  border: 1px solid var(--line);
}

.trust-list {
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
}

.hero-visual {
  border-radius: 36px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(235,230,219,0.55));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.75);
}

.animation-slot {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(181,139,74,0.32), transparent 14rem),
    radial-gradient(circle at 50% 50%, rgba(48,92,67,0.18), transparent 18rem),
    #15231c;
}

.animation-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
}

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #e7c783, #7a9b75 55%, transparent 72%);
  filter: blur(1px);
  animation: pulse 3.8s ease-in-out infinite;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(231, 199, 131, 0.55);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit-a {
  width: 280px;
  height: 110px;
  transform: translate(-50%, -50%) rotate(18deg);
  animation: spinA 9s linear infinite;
}

.orbit-b {
  width: 330px;
  height: 140px;
  transform: translate(-50%, -50%) rotate(-34deg);
  animation: spinB 11s linear infinite;
}

.orbit-c {
  width: 220px;
  height: 360px;
  transform: translate(-50%, -50%) rotate(54deg);
  animation: spinC 13s linear infinite;
}

.placeholder-card,
.placeholder-inline {
  color: #48544d;
  background: rgba(255,255,255,0.7);
  border: 1px dashed rgba(48,92,67,0.34);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.placeholder-card {
  margin: 18px 0 0;
}

.intro-strip {
  padding: 28px 0;
}

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

.stats-grid article {
  min-height: 120px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--line);
}

.stats-grid strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.045em;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
}

.rich-text p {
  margin: 0 0 18px;
}

.section-muted {
  background: rgba(235,230,219,0.58);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 840px;
  margin-bottom: 36px;
}

.section-head.narrow {
  max-width: 760px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.course-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 45px rgba(21,35,28,0.07);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.course-card:hover,
.course-card:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(48,92,67,0.45);
  outline: none;
}

.course-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 800;
}

.course-card p {
  color: var(--muted);
}

.course-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: auto 0 20px;
  list-style: none;
}

.course-card li {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.82rem;
  color: #4d554f;
}

.card-link {
  color: var(--accent);
  font-weight: 800;
}

.grant-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
}

.grant-panel,
.accordion,
.notice,
.steps-grid article,
.cta-card,
.contact-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 45px rgba(21,35,28,0.06);
}

.grant-panel {
  padding: 28px;
}

.process-list {
  display: grid;
  gap: 18px;
  padding-left: 20px;
  margin-bottom: 0;
}

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

.process-list span {
  color: var(--muted);
}

.accordion {
  overflow: hidden;
}

.accordion-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

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

.accordion-item.is-open + .accordion-panel {
  display: block;
}

.plus {
  color: var(--accent);
}

.notice {
  margin-top: 22px;
  padding: 24px;
  border-style: dashed;
}

.notice p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.steps-grid article {
  padding: 24px;
}

.steps-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: -0.05em;
  font-size: 2rem;
}

.steps-grid p {
  color: var(--muted);
}

.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at 0% 0%, rgba(181,139,74,0.15), transparent 28rem),
    white;
}

.contact-box {
  padding: 24px;
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

@keyframes spinA {
  from { transform: translate(-50%, -50%) rotate(18deg) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotate(18deg) rotateY(360deg); }
}

@keyframes spinB {
  from { transform: translate(-50%, -50%) rotate(-34deg) rotateX(0deg); }
  to { transform: translate(-50%, -50%) rotate(-34deg) rotateX(360deg); }
}

@keyframes spinC {
  from { transform: translate(-50%, -50%) rotate(54deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotate(54deg) rotateZ(360deg); }
}

@media (max-width: 1040px) {
  .hero-grid,
  .two-column,
  .grant-layout,
  .cta-card {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }
}

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

  .section {
    padding: 62px 0;
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .hero-grid {
    gap: 28px;
  }

  .animation-slot {
    min-height: 310px;
  }

  .course-grid,
  .steps-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: auto;
  }

  .footer-grid {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* Educa Orbis adjustments */
.course-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.85);
  background: #f1f0eb;
  box-shadow: none;
}

.course-card.is-disabled:hover,
.course-card.is-disabled:focus {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.course-card.is-disabled .course-icon {
  background: rgba(102, 112, 105, 0.13);
  color: #777f79;
}

.course-card.is-disabled .card-link,
.muted-link {
  color: #777f79;
}

.billing-box {
  margin: 18px 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(246, 244, 238, 0.76);
  border: 1px solid var(--line);
}

.billing-box h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.billing-box p {
  margin: 6px 0;
  font-size: 0.94rem;
}

.footer-link {
  color: var(--accent);
  font-weight: 800;
  border-bottom: 1px solid rgba(48, 92, 67, 0.35);
}

.footer-link:hover {
  color: var(--accent-2);
  border-bottom-color: rgba(181, 139, 74, 0.55);
}

/* Requested content refinements */
.trust-block {
  margin-top: 30px;
}

.trust-title {
  max-width: 720px;
  margin: 0 0 12px;
  color: #3c4640;
  font-weight: 750;
}

.intro-summary {
  display: grid;
  gap: 24px;
}

.intro-head {
  max-width: 880px;
}

.intro-head h2 {
  max-width: 820px;
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
}

.intro-head p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  border-bottom: 1px solid rgba(48, 92, 67, 0.32);
}

.text-link:hover {
  color: var(--accent-2);
  border-bottom-color: rgba(181, 139, 74, 0.55);
}

.contact-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(48, 92, 67, 0.56);
  box-shadow: 0 0 0 4px rgba(48, 92, 67, 0.10);
}

.contact-form textarea {
  resize: vertical;
}
