:root {
  --bg: hsl(43 45% 96%);
  --bg-elevated: hsl(43 60% 99%);
  --fg: hsl(250 12% 9%);
  --muted: hsl(250 6% 40%);
  --primary: hsl(247 76% 59%);
  --primary-hover: hsl(247 70% 52%);
  --primary-soft: hsl(247 76% 59% / 0.09);
  --primary-fg: hsl(43 45% 97%);
  --secondary: hsl(43 32% 92%);
  --border: hsl(43 20% 85%);
  --accent: hsl(247 76% 55%);
  --orange: hsl(24 76% 54%);
  --green: hsl(152 45% 42%);
  --ink: hsl(250 16% 8%);
  --radius: 1rem;
  --radius-sm: 0.65rem;
  --shadow-sm: 0 1px 2px rgb(24 20 45 / 0.05);
  --shadow-md: 0 4px 16px rgb(24 20 45 / 0.07);
  --shadow-lg: 0 24px 60px -12px rgb(24 20 45 / 0.18);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --nav-h: 4rem;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep anchored sections from landing underneath the fixed nav */
  scroll-padding-top: calc(var(--nav-h) + 0.5rem);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}

h3 {
  font-family: var(--font);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 650;
}

p {
  margin: 0;
}

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

::selection {
  background: hsl(247 76% 59% / 0.2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--primary-fg);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================== Nav ============================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  height: 1.85rem;
  width: 1.85rem;
  border-radius: 0.45rem;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav__links {
  display: none;
  gap: 0.35rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--fg);
  background: var(--secondary);
}

.nav__actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0.45rem;
  cursor: pointer;
  color: var(--fg);
}

.nav__mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 0.75rem 0 1.25rem;
  box-shadow: var(--shadow-md);
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile a {
  display: block;
  padding: 0.7rem 0;
  font-weight: 600;
}

.nav__mobile-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .nav__links,
  .nav__actions {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__mobile {
    display: none !important;
  }
}

/* ============================== Buttons ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.65rem 1.3rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s,
    border-color 0.2s, box-shadow 0.2s;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 1px 2px rgb(24 20 45 / 0.12), inset 0 1px 0 hsl(247 80% 70%);
}

.btn--primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px -4px hsl(247 76% 59% / 0.45),
    inset 0 1px 0 hsl(247 80% 68%);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--fg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--secondary);
  border-color: hsl(43 18% 78%);
}

.btn--lg {
  min-height: 3.15rem;
  padding-inline: 1.6rem;
  font-size: 0.975rem;
}

/* ============================== Hero ============================== */
main {
  padding-top: var(--nav-h);
}

.hero {
  position: relative;
  padding: 4rem 0 0;
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: -20% -10% 0;
  background:
    radial-gradient(ellipse 46% 42% at 24% 18%, hsl(247 76% 78% / 0.28), transparent 70%),
    radial-gradient(ellipse 40% 38% at 78% 8%, hsl(24 82% 70% / 0.24), transparent 70%),
    radial-gradient(ellipse 60% 45% at 50% 0%, hsl(43 60% 88% / 0.7), transparent 65%);
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Fade the constellation out toward the edges so text stays readable */
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 45%, transparent 100%);
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  padding-bottom: 3.25rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--bg-elevated);
  border: 1px solid hsl(247 50% 84%);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px hsl(247 76% 59% / 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 3px hsl(247 76% 59% / 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px hsl(247 76% 59% / 0.08);
  }
}

.hero__content h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.35rem);
  margin-bottom: 1.15rem;
}

.hero__content h1 em {
  font-style: italic;
  font-weight: 550;
  color: var(--primary);
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero__stage {
  position: relative;
  width: min(100% - 2rem, 1000px);
  margin: 0 auto;
  animation: rise-stage 1.1s var(--ease) both;
  animation-delay: 0.15s;
  /* Dissolve the bottom of the mockup so it looks like it's fading up */
  -webkit-mask-image: linear-gradient(to bottom, black 58%, transparent 97%);
  mask-image: linear-gradient(to bottom, black 58%, transparent 97%);
}

@keyframes rise-stage {
  from {
    opacity: 0;
    transform: translateY(2.25rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__stage {
    animation: none;
  }
}

/* --- CSS product mockup --- */
.mock {
  position: relative;
  border-radius: calc(var(--radius) + 0.25rem) calc(var(--radius) + 0.25rem) 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}

.mock__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem) calc(var(--radius) + 0.25rem) 0 0;
  background: hsl(43 40% 97%);
}

.mock__chrome > span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: hsl(43 15% 84%);
}

