@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

.analytics-embed {
  width: min(1480px, calc(100% - 36px));
  margin: 38px auto 0;
}

.analytics-embed iframe {
  display: block;
  width: 100%;
  height: 610px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 820px) {
  .analytics-embed { width: min(100% - 20px, 1480px); margin-top: 24px; }
  .analytics-embed iframe { height: 1320px; border-radius: 0; }
}

@media (max-width: 480px) {
  .analytics-embed iframe { height: 1500px; }
}

/* Final integrated hero artwork */
.hero-final-art {
  display: none;
}

@media (min-width: 821px) {
  .hero-card {
    min-height: auto !important;
    aspect-ratio: 16 / 9;
    padding: 0 !important;
    display: block !important;
    border-radius: 38px;
    background: #f8f5ff !important;
  }

  .hero-final-art {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-card::after,
  .hero-card > .hero-math-symbol,
  .hero-card > .student-side,
  .hero-card > .right-visuals,
  .hero-copy > :not(.hero-actions) {
    display: none !important;
  }

  .hero-copy {
    position: absolute !important;
    inset: 0 !important;
    z-index: 4 !important;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    transform: none !important;
    pointer-events: none;
  }

  .hero-actions {
    position: absolute !important;
    right: 40.2% !important;
    bottom: 14.6% !important;
    width: 27.7% !important;
    height: 8.5% !important;
    margin: 0 !important;
    display: flex !important;
    gap: 2.8% !important;
    direction: rtl;
    opacity: 0;
    pointer-events: auto;
  }

  .hero-actions > * {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
  }
}

:root {
  --purple-950: #25104f;
  --purple-900: #32136f;
  --purple-800: #47218c;
  --purple-700: #6137c8;
  --purple-600: #7848e8;
  --purple-300: #cdb8ff;
  --purple-150: #eee7ff;
  --purple-100: #f5f0ff;
  --teal: #21b7b9;
  --orange: #ff8a16;
  --gold: #ffbd28;
  --ink: #241b3c;
  --muted: #766e88;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(73, 43, 127, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 10%, rgba(203, 178, 255, .44), transparent 24rem),
    radial-gradient(circle at 92% 20%, rgba(255, 221, 187, .36), transparent 22rem),
    linear-gradient(180deg, #faf8ff 0%, #ffffff 44%, #fbfaff 100%);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.page-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .28;
  z-index: -1;
  pointer-events: none;
}

.page-glow-one {
  width: 360px;
  height: 360px;
  background: #ab78ff;
  top: -160px;
  right: -100px;
}

.page-glow-two {
  width: 300px;
  height: 300px;
  background: #6cdad7;
  bottom: -120px;
  left: -120px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(1440px, calc(100% - 36px));
  min-height: 86px;
  margin: 16px auto 0;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  box-shadow: 0 12px 38px rgba(67, 42, 110, .10);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-orbit {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  position: relative;
  border: 4px solid var(--purple-800);
  border-radius: 50%;
}

.brand-orbit::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 24px;
  border: 4px solid var(--orange);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-21deg);
}

.brand-star {
  font-size: 20px;
  color: var(--purple-700);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 34px;
  font-weight: 900;
  color: var(--purple-900);
}

.brand-copy small {
  margin-top: 7px;
  color: var(--purple-700);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  position: relative;
  padding: 12px 18px;
  border-radius: 15px;
  color: #342a47;
  font-weight: 700;
  transition: .25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--purple-800);
  background: var(--purple-100);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  bottom: 3px;
  right: 50%;
  border-radius: 50%;
  background: var(--purple-700);
}

.login-button {
  border: 0;
  padding: 15px 22px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
  box-shadow: 0 12px 24px rgba(83, 40, 160, .25);
  font-weight: 700;
}

.user-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  font-size: 9px;
  color: white;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--purple-100);
}

.menu-toggle .menu-lines {
  display: block;
}

.menu-toggle i {
  width: 22px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: var(--purple-900);
}

.mobile-login-text {
  display: none;
}

.hero-shell {
  width: min(1480px, calc(100% - 36px));
  margin: 28px auto 0;
}

.hero-card {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1.1fr .9fr;
  gap: 26px;
  padding: 34px 38px 0;
  background:
    radial-gradient(circle at 20% 45%, rgba(203, 176, 255, .54), transparent 29%),
    radial-gradient(circle at 80% 20%, rgba(255, 235, 210, .56), transparent 24%),
    linear-gradient(130deg, #ffffff 12%, #f8f4ff 58%, #f3eeff 100%);
  border: 1px solid rgba(235, 225, 255, .85);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -150px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
}

.math-doodle {
  position: absolute;
  z-index: 0;
  font-weight: 700;
  font-size: 20px;
  color: rgba(92, 58, 164, .36);
  transform: rotate(-4deg);
}

.doodle-one { top: 110px; left: 38px; }
.doodle-two { top: 220px; left: 75px; }
.doodle-three { top: 120px; right: 62px; }
.doodle-four { bottom: 160px; right: 48px; font-size: 34px; }

.student-side,
.hero-copy,
.right-visuals {
  position: relative;
  z-index: 2;
}

.student-side {
  min-height: 610px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.student-frame {
  position: relative;
  z-index: 3;
  width: min(100%, 440px);
  height: 590px;
  overflow: hidden;
  border-radius: 210px 210px 34px 34px;
  background: linear-gradient(180deg, #e8dcff, #f8f6ff);
  box-shadow: 0 24px 50px rgba(76, 45, 126, .20);
}

.student-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
}

.student-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -80px 80px rgba(255, 255, 255, .25);
  pointer-events: none;
}

.orbit {
  position: absolute;
  border: 2px solid rgba(126, 83, 220, .36);
  border-radius: 50%;
}

.orbit-one {
  width: 460px;
  height: 230px;
  top: 180px;
  transform: rotate(-18deg);
}

.orbit-two {
  width: 420px;
  height: 190px;
  top: 225px;
  transform: rotate(18deg);
  border-color: rgba(255, 153, 52, .25);
}

.spark {
  position: absolute;
  z-index: 4;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(255, 190, 50, .6));
}

