
/* =========================================
   AISTEMiQ CURRICULUM PAGE
   ========================================= */

.curriculum-page {
  --curr-cyan: #59e8ff;
  --curr-blue: #6487ff;
  --curr-purple: #b18aff;
  --curr-gold: #ffd477;
}

/* LANDSCAPE HERO */

.curriculum-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 60px 0 70px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 76% 42%, rgba(28, 83, 202, 0.23), transparent 38%),
    radial-gradient(ellipse at 12% 90%, rgba(105, 61, 214, 0.1), transparent 35%),
    #060b19;
}

.curriculum-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(89, 232, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 232, 255, 0.055) 1px, transparent 1px);
  background-size: 45px 45px;
  mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.curriculum-hero-glow {
  position: absolute;
  z-index: -1;
  top: 5%;
  right: 0;
  width: 55%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(36, 91, 222, 0.15), transparent 67%);
  pointer-events: none;
}

.curriculum-hero-inner {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: 25px;
}

.curriculum-hero-copy {
  position: relative;
  z-index: 3;
}

.curriculum-hero h1 {
  max-width: 620px;
  font-family: var(--font-heading);
  font-size: clamp(3.1rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.06;
}

.curriculum-hero-lead {
  max-width: 520px;
  margin-top: 25px;
  color: #a7b5cf;
  font-size: 1rem;
  line-height: 1.9;
}

.curriculum-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 35px;
  color: #7f91b1;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-tags span + span {
  position: relative;
}

.hero-tags span + span::before {
  position: absolute;
  top: 50%;
  left: -11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--curr-cyan);
  content: "";
}

.curriculum-hero-art {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 440px;
  place-items: center;
  isolation: isolate;
}

.hero-art-ring {
  position: absolute;
  z-index: -1;
  width: 95%;
  height: 83%;
  border: 1px solid rgba(89, 232, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.ring-b {
  width: 78%;
  height: 105%;
  border-color: rgba(128, 112, 255, 0.19);
  transform: rotate(38deg);
}

.ring-c {
  width: 100%;
  height: 58%;
  border-style: dashed;
  border-color: rgba(89, 232, 255, 0.12);
  transform: rotate(19deg);
}

.hero-image-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(89, 232, 255, 0.35);
  border-radius: 18px;
  background: #091328;
  box-shadow:
    0 0 0 5px rgba(89, 232, 255, 0.025),
    0 0 25px rgba(89, 232, 255, 0.12),
    0 25px 85px rgba(0, 0, 0, 0.42);
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-frame:hover {
  transform: perspective(1100px) rotateY(0) rotateX(0) translateY(-4px);
  box-shadow:
    0 0 0 5px rgba(89, 232, 255, 0.035),
    0 0 38px rgba(89, 232, 255, 0.2),
    0 25px 85px rgba(0, 0, 0, 0.42);
}

.curriculum-collection-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 10, 25, 0.27), transparent 40%);
}

.hero-float-note {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(125, 164, 255, 0.26);
  border-radius: 11px;
  background: rgba(9, 18, 38, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  animation: curriculumFloat 5s ease-in-out infinite;
}

.hero-float-note strong,
.hero-float-note small {
  display: block;
}

.hero-float-note strong {
  font-size: 0.72rem;
}

.hero-float-note small {
  margin-top: 3px;
  color: #9aabc7;
  font-size: 0.63rem;
}

.float-note-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(89, 232, 255, 0.12);
  color: var(--curr-cyan);
}

.purple-icon {
  color: var(--curr-purple);
  background: rgba(177, 138, 255, 0.13);
}

.note-one {
  top: 6%;
  left: -3%;
}

.note-two {
  right: -2%;
  bottom: 9%;
  animation-delay: -2.4s;
}

.hero-art-caption {
  position: absolute;
  right: 0;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a9bb8;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-scroll {
  position: absolute;
  bottom: 19px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8291ad;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: translateX(-50%);
}

.hero-scroll span {
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--curr-cyan);
  border-bottom: 1px solid var(--curr-cyan);
  transform: rotate(45deg);
  animation: scrollArrow 1.5s ease-in-out infinite;
}