.mock__url {
  margin-left: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
}

.mock__body {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
}

.mock__side {
  border-right: 1px solid var(--border);
  padding: 0.9rem 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.7rem;
}

.mock__side-brand img {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.4rem;
  margin-bottom: 0.4rem;
}

.mock__side-item {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.5rem;
  background: var(--secondary);
}

.mock__side-item.is-active {
  background: var(--primary-soft);
  outline: 1.5px solid hsl(247 60% 78%);
}

.mock__main {
  padding: 1.1rem 1.25rem 1.4rem;
  display: grid;
  gap: 1rem;
}

.mock__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock__title-line {
  width: 32%;
  height: 0.8rem;
  border-radius: 999px;
  background: hsl(43 20% 88%);
}

.mock__title-line--sm {
  width: 26%;
  height: 0.6rem;
}

.mock__avatar {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), hsl(24 80% 68%));
}

.mock__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mock__stat {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.mock__stat-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
}

.mock__stat-delta {
  font-size: 0.66rem;
  font-weight: 650;
}

.mock__stat-delta.is-up {
  color: var(--green);
}

.mock__stat-delta.is-warn {
  color: var(--orange);
}

.mock__panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 0.9rem 1rem 1rem;
  display: grid;
  gap: 0.9rem;
}

.mock__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock__pill {
  width: 3.4rem;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid hsl(247 50% 84%);
}

.mock__chart {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 0.55rem;
  height: 7.5rem;
}

.mock__chart > div {
  height: var(--h);
  border-radius: 0.35rem 0.35rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, hsl(247 70% 66%), hsl(247 76% 59%));
  opacity: 0.85;
  transform-origin: bottom;
  animation: grow-bar 1s var(--ease) both;
  animation-delay: calc(0.5s + var(--i, 0) * 0.05s);
}

.mock__chart > div:nth-child(odd) {
  background: linear-gradient(180deg, hsl(24 78% 64%), hsl(24 76% 54%));
}

.mock__chart > div:nth-child(1) { --i: 0; }
.mock__chart > div:nth-child(2) { --i: 1; }
.mock__chart > div:nth-child(3) { --i: 2; }
.mock__chart > div:nth-child(4) { --i: 3; }
.mock__chart > div:nth-child(5) { --i: 4; }
.mock__chart > div:nth-child(6) { --i: 5; }
.mock__chart > div:nth-child(7) { --i: 6; }
.mock__chart > div:nth-child(8) { --i: 7; }

@keyframes grow-bar {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mock__chart > div {
    animation: none;
  }
}

/* Floating callouts on the mockup */
.mock__float {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0.9rem;
  animation: float-card 6s ease-in-out infinite;
}

.mock__float--insight {
  top: 18%;
  right: 1.25rem;
  max-width: 15.5rem;
  z-index: 2;
}

.mock__float--grade {
  bottom: 42%;
  left: 4.75rem; /* sit over the main panel, clear of the sidebar */
  align-items: center;
  animation-delay: -3s;
  z-index: 2;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mock__float {
    animation: none;
  }
}

.mock__float-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.45rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
}

.mock__float strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.mock__float p {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.15rem;
}

.mock__float--grade strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green);
  line-height: 1;
}

.mock__float--grade span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 760px) {
  .mock__float {
    display: none;
  }

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

  .mock__stat:last-child {
    display: none;
  }
}

/* ============================== Stat band ============================== */
.statband {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 45%);
}

.statband__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
  padding: 2.25rem 0;
}

@media (min-width: 820px) {
  .statband__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.statband__item {
  display: grid;
  gap: 0.2rem;
  text-align: center;
}

.statband__item strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.1;
}

.statband__item span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================== Sections ============================== */
.section {
  padding: 6rem 0;
}