.spark-one {
  top: 140px;
  left: 38px;
  font-size: 27px;
}

.spark-two {
  top: 300px;
  right: 4px;
  font-size: 20px;
  color: var(--purple-600);
}

.mini-card {
  position: absolute;
  z-index: 5;
  left: 12px;
  bottom: 34px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 19px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 36px rgba(73, 43, 127, .15);
}

.mini-card strong,
.mini-card span {
  display: block;
}

.mini-card strong {
  color: var(--purple-900);
}

.mini-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.mini-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--purple-100);
  font-size: 24px;
}

.hero-copy {
  align-self: center;
  padding: 42px 6px 90px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--purple-700);
  background: rgba(238, 231, 255, .9);
  font-weight: 800;
  font-size: 14px;
}

.hero-copy h1 {
  margin: 12px 0 0;
  font-size: clamp(86px, 8vw, 150px);
  line-height: .95;
  letter-spacing: -8px;
  color: var(--purple-900);
  font-weight: 900;
  text-shadow: 0 13px 30px rgba(77, 38, 150, .11);
}

.hero-copy h2 {
  margin: 14px 0 6px;
  color: var(--purple-900);
  font-size: clamp(26px, 2.2vw, 40px);
}

.slogan {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  color: var(--purple-800);
  font-size: 20px;
  font-weight: 800;
}

.slogan i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.hero-description {
  max-width: 610px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.primary-action,
.orange-action {
  min-width: 190px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 18px;
  color: white;
  font-weight: 800;
  transition: .25s ease;
}

.primary-action {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-900));
  box-shadow: 0 15px 30px rgba(78, 39, 154, .28);
}

.orange-action {
  background: linear-gradient(135deg, #ffac23, var(--orange));
  box-shadow: 0 15px 30px rgba(255, 138, 22, .25);
}

.primary-action:hover,
.orange-action:hover,
.login-button:hover {
  transform: translateY(-3px);
  filter: saturate(1.08);
}

.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.avatars {
  display: flex;
  direction: ltr;
}

.avatars span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--purple-100);
}

.trust-row strong {
  color: #e8a400;
}

.right-visuals {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-bottom: 70px;
}

.future-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 16px 40px rgba(67, 42, 110, .12);
}

.future-note strong {
  display: block;
  color: var(--purple-900);
  font-size: clamp(23px, 2vw, 34px);
  line-height: 1.25;
}

.bulb {
  font-size: 58px;
}

.learning-scene {
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(233,222,255,.85));
  box-shadow: 0 18px 46px rgba(67, 42, 110, .13);
}

.screen-card {
  overflow: hidden;
  border: 5px solid #6d4cad;
  border-radius: 17px;
  background: white;
}

.screen-top {
  height: 20px;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 9px;
  background: #ede7fa;
}

.screen-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a98bdc;
}

.screen-body {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.teacher-avatar {
  font-size: 50px;
}

.equation-board {
  min-height: 80px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 12px;
  color: var(--purple-900);
  background: var(--purple-100);
}

.equation-board span {
  color: var(--purple-700);
}

.students-table {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 16px auto 0;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #e7def8);
}

.student-chip {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 20px rgba(67, 42, 110, .12);
  font-size: 34px;
}

.feature-row {
  position: relative;
  z-index: 6;
  width: calc(100% - 110px);
  margin: -82px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 45px rgba(67, 42, 110, .15);
}

.feature-card {
  min-height: 130px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-left: 1px solid #eee7fa;
}

.feature-card:last-child {
  border-left: 0;
}

.feature-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  font-size: 38px;
}

.gears { background: #eef6ff; }
.idea { background: #fff6d9; }
.cup { background: #fff0dc; }

.feature-card h3 {
  margin: 0 0 6px;
  color: var(--purple-900);
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.stages-section,
.games-section {
  width: min(1280px, calc(100% - 36px));
  margin: 100px auto 0;
}

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

.section-heading > span,
.practice-copy > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--purple-700);
  font-weight: 800;
}

.section-heading h2,
.practice-copy h2 {
  margin: 0;
  color: var(--purple-950);
  font-size: clamp(32px, 4vw, 52px);
}

.section-heading p,
.practice-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.stage-grid,
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stage-card,
.game-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 28px;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(67, 42, 110, .10);
  transition: .28s ease;
}

.stage-card:hover,
.game-card:hover {
  transform: translateY(-8px);
}

.primary-stage {
  background: linear-gradient(150deg, #fffaf0, #fff0db);
}

.middle-stage {
  background: linear-gradient(150deg, #f8f3ff, #eadfff);
}

.high-stage {
  background: linear-gradient(150deg, #effcff, #ddf5f6);
}

.stage-illustration {
  font-size: 72px;
}

.stage-number {
  position: absolute;
  left: 24px;
  top: 22px;
  font-size: 36px;
  font-weight: 900;
  color: rgba(72, 33, 143, .12);
}

.stage-card h3 {
  margin: 20px 0 8px;
  color: var(--purple-900);
  font-size: 28px;
}

.stage-card p {
  min-height: 48px;
  color: var(--muted);
}

.stage-button,
.play-button,
.outline-button {
  border: 1px solid var(--purple-600);
  padding: 12px 18px;
  border-radius: 14px;
  color: var(--purple-800);
  background: rgba(255, 255, 255, .75);
  font-weight: 800;
  transition: .25s ease;
}

.stage-button:hover,
.play-button:hover,
.outline-button:hover {
  color: white;
  background: var(--purple-700);
}

.practice-section {
  width: min(1280px, calc(100% - 36px));
  margin: 100px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 54px;
  padding: 50px;
  border-radius: 38px;
  background: linear-gradient(145deg, #2f176a, #6a3dd0);
  box-shadow: var(--shadow);
}

.practice-copy h2,
.practice-copy p,
.practice-copy > span {
  color: white;
}

.practice-copy p {
  opacity: .82;
}

.practice-copy .outline-button {
  color: white;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.10);
}

.report-card {
  padding: 28px;
  border-radius: 28px;
  background: white;
  box-shadow: 0 24px 50px rgba(20, 6, 55, .28);
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.report-head strong,
.report-head span {
  display: block;
}

.report-head strong {
  color: var(--purple-900);
  font-size: 22px;
}

.report-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.score-badge {
  min-width: 72px;
  min-height: 72px;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  color: white !important;
  background: linear-gradient(135deg, var(--teal), var(--purple-600));
  font-size: 20px !important;
  font-weight: 900;
}

.progress-item {
  margin-top: 20px;
}

.progress-item > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}

.progress-item span {
  color: var(--ink);
  font-weight: 700;
}

.progress-item b {
  color: var(--purple-700);
}

.progress-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeaf6;
}

.progress-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--purple-600));
}

