:root {
  --bg: #fffaf1;
  --bg-alt: #fff2dd;
  --ink: #24415a;
  --ink-soft: #58728a;
  --teal: #56c4c4;
  --teal-dark: #23929a;
  --coral: #ff8f7c;
  --sun: #ffd66b;
  --mint: #c8f1d6;
  --sky: #d8efff;
  --peach: #ffe4d6;
  --berry: #ff5f87;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(36, 65, 90, 0.08);
  --shadow: 0 24px 60px rgba(78, 97, 124, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #fff7c8 0, transparent 22rem),
    radial-gradient(circle at top right, #d3f6ff 0, transparent 24rem),
    linear-gradient(180deg, #fffaf1 0%, #fff9f4 38%, #fdfcff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 143, 124, 0.16) 0 0.18rem, transparent 0.2rem),
    radial-gradient(circle, rgba(86, 196, 196, 0.16) 0 0.18rem, transparent 0.2rem);
  background-position: 0 0, 1.2rem 1.2rem;
  background-size: 2.4rem 2.4rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 78%);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
}

.brand-bear {
  color: var(--berry);
}

.brand-academy {
  color: var(--teal-dark);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
}

.hero,
.enroll {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero {
  padding: 2rem 0 1.4rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--berry);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  max-width: 14ch;
}

h3 {
  font-size: 1.8rem;
}

p {
  line-height: 1.65;
}

.hero-text,
.section-heading p:last-child,
.enroll-copy p:last-child {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.7rem 0 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--berry), var(--coral));
  box-shadow: 0 14px 30px rgba(255, 95, 135, 0.3);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-points li {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  font-weight: 700;
}

.hero-art {
  position: relative;
  min-height: 32rem;
  display: grid;
  place-items: center;
}

.robot-card,
.feature-card,
.track-card,
.project-card,
.enroll-card,
.speech-bubble,
.stats article {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.robot-card {
  position: relative;
  width: min(24rem, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 2.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75)),
    linear-gradient(160deg, #daf8ff, #fff1e2 72%);
  display: grid;
  place-items: center;
}

.robot-ears span,
.eye,
.robot-smile,
.robot-body,
.arm,
.wheel,
.body-screen,
.cloud,
.floating-card {
  position: absolute;
}

.robot-ears span {
  width: 1rem;
  height: 3rem;
  top: 3.3rem;
  background: linear-gradient(180deg, var(--coral), #ffbb93);
  border-radius: 999px;
}

.robot-ears span:first-child {
  left: 6.6rem;
  transform: rotate(-20deg);
}

.robot-ears span:last-child {
  right: 6.6rem;
  transform: rotate(20deg);
}

.robot-face {
  position: relative;
  width: 11.5rem;
  height: 9.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 2.4rem;
  background: linear-gradient(180deg, #fffefb, #ffe8b8);
  border: 4px solid rgba(36, 65, 90, 0.08);
}

.eye {
  position: static;
  width: 1.1rem;
  height: 1.4rem;
  margin: -0.6rem 1.55rem 0;
  border-radius: 999px;
  background: var(--ink);
  animation: blink 4.2s infinite;
}

.robot-smile {
  left: 50%;
  bottom: 2rem;
  width: 3.8rem;
  height: 1.8rem;
  transform: translateX(-50%);
  border-bottom: 0.35rem solid var(--berry);
  border-radius: 0 0 4rem 4rem;
}

.robot-body {
  top: 17.4rem;
  width: 12rem;
  height: 8rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, var(--teal), #88e1dd);
}

.body-screen {
  inset: 1.2rem 2.3rem auto;
  height: 2.2rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ffe67e 0 35%, #fffaf1 35% 55%, #ffb4b4 55% 100%);
}

.arm {
  top: 1.8rem;
  width: 1rem;
  height: 4.8rem;
  border-radius: 999px;
  background: #ffd77b;
}

.arm-left {
  left: -1rem;
  transform: rotate(28deg);
}

.arm-right {
  right: -1rem;
  transform: rotate(-28deg);
}

.wheel {
  bottom: -1rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--ink);
  border: 0.45rem solid #9ce8ef;
}

.wheel-left {
  left: 1.8rem;
}

.wheel-right {
  right: 1.8rem;
}

.cloud {
  width: 7.4rem;
  height: 3.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(0.04rem);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 2.7rem;
  height: 2.7rem;
  left: 0.8rem;
  top: -1rem;
}

.cloud::after {
  width: 3rem;
  height: 3rem;
  right: 1rem;
  top: -1.25rem;
}

.cloud-one {
  top: 1rem;
  left: 1rem;
}

.cloud-two {
  right: 0.5rem;
  top: 4.8rem;
  transform: scale(0.82);
}

.floating-card {
  padding: 0.95rem 1rem;
  border-radius: 1.25rem;
  width: 12rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(36, 65, 90, 0.08);
  box-shadow: 0 18px 35px rgba(92, 107, 135, 0.16);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.badge-card {
  left: 0;
  bottom: 3.2rem;
  animation: bob 5.4s ease-in-out infinite;
}

.stars-card {
  right: 0.5rem;
  top: 8rem;
  width: 10.5rem;
  text-align: center;
  font-weight: 800;
  animation: bob 4.8s ease-in-out infinite reverse;
}

.stats,
.feature-grid,
.track-grid,
.project-grid {
  display: grid;
  gap: 1.25rem;
}

.stats {
  grid-template-columns: repeat(3, 1fr);
  padding: 0.8rem 0 3.6rem;
}

.stats article {
  padding: 1.3rem 1.2rem;
  border-radius: 1.5rem;
}

.stats strong,
.project-badge,
.track-age {
  display: block;
  font-weight: 800;
}

.stats span {
  color: var(--ink-soft);
}

section {
  padding: 2.4rem 0;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.track-card,
.project-card {
  border-radius: 2rem;
  padding: 1.4rem;
}

.feature-card .icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.65);
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.feature-card.peach {
  background: linear-gradient(180deg, rgba(255, 228, 214, 0.95), rgba(255, 255, 255, 0.76));
}

.feature-card.mint {
  background: linear-gradient(180deg, rgba(200, 241, 214, 0.95), rgba(255, 255, 255, 0.76));
}

.feature-card.sky {
  background: linear-gradient(180deg, rgba(216, 239, 255, 0.95), rgba(255, 255, 255, 0.76));
}

.feature-card.lemon {
  background: linear-gradient(180deg, rgba(255, 240, 183, 0.95), rgba(255, 255, 255, 0.76));
}

.track-grid {
  grid-template-columns: repeat(3, 1fr);
}

.track-card {
  position: relative;
  overflow: hidden;
}

.track-card::after {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(255, 214, 107, 0.32);
}

.accent-card {
  background: linear-gradient(180deg, rgba(86, 196, 196, 0.14), rgba(255, 255, 255, 0.9));
  transform: translateY(-0.4rem);
}

.track-age,
.project-badge {
  margin-bottom: 0.4rem;
  color: var(--berry);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.track-card ul {
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  min-height: 14rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 249, 244, 0.92)),
    linear-gradient(135deg, rgba(255, 214, 107, 0.25), rgba(86, 196, 196, 0.14));
}

.testimonial {
  display: flex;
  justify-content: center;
}

.speech-bubble {
  position: relative;
  max-width: 50rem;
  padding: 1.6rem 1.8rem;
  border-radius: 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 238, 212, 0.92));
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 4rem;
  bottom: -1rem;
  width: 1.8rem;
  height: 1.8rem;
  background: inherit;
  transform: rotate(45deg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.speech-bubble p {
  margin-top: 0;
  font-size: 1.16rem;
}

.speech-bubble span {
  font-weight: 800;
  color: var(--berry);
}

.enroll {
  margin-top: 1rem;
  padding: 2rem;
  border-radius: 2.4rem;
  background: linear-gradient(135deg, rgba(255, 228, 214, 0.6), rgba(216, 239, 255, 0.6));
  border: 1px solid rgba(36, 65, 90, 0.08);
}

.enroll-card {
  display: grid;
  gap: 0.95rem;
  padding: 1.35rem;
  border-radius: 2rem;
}

.enroll-card label {
  display: grid;
  gap: 0.45rem;
  font-weight: 800;
}

.enroll-card input,
.enroll-card select {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(36, 65, 90, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.55rem);
  }
}

@keyframes blink {
  0%,
  45%,
  100% {
    transform: scaleY(1);
  }
  48%,
  51% {
    transform: scaleY(0.15);
  }
}

@media (max-width: 980px) {
  .hero,
  .enroll,
  .feature-grid,
  .track-grid,
  .project-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-art {
    min-height: 26rem;
    order: -1;
  }

  h1,
  h2 {
    max-width: none;
  }

  .accent-card {
    transform: none;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 1rem, 1180px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1 1 8rem;
    text-align: center;
  }

  .robot-card {
    width: 100%;
    max-width: 21rem;
  }

  .badge-card,
  .stars-card {
    position: static;
    width: auto;
    margin-top: 1rem;
  }

  .hero-art {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .enroll {
    padding: 1.25rem;
  }
}
