@font-face {
  font-family: "Teshrin";
  src: url("assets/fonts/Teshrin_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teshrin";
  src: url("assets/fonts/Teshrin_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teshrin";
  src: url("assets/fonts/Teshrin_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Teshrin";
  src: url("assets/fonts/Teshrin_Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cyan: #00a4fa;
  --cyan-deep: #0078bb;
  --lime: #e3ed43;
  --pink: #ff7bd0;
  --pink-deep: #bc4090;
  --navy: #21263f;
  --navy-soft: #2d3354;
  --surface: #f5f6fa;
  --purple: #7b5cff;
  --bg: #f5f6fa;
  --fg: #21263f;
  --card: #ffffff;
  --border: rgba(33, 38, 63, 0.12);
  --shadow: 0 4px 24px rgba(33, 38, 63, 0.08);
  --shadow-hover: 0 12px 40px rgba(33, 38, 63, 0.16);
  --font: "Teshrin", "Inter", system-ui, sans-serif;
}

html.dark {
  --bg: #21263f;
  --fg: #f5f6fa;
  --card: #2d3354;
  --border: rgba(245, 246, 250, 0.14);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 500;
}

body.no-scroll {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.lucide {
  width: 1em;
  height: 1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-store-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
}

.brand-store-icon.google-play path {
  fill: currentColor;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 0;
  box-shadow: 0 4px 24px rgba(33, 38, 63, 0.06);
  backdrop-filter: blur(20px) saturate(140%);
}

@media (max-width: 760px) {

  .site-header.scrolled,
  .site-header.menu-open {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-header.scrolled .nav,
  .site-header.menu-open .nav {
    width: 100%;
    padding-inline: 14px;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    box-shadow: 0 4px 24px rgba(33, 38, 63, 0.08);
    backdrop-filter: blur(20px) saturate(140%);
  }
}

.nav {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 1280px);
  height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: height 220ms ease;
}

.site-header.scrolled .nav {
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark-wrap {
  position: relative;
  flex: 0 0 auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 220ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.08);
}

.brand-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: -2px;
  right: -2px;
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--bg);
}

.brand-wordmark {
  width: 100px;
  height: auto;
}

.brand-fallback {
  display: none;
  color: var(--cyan);
  font-size: 22px;
  font-weight: 900;
}

.nav-links {
  margin: 0;
  padding: 4px;
  list-style: none;
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a.active {
  color: var(--navy);
  background: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-link,
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(33, 38, 63, 0.16);
  transition: transform 180ms ease, background 180ms ease;
}

.download-link .lucide,
.store-badge .lucide {
  flex: 0 0 auto;
}

.download-link {
  min-height: 38px;
  padding: 8px 16px;
}

.store-badge:hover,
.download-link:hover {
  background: var(--cyan-deep);
  transform: translateY(-2px);
}

.store-badge.light {
  background: #fff;
  color: var(--navy);
}

.store-badge.light:hover {
  background: var(--lime);
}

.hero-main .store-badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero-main .store-badge span:last-child {
  white-space: nowrap;
}

.lang-toggle,
.icon-button {
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.lang-toggle {
  padding: 0 12px;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.lang-toggle .muted {
  margin-inline: 4px;
  opacity: 0.35;
}

.lang-toggle span.dim {
  opacity: 0.3;
}

.icon-button {
  width: 38px;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
}

.icon-button:hover,
.lang-toggle:hover {
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
}

.mobile-toggle {
  display: none;
}

.mobile-menu {
  width: min(100% - 24px, 520px);
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--bg);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    background 160ms ease,
    color 160ms ease,
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open a:nth-child(1) {
  transition-delay: 45ms;
}

.mobile-menu.is-open a:nth-child(2) {
  transition-delay: 75ms;
}

.mobile-menu.is-open a:nth-child(3) {
  transition-delay: 105ms;
}

.mobile-menu.is-open a:nth-child(4) {
  transition-delay: 135ms;
}

.mobile-menu a:hover {
  background: var(--cyan);
  color: var(--navy);
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 104px 0 48px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("assets/pattern/squiggle.png");
  background-repeat: repeat;
  background-size: 260px auto;
  mix-blend-mode: soft-light;
  mask-image: linear-gradient(135deg, transparent 0%, #000 76%);
}

.pattern-light {
  color: #fff;
}

.pattern-dark {
  color: var(--navy);
}

.hero-main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  min-height: 460px;
  padding: 40px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--cyan) 0%, #0090e0 100%);
  color: var(--navy);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 100%;
  text-align: start;
}

[dir="rtl"] .hero-copy {
  max-width: 100%;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(33, 38, 63, 0.14);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 24px;
}

.badge.outline {
  margin: 0;
  border: 2px solid var(--cyan);
  background: rgba(255, 255, 255, 0.85);
  color: var(--cyan-deep);
  text-align: center;
}

.hero-main h1 {
  margin: 0 0 18px;
  white-space: pre-line;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

[dir="rtl"] .hero-main h1 {
  font-size: clamp(36px, 4.3vw, 56px);
  line-height: 1.12;
  font-weight: 700;
}

.hero-main p {
  max-width: 390px;
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.45;
  color: rgba(33, 38, 63, 0.84);
}

.store-row {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-main .store-row {
  width: calc(100% - 190px);
  margin-inline-end: auto;
}

[dir="rtl"] .hero-main .store-row {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.hero-mascot {
  position: absolute;
  z-index: 3;
  top: auto;
  right: 34px;
  bottom: 42px;
  width: 150px;
  height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(255, 255, 255, 0.5));
}

[dir="rtl"] .hero-mascot {
  right: auto;
  left: 34px;
}

.hero-phone-card {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
}

.phone-frame {
  position: relative;
  width: 180px;
  height: 360px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: #111;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
  transition: transform 260ms ease;
}

.phone-frame.tilted:hover {
  transform: perspective(600px) rotateY(6deg) rotateX(-2deg) scale(1.03);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 62px;
  height: 14px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.stats-card {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: var(--lime);
  color: var(--navy);
}

.stat {
  position: relative;
  z-index: 1;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  font-weight: 900;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.badge-card {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
  min-height: 190px;
  padding: 20px;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.section {
  padding: 80px 0;
}

.section-heading {
  margin-bottom: 48px;
  text-align: center;
}

.section-heading span,
.footer-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.footer-cta h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "a a b"
    "c d e";
  gap: 16px;
}

.why-card,
.game-card,
.course-card {
  min-height: 220px;
  padding: 28px;
  color: var(--card-fg);
  background: var(--card-bg);
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-fg) 12%, transparent);
  font-size: 28px;
}

.card-icon .lucide {
  stroke-width: 2.2;
}

.why-card h3,
.game-card h3,
.course-card h3,
.faq-mascot-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.why-card p,
.game-card p,
.course-card p,
.faq-mascot-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.55;
  opacity: 0.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
  gap: 16px;
}

.gallery-card {
  position: relative;
  isolation: isolate;
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 28px;
  background: var(--gallery-bg);
  color: var(--gallery-fg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.12), transparent 46%);
}

.gallery-card .pattern {
  z-index: 0;
  opacity: 0.16;
}

.gallery-card.featured {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 590px;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.gallery-card.supporting {
  grid-column: span 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  min-height: 280px;
}

.gallery-label {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 30px;
  max-width: min(72%, 360px);
}

[dir="rtl"] .gallery-label {
  right: 30px;
  left: auto;
}

.gallery-label span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--gallery-fg);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-label strong {
  display: block;
  font-size: clamp(30px, 3.7vw, 54px);
  line-height: 1;
  font-weight: 900;
  text-wrap: balance;
}

.gallery-phone-stage {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.24));
}

.gallery-card.featured .phone-frame {
  width: 280px;
  height: 560px;
  margin-bottom: -46px;
  transform: perspective(900px) rotateY(-5deg) rotateX(3deg);
}

.gallery-card.supporting .phone-frame {
  width: 154px;
  height: 308px;
  margin: 0 -8px -54px 0;
  transform: perspective(800px) rotateY(-6deg) rotateZ(var(--phone-tilt));
}

[dir="rtl"] .gallery-card.supporting .phone-frame {
  margin: 0 0 -54px -8px;
  transform: perspective(800px) rotateY(6deg) rotateZ(var(--phone-tilt));
}

.gallery-card.supporting .gallery-label {
  position: relative;
  inset: auto;
  align-self: start;
  max-width: none;
  padding-top: 4px;
}

.gallery-card.supporting .gallery-label strong {
  font-size: clamp(25px, 2.6vw, 38px);
}

.games-grid,
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.game-card,
.course-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-demo {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.instruction {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.swatches,
.palette-wells {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-match-demo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(33, 38, 63, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.color-target {
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(33, 38, 63, 0.12);
  box-shadow: 0 10px 24px rgba(188, 64, 144, 0.18);
}

.color-target span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: var(--target-color);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.52);
}

.color-options {
  min-width: 0;
}

.color-options .instruction {
  color: rgba(33, 38, 63, 0.66);
}

.swatch,
.palette-well {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(33, 38, 63, 0.18);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.swatch.selected {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px currentColor, 0 12px 22px rgba(33, 38, 63, 0.18);
}

.color-result {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 900;
}

.palette-well {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
}

.contrast-text {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
}

.range {
  width: 100%;
  accent-color: #fff;
}

.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.match-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-option {
  min-height: 34px;
  padding: 7px 9px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
}

.match-option.selected {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.38);
}

.match-option.matched {
  background: rgba(70, 190, 100, 0.32);
  cursor: default;
}

.course-card .course-cta {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-fg) 12%, transparent);
  color: var(--card-fg);
  font-size: 14px;
  font-weight: 900;
}

.testimonial-card {
  min-height: 320px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, var(--pink-deep) 0%, var(--pink) 100%);
  color: #fff;
}

.testimonial-card blockquote {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
}

.testimonial-card blockquote::before {
  content: "“";
  position: absolute;
  top: -52px;
  left: -10px;
  opacity: 0.22;
  font-size: 140px;
  line-height: 1;
  font-weight: 900;
}

[dir="rtl"] .testimonial-card blockquote::before {
  right: -10px;
  left: auto;
}

.testimonial-card p {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  opacity: 0.9;
}

.testimonial-card footer::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.62);
}