.section--band {
  background: linear-gradient(180deg, hsl(43 34% 93%), hsl(43 45% 96%));
  border-block: 1px solid var(--border);
}

.section--quiet {
  padding-top: 4.5rem;
}

.section__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3.25rem;
}

.section__intro--left {
  text-align: left;
  margin-left: 0;
}

.section__intro h2,
.students h2,
.split__copy h2,
.quotes h2 {
  font-size: clamp(1.95rem, 3.8vw, 2.85rem);
  margin-bottom: 0.85rem;
}

.section__intro p:not(.kicker),
.split__copy > p,
.students .section__intro p {
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.65;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ============================== Features (pinned scrollytelling) ==============================
   The track is tall (one ~75vh "chapter" per feature). The stage sticks to the
   viewport while the user scrolls through the track; JS scrubs panel
   opacity/position from scroll progress. */
.section--features {
  position: relative;
  overflow-x: hidden;
}

.features-track {
  position: relative;
  height: calc(100vh + 4 * 75vh);
}

.features-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + 1.5rem);
}

/* Slowly drifting aurora behind the stage */
.features-aura {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 30% 40% at 30% 55%, hsl(247 76% 64% / 0.14), transparent 70%),
    radial-gradient(ellipse 26% 36% at 72% 40%, hsl(24 80% 60% / 0.12), transparent 70%),
    radial-gradient(ellipse 24% 32% at 55% 75%, hsl(152 50% 50% / 0.09), transparent 70%);
  filter: blur(40px);
  animation: aura-drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aura-drift {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(10deg) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-aura {
    animation: none;
  }
}

.features-stage__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.features-head {
  text-align: center;
  padding-bottom: 1rem;
}

.features-head h2 {
  font-size: clamp(1.95rem, 3.8vw, 2.85rem);
}

/* Full-width stacked panels */
.features-panels {
  position: relative;
  flex: 1;
  min-height: 0;
}

.feature-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  opacity: 0;
  will-change: transform, opacity;
}

.feature-panel__count {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.feature-panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-bottom: 1.1rem;
}

.feature-panel__copy > p:not(.feature-panel__count) {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 30rem;
}

.feature-panel__visual {
  display: flex;
  justify-content: center;
}

/* Big glossy 3D tile per feature */
.feature-panel__tile {
  position: relative;
  width: clamp(11rem, 24vw, 16rem);
  aspect-ratio: 1;
  border-radius: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(43 45% 98%);
  animation: tile-float 6s ease-in-out infinite;
}

@keyframes tile-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-panel__tile {
    animation: none;
  }
}

.feature-panel__tile svg {
  width: 42%;
  height: auto;
}

/* Halo behind each tile */
.feature-panel__tile::before {
  content: "";
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--halo, hsl(247 76% 64% / 0.28)), transparent 65%);
  filter: blur(24px);
  z-index: -1;
}

.feature-panel[data-accent="purple"] .feature-panel__tile {
  --halo: hsl(247 76% 64% / 0.3);
  background: linear-gradient(150deg, hsl(247 82% 68%) 0%, hsl(247 76% 55%) 55%, hsl(252 70% 46%) 100%);
  box-shadow:
    0 30px 60px -18px hsl(247 76% 40% / 0.55),
    inset 0 2px 0 hsl(247 90% 84% / 0.9),
    inset 0 -16px 30px hsl(252 70% 36% / 0.5);
}

.feature-panel[data-accent="orange"] .feature-panel__tile {
  --halo: hsl(24 80% 58% / 0.3);
  background: linear-gradient(150deg, hsl(28 88% 66%) 0%, hsl(24 78% 54%) 55%, hsl(18 72% 45%) 100%);
  box-shadow:
    0 30px 60px -18px hsl(24 76% 38% / 0.55),
    inset 0 2px 0 hsl(30 95% 82% / 0.9),
    inset 0 -16px 30px hsl(16 70% 34% / 0.5);
}

