:root {
  --ink: #111827;
  --ink2: #374151;
  --soft: #6b7280;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --gold: #f59e0b;
  --gold-soft: #fef3c7;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e5e7eb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(17,24,39,.22); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; min-height: 40px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(220,38,38,.6); border-width: 2px; }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(17,24,39,.25) transparent; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Cairo', system-ui, sans-serif; line-height: 1.7; font-size: 16px; }
.lat { font-family: 'Poppins', 'Cairo', sans-serif; direction: ltr; unicode-bidi: isolate; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.flagbar { height: 5px; background: linear-gradient(90deg, var(--ink) 0 33.3%, var(--red) 33.3% 66.6%, var(--gold) 66.6%); }

/* Nav */
nav.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav .row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo b { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: 1px; }
.logo b span { color: var(--red); }
.logo small { font-family: 'Poppins', sans-serif; font-size: 9px; letter-spacing: 2px; color: var(--soft); margin-top: 4px; }
.links { display: flex; gap: 26px; font-weight: 600; color: var(--ink2); }
.links a:hover { color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 12px; font-weight: 700; font-family: inherit; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b91c1c; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1f2937; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink2); }
.btn-wa { background: #16a34a; color: #fff; }

/* Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pill i { color: var(--gold); font-style: normal; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.25; margin: 18px 0 14px; font-weight: 800; }
h1 em { color: var(--red); font-style: normal; }
.lead { color: var(--ink2); font-size: 18px; max-width: 540px; margin: 0 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual: the lesson path */
.journey { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 20px 50px -20px rgba(17,24,39,.25); }
.journey h4 { margin: 0 0 4px; font-size: 16px; }
.journey .sub { color: var(--soft); font-size: 13px; margin-bottom: 18px; }
.xp { height: 10px; background: #f1f5f9; border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.xp div { height: 100%; width: 62%; background: var(--gold); border-radius: 99px; }
.step { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.step:nth-child(even) { padding-right: 34px; }
.dot { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; border: 3px solid var(--line); background: #fff; color: var(--soft); }
.dot.done { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.dot.now { border-color: var(--red); color: var(--red); animation: pulse 1.8s infinite; }
.step b { display: block; font-size: 15px; }
.step span { font-size: 13px; color: var(--soft); }
.stars { color: var(--gold); letter-spacing: 2px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.35);} 50% { box-shadow: 0 0 0 10px rgba(220,38,38,0);} }

/* Sections */
section { padding: 72px 0; }
.head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; font-weight: 800; }
.head h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--red); border-radius: 4px; margin: 14px auto 0; }
.head p { color: var(--soft); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; text-align: center; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(17,24,39,.3); }
.ic { width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; background: var(--gold-soft); margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--soft); font-size: 14.5px; }

/* How it works */
.how { background: var(--ink); color: #fff; }
.how .head p { color: #9ca3af; }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; counter-reset: s; }
.s4 { background: #1f2937; border: 1px solid #374151; border-radius: 20px; padding: 24px 20px; position: relative; }
.s4::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; right: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; }
.s4 h3 { margin: 8px 0 6px; font-size: 17px; }
.s4 p { margin: 0; color: #9ca3af; font-size: 14.5px; }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.lv { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.lv .band { height: 110px; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 44px; color: #fff; }
.lv:nth-child(1) .band { background: var(--gold); color: var(--ink); }
.lv:nth-child(2) .band { background: #fb923c; }
.lv:nth-child(3) .band { background: var(--red); }
.lv:nth-child(4) .band { background: var(--ink); }
.lv .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.lv h3 { margin: 0 0 6px; font-size: 18px; }
.lv p { margin: 0 0 14px; color: var(--soft); font-size: 14.5px; flex: 1; }
.lv .tag { font-size: 13px; font-weight: 700; color: var(--red); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 22px; color: var(--red); font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { margin: 0 0 16px; color: var(--ink2); }

/* Join */
.join { text-align: center; }
.join .box { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 48px 24px; max-width: 820px; margin: 0 auto; }
.join h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; }
.join p { color: var(--soft); margin: 0 0 24px; }
.join .cta { justify-content: center; }

footer { background: var(--ink); color: #9ca3af; padding: 40px 0 24px; font-size: 14px; }
footer .row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer .logo b { color: #fff; }
footer h4 { color: var(--gold); margin: 0 0 10px; font-size: 15px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer a:hover { color: #fff; }
footer .copy { border-top: 1px solid #1f2937; margin-top: 28px; padding-top: 18px; text-align: center; font-size: 13px; }

@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
  .cards, .steps4, .levels { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .links { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0; }
  .cards, .steps4, .levels { grid-template-columns: 1fr; }
  .steps4 { gap: 28px; }
  section { padding: 56px 0; }
  nav .btn { padding: 9px 14px; font-size: 14px; }
  .lead { font-size: 16.5px; }
}