.testimonial-mascot {
  width: 200px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.5));
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: 16px;
}

.faq-mascot-card {
  min-height: 360px;
  padding: 32px;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  background: var(--purple);
  color: #fff;
}

.faq-mascot-card img {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
}

.faq-card {
  padding: 28px 36px;
  background: var(--card);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: border-color 220ms ease;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-question {
  width: 100%;
  min-height: 68px;
  padding: 16px 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: start;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.faq-question:focus {
  outline: none;
}

.faq-question:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cyan) 48%, transparent);
  outline-offset: 6px;
  border-radius: 16px;
}

.faq-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  font-size: 16px;
  transition: transform 260ms ease, background 260ms ease, color 260ms ease;
}

.faq-item.open .faq-icon {
  background: var(--navy);
  color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, transform 320ms ease;
  will-change: max-height;
}

.faq-answer-inner {
  margin: 0;
  padding: 0 0 20px;
  color: color-mix(in srgb, var(--fg) 76%, transparent);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  padding: 80px 0 32px;
}

.footer-cta {
  min-height: 280px;
  margin-bottom: 32px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--surface);
}

.footer-cta h2 {
  margin-bottom: 24px;
}

.footer-mascot {
  width: 220px;
  height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
}

.footer-links {
  padding: 36px;
  background: var(--card);
}

