:root {
  --bg: #091024;
  --bg-2: #0f1d3a;
  --panel: #14233d;
  --panel-2: #182a47;
  --teal: #55b8aa;
  --green: #4c8a63;
  --mint: #89efb3;
  --blue: #5686f3;
  --gold: #ffd66e;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --soft: rgba(255, 255, 255, 0.1);
  --line: rgba(163, 188, 219, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(85, 184, 170, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 5%, rgba(255, 214, 110, 0.14), transparent 23rem),
    linear-gradient(180deg, #071026 0%, #0a1329 45%, #0b132a 100%);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(137, 239, 179, 0.5) 0 1px, transparent 1.5px);
  background-size: 96px 118px, 143px 167px;
  background-position: 12px 20px, 63px 84px;
  opacity: 0.32;
}

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

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

button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: #061225;
  background: var(--mint);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 16, 38, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1rem; letter-spacing: 0; }
.brand small { color: var(--muted); font-size: 0.72rem; font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.65rem 0.25rem;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 0.75rem 1rem !important;
  border-radius: 999px;
  color: #071225 !important;
  background: var(--mint);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 74px;
  background: linear-gradient(180deg, rgba(85, 184, 170, 0.16), rgba(9, 16, 36, 0));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(360px, 1.07fr);
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 5vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  line-height: 1.15;
}

.hero-lead,
.section-heading p,
.showcase-copy p,
.coaching-copy p,
.lesson-copy p,
.parent-grid p,
.download-panel p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 1.4rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 62px;
  padding: 0.75rem 1.05rem;
  border-radius: 18px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.store-button small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
  line-height: 1;
}

.store-primary { background: var(--blue); }
.store-secondary { background: #f4fff8; color: #071225; }
.store-secondary small { color: rgba(7, 18, 37, 0.62); }

.store-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #061225;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 1000;
}

.play-mark {
  position: relative;
}

.play-mark::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #2e8a61;
  margin-left: 3px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 520px;
}

.hero-metrics div,
.floating-card,
.feature-card,
.coach-result-card,
.lesson-list li,
.parent-panel,
.download-panel,
.faq-list details {
  border: 1px solid var(--line);
  background: rgba(20, 35, 61, 0.82);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  padding: 1rem;
  border-radius: 20px;
}

.hero-metrics strong { display: block; font-size: 1.15rem; }
.hero-metrics span { color: var(--muted); font-weight: 800; }

.hero-visual {
  position: relative;
  min-height: 680px;
}

.mascot-layer {
  position: absolute;
  inset: auto 0 0 0;
  pointer-events: none;
  z-index: 3;
}

.mascot {
  position: absolute;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.34));
}

.mascot-hafiz {
  width: 42%;
  right: 3%;
  bottom: 14px;
}

.mascot-hafiza {
  width: 34%;
  left: -2%;
  bottom: 34px;
}

.phone-showcase {
  position: absolute;
  inset: 0;
}

.phone-frame {
  overflow: hidden;
  margin: 0;
  border: 10px solid #071225;
  border-radius: 42px;
  background: #071225;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

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

.phone-main {
  position: absolute;
  width: min(340px, 58%);
  right: 16%;
  top: 10px;
  z-index: 2;
}

.phone-side {
  position: absolute;
  width: min(270px, 46%);
  left: 6%;
  top: 92px;
  transform: rotate(-7deg);
  opacity: 0.78;
}

.floating-card {
  position: absolute;
  right: 0;
  top: 58%;
  z-index: 4;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  backdrop-filter: blur(12px);
}

.floating-card span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.floating-card strong { font-size: 1.45rem; }

.section {
  padding: 82px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.app-strip {
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 230px;
  padding: 1.3rem;
  border-radius: 28px;
}

.feature-card p,
.screen-card p,
.faq-list p,
.footer-grid p {
  color: var(--muted);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.3rem;
  border-radius: 16px;
  background: rgba(137, 239, 179, 0.12);
  border: 1px solid rgba(137, 239, 179, 0.28);
}

.feature-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  color: var(--mint);
}

.icon-book::before { border-radius: 3px 8px 8px 3px; }
.icon-game::before { border-radius: 8px; border-top-width: 7px; }
.icon-star::before {
  border: 0;
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 80% 91%, 50% 70%, 20% 91%, 31% 56%, 2% 35%, 38% 34%);
  background: var(--gold);
}
.icon-path::before { border-radius: 999px; border-style: dashed; }

.coaching-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 24%, rgba(86, 134, 243, 0.2), transparent 24rem),
    linear-gradient(180deg, rgba(9, 16, 36, 0), rgba(85, 184, 170, 0.16));
}

.coaching-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 3rem;
}

.coach-points {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.coach-points div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.coach-points strong {
  color: var(--mint);
  font-size: 1.05rem;
}

.coach-points span {
  color: var(--muted);
  font-weight: 750;
}

.coach-flow {
  position: relative;
  min-height: 660px;
}

.coach-phone {
  position: absolute;
  width: min(330px, 55%);
}

.coach-phone-main {
  right: 7%;
  top: 0;
  z-index: 2;
}

.coach-phone-back {
  left: 2%;
  top: 96px;
  transform: rotate(-6deg);
  opacity: 0.82;
}

.coach-result-card {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  width: min(330px, 70%);
  padding: 1.25rem;
  border-radius: 28px;
  backdrop-filter: blur(14px);
}

.coach-result-card span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coach-result-card strong {
  display: block;
  margin: 0.2rem 0 0.1rem;
  font-size: 2.25rem;
  line-height: 1;
}

.coach-result-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.showcase-section {
  background:
    linear-gradient(180deg, rgba(76, 138, 99, 0.38), rgba(85, 184, 170, 0.12)),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.6fr);
  align-items: center;
  gap: 3rem;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.screen-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  color: var(--text);
  background: rgba(20, 35, 61, 0.75);
  cursor: pointer;
  font-weight: 900;
}

