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

:root {
  color-scheme: light;
  --green: #07583f;
  --green-dark: #043c2f;
  --green-deep: #062f27;
  --green-bright: #1e9363;
  --mint: #dff3e8;
  --gold: #f2bd27;
  --gold-soft: #fff1c2;
  --ink: #15372e;
  --muted: #657a71;
  --paper: #fbfaf5;
  --white: #fff;
  --line: rgba(6, 63, 45, .12);
  --shadow: 0 22px 60px rgba(5, 54, 39, .12);
  font-family: 'Tajawal', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: inherit; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; inset-block-start: -60px; inset-inline-start: 16px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--white); color: var(--green); }
.skip-link:focus { inset-block-start: 12px; }

.site-header { position: sticky; inset-block-start: 0; z-index: 20; background: rgba(251, 250, 245, .94); border-bottom: 1px solid rgba(9, 76, 55, .08); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--green); border-radius: 14px 14px 14px 5px; box-shadow: 0 7px 15px rgba(7, 88, 63, .17); }
.brand-mark svg { width: 29px; height: 29px; stroke: white; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { color: var(--green); font-weight: 900; font-size: 25px; line-height: 1; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 700; color: #486359; }
.main-nav > a:not(.nav-download) { transition: color .2s ease; }
.main-nav > a:not(.nav-download):hover { color: var(--green-bright); }
.nav-download { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; color: white; background: var(--green); border-radius: 12px; box-shadow: 0 8px 18px rgba(7, 88, 63, .16); transition: transform .2s ease, background .2s ease; }
.nav-download:hover, .button-primary:hover { background: #08724f; transform: translateY(-2px); }
.nav-download span { font-size: 21px; line-height: .7; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 10px; color: var(--green); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: currentColor; border-radius: 3px; }

.hero { position: relative; overflow: hidden; padding: 66px 0 24px; color: white; background: radial-gradient(ellipse at 74% 45%, rgba(31, 146, 98, .54), transparent 40%), linear-gradient(120deg, #063d30 0%, #07583f 54%, #0b6b4b 100%); isolation: isolate; }
.hero::before { position: absolute; z-index: -1; content: ''; width: 880px; height: 880px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; inset-block-start: -510px; inset-inline-start: -180px; box-shadow: 0 0 0 62px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.018); }
.hero::after { position: absolute; z-index: -1; content: ''; inset-block-end: -2px; inset-inline: 0; height: 28px; background: var(--paper); clip-path: ellipse(57% 70% at 50% 100%); }
.hero-orbit { position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
.hero-orbit-one { width: 480px; height: 480px; inset-block-start: 105px; inset-inline-start: -265px; }
.hero-orbit-two { width: 350px; height: 350px; inset-block-end: 8px; inset-inline-end: -235px; }
.hero-layout { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(38px, 6vw, 90px); min-height: 470px; }
.hero-copy { position: relative; z-index: 2; padding-block: 14px 46px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; margin-bottom: 18px; color: #d4f3e3; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: 14px; font-weight: 700; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242,189,39,.16); }
.hero h1 { margin: 0; font-size: clamp(46px, 6vw, 76px); line-height: 1.12; font-weight: 900; letter-spacing: -.045em; }
.hero h1 span { color: #f5c642; }
.hero-lead { max-width: 510px; margin: 22px 0 18px; color: rgba(255,255,255,.82); font-size: 19px; line-height: 1.85; }
.grade-pill { display: inline-flex; align-items: center; gap: 11px; margin: 0 0 25px; padding: 8px 14px 8px 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; color: #f4fbf6; font-weight: 700; }
.grade-pill-icon { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 9px; background: rgba(245,198,66,.17); color: #ffe07b; font-size: 15px; font-weight: 900; direction: ltr; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 13px 22px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 800; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; cursor: pointer; }
.button-primary { color: var(--green-dark); background: var(--gold); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.button-primary:hover { color: white; }
.button-primary svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-quiet { min-height: 48px; padding-inline: 13px; color: white; font-weight: 700; }
.button-quiet:hover { color: #ffdf78; transform: translateX(-3px); }
.button-quiet span { font-size: 20px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; color: rgba(255,255,255,.67); font-size: 14px; }
.note-check { display: inline-grid; place-items: center; width: 18px; height: 18px; color: #053b2e; background: #b9e8c9; border-radius: 50%; font-size: 12px; font-weight: 900; }

.hero-visual { position: relative; width: min(100%, 470px); justify-self: center; padding: 10px 6px 20px; }
.visual-halo { position: absolute; inset: 12% 8% 13%; background: #f6c93c; opacity: .16; filter: blur(65px); border-radius: 50%; }
.poster-frame { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 1 / 1; border: 9px solid rgba(255,255,255,.95); border-radius: 31px; background: #e4f0e6; box-shadow: 0 32px 65px rgba(1,31,23,.34), 0 0 0 1px rgba(255,255,255,.3); transform: rotate(-1.7deg); }
.poster-frame::after { position: absolute; content: ''; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); border-radius: inherit; }
.app-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster-glow { position: absolute; inset-inline: 12%; inset-block-end: -13px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.22); filter: blur(13px); z-index: -1; }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; min-width: 178px; padding: 12px 15px; color: var(--ink); background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.65); border-radius: 16px; box-shadow: 0 17px 34px rgba(0,31,23,.2); animation: drift 5s ease-in-out infinite; }
.float-card-top { inset-block-start: 12%; inset-inline-start: -36px; }
.float-card-bottom { inset-block-end: 11%; inset-inline-end: -31px; animation-delay: -2.5s; }
.float-card strong, .float-card small { display: block; }
.float-card strong { color: var(--green); font-size: 15px; font-weight: 900; }
.float-card small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.float-icon { display: grid; place-items: center; flex: 0 0 39px; height: 39px; border-radius: 12px; font-size: 22px; font-weight: 900; }
.book-icon { color: #006b49; background: #d8f2e1; }
.test-icon { color: #1f6fbd; background: #e0efff; }
.sparkle { position: absolute; color: var(--gold); }
.sparkle-one { inset-block-start: 3%; inset-inline-end: 7%; font-size: 28px; }
.sparkle-two { inset-block-end: 1%; inset-inline-start: 8%; color: #a8e8c0; font-size: 25px; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-bottom { display: flex; align-items: center; justify-content: center; gap: 20px; padding-block: 21px 30px; color: rgba(255,255,255,.68); font-size: 14px; font-weight: 700; }
.hero-bottom i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.grades-section { position: relative; z-index: 2; margin-top: -1px; padding: 18px 0 22px; background: var(--paper); }
.grades-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 26px 32px; border: 1px solid rgba(7,88,63,.09); border-radius: 22px; background: #fff; box-shadow: 0 14px 35px rgba(8,52,39,.055); }
.grades-intro { flex: 0 0 auto; }
.section-kicker { display: block; margin-bottom: 8px; color: #16845b; font-size: 13px; font-weight: 900; letter-spacing: .01em; }
.grades-intro h2 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 900; }
.grade-track { display: flex; align-items: center; justify-content: space-between; flex: 1; max-width: 670px; }
.grade-node { display: grid; justify-items: center; gap: 7px; min-width: 42px; }
.grade-node b { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d9ebe1; border-radius: 50%; color: var(--green); background: #f1f8f3; font-size: 16px; font-weight: 900; transition: transform .2s ease, background .2s ease; }
.grade-node:hover b { transform: translateY(-3px); color: white; background: var(--green); }
.grade-node small { color: #7a8980; font-size: 11px; font-weight: 700; }
.grade-node-last b { color: #543f00; background: var(--gold-soft); border-color: #f5e3a4; }
.track-line { flex: 1; height: 1px; max-width: 47px; margin: 0 2px 18px; background: linear-gradient(90deg, #c8dfd1, #e8eee9); }

.section-pad { padding-block: 95px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading h2, .learning-copy h2, .final-cta h2 { margin: 0; color: var(--ink); font-size: clamp(31px, 4vw, 44px); font-weight: 900; line-height: 1.25; letter-spacing: -.025em; }
.section-heading > p { max-width: 360px; margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.subjects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.subject-card { position: relative; overflow: hidden; min-height: 202px; padding: 23px 21px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 8px 23px rgba(3,56,39,.035); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.subject-card:hover { transform: translateY(-5px); border-color: rgba(7,88,63,.25); box-shadow: 0 16px 33px rgba(3,56,39,.085); }
.subject-card::after { position: absolute; content: ''; width: 100px; height: 100px; inset-inline-end: -44px; inset-block-end: -51px; border-radius: 50%; background: var(--subject-tint); opacity: .55; }
.subject-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 17px; border-radius: 15px; color: var(--subject-color); background: var(--subject-tint); }
.subject-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.subject-card h3 { margin: 0 0 5px; color: var(--ink); font-size: 19px; font-weight: 900; }
.subject-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.subject-number { position: absolute; inset-block-start: 21px; inset-inline-start: 18px; color: #b7c7be; font: 700 12px/1 'Tajawal', sans-serif; direction: ltr; }
.subject-math { --subject-color: #2873cf; --subject-tint: #e7f0ff; }
.subject-science { --subject-color: #7a55d5; --subject-tint: #f0eaff; }
.subject-history { --subject-color: #c58a16; --subject-tint: #fff4d7; }
.subject-geo { --subject-color: #e57427; --subject-tint: #fff0e5; }
.subject-tech { --subject-color: #197db8; --subject-tint: #e4f4ff; }
.subject-islamic { --subject-color: #20805d; --subject-tint: #e4f5ed; }
.subject-arabic { --subject-color: #dd4370; --subject-tint: #ffebf1; }
.subject-english { --subject-color: #3f70be; --subject-tint: #e9f0ff; }
.subject-letter { display: flex; flex-direction: row; gap: 2px; font: 900 22px/1 'Tajawal', sans-serif; direction: ltr; }
.subject-letter span { align-self: flex-end; font-size: 15px; }

.learning-section { position: relative; overflow: hidden; padding-block: 90px; background: linear-gradient(128deg, #063d30, #07583f 68%, #08704d); }
.learning-section::before { position: absolute; content: ''; inset-inline-end: -190px; inset-block-start: -245px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025),0 0 0 95px rgba(255,255,255,.02); }
.learning-layout { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 62px; }
.section-kicker-light { color: #b3e5c7; }
.learning-copy h2 { color: white; font-size: clamp(36px, 4.3vw, 52px); }
.learning-copy > p { max-width: 440px; margin: 18px 0 26px; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.9; }
.button-gold { min-height: 50px; color: var(--green-dark); background: var(--gold); box-shadow: 0 11px 25px rgba(0,0,0,.13); }
.button-gold:hover { transform: translateY(-2px); background: #ffd54f; }
.button-gold span { font-size: 20px; }
.learning-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.learning-card { position: relative; min-height: 243px; padding: 24px 18px 21px; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: rgba(255,255,255,.085); backdrop-filter: blur(10px); }
.learning-step { position: absolute; inset-block-start: 17px; inset-inline-start: 17px; color: rgba(255,255,255,.42); font-size: 13px; font-weight: 900; }
.learning-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 14px; color: #f3ca49; background: rgba(242,189,39,.14); }
.learning-symbol svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.learning-card h3 { margin: 0 0 8px; color: white; font-size: 18px; font-weight: 900; }
.learning-card p { margin: 0; color: rgba(255,255,255,.69); font-size: 14px; line-height: 1.75; }

.final-cta { padding-block: 70px; background: #f5f3e9; }
.final-cta-inner { display: flex; align-items: center; gap: 24px; padding: 34px 38px; border: 1px solid rgba(7,88,63,.1); border-radius: 24px; background: white; box-shadow: 0 15px 40px rgba(4,57,40,.06); }
.cta-emblem { display: grid; place-items: center; flex: 0 0 78px; height: 78px; border-radius: 22px; color: white; background: var(--green); box-shadow: 0 11px 24px rgba(7,88,63,.18); }
.cta-emblem svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.final-cta h2 { font-size: clamp(27px, 3vw, 35px); }
.final-cta p { margin: 7px 0 0; color: var(--muted); font-size: 16px; }
.cta-button { margin-inline-start: auto; flex-shrink: 0; color: white; background: var(--green); }
.cta-button:hover { color: white; background: #08724f; }

.site-footer { color: rgba(255,255,255,.76); background: #042d25; }
.footer-inner { display: flex; align-items: center; gap: 24px; min-height: 94px; }
.footer-brand .brand-name { color: white; }
.footer-brand .brand-mark { width: 36px; height: 36px; background: rgba(255,255,255,.13); box-shadow: none; }
.footer-brand .brand-mark svg { width: 25px; height: 25px; }
.footer-brand .brand-name { font-size: 21px; }
.footer-inner p { margin: 0; color: #b5d9c5; font-size: 14px; font-weight: 700; }
.footer-grade { margin-inline-start: auto; font-size: 13px; }
.copyright { color: rgba(255,255,255,.5); font-size: 13px; direction: ltr; }

:focus-visible { outline: 3px solid #e7b931; outline-offset: 4px; }
@media (max-width: 980px) {
  .hero-layout { gap: 34px; grid-template-columns: 1fr .92fr; }
  .hero h1 { font-size: clamp(45px, 7vw, 66px); }
  .float-card-top { inset-inline-start: -18px; }
  .float-card-bottom { inset-inline-end: -16px; }
  .grades-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
  .grade-track { width: 100%; max-width: none; }
  .learning-layout { grid-template-columns: 1fr; gap: 36px; }
  .learning-copy { max-width: 640px; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 34px, 540px); }
  .nav-wrap { min-height: 68px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; display: none; inset-inline: 17px; inset-block-start: 61px; flex-direction: column; align-items: stretch; gap: 0; padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 13px 14px; }
  .main-nav > a:not(.nav-download) { border-radius: 10px; }
  .main-nav > a:not(.nav-download):hover { background: #f3f8f4; }
  .nav-download { justify-content: center; margin-top: 5px; }
  .hero { padding-block-start: 43px; }
  .hero-layout { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { padding-block: 0 4px; }
  .hero h1 { font-size: clamp(48px, 13vw, 67px); }
  .hero-lead { max-width: 470px; font-size: 17px; }
  .hero-visual { width: min(85%, 390px); margin-block: 0 8px; }
  .poster-frame { border-width: 7px; border-radius: 26px; }
  .float-card { min-width: 156px; padding: 10px 11px; gap: 8px; }
  .float-card-top { inset-block-start: 11%; inset-inline-start: -27px; }
  .float-card-bottom { inset-block-end: 10%; inset-inline-end: -25px; }
  .float-icon { flex-basis: 34px; height: 34px; font-size: 19px; }
  .float-card strong { font-size: 13px; }
  .float-card small { font-size: 10px; }
  .hero-bottom { flex-wrap: wrap; gap: 10px; padding-block: 15px 26px; font-size: 12px; }
  .grades-section { padding-block: 8px 18px; }
  .grades-inner { gap: 18px; padding: 22px 16px; }
  .grades-intro h2 { font-size: 20px; }
  .grade-track { gap: 0; }
  .grade-node { min-width: 35px; gap: 6px; }
  .grade-node b { width: 32px; height: 32px; font-size: 14px; }
  .grade-node small { font-size: 10px; }
  .track-line { margin-inline: 1px; margin-block-end: 18px; }
  .section-pad { padding-block: 66px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2, .learning-copy h2 { font-size: 34px; }
  .section-heading > p { margin-top: 12px; font-size: 15px; }
  .subjects-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .subject-card { min-height: 184px; padding: 18px 15px; border-radius: 16px; }
  .subject-icon { width: 43px; height: 43px; margin-bottom: 13px; border-radius: 13px; }
  .subject-icon svg { width: 25px; height: 25px; }
  .subject-card h3 { font-size: 17px; }
  .subject-card p { font-size: 12px; }
  .subject-number { inset-block-start: 16px; inset-inline-start: 13px; font-size: 10px; }
  .learning-section { padding-block: 65px; }
  .learning-layout { gap: 28px; }
  .learning-copy > p { font-size: 15px; }
  .learning-cards { grid-template-columns: 1fr; gap: 10px; }
  .learning-card { display: grid; grid-template-columns: 50px 1fr; column-gap: 14px; align-items: center; min-height: 0; padding: 17px; }
  .learning-symbol { grid-row: span 2; margin: 0; }
  .learning-card h3 { margin: 0 0 3px; font-size: 17px; }
  .learning-card p { font-size: 13px; }
  .learning-step { inset-block-start: 11px; inset-inline-start: 11px; font-size: 11px; }
  .final-cta { padding-block: 45px; }
  .final-cta-inner { display: grid; grid-template-columns: 58px 1fr; gap: 16px; padding: 23px 18px; border-radius: 20px; }
  .cta-emblem { grid-row: span 2; flex-basis: 58px; width: 58px; height: 58px; border-radius: 17px; }
  .cta-emblem svg { width: 36px; height: 36px; }
  .final-cta h2 { font-size: 24px; }
  .final-cta p { font-size: 14px; line-height: 1.6; }
  .cta-button { grid-column: 1 / -1; width: 100%; margin: 1px 0 0; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 11px; min-height: 100px; padding-block: 18px; }
  .footer-brand { grid-column: 1; }
  .footer-inner p { grid-column: 1; }
  .footer-grade { grid-column: 2; grid-row: 1; margin: 0; align-self: center; text-align: left; font-size: 11px; }
  .copyright { grid-column: 2; grid-row: 2; text-align: left; font-size: 11px; }
}
@media (max-width: 370px) {
  .container { width: calc(100% - 26px); }
  .hero h1 { font-size: 45px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button-primary { width: 100%; }
  .hero-actions .button-quiet { justify-content: center; }
  .hero-visual { width: 87%; }
  .float-card-top { inset-inline-start: -22px; }
  .float-card-bottom { inset-inline-end: -21px; }
  .grades-inner { padding-inline: 12px; }
  .grade-node { min-width: 31px; }
  .grade-node b { width: 29px; height: 29px; }
  .grade-node small { font-size: 9px; }
  .subject-card { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