.footer-links {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 36px;
}

.footer-brand img {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 300px;
  margin: 0 0 18px;
  line-height: 1.6;
  opacity: 0.72;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  font-size: 16px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.socials a:hover {
  color: #fff;
  background: var(--cyan);
  transform: translateY(-2px);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-column h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-column a {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.82;
}

.footer-column a:hover {
  color: var(--cyan-deep);
  opacity: 1;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  opacity: 0.66;
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 540ms ease, transform 540ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes mascot-float {

    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-10px);
    }
  }

  .mascot-float {
    animation: mascot-float 3s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {

  .hero-grid,
  .why-grid,
  .games-grid,
  .courses-grid,
  .faq-layout,
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .hero-main,
  .hero-phone-card,
  .stats-card,
  .badge-card {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-main {
    grid-column: 1 / -1;
  }

  .why-grid {
    grid-template-areas: none;
  }

  .why-card {
    grid-area: auto !important;
  }

  .gallery-card.featured,
  .gallery-card.supporting {
    grid-column: span 6;
  }

  .gallery-card.supporting {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .gallery-card.supporting .gallery-label {
    padding-top: 0;
  }

  .gallery-card.supporting .phone-frame {
    justify-self: end;
  }

  [dir="rtl"] .gallery-card.supporting .phone-frame {
    justify-self: start;
  }

  .footer-columns,
  .footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {

  .shell,
  .nav {
    width: min(100% - 24px, 1280px);
  }

  .nav-links,
  .download-link,
  .brand-wordmark {
    display: none;
  }

  .brand-fallback,
  .mobile-toggle {
    display: inline-grid;
  }

  .hero-section {
    padding-top: 92px;
  }

  .hero-grid,
  .why-grid,
  .gallery-grid,
  .games-grid,
  .courses-grid,
  .faq-layout,
  .footer-links,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 560px;
    padding: 28px;
  }

  .hero-copy,
  [dir="rtl"] .hero-copy {
    max-width: 100%;
    padding-top: 0;
    margin-inline-start: 0;
  }

  [dir="rtl"] .hero-copy {
    margin-inline-start: 0;
    margin-inline-end: 0;
  }

  .hero-main .store-row {
    width: calc(100% - 136px);
  }

  .hero-main h1 {
    font-size: clamp(34px, 11vw, 50px);
    line-height: 1.04;
  }

  [dir="rtl"] .hero-main h1 {
    font-size: clamp(31px, 9.4vw, 44px);
    line-height: 1.08;
  }

  .hero-mascot {
    top: auto;
    right: 26px;
    bottom: 34px;
    width: 118px;
    height: 134px;
  }

  [dir="rtl"] .hero-mascot {
    right: auto;
    left: 26px;
  }

  .gallery-card.featured,
  .gallery-card.supporting {
    grid-column: auto;
  }

  .gallery-card.featured {
    min-height: 560px;
  }

  .gallery-card.featured .phone-frame {
    width: 230px;
    height: 460px;
  }

  .gallery-card.supporting {
    min-height: 310px;
  }

  .gallery-card.supporting .phone-frame {
    width: 142px;
    height: 284px;
  }

  .testimonial-card,
  .footer-cta {
    padding: 32px;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }

  .testimonial-mascot,
  .footer-mascot {
    align-self: center;
  }

  .faq-card {
    padding: 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .nav-actions {
    gap: 4px;
  }

  .lang-toggle {
    padding-inline: 9px;
  }

  .icon-button {
    width: 34px;
  }

  .store-badge {
    width: 100%;
  }

  .hero-main .store-badge {
    width: auto;
    min-width: max-content;
  }

  .bento-card {
    border-radius: 22px;
  }

  .gallery-card {
    padding: 24px;
  }

  .gallery-card.featured {
    min-height: 500px;
  }

  .gallery-card.featured .phone-frame {
    width: 204px;
    height: 408px;
    margin-bottom: -34px;
  }

  .gallery-card.supporting {
    min-height: 286px;
  }

  .gallery-card.supporting .phone-frame {
    width: 126px;
    height: 252px;
    margin-bottom: -44px;
  }

  .gallery-label {
    top: 24px;
    left: 24px;
    max-width: calc(100% - 48px);
  }

  [dir="rtl"] .gallery-label {
    right: 24px;
    left: auto;
  }

  .gallery-label strong {
    font-size: clamp(26px, 10vw, 40px);
  }

  .hero-main,
  .why-card,
  .game-card,
  .course-card,
  .testimonial-card,
  .footer-cta,
  .footer-links {
    padding: 24px;
  }

  .hero-copy,
  [dir="rtl"] .hero-copy {
    max-width: 100%;
    padding-top: 0;
  }

  [dir="rtl"] .hero-copy {
    margin-inline-start: 0;
    margin-inline-end: 0;
  }

  .hero-main .store-row {
    width: calc(100% - 118px);
  }

  .color-match-demo {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .color-target {
    width: 64px;
    height: 64px;
  }

  .hero-main h1 {
    font-size: clamp(32px, 10.5vw, 44px);
  }

  [dir="rtl"] .hero-main h1 {
    font-size: clamp(29px, 8.8vw, 38px);
  }

  .hero-mascot {
    top: auto;
    right: 22px;
    bottom: 28px;
    width: 104px;
    height: 118px;
  }

  [dir="rtl"] .hero-mascot {
    right: auto;
    left: 22px;
  }
}

.coming-soon-body {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.coming-soon-page {
  position: relative;
  height: 100vh;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  isolation: isolate;
}

.coming-soon-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(227, 237, 67, 0.44), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(255, 123, 208, 0.32), transparent 28%),
    radial-gradient(circle at 50% 92%, rgba(0, 164, 250, 0.28), transparent 34%),
    linear-gradient(145deg, #f9fbff 0%, var(--surface) 42%, #eaf7ff 100%);
}

.coming-soon-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  mask-image: none;
}

.coming-soon-shell {
  width: 100%;
  height: calc(100vh - 32px);
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.coming-soon-brand {
  flex: 0 0 auto;
  margin-bottom: 12px;
  padding-inline: 8px;
}

.coming-soon-brand .brand-wordmark {
  display: block;
}

.coming-soon-brand .brand-fallback {
  display: none;
}

.coming-soon-card {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(250px, 330px);
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background:
    radial-gradient(circle at 82% 18%, rgba(227, 237, 67, 0.72), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(255, 123, 208, 0.28), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--cyan) 88%, #fff) 0%, #00a1f5 52%, #0086d3 100%);
  color: var(--navy);
  box-shadow: 0 28px 80px rgba(33, 38, 63, 0.18);
}

.coming-soon-card .pattern {
  opacity: 0.14;
}

.coming-soon-copy {
  position: relative;
  z-index: 2;
  max-width: none;
}

.coming-soon-badge {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
}

.coming-soon-copy h1 {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(54px, 7.8vw, 104px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.coming-soon-copy p {
  max-width: 540px;
  margin: 0 0 26px;
  color: rgba(33, 38, 63, 0.76);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
}

.coming-soon-form {
  display: flex;
  max-width: 520px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(33, 38, 63, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
}

.coming-soon-form input {
  min-width: 0;
  flex: 1;
  height: 56px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.coming-soon-form input::placeholder {
  color: rgba(33, 38, 63, 0.48);
}

.coming-soon-form button {
  flex: 0 0 auto;
  min-width: 144px;
  height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(33, 38, 63, 0.22);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.coming-soon-form button:hover {
  background: var(--cyan-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(33, 38, 63, 0.26);
}

.coming-soon-note {
  max-width: 520px;
  margin: 12px 0 0;
  color: rgba(33, 38, 63, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.coming-soon-visual {
  position: relative;
  z-index: 2;
  min-height: 420px;
  display: grid;
  place-items: end start;
}

.coming-soon-visual::before {
  content: "";
  position: absolute;
  left: -2px;
  bottom: 34px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.82), transparent 22%),
    linear-gradient(145deg, var(--lime) 0%, #f2fb79 100%);
  box-shadow:
    0 24px 60px rgba(33, 38, 63, 0.2),
    0 0 0 18px rgba(255, 255, 255, 0.16),
    0 0 0 34px rgba(227, 237, 67, 0.16);
}

.coming-soon-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  height: auto;
  transform: translateX(-26px);
  filter: drop-shadow(0 22px 34px rgba(33, 38, 63, 0.26));
}

@media (max-width: 860px) {
  .coming-soon-page {
    padding: 12px;
    align-items: start;
  }

  .coming-soon-shell {
    height: calc(100vh - 24px);
    min-height: 0;
  }

  .coming-soon-card {
    padding: 22px 24px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 14px;
    justify-content: stretch;
  }

  .coming-soon-brand {
    justify-content: center;
    margin-bottom: 10px;
  }

  .coming-soon-copy {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .coming-soon-copy h1 {
    max-width: 620px;
    margin-bottom: 12px;
    font-size: clamp(40px, 11vw, 66px);
    line-height: 0.94;
  }

  .coming-soon-copy p {
    max-width: 480px;
    margin-bottom: 18px;
  }

  .coming-soon-visual {
    order: 1;
    min-height: 198px;
    place-items: center;
  }

  .coming-soon-visual::before {
    left: auto;
    bottom: 8px;
    width: 178px;
    height: 178px;
  }

  .coming-soon-visual img {
    width: 196px;
    transform: none;
  }

}

@media (max-width: 520px) {
  .coming-soon-body {
    height: 100dvh;
    min-height: 100dvh;
  }

  .coming-soon-page {
    height: 100dvh;
    padding: 8px;
  }

  .coming-soon-shell {
    height: calc(100dvh - 16px);
    min-height: 0;
  }

  .coming-soon-card {
    padding: 14px;
    border-radius: 28px;
    gap: 10px;
    align-content: stretch;
    background:
      radial-gradient(circle at 50% 18%, rgba(227, 237, 67, 0.76), transparent 27%),
      radial-gradient(circle at 12% 76%, rgba(255, 123, 208, 0.28), transparent 28%),
      linear-gradient(155deg, #19b6ff 0%, #00a4fa 48%, #007fc8 100%);
  }

  .coming-soon-brand {
    margin-bottom: 8px;
    min-height: 38px;
  }

  .coming-soon-brand .brand-wordmark {
    display: block;
    width: 92px;
  }

  .coming-soon-copy {
    width: 100%;
    max-width: 350px;
    justify-self: center;
    padding: 73px 14px 116px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 42px rgba(33, 38, 63, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(12px);
  }

  .coming-soon-badge {
    margin-bottom: 10px;
    padding: 7px 11px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(227, 237, 67, 0.44);
  }

  .coming-soon-copy h1 {
    max-width: 310px;
    font-size: clamp(31px, 11vw, 43px);
    line-height: 1;
    margin-bottom: 67px;
  }

  .coming-soon-copy p {
    max-width: 295px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.4;
  }

  .coming-soon-visual {
    width: 100%;
    min-height: 0;
    height: clamp(150px, 27dvh, 210px);
    isolation: isolate;
  }

  .coming-soon-visual::before {
    width: clamp(132px, 38vw, 166px);
    height: clamp(132px, 38vw, 166px);
    bottom: 8px;
    box-shadow:
      0 18px 42px rgba(33, 38, 63, 0.2),
      0 0 0 14px rgba(255, 255, 255, 0.18),
      0 0 0 28px rgba(227, 237, 67, 0.14);
  }

  .coming-soon-visual img {
    width: clamp(148px, 43vw, 188px);
    transform: translateY(2px);
  }

  .coming-soon-form {
    width: 100%;
    max-width: 302px;
    flex-direction: column;
    height: 100px;
    max-height: 100%;
    padding: 7px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(33, 38, 63, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  }

  .coming-soon-form input,
  .coming-soon-form button {
    width: 100%;
  }

  .coming-soon-form input {
    height: 42px;
    text-align: center;
    font-size: 14px;
  }

  .coming-soon-form button {
    height: 44px;
    border-radius: 16px;
  }

  .coming-soon-form button {
    margin-top: 6px;
  }

  .coming-soon-note {
    max-width: 250px;
    margin-top: 8px;
    font-size: 11.5px;
    line-height: 1.25;
  }

}