/* ===== Mr Omar Tarek — Home redesign (tokens, navbar and footer live in shell.css) ===== */

body.ot-home {
  background: var(--bg) !important; color: var(--ink);
  font-family: 'Alexandria', sans-serif; overflow-x: hidden; text-align: right;
}
body.ot-home a { color: inherit; text-decoration: none; }
body.ot-home img { max-width: 100%; }
.ot-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; position: relative; }
.ot-lat { font-family: 'Space Grotesk', sans-serif; }
.ot-eyebrow { font-family: 'Space Grotesk'; font-size: 12px; letter-spacing: .3em; font-weight: 700; color: var(--accent-d); }
body.dark .ot-eyebrow { color: var(--accent); }
.ot-h2 { font-family: 'Lalezar'; font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.1; margin: 10px 0 0; color: var(--ink); }
.ot-h2 em { font-style: normal; color: var(--accent-d); }
body.dark .ot-h2 em { color: var(--accent); }
.ot-head { text-align: center; margin-bottom: 52px; }
.ot-head p { margin: 12px auto 0; color: var(--muted); max-width: 520px; line-height: 1.8; }

/* ===== Floating science symbols ===== */
.ot-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ot-particles span { position: absolute; font-family: 'Space Grotesk'; font-weight: 700; opacity: .28; animation: otFloat 7s ease-in-out infinite; }
@keyframes otFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(8deg); } }
@keyframes otSpin { to { transform: rotate(360deg); } }
@keyframes otSpinRev { to { transform: rotate(-360deg); } }
@keyframes otPulse { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.15); opacity: .15; } }
@keyframes otMarquee { to { transform: translateX(50%); } }
@keyframes otBubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-160px) scale(1.1); opacity: 0; } }