.feature-panel[data-accent="green"] .feature-panel__tile {
  --halo: hsl(152 50% 45% / 0.28);
  background: linear-gradient(150deg, hsl(152 48% 52%) 0%, hsl(152 45% 40%) 55%, hsl(158 45% 30%) 100%);
  box-shadow:
    0 30px 60px -18px hsl(152 45% 28% / 0.55),
    inset 0 2px 0 hsl(150 60% 78% / 0.85),
    inset 0 -16px 30px hsl(158 45% 24% / 0.5);
}

.feature-panel[data-accent="ink"] .feature-panel__tile {
  --halo: hsl(250 20% 30% / 0.3);
  background: linear-gradient(150deg, hsl(250 14% 34%) 0%, hsl(250 16% 18%) 55%, hsl(250 18% 10%) 100%);
  box-shadow:
    0 30px 60px -18px hsl(250 18% 10% / 0.6),
    inset 0 2px 0 hsl(250 15% 55% / 0.7),
    inset 0 -16px 30px hsl(250 20% 6% / 0.6);
}

/* Scrubbed progress segments */
.features-progress {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.75rem 0 2.25rem;
}

.features-progress span {
  width: 3.75rem;
  height: 4px;
  border-radius: 999px;
  background: var(--secondary);
  overflow: hidden;
}

.features-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
}

/* Fallback: small screens & reduced motion get a simple stacked layout */
@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .features-track {
    height: auto;
  }

  .features-stage {
    position: static;
    height: auto;
    overflow: hidden;
    padding: 5rem 0 4rem;
  }

  .features-head {
    padding-bottom: 3rem;
  }

  .features-panels {
    display: grid;
    gap: 4rem;
  }

  .feature-panel {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-panel__visual {
    order: -1;
    justify-content: flex-start;
  }

  .feature-panel__tile {
    width: 7.5rem;
    border-radius: 1.6rem;
  }

  .features-progress {
    display: none;
  }
}

/* ============================== Institutions split ============================== */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
  }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 1.9rem;
  display: grid;
  gap: 0.8rem;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--fg);
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: hsl(24 76% 54% / 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D2691E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E") center / 0.65rem no-repeat;
}

/* --- CSS report card mockup --- */
.split__media {
  position: relative;
  overflow-x: hidden;
}

.split__media::before {
  content: "";
  position: absolute;
  inset: 12% 0 -8% 10%;
  background: radial-gradient(ellipse at center, hsl(247 76% 70% / 0.16), transparent 70%);
  pointer-events: none;
}

.report {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.6rem 1.6rem;
  display: grid;
  gap: 1.35rem;
  transform: rotate(-1deg);
  transition: transform 0.4s var(--ease);
}

.report:hover {
  transform: rotate(0deg);
}

.report__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.report__head strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.report__head span:not(.report__badge) {
  font-size: 0.82rem;
  color: var(--muted);
}

.report__badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  background: hsl(152 45% 42% / 0.1);
  border: 1px solid hsl(152 45% 42% / 0.25);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.report__badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.report__rows {
  display: grid;
  gap: 0.95rem;
}

.report__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 2rem;
  align-items: center;
  gap: 0.9rem;
}

.report__subject {
  font-size: 0.875rem;
  font-weight: 600;
}

.report__bar {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--secondary);
  overflow: hidden;
}

.report__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, hsl(247 70% 66%), var(--primary));
}

.report__row:nth-child(even) .report__bar i {
  background: linear-gradient(90deg, hsl(24 80% 64%), var(--orange));
}

.report__score {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-align: right;
}

.report__note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--primary-soft);
  border: 1px solid hsl(247 50% 86%);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  line-height: 1.5;
}

.report__note-icon {
  flex: none;
  color: var(--primary);
}

/* ============================== Students ============================== */
.students__grid {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 2.25rem;
}

@media (min-width: 700px) {
  .students__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.students__grid article {
  position: relative;
  padding: 1.6rem 1.6rem 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.students__grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.students__num {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--secondary);
  line-height: 1;
  user-select: none;
}

.students__grid h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  position: relative;
}

.students__grid p {
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

/* ============================== Quotes ============================== */
.quotes h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.quotes__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .quotes__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quotes blockquote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.75rem 1.75rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.quotes blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quotes blockquote p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  flex: 1;
}

.quotes footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quotes__avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid hsl(247 50% 84%);
}