/* INTRODUCTION */

.curriculum-intro {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, #0b1224, #080d1a);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;
  align-items: start;
}

.intro-grid h2,
.curriculum-cta h2 {
  max-width: 650px;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.intro-copy p {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.9;
}

.curriculum-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 45px;
}

.principle {
  position: relative;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 29, 54, 0.82), rgba(9, 15, 30, 0.95));
}

.principle-number {
  position: absolute;
  top: 13px;
  right: 15px;
  color: #71819e;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
}

.principle-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(89, 232, 255, 0.25);
  border-radius: 10px;
  background: rgba(89, 232, 255, 0.08);
  color: var(--curr-cyan);
  font-size: 1.2rem;
}

.principle h3 {
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
}

.principle p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.75;
}

/* LEARNING MAP */

.learning-map-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 40%, rgba(48, 74, 182, 0.09), transparent 34%),
    #070b18;
}

.learning-map-section .section-heading {
  margin-bottom: 35px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 22px;
  margin-bottom: 40px;
  color: #9ba9c2;
  font-size: 0.74rem;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.dot-cyan {
  color: var(--curr-cyan);
  background: var(--curr-cyan);
}

.dot-blue {
  color: var(--curr-blue);
  background: var(--curr-blue);
}

.dot-purple {
  color: var(--curr-purple);
  background: var(--curr-purple);
}

.dot-gold {
  color: var(--curr-gold);
  background: var(--curr-gold);
}

.learning-map {
  position: relative;
  max-width: 970px;
  margin: 0 auto;
}

/* The vertical glowing route is drawn behind the stage nodes. */

.learning-map::before {
  position: absolute;
  top: 24px;
  bottom: 50px;
  left: 31px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--curr-cyan),
    var(--curr-blue),
    var(--curr-purple),
    var(--curr-gold)
  );
  opacity: 0.55;
  content: "";
}

.learning-map::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 4px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(89, 232, 255, 0.85),
    rgba(177, 138, 255, 0.7),
    transparent
  );
  filter: blur(5px);
  content: "";
  transform: scaleY(0);
  transform-origin: top;
  animation: mapEnergy 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.learning-stage {
  --stage-color: var(--curr-cyan);
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 25px;
  padding-bottom: 37px;
}

.stage-blue {
  --stage-color: var(--curr-blue);
}

.stage-purple {
  --stage-color: var(--curr-purple);
}

.stage-gold {
  --stage-color: var(--curr-gold);
}

.stage-track {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage-node {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--stage-color);
  border-radius: 50%;
  background: #091224;
  color: var(--stage-color);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow:
    0 0 0 7px rgba(89, 232, 255, 0.035),
    0 0 20px color-mix(in srgb, var(--stage-color) 25%, transparent);
}

.stage-line {
  width: 1px;
  flex: 1;
  margin-top: 10px;
  background: linear-gradient(var(--stage-color), transparent);
  opacity: 0.6;
}

.stage-card {
  position: relative;
  padding: 29px 32px 25px;
  border: 1px solid color-mix(in srgb, var(--stage-color) 32%, transparent);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--stage-color) 8%, transparent), transparent 45%),
    linear-gradient(145deg, rgba(17, 27, 49, 0.96), rgba(8, 14, 28, 0.97));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.stage-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--stage-color) 70%, transparent);
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.2),
    0 0 24px color-mix(in srgb, var(--stage-color) 7%, transparent);
}

.stage-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-level {
  color: var(--stage-color);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.stage-age {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--stage-color) 45%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--stage-color) 8%, transparent);
  color: var(--stage-color);
  font-family: var(--font-heading);
  font-size: 0.73rem;
  font-weight: 700;
}

.stage-card h3 {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.stage-tagline {
  margin-top: 4px;
  color: #e0e8fa;
  font-size: 0.91rem;
  font-weight: 600;
}

.stage-description {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.9;
}

.stage-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.stage-topics span {
  padding: 6px 10px;
  border: 1px solid rgba(160, 182, 230, 0.15);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #c0cce2;
  font-size: 0.69rem;
}

.stage-outcome {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 23px;
  padding: 15px;
  border-left: 2px solid var(--stage-color);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--stage-color) 6%, transparent);
}