/* ===== Hero ===== */
.ot-intro { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--soft) 58%, var(--bg) 100%); }
.ot-intro::before { content: ""; position: absolute; left: -10%; top: 48%; width: 120%; height: 260px; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }
.ot-hero { position: relative; padding: 130px 0 20px; }
.ot-scroll-cue { display: flex; justify-content: center; padding: 10px 0 0; position: relative; }
.ot-scroll-cue span { width: 28px; height: 44px; border-radius: 16px; border: 2px solid var(--muted); position: relative; opacity: .6; }
.ot-scroll-cue span::after { content: ""; position: absolute; top: 8px; left: 50%; margin-left: -3px; width: 6px; height: 10px; border-radius: 3px; background: var(--accent-d); animation: otCue 1.8s ease-in-out infinite; }
@keyframes otCue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.ot-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px; align-items: center; }
.ot-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.ot-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; }
.ot-badge b { background: var(--accent); color: #0E2638; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.ot-hero h1 { margin: 0; font-family: 'Lalezar'; font-weight: 400; font-size: clamp(52px, 7.4vw, 104px); line-height: 1.22; color: var(--ink); }
.ot-hero h1 .ot-sci { font-family: 'Space Grotesk'; font-weight: 700; letter-spacing: -.03em; }
.ot-mark { position: relative; display: inline-block; isolation: isolate; }
.ot-mark::before { content: ""; position: absolute; inset: auto -6px 10px -6px; height: 34%; background: var(--sun); border-radius: 10px; transform: rotate(-1.5deg); z-index: -1; }
body.dark .ot-mark { color: #0E2638; } body.dark .ot-mark::before { height: 70%; bottom: 6px; }
.ot-hero h1 .ot-fun { color: var(--accent-d); }
body.dark .ot-hero h1 .ot-fun { color: var(--accent); }
.ot-lead { margin: 0; font-size: 18px; line-height: 1.9; color: var(--muted); max-width: 540px; text-wrap: pretty; }
.ot-lead b { color: var(--ink); }
.ot-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ot-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .25s, box-shadow .25s, background .25s; }
.ot-btn:hover { transform: translateY(-3px); }
.ot-btn-primary { background: var(--accent); color: #0E2638 !important; box-shadow: 0 14px 30px -12px rgba(42,143,176,.8); }
.ot-btn-primary i { width: 26px; height: 26px; border-radius: 50%; background: #0E2638; color: var(--accent); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.ot-btn-ghost { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink) !important; }
.ot-btn-ghost:hover { border-color: var(--ink); }
.ot-stats { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px 6px; max-width: 540px; margin-top: 8px; }
.ot-stats > div { flex: 1; text-align: center; }
.ot-stats > div + div { border-right: 1px dashed var(--line); }
.ot-stats strong { display: block; font-family: 'Space Grotesk'; font-size: 28px; font-weight: 700; }
.ot-stats > div:last-child strong { color: var(--accent-d); }
body.dark .ot-stats > div:last-child strong { color: var(--accent); }
.ot-stats span { font-size: 12px; color: var(--muted); }

.ot-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.ot-orbits { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ot-orbits > * { grid-area: 1 / 1; }
.ot-glow { width: 380px; height: 380px; border-radius: 50%; background: var(--accent); filter: blur(60px); animation: otPulse 5s ease-in-out infinite; }
.ot-ring { position: relative; border-radius: 50%; border: 2px dashed var(--line); animation: otSpin 26s linear infinite; }
.ot-planet { position: absolute; top: 0; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.ot-ring > .ot-planet { animation: otSpinRev var(--t, 26s) linear infinite; }
.ot-planet.earth { width: 46px; height: 46px; background: radial-gradient(circle at 62% 38%, #6fd08a 0 14%, transparent 15%), radial-gradient(circle at 35% 62%, #5cbf72 0 12%, transparent 13%), radial-gradient(circle at 30% 30%, #9fe0ff, #2a7fd0 45%, #0b2f66 80%); box-shadow: inset -10px -8px 16px rgba(0,0,0,.45), 0 0 22px rgba(91,184,212,.6); }
.ot-planet.mars { width: 32px; height: 32px; background: radial-gradient(circle at 60% 60%, #9b3a20 0 10%, transparent 11%), radial-gradient(circle at 32% 30%, #ffb07a, #d2582f 50%, #5a1c10 90%); box-shadow: inset -7px -6px 12px rgba(0,0,0,.45), 0 0 16px rgba(255,138,125,.55); }
.ot-planet.jupiter { width: 64px; height: 64px; background: radial-gradient(ellipse 18% 10% at 62% 64%, #c0583a 0 70%, transparent 72%), repeating-linear-gradient(180deg, #e8c9a0 0 8%, #c99a6b 8% 14%, #f1dcc0 14% 22%, #b27c55 22% 26%); box-shadow: inset -14px -10px 22px rgba(0,0,0,.45), 0 0 26px rgba(255,200,61,.35); }
.ot-planet.saturn { width: 50px; height: 50px; background: radial-gradient(circle at 32% 30%, #fff1c9, #e6c27a 50%, #8a6a32 92%); box-shadow: inset -9px -8px 14px rgba(0,0,0,.4), 0 0 20px rgba(255,200,61,.5); }
.ot-planet.saturn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 190%; height: 46%; border-radius: 50%; border: 5px solid rgba(232,205,150,.85); border-top-color: rgba(232,205,150,.25); transform: translate(-50%, -50%) rotate(-18deg); }
.ot-fixed-planet { position: absolute; top: 16%; left: 6%; transform: none; z-index: 3; animation: otFloat 6s ease-in-out infinite; }
.ot-ring.r1 { width: 440px; height: 440px; --t: 18s; animation-duration: 18s; }
.ot-ring.r2 { width: 520px; height: 520px; --t: 30s; animation-duration: 30s; animation-name: otSpinRev; }
.ot-ring.r2 > .ot-planet { animation-name: otSpin; }
.ot-ring.r3 { width: 600px; height: 600px; --t: 44s; border-style: solid; animation-duration: 44s; }
.ot-ring.r2 > .ot-planet { top: 50%; left: 0; }
.ot-ring.r3 > .ot-planet { top: 100%; }
.ot-hero-img { position: relative; z-index: 2; width: min(92%, 480px); filter: drop-shadow(0 30px 40px rgba(14,38,56,.2)); }
@media (max-width: 767px) {
  .ot-hero { padding-top: 110px; }
  .ot-visual { min-height: 400px; }
  .ot-ring.r3 { width: 380px; height: 380px; } .ot-ring.r2 { width: 320px; height: 320px; } .ot-ring.r1 { width: 260px; height: 260px; }
  .ot-glow { width: 240px; height: 240px; }
  .ot-hero-img { width: min(78%, 340px); }
  .ot-fixed-planet { width: 44px; height: 44px; top: 6%; left: 4%; }
  .ot-lead { font-size: 16px; }
  .ot-stats strong { font-size: 22px; }
  .ot-card { padding: 20px 18px 20px 48px; grid-template-columns: 52px 1fr; column-gap: 14px; }
  .ot-card .ic { width: 52px; height: 52px; font-size: 22px; border-radius: 16px; }
  .ot-card h3 { font-size: 23px; }
}
@media (max-width: 400px) { .ot-ring.r3 { display: none; } }

/* ===== Why ===== */
.ot-why { position: relative; padding: 50px 0 90px; }
.ot-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: center; }
.ot-why-cards { display: flex; flex-direction: column; gap: 18px; }
.ot-card { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 24px 26px 24px 56px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; }
.ot-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow); }
.ot-card .ic { grid-row: span 2; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 26px; background: var(--soft); color: var(--accent-d); }
.ot-card h3 { margin: 0 0 6px; font-family: 'Lalezar'; font-weight: 400; font-size: 27px; color: inherit; }
.ot-card p { margin: 0; line-height: 1.85; font-size: 15px; color: var(--muted); }
.ot-card .n { position: absolute; top: 20px; left: 20px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 13px; opacity: .3; }
.ot-card.dark-c { background: #0E2638; color: #fff; border-color: transparent; }
body.dark .ot-card.dark-c { background: var(--accent-d); }
.ot-card.dark-c .ic { background: var(--accent); color: #0E2638; } .ot-card.dark-c p { color: #C3D6E2; }
body.dark .ot-card.dark-c p { color: #E3F4FA; }
.ot-card.sun-c { background: var(--sun); color: #0E2638; border-color: transparent; }
.ot-card.sun-c .ic { background: #0E2638; color: var(--sun); } .ot-card.sun-c p { color: #3B3410; }
.ot-why-visual { position: relative; display: grid; place-items: center; }
.ot-why-visual::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--soft); }
.ot-why-visual::after { content: ""; position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--accent); opacity: .5; animation: otSpin 40s linear infinite; }
.ot-why-visual img { position: relative; z-index: 1; width: min(100%, 520px); }
@media (max-width: 767px) {
  .ot-why-visual { order: -1; margin-bottom: -46px; }
  .ot-why-visual img { width: min(80%, 380px); -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent); }
  .ot-why-cards { position: relative; z-index: 2; }
}

/* ===== Stages ===== */
.ot-stages { padding: 50px 0 90px; }
.ot-stages-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.ot-tabs { display: flex; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.ot-tabs button { border: 0; cursor: pointer; padding: 11px 22px; border-radius: 999px; font-family: 'Alexandria'; font-weight: 600; font-size: 14px; background: transparent; color: var(--ink); transition: all .3s; }
.ot-tabs button.on { background: var(--ink); color: var(--bg); }
@media (max-width: 767px) {
  .ot-stages-head { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 28px; }
  .ot-tabs { width: 100%; }
  .ot-tabs button { flex: 1 1 0; min-width: 0; padding: 12px 8px; font-size: clamp(11.5px, 3.4vw, 14px); white-space: nowrap; }
}
.ot-grades { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.ot-grade { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 12px; transition: transform .35s, box-shadow .35s; animation: otIn .6s cubic-bezier(.2,.8,.2,1) both; }
.ot-grade:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
@keyframes otIn { from { opacity: 0; transform: translateY(24px); } }
.ot-grade-media { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--soft); }
.ot-grade-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.ot-grade:hover .ot-grade-media img { transform: scale(1.06); }
.ot-grade-num { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 14px; background: var(--sun); color: #0E2638; display: grid; place-items: center; font-family: 'Space Grotesk'; font-weight: 700; font-size: 20px; }
.ot-grade-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 10px 6px; }
.ot-grade-foot h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); font-family: 'Alexandria'; }
.ot-grade-foot p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ot-arrow { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 18px; transition: transform .3s; }
.ot-grade:hover .ot-arrow { transform: translateX(-4px); }
.ot-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px; }

/* ===== Courses (cards rendered by courses.js) ===== */
.ot-courses { padding: 20px 0 100px; }
body.ot-home .courses-home .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; margin: 0; }
body.ot-home .courses-home .row:empty { display: none; }
body.ot-home .card-course { max-width: none; width: auto; flex: none; padding: 0; margin: 0; animation: otIn .6s both; }
body.ot-home .card-course .course { height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 12px; overflow: hidden; transition: transform .35s, box-shadow .35s; box-shadow: none; }
body.ot-home .card-course .course:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
body.ot-home .card-course .course > img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 22px; display: block; background: var(--soft); }
body.ot-home .content-course { padding: 16px 8px 4px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
body.ot-home .content-course h4 { margin: 0; font-family: 'Alexandria'; font-weight: 700; font-size: 17px; line-height: 1.5; color: var(--ink); }
body.ot-home .content-course .number-lect { position: static; width: auto; left: auto; display: block; flex-grow: 0; margin: 0; padding: 0; background: none; font-family: 'Alexandria'; font-weight: 400; font-size: 13px; line-height: 1.8; text-align: right; color: var(--muted); }
body.ot-home .data-course { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--soft); margin-top: auto; }
body.ot-home .data-course .price { font-family: 'Alexandria'; font-weight: 600; color: var(--ink); font-size: 14px; background: none; padding: 0; margin: 0; align-items: baseline; gap: 6px; }
body.ot-home .data-course .price span { font-family: 'Space Grotesk'; font-weight: 700; font-size: 26px; color: var(--accent-d); }
body.ot-home.dark .data-course .price span { color: var(--accent); }
body.ot-home .data-course .price-del { font-family: 'Alexandria'; font-size: 12px; color: var(--muted); background: none; padding: 0; margin: 2px 0 0; justify-content: flex-start; }
body.ot-home .data-course .price-del span { font-family: 'Space Grotesk'; text-decoration: line-through; color: var(--coral); background: none; padding: 0; }
body.ot-home .data-course .price-free, body.ot-home .you-subscription { background: var(--sun); color: #0E2638; font-family: 'Alexandria'; font-weight: 700; font-size: 13px; padding: 7px 14px; border: 0; border-radius: 999px; }
body.ot-home .info-course p { margin: 0; font-family: 'Alexandria'; font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
body.ot-home .info-course svg { color: var(--accent-d); }
body.ot-home .course-subscription { display: flex; }
body.ot-home .course-subscription .check { flex: 1; text-align: center; padding: 13px; border-radius: 999px; background: var(--ink); color: var(--bg) !important; font-weight: 600; font-size: 14px; transition: background .25s; }
body.ot-home .course-subscription .check:hover { background: var(--accent-d); color: #fff !important; }

/* ===== CTA ===== */
.ot-cta-sec { padding: 20px 0 100px; }
.ot-cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: 44px; padding: 70px 30px; color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(91,184,212,.45), transparent 45%), radial-gradient(circle at 85% 90%, rgba(255,200,61,.3), transparent 45%), #0E2638; }
body.dark .ot-cta { background: radial-gradient(circle at 15% 20%, rgba(91,184,212,.4), transparent 45%), radial-gradient(circle at 85% 90%, rgba(255,200,61,.25), transparent 45%), var(--surface); border: 1px solid var(--line); }
.ot-cta::before, .ot-cta::after { content: ""; position: absolute; border-radius: 50%; border: 2px dashed rgba(255,255,255,.14); z-index: -1; }
.ot-cta::before { width: 520px; height: 520px; left: 50%; top: 50%; margin: -260px 0 0 -260px; animation: otSpin 50s linear infinite; }
.ot-cta::after { width: 760px; height: 760px; left: 50%; top: 50%; margin: -380px 0 0 -380px; }
.ot-cta-copy { position: relative; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ot-cta .ot-eyebrow { color: var(--accent); }
.ot-cta h2 { margin: 0; font-family: 'Lalezar'; font-weight: 400; font-size: clamp(36px, 5vw, 64px); line-height: 1.15; color: #fff; }
.ot-cta p { margin: 0; font-size: 17px; line-height: 1.8; color: #C3D6E2; }
.ot-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.ot-cta-btns a { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .25s, background .25s; }
.ot-cta-btns a:hover { transform: translateY(-3px); }
.ot-cta-btns .a1 { background: var(--accent); color: #0E2638 !important; box-shadow: 0 14px 30px -12px rgba(91,184,212,.8); }
.ot-cta-btns .a2 { border: 1.5px solid rgba(255,255,255,.35); color: #fff !important; }
.ot-cta-btns .a2:hover { background: rgba(255,255,255,.1); }
.ot-cta-planet { position: absolute; top: 34px; left: 44px; right: auto; transform: none; width: 60px; height: 60px; animation: otFloat 6s ease-in-out infinite; }
.ot-bubbles { position: absolute; inset: 0; pointer-events: none; }
.ot-bubbles span { position: absolute; bottom: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); animation: otBubble 4s ease-in infinite; }
@media (max-width: 767px) { .ot-cta { padding: 56px 20px; border-radius: 32px; } .ot-cta-planet { width: 40px; height: 40px; top: 20px; left: 20px; } .ot-cta-btns a { flex: 1 1 100%; justify-content: center; } }

/* ===== Reveal on scroll ===== */
.ot-js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * .12s); }
.ot-js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { body.ot-home * { animation: none !important; } .ot-js [data-reveal] { opacity: 1; transform: none; } }
