:root {
  --ac-ink: #0a1220;
  --ac-muted: #667085;
  --ac-line: rgba(10, 18, 32, 0.1);
  --ac-teal: #15cbb5;
  --ac-teal-dark: #1d676c;
  --ac-blue: #365d8f;
  --ac-lime: #d9f86c;
  --ac-surface: #f5f7f6;
  --ac-soft: #eef4f1;
}

body[data-page="academy"] {
  background:
    linear-gradient(180deg, rgba(245,247,246,0.95) 0%, rgba(251,250,247,1) 32%, rgba(251,250,247,1) 100%);
}

.ac-hero {
  padding-top: 156px;
  padding-bottom: 86px;
}

.ac-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: clamp(46px, 6vw, 96px);
  align-items: center;
}

.ac-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.ac-crumbs a {
  color: inherit;
  transition: color .2s ease;
}

.ac-crumbs a:hover {
  color: var(--ac-teal-dark);
}

.ac-crumbs .dash {
  width: 18px;
  height: 1px;
  background: var(--line);
}

.ac-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac-teal-dark);
}

.ac-hero__title {
  max-width: 9.2ch;
  margin-top: 22px;
  font-family: var(--f-display);
  font-size: clamp(64px, 8vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.ac-hero__title em {
  color: var(--ac-teal-dark);
  font-style: italic;
}

.ac-hero__lede {
  max-width: 54ch;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
}

.ac-hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.ac-hero__visual {
  --ac-shell-rx: 0deg;
  --ac-shell-ry: 0deg;
  --ac-shell-x: 0px;
  --ac-shell-y: 0px;
  --ac-image-x: 0px;
  --ac-image-y: 0px;
  --ac-pointer-x: 50%;
  --ac-pointer-y: 42%;
  position: relative;
  min-height: clamp(520px, 58vw, 700px);
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 1200px;
}

.ac-hero__visual::before {
  content: "";
  position: absolute;
  inset: 2% 0 4%;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,18,32,0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10,18,32,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, black 0 58%, transparent 76%);
}

.ac-hero__visual::after {
  content: "";
  position: absolute;
  left: var(--ac-pointer-x);
  top: var(--ac-pointer-y);
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,203,181,0.16), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity .25s ease;
}

.ac-hero__case-image {
  position: absolute;
  left: 4px;
  top: 216px;
  z-index: 4;
  width: min(240px, 34vw);
  pointer-events: none;
  transform: translate3d(var(--ac-image-x), var(--ac-image-y), 0);
  transform-origin: center;
  transition: transform .4s ease;
  will-change: transform;
  filter: drop-shadow(0 28px 34px rgba(10, 18, 32, 0.16));
}

.ac-hero__case-image img {
  display: block;
  width: 100%;
  height: auto;
}

.ac-learning-shell {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin-top: clamp(60px, 7vw, 84px);
  border: 1px solid rgba(10, 18, 32, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 34px 90px rgba(10, 18, 32, 0.14);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transform:
    translate3d(var(--ac-shell-x), var(--ac-shell-y), 0)
    rotateX(var(--ac-shell-rx))
    rotateY(var(--ac-shell-ry))
    rotate(-1.4deg);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition: transform .4s ease;
  will-change: transform;
}

.ac-learning-shell__top {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ac-line);
  background: rgba(255, 255, 255, 0.7);
}

.ac-learning-shell__top img {
  width: 190px;
  height: auto;
}

.ac-learning-shell__top span,
.ac-course-panel__head span,
.ac-learning-shell__bottom span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.ac-learning-shell__body {
  position: relative;
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 360px;
}

.ac-course-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-right: 1px solid var(--ac-line);
  background: rgba(245, 247, 246, 0.78);
}

.ac-course-nav span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.ac-course-nav span.is-active {
  color: var(--ac-ink);
  background: rgba(21, 203, 181, 0.14);
  box-shadow: inset 0 0 0 1px rgba(21, 203, 181, 0.22);
}