.outcome-symbol {
  color: var(--stage-color);
  font-size: 1.2rem;
}

.stage-outcome strong {
  font-size: 0.78rem;
}

.stage-outcome p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.stage-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.handbook-mark {
  color: #7788a7;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.stage-card-footer .text-link {
  margin-top: 0;
}

.map-finish {
  display: flex;
  align-items: center;
  gap: 17px;
  max-width: 970px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(255, 212, 119, 0.2);
  border-radius: 15px;
  background: rgba(255, 212, 119, 0.035);
}

.finish-orb {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--curr-gold);
  border-radius: 14px;
  background: rgba(255, 212, 119, 0.07);
  color: var(--curr-gold);
  font-family: var(--font-heading);
  font-weight: 700;
}

.map-finish > div {
  flex: 1;
}

.map-finish strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.map-finish p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.map-finish .button {
  flex-shrink: 0;
}

/* SCROLL REVEAL */

.js-enabled .reveal-stage {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal-stage.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .reveal-stage:nth-child(2) {
  transition-delay: 0.08s;
}

.js-enabled .reveal-stage:nth-child(3) {
  transition-delay: 0.16s;
}

.js-enabled .reveal-stage:nth-child(4) {
  transition-delay: 0.24s;
}

/* CODING CARDS */

.coding-section {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  background: linear-gradient(180deg, #0b1224, #070b18);
}

.coding-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.coding-card {
  position: relative;
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(18, 29, 54, 0.92), rgba(8, 14, 27, 0.98));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.coding-card::before {
  position: absolute;
  top: -65px;
  right: -60px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: rgba(89, 232, 255, 0.07);
  filter: blur(35px);
  content: "";
}

.coding-card:hover {
  transform: translateY(-5px);
  border-color: rgba(89, 232, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.coding-card-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coding-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(89, 232, 255, 0.25);
  border-radius: 13px;
  background: rgba(89, 232, 255, 0.08);
  color: var(--curr-cyan);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.icon-cpp {
  color: var(--curr-purple);
  border-color: rgba(177, 138, 255, 0.3);
  background: rgba(177, 138, 255, 0.08);
  font-size: 0.95rem;
}

.icon-python {
  color: #ffd477;
  border-color: rgba(255, 212, 119, 0.25);
  background: rgba(255, 212, 119, 0.07);
}

.icon-arduino {
  color: #84e7bd;
  border-color: rgba(132, 231, 189, 0.25);
  background: rgba(132, 231, 189, 0.07);
}

.icon-web {
  color: #83a7ff;
  border-color: rgba(131, 167, 255, 0.25);
  background: rgba(131, 167, 255, 0.07);
}

.icon-security {
  color: #ff9fbd;
  border-color: rgba(255, 159, 189, 0.25);
  background: rgba(255, 159, 189, 0.07);
}

.icon-ai {
  color: var(--curr-purple);
  border-color: rgba(177, 138, 255, 0.3);
  background: rgba(177, 138, 255, 0.08);
}

.coding-index {
  color: #7687a5;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.coding-card h3 {
  position: relative;
  margin-top: 22px;
  font-family: var(--font-heading);
  font-size: 1.17rem;
}

.coding-card > p {
  position: relative;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.8;
}

.coding-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.coding-tags span {
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: #a8b7d0;
  font-size: 0.61rem;
}

.coding-card .text-link {
  margin-top: auto;
  padding-top: 18px;
}

.coding-card-wide {
  grid-column: span 3;
  min-height: 225px;
  padding: 28px;
}

.coding-card-wide > p {
  max-width: 750px;
}

/* BOOK COLLECTION */

.handbook-section {
  background: #070b18;
}

.handbook-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border: 1px solid rgba(89, 232, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(130deg, #101b36, #090f20);
}

.handbook-feature-image {
  min-width: 0;
  background: #091328;
}

.handbook-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.handbook-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 35px;
}

.handbook-feature-copy h3 {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.handbook-feature-copy p {
  margin: 15px 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.9;
}

.book-catalogue {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-top: 25px;
}

.book-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(150deg, #111a30, #090f1e);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  border-color: rgba(89, 232, 255, 0.38);
}

.book-cover {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 13px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(89, 232, 255, 0.14), transparent 48%),
    linear-gradient(150deg, #13284d, #080e20 70%);
  text-align: center;
}

.book-cover::before {
  position: absolute;
  z-index: -1;
  inset: 12px;
  border: 1px solid rgba(89, 232, 255, 0.2);
  content: "";
}

.book-cover::after {
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(89, 232, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.book-cover > span {
  color: var(--curr-cyan);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-shadow: 0 0 12px rgba(89, 232, 255, 0.35);
}

.book-cover > strong {
  color: #f1f5ff;
  font-family: var(--font-heading);
  font-size: 1.03rem;
  line-height: 1.25;
}

.book-cover > strong b {
  font-size: 3.5rem;
  line-height: 1;
}

.book-cover > small {
  max-width: 190px;
  color: #b2c5e3;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.book-cover > i {
  color: var(--curr-cyan);
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-style: normal;
  text-shadow: 0 0 15px rgba(89, 232, 255, 0.4);
}

.cover-explorer {
  background:
    radial-gradient(circle at 50% 50%, rgba(91, 130, 255, 0.2), transparent 48%),
    linear-gradient(150deg, #15284b, #0b1022 70%);
}

.cover-senior {
  background:
    radial-gradient(circle at 50% 50%, rgba(177, 138, 255, 0.2), transparent 48%),
    linear-gradient(150deg, #28224d, #0b1022 70%);
}

.cover-advanced {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 177, 93, 0.15), transparent 48%),
    linear-gradient(150deg, #35233c, #0b1022 70%);
}

.cover-c,
.cover-cpp {
  background:
    radial-gradient(circle at 50% 50%, rgba(89, 232, 255, 0.15), transparent 48%),
    linear-gradient(150deg, #102f3d, #07101e 70%);
}

.cover-python {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 212, 119, 0.15), transparent 48%),
    linear-gradient(150deg, #29385b, #101327 70%);
}

.cover-arduino {
  background:
    radial-gradient(circle at 50% 50%, rgba(132, 231, 189, 0.15), transparent 48%),
    linear-gradient(150deg, #173e43, #09151e 70%);
}

.cover-ai {
  background:
    radial-gradient(circle at 50% 50%, rgba(177, 138, 255, 0.2), transparent 48%),
    linear-gradient(150deg, #22235b, #0a1023 70%);
}

.cover-cyber {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 102, 133, 0.17), transparent 48%),
    linear-gradient(150deg, #351b38, #0b1022 70%);
}

.cover-cyber > span,
.cover-cyber > i {
  color: #ff9fbd;
}

.book-info {
  padding: 17px;
}

.book-type {
  color: var(--curr-cyan);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.book-info h3 {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.4;
}

.book-info p {
  min-height: 68px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.8;
}

.book-info .text-link {
  align-items: flex-start;
  gap: 6px;
  margin-top: 13px;
  font-size: 0.72rem;
}

/* DIGITAL STORE */

.digital-store-section {
  padding-top: 30px;
  background: #070b18;
}

.digital-store-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 55px;
  overflow: hidden;
  border: 1px solid rgba(177, 138, 255, 0.26);
  border-radius: 22px;
  background: linear-gradient(120deg, #111a33, #090f20 75%);
}

.store-glow {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(108, 91, 255, 0.12);
  filter: blur(85px);
  pointer-events: none;
}

.store-copy {
  position: relative;
  z-index: 1;
}

.store-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.store-copy > p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.9;
}

.store-feature-list {
  display: grid;
  gap: 11px;
  margin-block: 24px 28px;
}

.store-feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d2dced;
  font-size: 0.79rem;
}

.store-feature-list i {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(89, 232, 255, 0.1);
  color: var(--curr-cyan);
  font-size: 0.65rem;
  font-style: normal;
}

.digital-store-visual {
  position: relative;
  display: flex;
  min-height: 340px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  perspective: 700px;
}

.digital-orbit {
  position: absolute;
  width: 310px;
  height: 180px;
  border: 1px solid rgba(177, 138, 255, 0.2);
  border-radius: 50%;
  transform: rotate(-23deg);
}

.orbit-store-two {
  width: 260px;
  height: 250px;
  border-color: rgba(89, 232, 255, 0.16);
  transform: rotate(35deg);
}

.digital-book {
  position: relative;
  z-index: 1;
  display: flex;
  width: 88px;
  height: 175px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid rgba(89, 232, 255, 0.5);
  border-radius: 4px 9px 9px 4px;
  background: linear-gradient(145deg, #174a70, #0b1634);
  box-shadow:
    inset 7px 0 0 rgba(0, 0, 0, 0.15),
    0 0 22px rgba(89, 232, 255, 0.1);
  transform: rotateY(-12deg) rotateZ(-5deg);
  animation: bookFloat 5s ease-in-out infinite;
}

.digital-book span {
  color: var(--curr-cyan);
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
}

.digital-book small {
  color: #c1d7f0;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
}

.book-two {
  height: 205px;
  border-color: rgba(177, 138, 255, 0.5);
  background: linear-gradient(145deg, #3b2d73, #141333);
  transform: translateY(-13px) rotateY(-8deg);
  animation-delay: -1.6s;
}

.book-two span {
  color: var(--curr-purple);
}

.book-three {
  height: 165px;
  border-color: rgba(255, 212, 119, 0.5);
  background: linear-gradient(145deg, #5b4523, #19152a);
  transform: rotateY(-15deg) rotateZ(4deg);
  animation-delay: -3s;
}

.book-three span {
  color: var(--curr-gold);
}

.store-platform {
  position: absolute;
  bottom: 30px;
  left: 10%;
  width: 80%;
  height: 35px;
  border: 1px solid rgba(89, 232, 255, 0.4);
  border-radius: 50%;
  background: rgba(89, 232, 255, 0.045);
  box-shadow: 0 0 24px rgba(89, 232, 255, 0.09);
  transform: rotateX(65deg);
}

.store-coming-soon {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: #8e9fbd;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-align: center;
}

/* FINAL CTA */

.curriculum-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(ellipse at 80% 50%, rgba(79, 92, 207, 0.12), transparent 40%),
    #080d1a;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.curriculum-cta h2 {
  max-width: 680px;
}

.curriculum-cta p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.85;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  flex-shrink: 0;
}

/* ANIMATIONS */

@keyframes curriculumFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes scrollArrow {
  0%, 100% {
    opacity: 0.5;
    transform: translateY(-2px) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateY(3px) rotate(45deg);
  }
}

@keyframes mapEnergy {
  0% {
    transform: scaleY(0);
    opacity: 0.2;
  }
  100% {
    transform: scaleY(1);
    opacity: 0.7;
  }
}

@keyframes bookFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .curriculum-hero-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 12px;
  }

  .curriculum-hero h1 {
    font-size: clamp(2.8rem, 5.3vw, 4.1rem);
  }

  .curriculum-hero-art {
    min-height: 360px;
  }

  .hero-float-note {
    padding: 9px;
  }

  .curriculum-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-catalogue {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .digital-store-panel {
    padding: 38px;
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .curriculum-hero {
    min-height: auto;
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .curriculum-hero-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .curriculum-hero-copy {
    max-width: 700px;
  }

  .curriculum-hero h1 {
    max-width: 650px;
    font-size: clamp(3rem, 8vw, 4.5rem);
  }

  .curriculum-hero-art {
    width: min(100%, 700px);
    min-height: 0;
    margin: 0 auto;
    padding: 15px 10px 30px;
  }

  .curriculum-collection-image {
    aspect-ratio: 16 / 10;
  }

  .note-one {
    left: 0;
  }

  .note-two {
    right: 0;
  }

  .hero-scroll {
    display: none;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .curriculum-principles {
    gap: 12px;
  }

  .learning-map::before {
    left: 25px;
  }

  .learning-map::after {
    left: 24px;
  }

  .learning-stage {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 17px;
  }

  .stage-node {
    width: 52px;
    height: 52px;
  }

  .stage-card {
    padding: 24px;
  }

  .coding-pathway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coding-card-wide {
    grid-column: span 2;
  }

  .handbook-feature {
    grid-template-columns: 1fr;
  }

  .handbook-feature-image img {
    max-height: 370px;
  }

  .book-catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .digital-store-panel {
    grid-template-columns: 1fr;
  }

  .digital-store-visual {
    min-height: 310px;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .curriculum-hero {
    padding-top: 50px;
    padding-bottom: 45px;
  }

  .curriculum-hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.5rem);
  }

  .curriculum-hero-lead {
    font-size: 0.9rem;
  }

  .curriculum-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .curriculum-hero-actions .button {
    width: 100%;
  }

  .curriculum-hero-art {
    margin-top: 10px;
  }

  .hero-float-note {
    gap: 7px;
    padding: 8px;
  }

  .hero-float-note strong {
    font-size: 0.59rem;
  }

  .hero-float-note small {
    font-size: 0.53rem;
  }

  .float-note-icon {
    width: 27px;
    height: 27px;
  }

  .note-one {
    top: 0;
    left: -2px;
  }

  .note-two {
    right: -2px;
    bottom: 3px;
  }

  .hero-art-caption {
    right: 4px;
    bottom: -13px;
    font-size: 0.45rem;
  }

  .hero-tags {
    gap: 8px 15px;
    font-size: 0.51rem;
  }

  .curriculum-principles {
    grid-template-columns: 1fr 1fr;
  }

  .principle {
    min-height: 180px;
    padding: 16px;
  }

  .map-legend {
    gap: 10px 14px;
    font-size: 0.65rem;
  }

  .learning-map::before {
    left: 18px;
  }

  .learning-map::after {
    left: 17px;
  }

  .learning-stage {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding-bottom: 25px;
  }

  .stage-node {
    width: 38px;
    height: 38px;
    font-size: 0.79rem;
  }

  .stage-card {
    padding: 19px 15px;
  }

  .stage-level {
    font-size: 0.54rem;
    letter-spacing: 0.07em;
  }

  .stage-age {
    font-size: 0.65rem;
  }

  .stage-card h3 {
    font-size: 1.36rem;
  }

  .stage-tagline {
    font-size: 0.79rem;
  }

  .stage-description {
    font-size: 0.8rem;
  }

  .stage-topics span {
    font-size: 0.62rem;
  }

  .stage-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .handbook-mark {
    font-size: 0.53rem;
  }

  .map-finish {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }

  .map-finish > div {
    min-width: 60%;
  }

  .map-finish .button {
    width: 100%;
  }

  .coding-pathway-grid {
    grid-template-columns: 1fr;
  }

  .coding-card,
  .coding-card-wide {
    grid-column: auto;
    min-height: 270px;
    padding: 20px;
  }

  .handbook-feature-copy {
    padding: 24px 20px;
  }

  .book-catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .book-cover {
    min-height: 200px;
    padding: 14px 8px;
  }

  .book-cover > strong {
    font-size: 0.85rem;
  }

  .book-cover > strong b {
    font-size: 2.8rem;
  }

  .book-cover > small {
    font-size: 0.49rem;
  }

  .book-info {
    padding: 12px;
  }

  .book-info h3 {
    font-size: 0.82rem;
  }

  .book-info p {
    min-height: 82px;
    font-size: 0.7rem;
  }

  .book-info .text-link {
    font-size: 0.67rem;
  }

  .digital-store-panel {
    padding: 27px 19px;
  }

  .digital-store-visual {
    min-height: 270px;
    gap: 7px;
  }

  .digital-book {
    width: 70px;
    height: 150px;
  }

  .book-two {
    height: 180px;
  }

  .book-three {
    height: 140px;
  }

  .digital-orbit {
    width: 260px;
    height: 150px;
  }

  .orbit-store-two {
    width: 220px;
    height: 220px;
  }

  .store-coming-soon {
    font-size: 0.48rem;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-note,
  .hero-scroll span,
  .digital-book {
    animation: none !important;
  }

  .js-enabled .reveal-stage {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .learning-map::after {
    animation: none;
    transform: scaleY(1);
  }
}