.quotes blockquote:nth-child(2) .quotes__avatar {
  color: var(--orange);
  background: hsl(24 76% 54% / 0.1);
  border-color: hsl(24 60% 80%);
}

.quotes blockquote:nth-child(3) .quotes__avatar {
  color: var(--green);
  background: hsl(152 45% 42% / 0.1);
  border-color: hsl(152 35% 76%);
}

.quotes footer div {
  display: grid;
  gap: 0.05rem;
}

.quotes strong {
  font-size: 0.9rem;
}

.quotes footer div span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ============================== Demo panel ============================== */
.section--panel {
  position: relative;
  background: var(--primary);
  color: var(--primary-fg);
  overflow: hidden;
}

.panel-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 15% 0%, hsl(247 90% 72% / 0.45), transparent 65%),
    radial-gradient(ellipse 45% 55% at 90% 100%, hsl(260 80% 45% / 0.5), transparent 65%);
  pointer-events: none;
}

.section--panel .kicker {
  color: hsl(247 90% 88%);
}

.section--panel .demo__intro p:not(.kicker) {
  color: hsl(247 60% 90%);
}

.demo {
  position: relative;
  display: grid;
  gap: 2.75rem;
  max-width: 44rem;
  margin-inline: auto;
}

.demo__intro {
  text-align: center;
}

.demo__intro h2 {
  font-size: clamp(1.95rem, 3.8vw, 2.85rem);
  margin-bottom: 0.85rem;
}

.demo__intro p:not(.kicker) {
  font-size: 1.075rem;
  line-height: 1.65;
}

.demo-form {
  display: grid;
  gap: 1.4rem;
  background: hsl(247 65% 54% / 0.55);
  border: 1px solid hsl(247 55% 70% / 0.5);
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.75rem;
  backdrop-filter: blur(4px);
}

@media (min-width: 700px) {
  .demo-form {
    padding: 2.25rem;
  }
}

.demo-form__grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 700px) {
  .demo-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-form__full {
    grid-column: 1 / -1;
  }
}

.demo-form label {
  display: grid;
  gap: 0.45rem;
}

.demo-form label span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-fg);
}

.demo-form label em {
  font-style: normal;
  font-weight: 500;
  color: hsl(247 60% 85%);
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--bg-elevated);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: hsl(43 45% 96%);
  box-shadow: 0 0 0 3px hsl(43 45% 96% / 0.3);
}

.demo-form__status {
  margin: 0;
  font-size: 0.925rem;
  font-weight: 550;
}

.demo-form__status[data-tone="error"] {
  color: hsl(12 100% 86%);
}

.demo-form__status[data-tone="pending"] {
  color: hsl(247 60% 88%);
}

.section--panel .btn--primary {
  background: var(--bg-elevated);
  color: var(--primary);
  box-shadow: 0 4px 14px rgb(24 20 45 / 0.18);
}

.section--panel .btn--primary:hover {
  background: hsl(0 0% 100%);
  box-shadow: 0 8px 24px rgb(24 20 45 / 0.24);
}

.demo-form button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.demo-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid hsl(247 55% 70% / 0.5);
  border-radius: calc(var(--radius) + 0.25rem);
  background: hsl(247 65% 54% / 0.55);
  color: var(--primary-fg);
}

.demo-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.demo-success p {
  color: hsl(247 60% 90%);
}

/* ============================== Footer ============================== */
.footer {
  padding: 4.5rem 0 2rem;
  background: var(--ink);
  color: hsl(43 30% 92%);
}

.footer__inner {
  display: grid;
  gap: 2.5rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.footer__logo .brand-word {
  color: hsl(43 45% 96%);
}

.footer__brand p {
  color: hsl(43 12% 62%);
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: hsl(43 12% 55%);
  font-weight: 700;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer li a {
  color: hsl(43 30% 88%);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer li a:hover {
  color: hsl(247 90% 80%);
}

.footer__bottom {
  border-top: 1px solid hsl(250 10% 16%);
  padding-top: 1.4rem;
  color: hsl(43 12% 55%);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .footer__bottom {
    grid-column: 1 / -1;
  }
}