.ac-course-panel {
  position: relative;
  padding: 28px;
  background:
    radial-gradient(circle at 85% 24%, rgba(217, 248, 108, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(21,203,181,0.09), rgba(54,93,143,0.07));
}

.ac-course-panel__head strong {
  display: block;
  max-width: 10ch;
  margin-top: 12px;
  font-family: var(--f-display);
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ac-ink);
}

.ac-progress-ring {
  position: absolute;
  right: 32px;
  top: 32px;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.ac-progress-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ac-progress-ring circle {
  fill: none;
  stroke-width: 10;
}

.ac-progress-ring circle:first-child {
  stroke: rgba(10, 18, 32, 0.08);
}

.ac-progress-ring circle:last-child {
  stroke: var(--ac-teal);
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 52;
  filter: drop-shadow(0 8px 14px rgba(21,203,181,0.24));
}

.ac-progress-ring span {
  position: relative;
  z-index: 1;
  font-family: var(--f-display);
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--ac-ink);
}

.ac-module-list {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 10px;
}

.ac-module-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(10, 18, 32, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ac-ink);
  font-size: 14px;
}

.ac-module-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ac-teal);
  box-shadow: 0 0 0 5px rgba(21, 203, 181, 0.12);
}

.ac-learning-shell__bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ac-line);
}

.ac-learning-shell__bottom article {
  min-height: 104px;
  padding: 18px;
  border-right: 1px solid var(--ac-line);
  background: rgba(255, 255, 255, 0.74);
}

.ac-learning-shell__bottom article:last-child {
  border-right: 0;
}

.ac-learning-shell__bottom strong {
  display: block;
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ac-ink);
}

.ac-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ac-stat {
  min-height: 176px;
  padding: clamp(28px, 3.4vw, 42px) clamp(18px, 2vw, 28px);
  border-right: 1px solid var(--line);
}

.ac-stat:last-child {
  border-right: 0;
}

.ac-stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(36px, 4.2vw, 70px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ac-ink);
}

.ac-stat span {
  display: block;
  max-width: 24ch;
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.ac-intro,
.ac-roles {
  padding-top: clamp(96px, 12vw, 160px);
  padding-bottom: clamp(70px, 9vw, 120px);
}

.ac-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.58fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: end;
  margin-bottom: 44px;
}

.ac-section-head h2 {
  margin-top: 20px;
  font-family: var(--f-display);
  font-size: clamp(46px, 5.8vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ac-ink);
}

.ac-section-head p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.5;
}

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

.ac-feature-card,
.ac-role-card {
  position: relative;
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.ac-feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ac-teal), var(--ac-lime));
  opacity: 0.86;
}

.ac-feature-card__num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-mute);
}

.ac-feature-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-top: 38px;
  border-radius: 8px;
  color: var(--ac-teal-dark);
  background: rgba(21, 203, 181, 0.12);
}

.ac-feature-card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ac-feature-card h3,
.ac-process__step strong,
.ac-role-card span {
  display: block;
  margin-top: 22px;
  color: var(--ac-ink);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ac-feature-card p,
.ac-process__step p,
.ac-role-card p {
  margin-top: 14px;
  color: var(--ink-soft);
  line-height: 1.48;
}

.ac-benefits {
  margin-top: 30px;
  padding: clamp(96px, 10vw, 132px) 0;
  background: var(--ac-ink);
  color: var(--bg);
  overflow: hidden;
}

.ac-benefits__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 54px;
}

