@font-face {
  font-family: Vazirmatn;
  src: url("vazirmatn.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("nunito.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #222c66;
  --muted: #535878;
  --paper: #fffaf1;
  --line: #e9e1d7;
  --lavender: #eee5ff;
  --mint: #dcf5e9;
  --yellow: #fff0b5;
  font-family: Nunito, Vazirmatn, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
:root:lang(fa), :root:lang(ar) { font-family: Vazirmatn, Nunito, system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, select:focus-visible { outline: 3px solid #6b4cb6; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 900; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 5;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  padding: .8rem 1.1rem;
  border-radius: 12px;
  color: white;
  background: var(--ink);
}
.shell { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 5.15rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.15rem;
  align-items: center;
}
.brand { display: inline-flex; width: fit-content; }
.brand img { object-fit: contain; height: auto; }
.main-nav, .header-actions, .footer-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 2vw, 2rem);
}
.header-actions { justify-self: end; gap: .6rem; }
.main-nav a, .footer-inner a:not(.brand) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 750;
  text-underline-offset: .35em;
}
.main-nav a:hover, .footer-inner a:not(.brand):hover, .web-link:hover { text-decoration: underline; }
.language-control select {
  min-height: 44px;
  max-width: 7.5rem;
  padding: .32rem .45rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--ink);
  border-radius: 16px;
  font-weight: 850;
  line-height: 1.25;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.staff-button { min-height: 44px; padding: .6rem .95rem; white-space: normal; text-align: center; }
.staff-button:hover { background: #eee9fc; }
.primary-button {
  min-height: 56px;
  padding: .9rem 1.4rem;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 6px 0 #191f4b;
  font-size: 1.15rem;
}
.primary-button:hover { transform: translateY(-2px); background: #35417e; }
.primary-button:active { transform: translateY(3px); box-shadow: 0 3px 0 #191f4b; }
.arrow { font-family: system-ui, sans-serif; display: inline-block; font-size: 1.2em; line-height: 1; }
:root[dir="ltr"] .arrow { transform: scaleX(-1); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(1.2rem, 3.5vw, 4rem);
  padding-block: clamp(1.7rem, 4vw, 3.4rem) 2.15rem;
}
.hero-copy { padding-block: .85rem 1.9rem; }
.hero h1 {
  font-size: clamp(2.55rem, 5.5vw, 5.1rem);
  line-height: 1.19;
  text-wrap: balance;
}
:root[dir="ltr"] .hero h1 { letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero-copy p {
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  line-height: 1.65;
  margin-block: 1.1rem 1.65rem;
}
.hero-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.15;
  min-width: 0;
  overflow: clip;
  border-radius: 2.1rem;
}
.art-window {
  position: absolute;
  inset: 9% 3% 0;
  z-index: -2;
  border-radius: 48% 48% 2rem 2rem / 47% 47% 2rem 2rem;
  background: radial-gradient(circle at 54% 31%, #faf6ff 0%, #e9e0fe 55%, #c9bcf6 100%);
  border: 1px solid #e6dcfc;
}
.mascot {
  position: absolute;
  width: 83%;
  height: 103%;
  inset-inline: 8.5%;
  inset-block-end: -2.5%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 16px #59439429);
}
.art-orbit {
  position: absolute;
  z-index: -1;
  inset: 35% 2% 17%;
  border: clamp(5px, .9vw, 12px) solid #94dbbf;
  border-radius: 50%;
  transform: rotate(-19deg);
}
.art-star {
  position: absolute;
  z-index: 1;
  width: 10%;
  aspect-ratio: 1;
  background: #ffdc63;
  clip-path: polygon(50% 0, 64% 33%, 100% 38%, 73% 63%, 80% 100%, 50% 82%, 19% 100%, 27% 63%, 0 38%, 36% 33%);
}
.art-star-large { top: 9%; left: 12%; transform: rotate(-18deg); }
.art-star-small { width: 5.4%; top: 30%; right: 7%; transform: rotate(20deg); }
.art-dot { position: absolute; z-index: 1; width: 3%; aspect-ratio: 1; border-radius: 50%; background: #f7b2d0; top: 55%; left: 8%; }

.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(.8rem, 2vw, 2rem);
  padding: 1.2rem clamp(1.1rem, 3vw, 2.4rem);
  border: 1px solid #e8dcfa;
  border-radius: 28px;
  background: var(--lavender);
  scroll-margin-block-start: 1rem;
}
.download h2, .about h2 { font-size: clamp(1.45rem, 2.75vw, 2.1rem); line-height: 1.3; }
.download p { margin-block-start: .35rem; line-height: 1.65; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: .5rem; }
.store-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: .65rem .92rem;
  border: 1px solid #d8cbe9;
  border-radius: 14px;
  background: #f9f5ff;
  color: #41456a;
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 850;
  white-space: nowrap;
}
.web-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  width: fit-content;
  font-weight: 850;
  text-underline-offset: .3em;
  white-space: nowrap;
}
.about { padding-block: clamp(2rem, 4.8vw, 4.2rem) 0; scroll-margin-block-start: 1rem; }
.about h2 { margin-block-end: 1rem; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; }
.feature {
  display: grid;
  grid-template-columns: minmax(52px, 22%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.15rem);
  min-height: 9rem;
  padding: clamp(.9rem, 2vw, 1.55rem);
  border-radius: 23px;
}
.feature-challenges { background: var(--yellow); }
.feature-academy { background: var(--lavender); }
.feature-family { background: var(--mint); }
.feature img { height: auto; filter: drop-shadow(0 4px 4px #26204b1a); }
.feature h3 { font-size: clamp(1.1rem, 2vw, 1.48rem); margin-block-end: .18rem; line-height: 1.35; }
.feature p { color: var(--muted); line-height: 1.65; font-size: .97rem; }
.preview-note { margin-block: 2rem; font-size: .88rem; color: var(--muted); line-height: 1.65; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.2rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.footer-inner nav { flex-wrap: wrap; }

@media (max-width: 62rem) {
  .download { grid-template-columns: minmax(0,1fr) auto; }
  .download-copy { grid-row: 1 / 3; }
  .web-link { justify-self: start; }
}
@media (max-width: 47rem) {
  .shell { width: min(100% - 2rem, 35rem); }
  .header-inner { grid-template-columns: minmax(0,1fr) auto; gap: 0 .55rem; padding-block-start: .4rem; }
  .header-inner .brand img { width: clamp(64px, 19vw, 100px); }
  .header-actions { grid-column: 2; grid-row: 1; gap: .15rem; }
  .staff-button { padding-inline: .58rem; font-size: .88rem; }
  .language-control select { max-width: 5.25rem; font-size: .88rem; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 1.25rem; justify-content: center; font-size: .94rem; }
  .hero { grid-template-columns: minmax(0,1fr); gap: .65rem; padding-block: 1.55rem 1.25rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.35rem, 7.2vw, 3.55rem); }
  .hero-copy p { margin-block: .65rem 1.15rem; }
  .hero-art { max-width: 33rem; width: 100%; justify-self: center; aspect-ratio: 1.22; }
  .download { grid-template-columns: minmax(0,1fr); gap: .72rem; }
  .download-copy { grid-row: auto; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { min-height: 7.45rem; grid-template-columns: 64px minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
