/* HeroWay Interactive — site styles
   One stylesheet for every page. Page themes are switched with a class on <body>:
   .page-portal (home), .page-games, .page-kids (light, playful theme). */

:root {
  --bg: #07080f;
  --bg-2: #0d1022;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f3f5ff;
  --muted: #a3abd1;
  --gold: #f5c95c;
  --navy: #1b2150;
  --games-a: #8a5cff;
  --games-b: #ff4f8b;
  --kids-red: #ff5a5f;
  --kids-amber: #ffb400;
  --kids-teal: #14b8a6;
  --kids-blue: #3d8bfd;
  --radius: 16px;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s ease, border-color 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--games-a), var(--games-b));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(255, 79, 139, 0.7);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(255, 79, 139, 0.85);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.btn--small {
  padding: 0.6em 1.2em;
  font-size: 13px;
}

.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 8, 15, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: auto;
  height: 40px;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 760px) {
  .brand img {
    height: 28px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: rgba(7, 8, 15, 0.97);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .site-header:has(.site-nav.is-open) {
    background: rgba(7, 8, 15, 0.97);
  }
}

/* ------------------------------------------------------------------ portal: the two big buttons */

.gate {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 20px) 0 48px;
  overflow: hidden;
  background: radial-gradient(80% 60% at 50% -10%, #1d1f52 0%, transparent 60%), var(--bg);
}

.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.aurora {
  position: absolute;
  inset: -25% -10% auto;
  z-index: -2;
  height: 75%;
  filter: blur(60px);
  opacity: 0.6;
  background:
    radial-gradient(40% 50% at 25% 50%, rgba(138, 92, 255, 0.55), transparent 70%),
    radial-gradient(35% 45% at 75% 45%, rgba(255, 159, 46, 0.35), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}

@keyframes aurora {
  to {
    transform: translate3d(0, 5%, 0) scale(1.08);
  }
}

.gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gate-title {
  margin-bottom: clamp(20px, 3.4vh, 40px);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  width: 100%;
}

.gate-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: clamp(360px, 62vh, 660px);
  padding: clamp(28px, 4vw, 56px) 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s ease;
}

.gate-card__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  transition: transform 1.4s var(--ease);
}

.gate-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
}

/* light sweep on hover */
.gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1s ease;
  pointer-events: none;
}

.gate-card:hover,
.gate-card:focus-visible {
  transform: translateY(-8px);
}

.gate-card:hover::before,
.gate-card:focus-visible::before {
  transform: translateX(120%);
}

.gate-card:hover .gate-card__bg,
.gate-card:focus-visible .gate-card__bg {
  transform: scale(1.06);
}

.gate-card__logo {
  width: auto;
  height: clamp(170px, 30vh, 300px);
  max-width: 88%;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.6s var(--ease);
}

.gate-card:hover .gate-card__logo {
  transform: scale(1.03);
}

.gate-card__tagline {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.gate-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gate-card__cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.gate-card:hover .gate-card__cta svg {
  transform: translateX(5px);
}

/* games side */
.gate-card--games {
  color: #fff;
}

.gate-card--games .gate-card__bg {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(138, 92, 255, 0.6), transparent 62%),
    radial-gradient(90% 70% at 100% 100%, rgba(255, 79, 139, 0.5), transparent 60%),
    linear-gradient(160deg, #1d1450 0%, #0f0c2a 55%, #24102f 100%);
}

.gate-card--games .gate-card__bg::after {
  background: url("../logos/emblem-games.svg") no-repeat right -18% bottom -30% / 62% auto;
}

.gate-card--games .gate-card__tagline {
  color: #dcd6ff;
}

.gate-card--games .gate-card__cta {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gate-card--games:hover,
.gate-card--games:focus-visible {
  border-color: rgba(170, 140, 255, 0.6);
  box-shadow: 0 40px 90px -30px rgba(138, 92, 255, 0.8);
}

/* kids side */
.gate-card--kids {
  color: var(--navy);
  border-color: rgba(255, 216, 77, 0.55);
}

.gate-card--kids .gate-card__bg {
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(255, 255, 255, 0.6), transparent 62%),
    linear-gradient(160deg, #ffe680 0%, #ffc14d 48%, #ff9a3d 100%);
}

.gate-card--kids .gate-card__bg::after {
  background: url("../logos/emblem-kids.svg") no-repeat left -16% bottom -26% / 52% auto;
  opacity: 0.08;
}

.gate-card--kids .gate-card__tagline {
  color: #3a3263;
}

.gate-card--kids .gate-card__cta {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 0 #0d1036;
}

.gate-card--kids:hover,
.gate-card--kids:focus-visible {
  border-color: rgba(255, 236, 150, 0.95);
  box-shadow: 0 40px 90px -30px rgba(255, 159, 46, 0.75);
}

.gate-card--kids:focus-visible {
  outline-color: #fff;
}

/* decorations inside the big buttons */
.sparkles,
.bubbles {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.sparkles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 10px);
  aspect-ratio: 1;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0;
  animation: twinkle 3.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }

  50% {
    opacity: 0.9;
    transform: scale(1) rotate(45deg);
  }
}