.ac-benefits__head > div:last-child {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ac-benefits__head .ac-eyebrow {
  color: var(--ac-teal);
}

.ac-benefits__head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(38px, 4.2vw, 68px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.ac-benefits__head h2 em {
  color: var(--ac-teal);
  font-style: italic;
}

.ac-benefits__tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 32px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.ac-benefits__tab {
  min-width: 188px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(251,250,247,0.64);
  cursor: pointer;
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1;
  text-align: center;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.ac-benefits__tab:hover {
  color: white;
}

.ac-benefits__tab.is-active {
  background: var(--ac-teal);
  color: var(--ac-ink);
  font-weight: 500;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 0 0 1px rgba(21,203,181,0.14);
}

.ac-benefits__panels {
  position: relative;
  margin-top: 6px;
}

.ac-benefits__panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease, visibility .4s ease;
}

.ac-benefits__panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ac-benefit-card {
  position: relative;
  min-height: 280px;
  padding: 32px 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}

.ac-benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(21,203,181,0.12), transparent 50%);
  opacity: 0;
  transition: opacity .35s ease;
}

.ac-benefit-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(21,203,181,0.4);
  transform: translateY(-4px);
}

.ac-benefit-card:hover::before {
  opacity: 1;
}

.ac-benefit-card__num {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 24px;
  color: var(--ac-teal);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-benefit-card__icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--ac-teal);
}

.ac-benefit-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

.ac-benefit-card:hover .ac-benefit-card__icon svg {
  transform: scale(1.08) rotate(-3deg);
}

.ac-benefit-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: white;
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.ac-benefit-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.55;
}

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

.ac-role-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(238,244,241,0.78));
}

.ac-role-card span {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .ac-hero__grid {
    grid-template-columns: 1fr;
  }

  .ac-hero__title {
    max-width: 10.5ch;
  }

  .ac-hero__visual {
    min-height: auto;
  }

  .ac-hero__case-image {
    left: 4px;
    width: min(240px, 34vw);
  }

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

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

  .ac-stat:nth-child(2) {
    border-right: 0;
  }

  .ac-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .ac-hero {
    padding-top: 124px;
    padding-bottom: 64px;
  }

  .ac-hero__grid,
  .ac-section-head {
    gap: 34px;
  }

  .ac-hero__copy,
  .ac-section-head,
  .ac-benefits__head,
  .ac-benefits__head > div {
    text-align: center;
    align-items: center;
  }

  .ac-crumbs,
  .ac-hero__cta-row {
    justify-content: center;
  }

  .ac-hero__title,
  .ac-hero__lede,
  .ac-section-head p {
    margin-left: auto;
    margin-right: auto;
  }

  .ac-learning-shell {
    margin-top: clamp(118px, 27vw, 160px);
    transform: none;
  }

  .ac-hero__case-image {
    position: relative;
    top: auto;
    left: auto;
    z-index: 4;
    grid-column: 1 / -1;
    width: min(286px, 76vw);
    margin: -10px auto 20px;
    transform: none;
  }

  .ac-learning-shell__body {
    grid-template-columns: 1fr;
  }

  .ac-course-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--ac-line);
  }

  .ac-course-panel {
    min-height: 330px;
  }

  .ac-progress-ring {
    width: 104px;
    height: 104px;
    right: 20px;
    top: 26px;
  }

  .ac-progress-ring span {
    font-size: 27px;
  }

  .ac-learning-shell__bottom,
  .ac-stats,
  .ac-feature-grid,
  .ac-benefits__panel,
  .ac-role-grid {
    grid-template-columns: 1fr;
  }

  .ac-learning-shell__bottom article,
  .ac-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ac-learning-shell__bottom article:last-child,
  .ac-stat:last-child {
    border-bottom: 0;
  }

  .ac-stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .ac-section-head {
    grid-template-columns: 1fr;
  }

  .ac-feature-card,
  .ac-role-card,
  .ac-benefit-card {
    min-height: auto;
  }

  .ac-benefits__tabs {
    width: 100%;
    max-width: 360px;
  }

  .ac-benefits__tab {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .ac-benefit-card {
    text-align: center;
  }

  .ac-benefit-card__icon {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .ac-hero__title {
    font-size: clamp(52px, 16vw, 68px);
  }

  .ac-course-panel {
    padding: 22px;
  }

  .ac-course-panel__head strong {
    max-width: 9ch;
  }

  .ac-module-list {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }
}