.games-section {
  padding-bottom: 100px;
}

.game-card {
  min-height: 290px;
  text-align: center;
  background: white;
  border: 1px solid #eee7fa;
}

.game-symbol {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--purple-700));
  font-size: 46px;
  font-weight: 900;
}

.game-card h3 {
  color: var(--purple-900);
  font-size: 24px;
}

.game-card p {
  min-height: 48px;
  color: var(--muted);
}

.site-footer {
  min-height: 170px;
  display: grid;
  grid-template-areas: "credit contact brand";
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  gap: 36px;
  direction: ltr;
  margin: 20px clamp(14px, 2vw, 30px) 26px;
  padding: 28px max(3.5vw, 28px);
  border: 1px solid rgba(97,55,200,.09);
  border-radius: 40px;
  color: var(--purple-900);
  background: linear-gradient(135deg,rgba(255,255,255,.99),rgba(255,255,255,.93));
  box-shadow: 0 22px 58px rgba(97,55,200,.16),0 0 48px rgba(120,72,232,.09);
}

.site-footer-brand,
.site-footer-contact,
.site-footer-credit {
  display: flex;
  flex-direction: column;
  direction: rtl;
}

.site-footer-brand {
  grid-area: brand;
  align-items: flex-start;
  justify-self: end;
  text-align: right;
}

.site-footer-brand > strong {
  color: var(--purple-900);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.site-footer-brand > span {
  margin-top: 7px;
  color: var(--purple-800);
  opacity: .84;
}

.site-footer-brand small { margin-top: 7px; color: var(--muted); font-size: .68rem; }
.footer-social { display: flex; align-items: center; flex-direction: row !important; gap: 12px; margin-top: 10px; direction: ltr !important; }
.footer-social > span { min-width: 20px; height: 20px; display: grid; place-items: center; color: var(--purple-900); font-size: .82rem; font-weight: 900; line-height: 1; }

.site-footer-contact { grid-area: contact; align-items: center; text-align: center; }
.site-footer-contact h2 { margin: 0 0 12px; color: var(--purple-950); font-size: 1.55rem; font-weight: 900; }
.footer-contact-lines { display: flex; align-items: center; justify-content: center; flex-direction: row !important; flex-wrap: wrap; gap: 12px 24px; direction: rtl !important; }
.footer-contact-lines a { display: inline-flex; align-items: center; gap: 6px; color: var(--purple-900); font-size: .8rem; white-space: nowrap; }
.footer-contact-lines a > span { color: var(--purple-700); font-size: 1rem; }
.footer-contact-lines b { font-weight: 500; }

.site-footer-credit { grid-area: credit; align-items: center; justify-self: start; text-align: center; }
.footer-credit-icon { margin-bottom: 8px; color: var(--purple-900); font-size: 1.3rem; }
.site-footer-credit p { margin: 0; display: flex; align-items: center; flex-direction: column; color: var(--purple-800); font-size: .95rem; }
.site-footer-credit p b { margin-top: .5cm; color: var(--purple-900); font-size: 1.04rem; }

.help-button {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
  box-shadow: 0 14px 34px rgba(54, 22, 113, .28);
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.show {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 12, 52, .58);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 36px;
  text-align: center;
  border-radius: 28px;
  background: white;
  box-shadow: 0 28px 80px rgba(18, 5, 43, .34);
  animation: modalIn .28s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--purple-900);
  background: var(--purple-100);
  font-size: 25px;
}

.modal-icon {
  font-size: 52px;
}

.modal-card h2 {
  margin: 14px 0 8px;
  color: var(--purple-900);
}

.modal-card p {
  color: var(--muted);
  line-height: 1.8;
}

