@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Noto+Naskh+Arabic:wght@500;700&family=Nunito:wght@500;700;900&display=swap");

:root {
  --ink: #17324d;
  --muted: #5f7182;
  --teal: #0f766e;
  --mint: #bdf7de;
  --sun: #ffd166;
  --coral: #ff8f70;
  --sky: #dff7ff;
  --paper: #fffdf2;
  --line: rgba(23, 50, 77, 0.12);
  --shadow: 0 22px 52px rgba(34, 74, 99, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 209, 102, 0.35), transparent 26%),
    radial-gradient(circle at 90% 8%, rgba(189, 247, 222, 0.7), transparent 28%),
    linear-gradient(180deg, #eafaff 0%, #fff8dc 48%, #f1fff6 100%);
  overflow-x: hidden;
}

body.is-rtl {
  direction: rtl;
  font-family: "Noto Naskh Arabic", "Nunito", sans-serif;
}

a {
  color: inherit;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: 150px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(0.2px);
  animation: drift 18s linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 72px;
  height: 72px;
  left: 24px;
  top: -32px;
}

.cloud::after {
  width: 58px;
  height: 58px;
  right: 26px;
  top: -22px;
}

.cloud-one {
  top: 18%;
  left: -180px;
}

.cloud-two {
  top: 58%;
  left: -240px;
  animation-duration: 25s;
  animation-delay: 5s;
}

.star {
  position: absolute;
  color: #f59e0b;
  font-size: 2rem;
  animation: twinkle 2.4s ease-in-out infinite;
}

.star-one {
  top: 14%;
  right: 12%;
}

.star-two {
  top: 34%;
  left: 9%;
  animation-delay: 0.7s;
}

.star-three {
  bottom: 18%;
  right: 18%;
  animation-delay: 1.1s;
}

@keyframes drift {
  to {
    transform: translateX(calc(100vw + 300px));
  }
}

@keyframes twinkle {
  50% {
    opacity: 0.35;
    transform: scale(0.78) rotate(12deg);
  }
}

.hero,
main,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 20px clamp(18px, 4vw, 54px) 54px;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  color: white;
  box-shadow: 0 10px 0 rgba(15, 118, 110, 0.18);
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--line);
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.language-card,
.intro-panel,
.lesson-section,
.dua-card,
.practice-panel,
.parent-note {
  border: 3px solid rgba(23, 50, 77, 0.08);
  box-shadow: 0 16px 0 rgba(23, 50, 77, 0.07), var(--shadow);
}

.hero-copy {
  padding: clamp(26px, 5vw, 54px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 209, 102, 0.42), transparent 24%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.98), rgba(37, 154, 126, 0.95));
  color: white;
}

.eyebrow,
.mini-label {
  margin: 0 0 10px;
  color: #a06400;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-copy .eyebrow {
  color: #ffef9c;
}

h1,
h2,
h3 {
  font-family: "Baloo 2", "Nunito", sans-serif;
  line-height: 1.04;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  max-width: 850px;
}

.hero-text {
  max-width: 720px;
  color: #edfff8;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
  font-weight: 700;
}

