:root {
  --green: #08775f;
  --green-dark: #055342;
  --mint: #dff7e9;
  --yellow: #ffd75a;
  --orange: #ff9d58;
  --sky: #dff4ff;
  --ink: #17372f;
  --muted: #566e66;
  --paper: #fffdf6;
  --white: #fff;
  --shadow: 0 18px 50px rgba(22, 74, 59, .14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-rounded, "Avenir Next", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: var(--ink); color: white; border-radius: 12px; }
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 74px;
  padding: .7rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 253, 246, .93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(8, 119, 95, .12);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.35rem; font-weight: 900; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--yellow); background: var(--green); border-radius: 14px; font-weight: 950; transform: rotate(-4deg); }
.site-header nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-header > .button-small:last-child { margin-left: auto; }
.site-header nav a, footer nav a { text-decoration: none; font-weight: 750; }
.site-header nav a:hover, footer nav a:hover { color: var(--green); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: .8rem 1.25rem;
  border-radius: 17px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid #55b8ff; outline-offset: 3px; }
.button-small { min-height: 44px; padding: .6rem 1rem; color: white; background: var(--green); }
.button-primary { color: white; background: var(--green); box-shadow: 0 10px 25px rgba(8, 119, 95, .25); }
.button-light { color: var(--green-dark); background: white; box-shadow: 0 10px 25px rgba(22, 55, 47, .12); }
.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 74px));
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #53bdf0;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 56, 69, .82) 0%, rgba(0, 62, 72, .58) 38%, rgba(0, 44, 45, .04) 72%); }
.hero-content { position: relative; z-index: 2; width: min(650px, 90%); margin-left: clamp(1.25rem, 7vw, 7rem); padding: 4rem 0; color: white; }
.eyebrow { margin: 0 0 .6rem; color: var(--green); font-size: .86rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: var(--yellow); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 1.2rem; font-size: clamp(2.6rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.055em; }
.hero-content > p:not(.eyebrow) { max-width: 580px; font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); width: min(1100px, calc(100% - 2rem)); margin: -38px auto 0; position: relative; z-index: 3; background: white; border-radius: 24px; box-shadow: var(--shadow); }
.trust-strip div { display: grid; padding: 1.2rem; text-align: center; }
.trust-strip div + div { border-left: 1px solid #dcece5; }
.trust-strip strong { color: var(--green); font-size: 1.65rem; line-height: 1.2; }
.trust-strip span { color: var(--muted); font-size: .9rem; font-weight: 700; }
.section { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section-heading { max-width: 760px; margin-bottom: 2.3rem; }
.section-heading.centered { margin-inline: auto; text-align: center; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: .45rem; font-size: 1.3rem; line-height: 1.2; }
.section-heading > p:last-child, .parent-copy > p, .game-card p, .learning-grid p { color: var(--muted); }
.learning-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.learning-grid article { padding: 1.5rem; background: white; border: 1px solid #dcece5; border-radius: 24px; box-shadow: 0 10px 28px rgba(22, 74, 59, .07); }
.learning-grid article > span { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.1rem; color: var(--green-dark); background: var(--yellow); border-radius: 18px; font-size: 1.25rem; font-weight: 950; transform: rotate(-3deg); }
.games-section { width: 100%; max-width: none; padding-inline: max(1rem, calc((100% - 1180px) / 2)); background: var(--sky); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.game-card { overflow: hidden; background: white; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s ease; }
.game-card:hover { transform: translateY(-6px) rotate(-.25deg); }
.game-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.game-card div { padding: 1.4rem; }
.tag { display: inline-block; margin-bottom: .8rem; padding: .25rem .65rem; color: var(--green-dark); background: var(--mint); border-radius: 999px; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.center-action { margin-top: 2rem; text-align: center; }
.parent-section { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.parent-copy li { margin: .65rem 0; padding-left: .35rem; }
.parent-copy li::marker { color: var(--green); content: "✓  "; font-weight: 900; }
.dragon-card { position: relative; min-height: 420px; overflow: hidden; display: grid; place-items: end center; background: var(--mint); border-radius: 36px; }
.dragon-card img {
  align-self: end;
  width: min(380px, 90%);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center bottom;
}
.dragon-card blockquote { position: absolute; top: 1.25rem; left: 1.25rem; margin: 0; padding: .7rem 1rem; background: white; border-radius: 16px; font-size: 1.2rem; font-weight: 900; box-shadow: var(--shadow); }
.download { padding: clamp(4.5rem, 8vw, 7rem) 1rem; color: white; background: var(--green-dark); text-align: center; }
.download .eyebrow { color: var(--yellow); }
.download > p:not(.eyebrow) { max-width: 600px; margin-inline: auto; color: #d6f5e8; font-size: 1.1rem; }
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }
.store-button { display: flex; align-items: center; gap: .8rem; min-width: 205px; padding: .65rem 1.05rem; color: white; background: #111; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; text-decoration: none; text-align: left; font-size: 1.12rem; font-weight: 800; line-height: 1.1; }
.store-button small { display: block; margin-bottom: .15rem; font-size: .7rem; font-weight: 600; }
.store-icon, .play-icon { width: 34px; color: white; font-size: 1.8rem; text-align: center; }
.play-icon { color: #71d88c; }
.store-web { background: #0d9575; }
.faq { max-width: 850px; }
details { margin: .8rem 0; padding: 1rem 1.2rem; background: white; border: 1px solid #dcece5; border-radius: 18px; }
summary { cursor: pointer; font-size: 1.08rem; font-weight: 850; }
details p { margin: .8rem 0 0; color: var(--muted); }
footer { display: grid; justify-items: center; gap: 1rem; padding: 3rem 1rem; color: #d7eee6; background: #102d25; text-align: center; }
.footer-brand { color: white; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.3rem; }
.legal-page { max-width: 800px; }
.legal-page h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.legal-page h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.contact-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; max-width: 1100px; }
.contact-intro h1 { margin-bottom: 1.2rem; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.contact-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.contact-details { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-details > div { display: flex; align-items: flex-start; gap: .9rem; }
.contact-details > div > span { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; background: var(--mint); border-radius: 15px; }
.contact-details strong, .contact-details a { display: block; }
.contact-details a { color: var(--green); font-weight: 800; }
.contact-details p { margin: .15rem 0 0; color: var(--muted); }
.contact-form { display: grid; gap: 1rem; padding: clamp(1.3rem, 4vw, 2.2rem); background: white; border: 1px solid #dcece5; border-radius: 28px; box-shadow: var(--shadow); }
.contact-form label { display: block; margin-bottom: .35rem; font-weight: 850; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: .85rem 1rem; color: var(--ink); background: #fbfdfb; border: 2px solid #cfe3da; border-radius: 14px; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(85, 184, 255, .35); border-color: var(--green); }
.form-note, .form-status { margin: 0; color: var(--muted); font-size: .9rem; }
.form-submit { border: 0; cursor: pointer; font: inherit; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .site-header .button-small { margin-left: auto; }
  .hero { min-height: 700px; align-items: end; }
  .hero > img { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(0, 55, 60, .9) 0%, rgba(0, 55, 60, .35) 68%, transparent 100%); }
  .hero-content { width: auto; margin: 0; padding: 10rem 1.25rem 3rem; }
  .learning-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: 1fr; max-width: 650px; margin-inline: auto; }
  .parent-section { grid-template-columns: 1fr; }
  .contact-page { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { min-height: 64px; gap: .6rem; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .site-header .brand { font-size: 1.15rem; }
  .button-small { min-height: 40px; padding: .5rem .75rem; font-size: .9rem; }
  .hero { min-height: 690px; }
  .hero > img { object-position: 66% center; }
  .hero-content { padding-top: 16rem; }
  .hero-actions { display: grid; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: 0; width: 100%; border-radius: 0; box-shadow: none; }
  .trust-strip div { border-bottom: 1px solid #dcece5; }
  .trust-strip div + div { border-left: 0; }
  .trust-strip div:nth-child(even) { border-left: 1px solid #dcece5; }
  .learning-grid { grid-template-columns: 1fr; }
  .download-actions { display: grid; }
  .store-button { width: min(290px, 90vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