.modal-action {
  border: 0;
  margin-top: 12px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .main-nav {
    position: absolute;
    top: 95px;
    right: 0;
    left: 0;
    display: none;
    padding: 16px;
    flex-direction: column;
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 18px 42px rgba(67,42,110,.15);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .login-button {
    justify-self: end;
  }

  .hero-card {
    grid-template-columns: 1fr 1.2fr;
  }

  .right-visuals {
    display: none;
  }

  .feature-row {
    width: calc(100% - 60px);
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 8px;
    width: calc(100% - 18px);
    min-height: 72px;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 20px;
  }

  .brand {
    min-width: 0;
  }

  .brand-orbit { display: none; }

  .brand-copy strong {
    font-size: 31px;
  }

  .brand-copy small {
    font-size: 10px;
  }

  .login-button {
    display: none;
  }

  .menu-toggle {
    width: auto;
    min-width: 118px;
    height: 46px;
    padding: 0 17px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #4fb7ad, #27988f);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(39,152,143,.22);
  }

  .menu-toggle .menu-lines { display: none; }
  .mobile-login-text { display: inline; }

  .hero-shell {
    width: calc(100% - 18px);
    margin-top: 15px;
  }

  .hero-card {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 22px 18px 0;
    border-radius: 26px;
  }

  .hero-copy {
    order: 1;
    padding: 28px 4px 20px;
  }

  .student-side {
    order: 2;
    min-height: 460px;
  }

  .student-frame {
    height: 450px;
    max-width: 340px;
  }

  .hero-copy h1 {
    font-size: 86px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .orange-action {
    width: 100%;
  }

  .mini-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }

  .feature-row {
    width: calc(100% - 28px);
    margin-top: -36px;
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-left: 0;
    border-bottom: 1px solid #eee7fa;
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .stage-grid,
  .games-grid,
  .practice-section {
    grid-template-columns: 1fr;
  }

  .stages-section,
  .games-section,
  .practice-section {
    width: calc(100% - 24px);
    margin-top: 70px;
  }

  .practice-section {
    padding: 28px 20px;
  }

  .site-footer {
    grid-template-areas: "brand" "contact" "credit";
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    gap: 24px;
    margin: 12px;
    padding: 28px 18px;
    border-radius: 28px;
    text-align: center;
  }

  .site-footer-brand,
  .site-footer-credit { align-items: center; justify-self: center; text-align: center; }
  .footer-contact-lines { flex-direction: column !important; gap: 9px; }

  .help-button span {
    display: none;
  }

  .help-button {
    width: 54px;
    padding: 0;
    justify-content: center;
  }
}

/* استعادة ألوان واجهة مدار الأصلية الهادئة */
body {
  background:
    radial-gradient(circle at 9% 10%, rgba(203, 178, 255, .44), transparent 24rem),
    radial-gradient(circle at 92% 20%, rgba(255, 221, 187, .30), transparent 22rem),
    linear-gradient(180deg, #faf8ff 0%, #ffffff 44%, #fbfaff 100%);
}

.site-header {
  background: rgba(255, 255, 255, .90);
  border-color: rgba(255, 255, 255, .95);
  box-shadow: 0 12px 38px rgba(67, 42, 110, .10);
}

.hero-card {
  background:
    radial-gradient(circle at 20% 45%, rgba(203, 176, 255, .48), transparent 29%),
    radial-gradient(circle at 80% 20%, rgba(255, 235, 210, .42), transparent 24%),
    linear-gradient(130deg, #ffffff 12%, #f8f4ff 58%, #f3eeff 100%);
  border-color: rgba(235, 225, 255, .85);
  box-shadow: var(--shadow);
}

.hero-card::before {
  background: radial-gradient(circle at 54% 42%, rgba(255,255,255,.28), transparent 35%);
}

.hero-card::after {
  background: rgba(255, 255, 255, .92);
}

.student-side::before {
  background: radial-gradient(ellipse at 50% 56%, rgba(255,255,255,.44), rgba(203,176,255,.13) 54%, transparent 74%);
}

.student-image {
  filter: none;
}

.compact-future-card {
  background: rgba(255, 255, 255, .90);
  border-color: rgba(112, 78, 172, .08);
  box-shadow: 0 14px 34px rgba(67, 42, 110, .10);
}

.feature-row {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(238, 231, 250, .82);
  box-shadow: 0 16px 45px rgba(67, 42, 110, .15);
}

.orange-action {
  color: #ffffff;
  background: linear-gradient(135deg, #ffac23, var(--orange));
  box-shadow: 0 15px 30px rgba(255, 138, 22, .25);
}

.page-glow-one {
  background: #ab78ff;
  opacity: .28;
}

.page-glow-two {
  background: #6cdad7;
  opacity: .25;
}

@media (max-width: 1180px) {
  .hero-card {
    background:
      radial-gradient(circle at 50% 44%, rgba(203,176,255,.30), transparent 34%),
      linear-gradient(155deg, #ffffff 0%, #f8f4ff 58%, #f3eeff 100%);
  }
}

@media (max-width: 820px) {
  .hero-card {
    background:
      radial-gradient(circle at 50% 48%, rgba(203,176,255,.28), transparent 36%),
      linear-gradient(160deg, #ffffff 0%, #f8f4ff 60%, #f3eeff 100%);
  }
}

/* Exact stage section based on the approved reference */
.exact-stages-section {
  width: min(1560px, calc(100% - 20px));
  margin: 64px auto 0;
}

.exact-stage-canvas {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 0;
  background: #fff;
  box-shadow:
    0 26px 80px rgba(83, 52, 135, 0.13),
    0 0 55px rgba(196, 167, 255, 0.18);
  isolation: isolate;
}

.exact-stage-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.stage-hotspot {
  position: absolute;
  z-index: 3;
  top: 31.5%;
  height: 61.5%;
  border: 0;
  border-radius: 28px;
  background: transparent;
  cursor: pointer;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    background-color 240ms ease;
}

.stage-hotspot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.stage-hotspot::after {
  content: "استكشفي المرحلة";
  position: absolute;
  left: 50%;
  bottom: 4.5%;
  transform: translateX(-50%);
  min-width: 142px;
  padding: 9px 16px;
  border-radius: 14px;
  color: transparent;
  background: transparent;
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  white-space: nowrap;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.stage-hotspot:hover,
.stage-hotspot:focus-visible {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}

.stage-hotspot:hover::before,
.stage-hotspot:focus-visible::before {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 4px rgba(166, 127, 236, 0.12),
    0 18px 50px rgba(93, 56, 157, 0.22),
    inset 0 0 34px rgba(255, 255, 255, 0.22);
}

.stage-hotspot:hover::after,
.stage-hotspot:focus-visible::after {
  color: #45217f;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(74, 43, 126, 0.18);
  transform: translateX(-50%) translateY(-3px);
}

.hotspot-secondary {
  left: 4.3%;
  width: 30.3%;
}

.hotspot-middle {
  left: 36.7%;
  width: 27%;
}

.hotspot-primary {
  left: 66%;
  width: 30.1%;
}

.light-spark {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  box-shadow:
    0 0 8px #fff,
    0 0 16px rgba(176, 127, 255, 0.9),
    0 0 28px rgba(112, 198, 255, 0.75);
  animation: exactSpark 3.8s ease-in-out infinite;
}

.spark-a {
  left: 13%;
  top: 40%;
}

.spark-b {
  left: 49%;
  top: 27%;
  animation-delay: 1.2s;
}

.spark-c {
  right: 12%;
  top: 42%;
  animation-delay: 2.1s;
}

@keyframes exactSpark {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.45);
  }
}

@media (max-width: 900px) {
  .exact-stages-section {
    width: calc(100% - 20px);
    overflow: visible;
  }

  .exact-stage-canvas {
    display: none;
  }
}

.mobile-stage-list {
  display: none;
}

@media (max-width: 900px) {
  .mobile-stage-list {
    display: grid;
    gap: 16px;
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .mobile-stage-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.28 / 1;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(67, 42, 110, .14);
    isolation: isolate;
  }

  .mobile-stage-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 325%;
    max-width: none;
    height: auto;
    pointer-events: none;
  }

  .mobile-stage-primary img {
    transform: translate(-66%, -23%);
  }

  .mobile-stage-middle img {
    transform: translate(-36.5%, -23%);
  }

  .mobile-stage-secondary img {
    transform: translate(-4.4%, -23%);
  }

  .mobile-stage-card:active {
    transform: scale(.985);
  }
}


/* طلب عبير: تعديل الواجهة العليا فقط — قسم المراحل محفوظ كما هو */
.hero-card {
  direction: ltr;
  grid-template-columns: .92fr 1.18fr .82fr;
}

.student-side,
.hero-copy,
.right-visuals {
  direction: rtl;
}

.student-side {
  align-items: end;
  justify-content: center;
}

.student-frame {
  width: min(100%, 420px);
  height: 600px;
}

.hero-copy {
  padding-top: 25px;
}

.right-visuals {
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0 80px;
}

.future-note-uploaded {
  width: min(100%, 330px);
}

.future-note-uploaded img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 18px 46px rgba(67, 42, 110, .12);
}

.login-button,
.primary-action {
  background: linear-gradient(135deg, #4fb7ad, #27988f);
  box-shadow: 0 14px 30px rgba(39, 152, 143, .28);
}

.login-button:hover,
.primary-action:hover {
  background: linear-gradient(135deg, #5cc6bc, #258f87);
}

@media (max-width: 1180px) {
  .hero-card {
    direction: rtl;
    grid-template-columns: 1fr;
  }

  .student-side { order: 1; }
  .hero-copy { order: 2; }
  .right-visuals {
    order: 3;
    min-height: auto;
    padding: 0 0 42px;
  }
}


/* تعديلات موضع الشعار والدخول والعبارة — بدون تغيير قسم المراحل */
.site-header {
  direction: ltr;
  grid-template-areas: "brand nav login";
  grid-template-columns: auto 1fr auto;
}

.brand {
  grid-area: brand;
  justify-self: start;
  direction: rtl;
}

.main-nav {
  grid-area: nav;
  direction: rtl;
}

.login-button {
  grid-area: login;
  justify-self: end;
  direction: rtl;
}

.menu-toggle {
  grid-area: toggle;
}

/* تحريك عنوان مدار ومنصة الرياضيات قليلًا إلى اليمين */
.hero-copy {
  transform: translateX(30px);
}

/* بطاقة العبارة أصغر وبخط أصغر */
.future-note-uploaded {
  width: min(100%, 285px);
}

.compact-future-card {
  direction: ltr;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(112, 78, 172, .08);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 34px rgba(67, 42, 110, .10);
}

.compact-bulb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 38px;
  filter: drop-shadow(0 8px 13px rgba(255, 198, 61, .24));
}

.compact-future-copy {
  direction: rtl;
  text-align: right;
}

.compact-future-copy strong {
  display: block;
  color: var(--purple-900);
  font-size: 22px;
  line-height: 1.23;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .site-header {
    direction: ltr;
    grid-template-areas: "brand toggle login";
    grid-template-columns: auto auto 1fr;
  }

  .brand {
    justify-self: start;
  }

  .menu-toggle {
    justify-self: start;
  }

  .login-button {
    justify-self: end;
  }

  .hero-copy {
    transform: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-areas: "brand toggle";
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    justify-self: end;
  }

  .future-note-uploaded {
    width: min(100%, 270px);
  }

  /* ترتيب نسخة الجوال: العنوان والأزرار، ثم الطالبة، ثم العبارة */
  .hero-copy {
    order: 1;
  }

  .student-side {
    order: 2;
  }

  .right-visuals {
    order: 3;
  }
}

/* ساعة مدار: أسفل قسم المراحل */
.clock-showcase {
  width: min(1000px, calc(100% - 36px));
  margin: 86px auto 0;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 32px;
  padding: 30px 36px;
  overflow: hidden;
  border: 1px solid rgba(111, 79, 171, .12);
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 20%, rgba(51, 218, 230, .17), transparent 35%),
    linear-gradient(135deg, #ffffff, #f4efff);
  box-shadow: var(--shadow);
}

.clock-intro span {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  color: #168f94;
  background: rgba(33, 183, 185, .12);
  font-size: 14px;
  font-weight: 800;
}

.clock-intro h2 {
  margin: 18px 0 12px;
  color: var(--purple-950);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.25;
}

.clock-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.clock-window {
  overflow: hidden;
  border: 0;
  border-radius: 32px;
  background: transparent;
  box-shadow: none;
}

.clock-window iframe {
  display: block;
  width: 100%;
  height: 405px;
  background: transparent;
  border: 0;
}

@media (max-width: 820px) {
  .clock-showcase {
    width: calc(100% - 20px);
    margin-top: 56px;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px 16px;
    text-align: center;
    border-radius: 28px;
  }

  .clock-window {
    border-radius: 25px;
  }

  .clock-window iframe {
    height: 385px;
  }
}

/* الهوية البصرية الجديدة لواجهة مدار */
body {
  background:
    radial-gradient(circle at 8% 8%, rgba(164, 219, 209, .30), transparent 25rem),
    radial-gradient(circle at 92% 12%, rgba(236, 217, 183, .42), transparent 25rem),
    linear-gradient(180deg, #fbf8f1 0%, #ffffff 48%, #f8f4ed 100%);
}

.site-header {
  background: rgba(255, 253, 248, .88);
  border-color: rgba(236, 217, 183, .72);
  box-shadow: 0 12px 38px rgba(78, 65, 52, .09);
}

.hero-card {
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 48%, rgba(148, 214, 202, .28), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, .92), transparent 28%),
    linear-gradient(120deg, #f5ead7 0%, #fbf7ef 38%, #efe8f7 72%, #e3f4ef 100%);
  border-color: rgba(232, 209, 171, .72);
  box-shadow: 0 26px 75px rgba(79, 62, 47, .14);
}

.hero-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 22%, rgba(255,255,255,.28) 48%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.26), transparent 44%);
}

.hero-card::after {
  background: rgba(255, 253, 248, .88);
}

.student-side {
  overflow: visible;
}

.student-side::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 94%;
  height: 76%;
  bottom: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.72), rgba(125,199,188,.18) 48%, transparent 72%);
  filter: blur(18px);
}