.bubbles i {
  position: absolute;
  left: var(--x);
  bottom: -70px;
  width: var(--s, 24px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c, rgba(255, 255, 255, 0.7));
  opacity: 0.55;
  animation: rise var(--t, 10s) linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  50% {
    transform: translate3d(14px, -380px, 0);
  }

  100% {
    transform: translate3d(0, -780px, 0);
  }
}

@media (max-width: 760px) {
  .gate-grid {
    grid-template-columns: 1fr;
  }

  .gate-card {
    min-height: 320px;
  }

  .gate-card__logo {
    height: 160px;
  }
}

/* ------------------------------------------------------------------ sections */

.section {
  position: relative;
  padding: clamp(72px, 10vw, 136px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
}

.about {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.about h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.pillars {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.pillar img {
  width: 64px;
  height: 64px;
}

.pillar h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.pillar p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.contact {
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact h2 {
  font-size: clamp(28px, 3.4vw, 44px);
}

.contact .lead {
  margin-inline: auto;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-brand img {
  width: auto;
  height: 28px;
}

.footer-brand p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links svg {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------------ games page */

.games-hero {
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 clamp(120px, 16vw, 200px);
  overflow: hidden;
  background: linear-gradient(180deg, #0a0920 0%, #17113f 38%, #3b1752 70%, #6a2152 100%);
}

.moon {
  position: absolute;
  top: 16%;
  right: 12%;
  z-index: -2;
  width: clamp(120px, 16vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e7, #ffd9a8 55%, #f7b98a 100%);
  box-shadow: 0 0 80px 20px rgba(255, 214, 170, 0.35), 0 0 220px 70px rgba(255, 120, 170, 0.18);
}

.hills {
  position: absolute;
  inset: auto 0 -1px;
  z-index: -1;
  width: 100%;
  height: clamp(120px, 18vw, 260px);
}

.petals {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.petals i {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: 14px;
  height: 10px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #ffd1e3, #ff8fb8);
  opacity: 0.85;
  animation: fall var(--t, 13s) linear infinite;
  animation-delay: var(--d, 0s);
}

@keyframes fall {
  to {
    transform: translate3d(-180px, 110vh, 0) rotate(560deg);
  }
}

.games-hero__inner {
  max-width: 640px;
}

.games-hero__logo {
  width: min(100%, 460px);
  height: auto;
  margin-bottom: 28px;
}

.games-hero h1 {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 700;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s var(--ease);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(170, 140, 255, 0.5);
  box-shadow: 0 30px 60px -30px rgba(138, 92, 255, 0.65);
}

.game-card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--art);
}

.game-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../logos/emblem-games.svg") no-repeat center / 34% auto;
  opacity: 0.22;
  transition: transform 0.6s var(--ease);
}

.game-card:hover .game-card__art::after {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 8, 15, 0.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.game-card__body {
  padding: 22px 24px 26px;
}

.game-card__body h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.game-card__body p {
  font-size: 15px;
  color: var(--muted);
}

.band {
  border-top: 1px solid var(--line);
  background: radial-gradient(60% 120% at 50% 100%, rgba(138, 92, 255, 0.28), transparent 70%), var(--bg-2);
  text-align: center;
}

.band h2 {
  font-size: clamp(28px, 3.6vw, 48px);
}

.band .lead {
  margin-inline: auto;
}

.band .btn-row {
  justify-content: center;
}

@media (max-width: 960px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  .moon {
    top: 11%;
    right: -6%;
  }
}

/* ------------------------------------------------------------------ kids page (light theme) */

.page-kids {
  --bg: #fffaf0;
  --bg-2: #fff1d6;
  --surface: #fff;
  --text: #1b2150;
  --muted: #565f8c;
  --line: rgba(27, 33, 80, 0.12);
  --line-strong: rgba(27, 33, 80, 0.3);
}

.page-kids :focus-visible {
  outline-color: var(--kids-blue);
}

.page-kids .site-header.is-scrolled {
  background: rgba(255, 250, 240, 0.9);
}

.page-kids .site-nav a:hover,
.page-kids .site-nav a[aria-current="page"] {
  color: var(--navy);
}

.page-kids .site-nav a::after {
  background: linear-gradient(90deg, var(--kids-red), var(--kids-amber));
}

@media (max-width: 760px) {
  .page-kids .site-nav,
  .page-kids .site-header:has(.site-nav.is-open) {
    background: rgba(255, 250, 240, 0.98);
  }
}

.kids-hero {
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 32px) 0 96px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(60% 50% at 80% 8%, rgba(255, 216, 77, 0.6), transparent 70%),
    radial-gradient(50% 45% at 8% 92%, rgba(61, 139, 253, 0.18), transparent 70%),
    radial-gradient(45% 40% at 96% 88%, rgba(255, 90, 95, 0.16), transparent 70%),
    var(--bg);
}

.kids-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kids-hero__logo {
  width: min(70%, 340px);
  height: auto;
  margin-bottom: 24px;
  animation: bob 5s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.kids-hero h1 {
  max-width: 16ch;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kids-hero .lead {
  margin-inline: auto;
}

.kids-hero .btn-row {
  justify-content: center;
}

.shape {
  position: absolute;
  z-index: -1;
  width: var(--w, 60px);
  height: auto;
  animation: float 8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes float {
  50% {
    transform: translateY(-18px) rotate(var(--r, 8deg));
  }
}

@media (max-width: 760px) {
  .kids-hero .shape {
    width: calc(var(--w, 60px) * 0.6);
  }

  .kids-hero .shape:nth-of-type(2),
  .kids-hero .shape:nth-of-type(4),
  .kids-hero .shape:nth-of-type(6) {
    display: none;
  }
}

.btn--kids {
  background: var(--kids-red);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 0 #c63b40;
}

.btn--kids:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #c63b40;
}

.btn--kids:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #c63b40;
}

.btn--kids-ghost {
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 6px 0 var(--navy);
}

.btn--kids-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--navy);
}

.kid-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.kid-card {
  padding: 32px 28px 28px;
  border: 3px solid var(--navy);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 8px 0 var(--navy);
  transition: transform 0.3s var(--ease);
}

.kid-card:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.kid-card__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border: 3px solid var(--navy);
  border-radius: 22px;
  background: var(--c);
}

.kid-card__icon svg {
  width: 32px;
  height: 32px;
}

.kid-card h3 {
  font-size: 26px;
  font-weight: 800;
}

.kid-card p {
  margin: 0;
  color: var(--muted);
}

.kid-card--watch {
  --c: #ffd84d;
}

.kid-card--play {
  --c: #7ee0d2;
}

.kid-card--learn {
  --c: #ffb3c0;
}

.parents {
  border-top: 3px dashed rgba(27, 33, 80, 0.14);
  background: var(--bg-2);
}

.parents-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.parents h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-weight: 600;
}

.checklist li::before {
  content: "";
  flex: 0 0 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--kids-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.checklist a {
  color: var(--navy);
}

@media (max-width: 860px) {
  .kid-grid,
  .parents-inner {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ motion preferences */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .sparkles i {
    opacity: 0.6;
  }

  .bubbles i,
  .petals i {
    display: none;
  }
}
