@font-face { font-family:"Cairo"; font-style:normal; font-weight:200 1000; font-display:swap; src:url(/fonts/cairo-arabic-wght-normal.woff2) format("woff2-variations"); unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F; }
@font-face { font-family:"Cairo"; font-style:normal; font-weight:200 1000; font-display:swap; src:url(/fonts/cairo-latin-wght-normal.woff2) format("woff2-variations"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root { --ink:#16181d; --ink2:#5b616e; --line:#e6e8ec; --bg:#fafaf9; --card:#fff; --brand:#0f766e; --brand-d:#0b5a54; --brand-l:#e6f4f1; --warn:#b45309; --warn-l:#fef3e2; --err:#b42318; --err-l:#fdecea; --ok-l:#e8f6ee; --r:14px; --shadow:0 1px 2px rgba(16,24,40,.06),0 4px 16px rgba(16,24,40,.05); }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.75 "Cairo","Segoe UI","Noto Sans Arabic",Tahoma,system-ui,sans-serif; }
.skip { position:absolute; inset-inline-start:8px; top:-60px; background:#fff; padding:8px 12px; border-radius:8px; z-index:10; } .skip:focus { top:8px; }
.wrap { max-width:960px; margin:0 auto; padding:0 20px; }
.top { background:rgba(255,255,255,.9); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; }
.top-in { display:flex; align-items:center; justify-content:space-between; min-height:60px; }
.brand { font-weight:800; font-size:22px; color:var(--brand); text-decoration:none; display:flex; align-items:center; gap:8px; }
.brand i { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:9px; background:var(--brand); color:#fff; font:700 14px/1 ui-monospace,Menlo,monospace; direction:ltr; }
nav { display:flex; gap:8px; }
main { padding-block:28px 56px; outline:none; min-height:70vh; }
h1 { font-size:clamp(28px,5vw,44px); line-height:1.25; margin:0 0 12px; letter-spacing:-.01em; }
h2 { font-size:22px; margin:32px 0 12px; } h3 { font-size:18px; margin:0 0 6px; }
p { margin:0 0 12px; } .muted { color:var(--ink2); }
button,.btn { font:inherit; font-weight:600; min-height:46px; padding:8px 20px; border-radius:12px; border:1px solid var(--line); background:var(--card); color:var(--ink); cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:transform .08s,background .15s,border-color .15s; }
button:hover:not(:disabled) { border-color:#c9ced6; background:#f6f7f8; } button:active:not(:disabled) { transform:scale(.98); }
button.primary { background:var(--brand); border-color:var(--brand); color:#fff; } button.primary:hover:not(:disabled) { background:var(--brand-d); border-color:var(--brand-d); }
button.ghost { border-color:transparent; background:transparent; } button.sel { background:var(--brand-l); border-color:var(--brand); color:var(--brand-d); }
button:disabled { opacity:.5; cursor:not-allowed; }
:focus-visible { outline:3px solid #5eb5aa; outline-offset:2px; }
label { display:block; font-weight:600; margin:14px 0 4px; }
input { width:100%; font:inherit; min-height:48px; padding:8px 14px; border:1px solid #cdd2da; border-radius:12px; background:#fff; color:var(--ink); }
input:focus { border-color:var(--brand); }
.hero { padding:36px 0 12px; display:grid; gap:20px; } .hero p { font-size:18px; color:var(--ink2); max-width:60ch; }
.features { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); margin-top:28px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:20px; box-shadow:var(--shadow); }
.auth { max-width:440px; margin:12px auto 0; }
.courses { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
.course { text-align:start; display:block; width:100%; min-height:0; padding:18px; border-radius:var(--r); }
.course.sel { box-shadow:0 0 0 2px var(--brand) inset; }
.tag { display:inline-block; font:700 12px/1 ui-monospace,Menlo,monospace; direction:ltr; background:var(--brand-l); color:var(--brand-d); padding:6px 8px; border-radius:8px; margin-bottom:10px; }
.bar { height:8px; background:#e9ecef; border-radius:99px; overflow:hidden; } .bar>div { height:100%; background:var(--brand); border-radius:99px; transition:width .4s; }
.lessons { margin:0; padding:0; list-style:none; }
.lesson { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
.lesson:last-child { border:0; }
.num { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#eef0f3; font-weight:700; margin-inline-end:12px; flex:none; }
.num.done { background:var(--brand); color:#fff; }
.badge { font-size:13px; font-weight:700; padding:3px 10px; border-radius:99px; background:var(--warn-l); color:var(--warn); }
.callout { border-radius:12px; padding:14px 16px; margin:14px 0; background:#f3f4f6; }
.callout.tip { background:var(--brand-l); } .callout.warn { background:var(--warn-l); } .callout.ok { background:var(--ok-l); } .callout.bad { background:var(--err-l); }
.callout strong { display:block; margin-bottom:2px; }
pre { direction:ltr; text-align:left; background:#111827; color:#e5e7eb; border-radius:12px; padding:16px; overflow-x:auto; font:14px/1.7 ui-monospace,Menlo,Consolas,monospace; margin:14px 0; }
.steps { display:flex; gap:8px; margin:18px 0 22px; } .step { flex:1; height:6px; border-radius:99px; background:#e3e6ea; } .step.on { background:var(--brand); }
.crumbs { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.row { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.err { color:var(--err); font-weight:600; min-height:1.5em; }
.stat { display:flex; gap:20px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.big { font-size:34px; font-weight:800; line-height:1; }
.foot { border-top:1px solid var(--line); padding:20px 0; color:var(--ink2); font-size:14px; }
@media (prefers-reduced-motion:reduce) { * { transition:none !important; } }
@media (max-width:520px) { .wrap { padding:0 16px; } .lesson { align-items:flex-start; flex-direction:column; } }

.stats { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); } .stat1 .big { margin-bottom:4px; } .stat1 .bar { margin:12px 0; }
.small { font-size:14px; margin:6px 0 0; }
.badges { display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); }
.bdg { display:flex; flex-direction:column; align-items:center; gap:4px; padding:14px 8px; border-radius:var(--r); border:1px dashed #cdd2da; color:#8a909c; font-weight:600; text-align:center; font-size:14px; }
.bdg .ic { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:#eceef1; color:#9aa0ab; font:800 18px/1 ui-monospace,Menlo,monospace; direction:ltr; } .bdg.on { border:1px solid var(--brand); background:var(--brand-l); color:var(--brand-d); } .bdg.on .ic { background:var(--brand); color:#fff; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.course.soon { opacity:.6; box-shadow:none; background:#f4f5f6; cursor:default; }
textarea,select { width:100%; font:inherit; padding:10px 14px; border:1px solid #cdd2da; border-radius:12px; background:#fff; color:var(--ink); } textarea.code { font:14px/1.6 ui-monospace,Menlo,Consolas,monospace; text-align:left; }
.okmsg { color:var(--brand-d); font-weight:600; min-height:1.5em; } .badge.sh { background:var(--brand-l); color:var(--brand-d); } .badge.rm { background:var(--err-l); color:var(--err); }
main:focus, main:focus-visible { outline:none; }

.themes { display:flex; gap:10px; margin:14px 0; } .dot { min-height:0; width:30px; height:30px; padding:0; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px #cdd2da; }

/* design pass: quiet chrome, one rich element */
a { color:var(--brand-d); text-underline-offset:3px; } a:hover { color:var(--brand); }
.card { box-shadow:none; }
.block { width:100%; }
.hero2 { display:grid; gap:36px; padding:28px 0 8px; align-items:center; grid-template-columns:1fr; }
@media (min-width:820px) { .hero2 { grid-template-columns:1.05fr 1fr; gap:56px; padding-top:56px; } }
.hero-text h1 { font-size:clamp(32px,6vw,52px); line-height:1.2; } .hero-text p { font-size:19px; color:var(--ink2); max-width:34ch; }
.big-btn { min-height:52px; padding-inline:26px; font-size:17px; }
.stage { background:#0e1417; border-radius:20px; padding:0 0 22px; color:#e8eef0; overflow:hidden; box-shadow:0 24px 60px -24px color-mix(in srgb, var(--brand) 55%, transparent), 0 0 0 1px rgba(255,255,255,.06) inset; transition:box-shadow .4s; }
.stage-bar { display:flex; gap:7px; padding:14px 16px; border-bottom:1px solid rgba(255,255,255,.08); direction:ltr; } .stage-bar span { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.18); }
.demo-code { background:transparent; margin:18px 0 6px; padding:0 22px; font-size:19px; line-height:1.9; color:#cfe3e1; border-radius:0; overflow:visible; }
.stage-ok { display:flex; align-items:center; gap:10px; margin:14px 22px 0; padding:12px 14px; border-radius:12px; background:color-mix(in srgb, var(--brand) 22%, #0e1417); color:#fff; font-weight:700; border:1px solid color-mix(in srgb, var(--brand) 70%, transparent); }
.tick { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--brand); font-size:14px; }
.stage-theme { display:flex; align-items:center; gap:12px; margin-top:12px; }
.steps3 { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); margin-top:44px; padding-top:28px; border-top:1px solid var(--line); }
.s3 { display:flex; gap:14px; align-items:flex-start; } .s3 .n { flex:none; display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:var(--brand-l); color:var(--brand-d); font-weight:800; } .s3 h3 { margin:0; } .s3 p { margin:2px 0 0; }
.dot { width:34px; height:34px; } .dot:focus-visible { outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { .stage { transition:none; } }
.top-in { flex-wrap:wrap; gap:4px 12px; padding-block:6px; } nav { flex-wrap:wrap; gap:2px; } nav button { min-height:40px; padding:6px 12px; }
.courses { grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr)); } html,body { overflow-x:hidden; } pre { max-width:100%; }

@media (max-width:560px) { .top-in { display:block; padding-block:6px 4px; } nav { display:flex; justify-content:space-between; gap:0; margin-top:2px; } nav button { padding:6px 8px; font-size:15px; min-height:38px; } }

/* lesson polish: one idea per screen, calm */
.stepname { color:var(--brand-d); font-weight:700; margin:0 0 4px; }
main h1 + .stepname { margin-top:-4px; }
.opts { display:grid; gap:10px; margin:14px 0; } .opts button { justify-content:flex-start; text-align:start; min-height:54px; font-weight:600; }
.callout { border-radius:12px; border-inline-start:4px solid var(--brand); background:var(--brand-l); padding:14px 16px; } .callout.warn { border-color:var(--warn); background:var(--warn-l); } .callout.ok { border-color:#1f9d55; background:var(--ok-l); } .callout.bad { border-color:var(--err); background:var(--err-l); } .callout.tip { border-color:var(--brand); }
pre { border-radius:14px; border:1px solid #1f2937; font-size:15px; }
.lessons .lesson:hover { background:#fafbfb; } .lesson { padding-inline:4px; }
.course { transition:border-color .15s, box-shadow .15s; } .course:hover:not(:disabled) { border-color:var(--brand); }
h2 { margin-top:36px; }
.crumbs button.ghost { padding-inline:0; color:var(--ink2); }

.cap { margin:14px 0 -6px; font-weight:700; font-size:14px; color:var(--brand-d); }
.bar { min-height:8px; }