.student-frame {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.student-frame::after {
  display: none;
}

.student-image {
  object-fit: contain;
  object-position: center top;
  transform: scale(1.03);
  filter: drop-shadow(0 24px 26px rgba(61, 48, 66, .13));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 92%, transparent 100%);
}

.hero-copy {
  padding-top: 18px;
}

.vision-2030 {
  width: 170px;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(47, 145, 136, .12));
}

.vision-2030 img {
  display: block;
  width: 100%;
  height: auto;
}

.madar-title-wrap {
  position: relative;
  width: min(100%, 390px);
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.madar-title-wrap::before,
.madar-title-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
}

.madar-title-wrap::before {
  width: 94%;
  height: 58%;
  border: 2px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  box-shadow:
    0 0 9px rgba(255,255,255,.95),
    0 0 24px rgba(255,255,255,.62),
    0 0 42px rgba(112,200,187,.30);
  transform: translate(-50%, -50%) rotate(-7deg);
}

.madar-title-wrap::after {
  width: 96%;
  height: 61%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 38deg,
    rgba(255,255,255,.98) 62deg,
    transparent 92deg 205deg,
    rgba(255,255,255,.88) 232deg,
    rgba(229,189,102,.94) 246deg,
    transparent 275deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 5px rgba(255,255,255,.95)) drop-shadow(0 0 13px rgba(255,255,255,.62));
  animation: madarOrbit 10s linear infinite;
}