.screen-tab.is-active {
  color: #071225;
  background: var(--mint);
  border-color: transparent;
}

.showcase-phone {
  width: min(360px, 100%);
  justify-self: center;
}

.screen-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.screen-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.screen-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: top center;
  opacity: 0.74;
}

.screen-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 38, 0.92) 45%);
}

.screen-card span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.screen-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1.55rem;
}

.lesson-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 42%, rgba(137, 239, 179, 0.16), transparent 25rem),
    linear-gradient(180deg, rgba(15, 29, 58, 0.12), rgba(76, 138, 99, 0.28));
  border-block: 1px solid var(--line);
}

.lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  align-items: center;
  gap: 3rem;
}

.lesson-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.lesson-list li {
  min-height: 118px;
  padding: 1rem;
  border-radius: 22px;
}

.lesson-list strong,
.lesson-list span {
  display: block;
}

.lesson-list strong {
  font-size: 1.05rem;
}

.lesson-list span {
  margin-top: 0.25rem;
  color: var(--muted);
}

.lesson-phones {
  position: relative;
  min-height: 610px;
}

.lesson-phone {
  position: absolute;
  width: min(315px, 54%);
}

.lesson-phone:first-child {
  left: 4%;
  top: 0;
  z-index: 2;
}

.lesson-phone:last-child {
  right: 4%;
  top: 86px;
  transform: rotate(5deg);
}

.parent-section {
  background: linear-gradient(180deg, rgba(85, 184, 170, 0.18), rgba(9, 16, 36, 0));
}

.parent-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  align-items: center;
  gap: 2rem;
}

.parent-panel {
  padding: 1.3rem;
  border-radius: 32px;
}

.progress-card {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-card span {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 1000;
}

.progress-card i {
  display: block;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-card b {
  display: block;
  width: 67%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.parent-list {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.parent-list li {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.parent-list strong,
.parent-list span {
  display: block;
}

.parent-list span { color: var(--muted); }

.faq-section {
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  border-radius: 18px;
  padding: 1rem 1.2rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 0.8rem 0 0;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 76px;
  padding: 2rem;
  border-radius: 34px;
}

.download-panel h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.download-panel p:last-child { margin-bottom: 0; }
.download-panel .store-actions { margin: 0; }

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: #071026;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(7, 16, 38, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a { padding: 0.85rem 1rem; }

  .hero-grid,
  .coaching-grid,
  .showcase-grid,
  .lesson-grid,
  .parent-grid,
  .download-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-visual {
    min-height: 620px;
  }

  .phone-main {
    right: 5%;
    width: min(330px, 64%);
  }

  .phone-side {
    left: 0;
    width: min(260px, 50%);
  }

  .feature-grid,
  .lesson-list,
  .screen-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coach-flow,
  .lesson-phones {
    min-height: 590px;
  }

  .coach-phone-main {
    right: 12%;
  }

  .coach-phone-back {
    left: 8%;
  }

  .download-panel .store-actions { margin-top: 0.4rem; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1120px); }

  .brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .brand strong { font-size: 0.95rem; }

  .hero {
    padding: 42px 0 48px;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .store-button {
    width: 100%;
    justify-content: center;
  }

  .hero-metrics,
  .feature-grid,
  .lesson-list,
  .screen-cards {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .phone-main {
    width: 66%;
    right: 0;
    top: 10px;
  }

  .phone-side {
    width: 52%;
    left: -2%;
    top: 82px;
  }

  .mascot-hafiz {
    width: 50%;
    right: -4%;
    bottom: 28px;
  }

  .mascot-hafiza {
    width: 41%;
    left: -6%;
    bottom: 50px;
  }

  .floating-card {
    right: auto;
    left: 0;
    top: auto;
    bottom: 0;
  }

  .section { padding: 56px 0; }

  .feature-card { min-height: 190px; }

  .screen-card,
  .screen-card img {
    min-height: 420px;
  }

  .showcase-phone {
    width: min(310px, 100%);
  }

  .coaching-grid,
  .lesson-grid {
    gap: 2rem;
  }

  .coach-points div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .coach-flow {
    min-height: 540px;
  }

  .coach-phone {
    width: 58%;
  }

  .coach-phone-main {
    right: -2%;
  }

  .coach-phone-back {
    left: -4%;
    top: 82px;
  }

  .coach-result-card {
    left: 4%;
    bottom: 0;
    width: 72%;
  }

  .coach-result-card strong {
    font-size: 1.8rem;
  }

  .lesson-phones {
    min-height: 560px;
  }

  .lesson-phone {
    width: 58%;
  }

  .lesson-phone:first-child {
    left: -2%;
  }

  .lesson-phone:last-child {
    right: -2%;
    top: 92px;
  }
}
