/* ============================================
   Joyankyra — Preschool All-Stars landing page
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  /* Palette */
  --cloud:        #FBFAF5;
  --cloud-dim:     #F3F0E7;
  --ink:          #21344E;
  --ink-soft:     #4B5C77;
  --sky:          #3F9FD6;
  --sky-dim:      #E4F2FA;
  --violet:       #8074C9;
  --violet-dim:   #ECE9F8;
  --amber:        #E39A2E;
  --amber-dim:    #FCF0DC;
  --mint:         #2FA98A;
  --mint-dim:     #E1F5EF;
  --sun:          #FFC94D;
  --coral:        #FF7A63;
  --white:        #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-card: 0 10px 30px -14px rgba(33, 52, 78, 0.25);
  --shadow-btn:  0 8px 20px -6px rgba(227, 154, 46, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Baloo 2', system-ui, sans-serif;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

a { color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header / Hero ---------- */

header {
  background: linear-gradient(180deg, var(--sky-dim) 0%, var(--cloud) 100%);
  padding: 3.5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before,
header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

header::before {
  width: 220px;
  height: 220px;
  background: var(--sun);
  top: -110px;
  left: -60px;
  opacity: 0.35;
}

header::after {
  width: 160px;
  height: 160px;
  background: var(--mint);
  bottom: -90px;
  right: -40px;
  opacity: 0.22;
}

.app-logo {
  max-width: 220px;
  margin: 0 auto 1.25rem;
  position: relative;
}

header .subtitle {
  position: relative;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Layout shell ---------- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.container > h2 {
  font-size: 2.1rem;
  text-align: center;
  margin-top: 3rem;
}

.container > .container-lede {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* ---------- Game showcase ---------- */

.game-showcase {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
}

.showcase-logo {
  max-width: 180px;
  margin: 0 auto 1.5rem;
}

/* Skill-domain legend — grounds the color system in the real
   developmental categories the screenshots teach */
.skill-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.skill-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-dot.visual  { background: var(--sky); }
.legend-dot.memory  { background: var(--violet); }
.legend-dot.logic   { background: var(--amber); }
.legend-dot.motor   { background: var(--mint); }

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.screenshot-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cloud-dim);
  border-top: 5px solid var(--ink-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 406px;
  margin: 0 auto;
  width: 100%;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.screenshot-item.domain-visual { border-top-color: var(--sky); }
.screenshot-item.domain-memory { border-top-color: var(--violet); }
.screenshot-item.domain-logic  { border-top-color: var(--amber); }
.screenshot-item.domain-motor  { border-top-color: var(--mint); }

.screenshot-item img {
  width: 100%;
  aspect-ratio: 406 / 288;
  object-fit: contain;
  background: var(--cloud-dim);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.85rem 0.85rem 1rem;
}

.skill-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--sky-dim);
  color: var(--ink);
}

.domain-visual .skill-tag { background: var(--sky-dim);   color: #1E5E82; }
.domain-memory .skill-tag { background: var(--violet-dim); color: #4A3F8E; }
.domain-logic  .skill-tag { background: var(--amber-dim);  color: #8A5C10; }
.domain-motor  .skill-tag { background: var(--mint-dim);   color: #14624E; }

/* ---------- CTA ---------- */

.cta-button {
  display: block;
  width: fit-content;
  margin: 2.5rem auto 3.5rem;
  background: var(--sun);
  color: var(--ink);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(227, 154, 46, 0.6);
}

/* ---------- Feature cards ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  border-bottom: 4px solid var(--mint);
}

.feature-card:nth-child(1) { border-bottom-color: var(--sky); }
.feature-card:nth-child(2) { border-bottom-color: var(--amber); }
.feature-card:nth-child(3) { border-bottom-color: var(--mint); }

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Contact ---------- */

.contact-section {
  background: var(--ink);
  color: var(--cloud);
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 1rem;
}

.contact-section h3 {
  color: var(--white);
  font-size: 1.5rem;
}

.contact-section p {
  color: #C7D0DE;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.contact-link {
  display: inline-block;
  background: var(--sky);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: #3389BB;
}

/* ---------- Footer ---------- */

footer {
  background: var(--ink);
  color: #93A2BA;
  text-align: center;
  padding: 1.75rem 1.5rem 2.25rem;
  font-size: 0.88rem;
}

footer p { margin: 0.3rem 0; }

footer a {
  color: #C7D0DE;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover,
footer a:focus-visible {
  color: var(--white);
}

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
  header { padding: 2.75rem 1.25rem 3.5rem; }
  .container > h2 { font-size: 1.7rem; }
  .game-showcase { padding: 2rem 1.25rem; }
}