.madar-title-wrap .hero-copy h1,
.madar-title-wrap h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #3b2375;
  text-shadow: 0 12px 28px rgba(59,35,117,.14), 0 0 18px rgba(255,255,255,.9);
}

@keyframes madarOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-copy h2 {
  margin-top: 2px;
  color: #3f2a6f;
}

.orange-action {
  color: #4a3820;
  background: linear-gradient(135deg, #ffe6a3, #dcae50);
  box-shadow: 0 15px 30px rgba(201, 149, 47, .22);
}

.compact-future-card {
  border-color: rgba(210, 177, 117, .32);
  background: rgba(255, 252, 244, .82);
  box-shadow: 0 16px 38px rgba(83, 66, 48, .10);
}

.hero-math-symbol {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: rgba(255,255,255,.78);
  font-family: Georgia, serif;
  font-weight: 700;
  text-shadow:
    0 0 7px rgba(255,255,255,.95),
    0 0 18px rgba(255,255,255,.72),
    0 0 32px rgba(91,183,170,.36);
  animation: mathFloat 6s ease-in-out infinite;
}

.integral-symbol {
  top: 12%;
  right: 5%;
  font-size: 86px;
  transform: rotate(11deg);
}

.sigma-symbol {
  bottom: 25%;
  right: 8%;
  font-size: 62px;
  animation-delay: -2s;
}

.equation-symbol {
  top: 15%;
  left: 5%;
  font-size: 42px;
  animation-delay: -4s;
}

@keyframes mathFloat {
  0%, 100% { opacity: .38; translate: 0 0; }
  50% { opacity: .78; translate: 0 -10px; }
}

.feature-row {
  border: 1px solid rgba(232, 214, 183, .62);
  background: rgba(255, 253, 248, .96);
}

.gears { background: #e9f6f2; }
.idea { background: #f8efd9; }
.cup { background: #f3e8da; }

@media (max-width: 820px) {
  .vision-2030 {
    width: 145px;
    margin-bottom: 7px;
  }

  .madar-title-wrap {
    width: min(100%, 310px);
    min-height: 125px;
  }

  .hero-copy h1 {
    font-size: 76px;
    letter-spacing: -6px;
  }

  .madar-title-wrap::before {
    width: 92%;
    height: 56%;
  }

  .student-frame {
    width: min(100%, 360px);
    height: 470px;
  }

  .student-image {
    transform: scale(1.02);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 93%, transparent 100%);
  }

  .integral-symbol {
    top: 8%;
    right: 3%;
    font-size: 58px;
  }

  .sigma-symbol {
    bottom: 28%;
    right: 5%;
    font-size: 42px;
  }

  .equation-symbol {
    top: 12%;
    left: 4%;
    font-size: 30px;
  }
}

/* مربع الساعة ومربع الكلمة الملهمة */
.inspiration-grid {
  width: min(980px, calc(100% - 36px));
  margin: 72px auto 90px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  direction: rtl;
}

.quote-square,
.clock-square {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 22px 55px rgba(54, 67, 61, .15);
}

.quote-square {
  display: flex;
  align-items: center;
  padding: 34px 30px;
  border: 1px solid rgba(226, 185, 95, .62);
  background:
    radial-gradient(circle at 75% 18%, rgba(92, 190, 175, .20), transparent 36%),
    linear-gradient(135deg, #143b39, #245c56 60%, #326d64);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.quote-square:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 65px rgba(20, 59, 57, 0.35), 0 0 20px rgba(226, 185, 95, 0.25);
}

.quote-square::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(232, 195, 112, .24);
  border-radius: 25px;
  pointer-events: none;
  transition: border-color 0.35s ease;
}

.quote-square:hover::after {
  border-color: rgba(232, 195, 112, 0.55);
}

.prince-portrait {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  width: 54%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .94;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 50%, transparent 100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.quote-square:hover .prince-portrait {
  transform: scale(1.03);
  opacity: 1;
}

.quote-copy {
  position: relative;
  z-index: 2;
  width: 62%;
  margin-left: auto;
  text-align: right;
}

.quote-mark {
  display: block;
  height: 38px;
  color: #e7bd67;
  font-family: Georgia, serif;
  font-size: 62px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(231, 189, 103, .42);
  transition: transform 0.3s ease;
}

.quote-square:hover .quote-mark {
  transform: scale(1.1) rotate(-4deg);
}

.quote-copy blockquote {
  margin: 8px 0 20px;
  color: #ffffff;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.9;
}

.quote-copy cite {
  display: block;
  color: #f0d38e;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.clock-square {
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 183, 173, .38);
  background:
    radial-gradient(circle at 50% 44%, rgba(107, 211, 196, .22), transparent 44%),
    linear-gradient(145deg, #fffdf8, #f2eadc 55%, #e8f5f1);
}

.clock-square::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(226, 185, 95, .28);
  border-radius: 25px;
  pointer-events: none;
}

.clock-square iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

@media (max-width: 820px) {
  .inspiration-grid {
    width: calc(100% - 20px);
    margin: 56px auto 70px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quote-square,
  .clock-square {
    width: min(100%, 430px);
    margin: 0 auto;
    border-radius: 27px;
  }

  .quote-square {
    padding: 26px 22px;
  }

  .quote-copy blockquote {
    font-size: 16px;
    line-height: 1.8;
  }

  .quote-copy cite {
    font-size: 11px;
  }
}

/* دمج الطالبة داخل خلفية الواجهة — بدون إطار أو مساحة منفصلة */
.hero-card {
  grid-template-columns: 1.02fr 1.13fr .78fr;
  background:
    radial-gradient(ellipse at 15% 58%, rgba(255,255,255,.60), transparent 34%),
    radial-gradient(circle at 67% 18%, rgba(255,255,255,.48), transparent 25%),
    radial-gradient(circle at 90% 42%, rgba(139, 210, 197, .16), transparent 28%),
    linear-gradient(112deg, #eee5f8 0%, #e8ddf7 29%, #f6f0e7 59%, #e5f3ef 100%);
}

.hero-card::before {
  background:
    linear-gradient(102deg, transparent 10%, rgba(255,255,255,.20) 39%, transparent 60%),
    radial-gradient(circle at 37% 34%, rgba(207,190,239,.25), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(255,247,232,.46), transparent 26%);
}

.student-side {
  min-height: 626px;
  align-items: end;
  justify-content: center;
  margin-left: 0;
  margin-bottom: 0;
}

.student-side::before {
  width: 112%;
  height: 88%;
  left: -7%;
  bottom: -5%;
  border-radius: 48% 52% 42% 58%;
  background:
    radial-gradient(ellipse at 50% 56%, rgba(255,255,255,.54), rgba(210,195,236,.16) 54%, transparent 74%);
  filter: blur(20px);
}

.student-frame {
  width: min(100%, 480px);
  height: 625px;
  margin: 0;
  overflow: visible;
  border-radius: 48% 48% 24% 24%;
}

.student-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
  filter: saturate(.90) contrast(.97) brightness(1.025);
  -webkit-mask-image: radial-gradient(ellipse 91% 98% at 50% 49%, #000 0%, #000 76%, rgba(0,0,0,.94) 83%, rgba(0,0,0,.58) 91%, transparent 100%);
  mask-image: radial-gradient(ellipse 91% 98% at 50% 49%, #000 0%, #000 76%, rgba(0,0,0,.94) 83%, rgba(0,0,0,.58) 91%, transparent 100%);
}

.student-side::after {
  content: "";
  position: absolute;
  z-index: 5;
  right: -8%;
  bottom: -2px;
  left: -8%;
  height: 54px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(250,247,240,.62) 62%, #fbf8f1 100%);
}

.hero-copy {
  z-index: 4;
}

.right-visuals {
  z-index: 4;
}

.compact-future-card {
  background: rgba(255, 253, 248, .78);
  border-color: rgba(214, 193, 225, .50);
  box-shadow: 0 18px 42px rgba(78, 56, 104, .10);
  backdrop-filter: blur(12px);
}

.feature-row {
  background: rgba(255, 253, 250, .94);
  border-color: rgba(218, 202, 232, .50);
  backdrop-filter: blur(16px);
}

.page-glow-one {
  background: #bca1e5;
  opacity: .24;
}

.page-glow-two {
  background: #84d0c4;
  opacity: .20;
}

@media (max-width: 1180px) {
  .hero-card {
    grid-template-columns: 1fr;
    background:
      radial-gradient(circle at 50% 42%, rgba(255,255,255,.50), transparent 32%),
      linear-gradient(160deg, #eee5f8 0%, #f7f0e6 56%, #e5f3ef 100%);
  }

  .student-side {
    margin-left: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 820px) {
  .hero-card {
    padding-inline: 14px;
    background:
      radial-gradient(circle at 50% 48%, rgba(255,255,255,.46), transparent 34%),
      linear-gradient(165deg, #eee5f8 0%, #f7f0e6 58%, #e7f4f0 100%);
  }

  .student-side {
    min-height: 485px;
    overflow: visible;
  }

  .student-frame {
    width: min(100%, 380px);
    height: 490px;
    margin: 0 auto;
  }

  .student-image {
    object-position: center bottom;
    transform: none;
    filter: saturate(.90) contrast(.97) brightness(1.025);
    -webkit-mask-image: radial-gradient(ellipse 93% 98% at 50% 49%, #000 0%, #000 76%, rgba(0,0,0,.94) 84%, rgba(0,0,0,.58) 92%, transparent 100%);
    mask-image: radial-gradient(ellipse 93% 98% at 50% 49%, #000 0%, #000 76%, rgba(0,0,0,.94) 84%, rgba(0,0,0,.58) 92%, transparent 100%);
  }

  .student-side::after {
    right: -4%;
    left: -4%;
    height: 42px;
  }
}

/* التثبيت النهائي: نفس ألوان النسخة الأصلية */
body {
  background:
    radial-gradient(circle at 9% 10%, rgba(203, 178, 255, .44), transparent 24rem),
    radial-gradient(circle at 92% 20%, rgba(255, 221, 187, .30), transparent 22rem),
    linear-gradient(180deg, #faf8ff 0%, #ffffff 44%, #fbfaff 100%);
}

.site-header {
  background: rgba(255, 255, 255, .90);
  border-color: rgba(255, 255, 255, .95);
  box-shadow: 0 12px 38px rgba(67, 42, 110, .10);
}

.hero-card {
  background:
    radial-gradient(circle at 20% 45%, rgba(203, 176, 255, .48), transparent 29%),
    radial-gradient(circle at 80% 20%, rgba(255, 235, 210, .42), transparent 24%),
    linear-gradient(130deg, #ffffff 12%, #f8f4ff 58%, #f3eeff 100%);
  border-color: rgba(235, 225, 255, .85);
  box-shadow: var(--shadow);
}

.hero-card::before {
  background: radial-gradient(circle at 54% 42%, rgba(255,255,255,.28), transparent 35%);
}

.hero-card::after {
  background: rgba(255, 255, 255, .92);
}

.student-side::before {
  background: radial-gradient(ellipse at 50% 56%, rgba(255,255,255,.44), rgba(203,176,255,.13) 54%, transparent 74%);
}

.student-image {
  filter: none;
}

.compact-future-card {
  background: rgba(255, 255, 255, .90);
  border-color: rgba(112, 78, 172, .08);
  box-shadow: 0 14px 34px rgba(67, 42, 110, .10);
}

.feature-row {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(238, 231, 250, .82);
  box-shadow: 0 16px 45px rgba(67, 42, 110, .15);
}

.orange-action {
  color: #ffffff;
  background: linear-gradient(135deg, #ffac23, var(--orange));
  box-shadow: 0 15px 30px rgba(255, 138, 22, .25);
}

.page-glow-one {
  background: #ab78ff;
  opacity: .28;
}

.page-glow-two {
  background: #6cdad7;
  opacity: .25;
}

@media (max-width: 1180px) {
  .hero-card {
    background:
      radial-gradient(circle at 50% 44%, rgba(203,176,255,.30), transparent 34%),
      linear-gradient(155deg, #ffffff 0%, #f8f4ff 58%, #f3eeff 100%);
  }
}

@media (max-width: 820px) {
  .hero-card {
    background:
      radial-gradient(circle at 50% 48%, rgba(203,176,255,.28), transparent 36%),
      linear-gradient(160deg, #ffffff 0%, #f8f4ff 60%, #f3eeff 100%);
  }

  .student-image {
    filter: none;
  }
}

/* الجوال: محتوى متوسّط ثم صورة الطالبة أسفله */
@media (max-width: 820px) {
  .menu-toggle {
    min-width: 168px;
    padding-inline: 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero-shell {
    margin-top: 15px;
  }

  .hero-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 0 !important;
    padding: 26px 16px 0 !important;
    overflow: hidden;
  }

  .hero-final-art {
    display: none !important;
  }

  .hero-card::after,
  .hero-card > .hero-math-symbol,
  .right-visuals {
    display: none !important;
  }

  .hero-copy {
    position: relative !important;
    inset: auto !important;
    order: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 18px 0 12px !important;
    transform: none !important;
    direction: rtl;
    text-align: center;
  }

  .vision-2030 {
    width: clamp(145px, 29vw, 180px);
    margin: 0 auto 12px;
  }

  .madar-title-wrap {
    width: 100%;
    min-height: auto;
    margin: 0 auto;
  }

  .madar-title-wrap::before,
  .madar-title-wrap::after {
    display: none !important;
  }

  .hero-copy h1 {
    margin: 6px 0 10px;
    font-size: clamp(72px, 20vw, 98px);
    line-height: 1;
    letter-spacing: -5px;
  }

  .hero-copy h2 {
    width: 100%;
    margin: 8px 0 5px;
    font-size: clamp(24px, 6.5vw, 34px);
    line-height: 1.35;
  }

  .slogan {
    width: 100%;
    margin: 12px 0;
    gap: 8px;
    font-size: clamp(17px, 4.8vw, 22px);
  }

  .hero-description {
    width: min(100%, 560px);
    margin-inline: auto;
    padding-inline: 2px;
    font-size: clamp(15px, 4.1vw, 18px);
    line-height: 1.9;
    text-align: center;
  }

  .hero-actions {
    position: static !important;
    display: flex !important;
    flex-direction: row;
    width: min(100%, 520px) !important;
    height: auto !important;
    margin: 22px auto 0 !important;
    gap: 10px !important;
    opacity: 1 !important;
    pointer-events: auto;
  }

  .hero-actions > * {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0 !important;
    min-height: 56px;
    padding-inline: 9px;
    font-size: clamp(13px, 3.6vw, 16px);
  }

  .trust-row {
    width: 100%;
    margin-top: 18px;
    justify-content: center;
    text-align: center;
  }

  .student-side {
    order: 2;
    display: flex !important;
    width: 100%;
    min-height: 0 !important;
    margin: 22px 0 0;
    overflow: hidden;
    align-items: flex-start;
    justify-content: center;
  }

  .student-side::before,
  .student-side::after {
    display: none !important;
  }

  .student-frame {
    width: min(100%, 520px);
    max-width: none;
    height: auto !important;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    background: transparent;
    box-shadow: none;
  }

  .student-frame::after {
    display: none !important;
  }

  .student-image {
    display: block;
    width: 100%;
    height: auto !important;
    object-fit: contain;
    object-position: center top;
    transform: none !important;
    filter: none;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}

@media (max-width: 360px) {
  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    min-width: 158px;
    font-size: 12px;
  }
}