.hero-actions,
.tracker-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action,
.tracker-actions button {
  border: 0;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-action,
.tracker-actions button:first-child {
  background: linear-gradient(135deg, #ffd166, #ffb703);
  color: #17324d;
  box-shadow: 0 8px 0 rgba(113, 69, 0, 0.2);
}

.secondary-action,
.tracker-actions button {
  background: #ffffff;
  color: var(--teal);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.language-card {
  border-radius: 34px;
  background: rgba(255, 253, 242, 0.9);
  padding: 26px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.language-card select {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  font-weight: 900;
  font-size: 1rem;
}

.language-card p,
.intro-panel p,
.section-heading p,
.dua-card p,
.practice-panel p,
.parent-note p {
  line-height: 1.75;
  font-weight: 700;
  color: var(--muted);
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 50px;
  display: grid;
  gap: 28px;
}

.intro-panel,
.dua-card,
.practice-panel,
.parent-note {
  border-radius: 34px;
  background: rgba(255, 253, 242, 0.9);
  padding: clamp(22px, 4vw, 34px);
}

.intro-panel,
.dua-card,
.practice-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.lesson-section {
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.72);
  padding: clamp(22px, 4vw, 34px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.section-heading h2,
.intro-panel h2,
.dua-card h2,
.practice-panel h2,
.parent-note h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: var(--teal);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  min-height: 420px;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 209, 102, 0.34), transparent 24%),
    linear-gradient(180deg, #ffffff, #fff8e3);
  border: 2px solid var(--line);
  box-shadow: 0 12px 28px rgba(23, 50, 77, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.demo-scene {
  position: relative;
  min-height: 190px;
  margin-bottom: 16px;
  border-radius: 28px;
  overflow: hidden;
  background: #dff7ff;
  border: 2px solid rgba(23, 50, 77, 0.08);
}

.demo-illustration {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
}

.svg-sky {
  fill: #d8f5ff;
}

.svg-ground {
  fill: #a8e3bd;
}

.svg-sun {
  fill: #ffd166;
  filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.65));
}

.svg-prayer-mat rect {
  fill: #fff4c6;
  stroke: rgba(132, 89, 12, 0.2);
  stroke-width: 3;
}

.svg-prayer-mat path {
  stroke: rgba(132, 89, 12, 0.32);
  stroke-width: 4;
  stroke-linecap: round;
}

.svg-water ellipse {
  fill: #2aa4e8;
}

.svg-water path {
  fill: none;
  stroke: #c9f2ff;
  stroke-width: 5;
  stroke-linecap: round;
}

.svg-water circle {
  fill: #e7fbff;
}

.svg-body {
  fill: #19a974;
  stroke: rgba(23, 50, 77, 0.18);
  stroke-width: 3;
}

.svg-head,
.svg-neck,
.svg-arm,
.svg-hand {
  fill: none;
  stroke: #efb985;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-head,
.svg-neck {
  fill: #efb985;
}

.svg-head {
  stroke-width: 3;
  stroke: rgba(99, 55, 32, 0.18);
}

.svg-hair {
  fill: #17324d;
}

.svg-eye {
  fill: #17324d;
}

.svg-smile {
  fill: none;
  stroke: #944b42;
  stroke-width: 3;
  stroke-linecap: round;
}

.svg-arm {
  stroke: #efb985;
}

.wet-arm {
  stroke: #77d9ff;
}

.svg-hand {
  stroke-width: 8;
}

.svg-leg {
  fill: none;
  stroke: #31558a;
  stroke-width: 15;
  stroke-linecap: round;
}

.svg-shoe {
  fill: none;
  stroke: #17324d;
  stroke-width: 10;
  stroke-linecap: round;
}

.svg-prop rect {
  fill: rgba(255, 255, 255, 0.82);
  filter: drop-shadow(0 8px 10px rgba(23, 50, 77, 0.12));
}

.svg-prop text {
  dominant-baseline: middle;
  font-size: 28px;
}

.step-card:hover {
  transform: translateY(-8px) rotate(-0.3deg);
  box-shadow: 0 20px 34px rgba(23, 50, 77, 0.16);
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--sky);
  font-size: 2rem;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.step-card p {
  color: var(--muted);
  line-height: 1.65;
  font-weight: 700;
}

.step-detail,
.step-tip {
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  line-height: 1.6;
  font-weight: 750;
}

.step-detail {
  background: rgba(116, 212, 255, 0.18);
  color: #29465c;
}

.step-detail strong,
.step-tip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 900;
}

.step-tip {
  background: rgba(255, 209, 102, 0.24);
  color: #654407;
}

.arabic-line {
  direction: rtl;
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #8a5a00;
  margin: 10px 0 0;
}

.practice-panel {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 143, 112, 0.22), transparent 28%),
    linear-gradient(135deg, #ffffff, #e9fff4);
}

.tracker {
  display: grid;
  gap: 14px;
}

.meter {
  height: 28px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(23, 50, 77, 0.1);
  overflow: hidden;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #22c55e, #ffd166);
  transition: width 220ms ease;
}

#trackerText {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.25rem;
}

footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero-grid,
  .intro-panel,
  .dua-card,
  .practice-panel,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-links,
  .hero-actions,
  .tracker-actions {
    display: grid;
    width: 100%;
  }

  .primary-action,
  .secondary-action,
  .tracker-actions button {
    width: 100%;
    text-align: center;
  }

  .step-card {
    min-height: auto;
  }
}
