/* ==========================================================================
   Edutree — landing page styles (shared by index.html and ar.html)
   Logical properties are used throughout so the Arabic (RTL) page mirrors
   automatically.
   ========================================================================== */

:root {
  --green: #1FA463;        /* Sprout Green  */
  --green-600: #138A50;    /* Forest Green  */
  --green-50: #E7F5EE;
  --blue: #2B6BE6;         /* Knowledge Blue */
  --blue-600: #1F55C2;
  --blue-50: #EAF1FE;
  --navy: #0F2747;         /* Ink Navy */
  --navy-800: #13305A;
  --navy-700: #1C3B66;
  --navy-line: #27466F;
  --amber: #FFB23F;        /* Spark Amber */
  --amber-50: #FFF4E2;
  --mist: #F2F7F4;
  --ink: #0F2747;
  --ink-2: #3E4F66;
  --ink-3: #5B6B80;
  --on-dark: #FFFFFF;
  --on-dark-2: #C9D5E6;
  --line: #DDE6E0;
  --line-2: #E8EEEA;
  --green-dk: #34C77B;
  --blue-dk: #7FAAFF;

  --font-display: "Outfit", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(15, 39, 71, .06), 0 1px 3px rgba(15, 39, 71, .08);
  --shadow: 0 10px 30px -12px rgba(15, 39, 71, .25);
  --shadow-l: 0 30px 60px -24px rgba(15, 39, 71, .35);
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
}

[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Outfit", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Figtree", system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; color: var(--ink); }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-s { width: 18px; height: 18px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.ltr { direction: ltr; unicode-bidi: isolate; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 104px; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600);
}
[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.section--dark .eyebrow { color: var(--green-dk); }
.section-head { max-width: 760px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 600; }
.section-head p { font-size: 19px; color: var(--ink-2); }
.section--dark .section-head p { color: var(--on-dark-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(43, 107, 230, .8); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--green-50); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-block { width: 100%; }
.btn-s { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-2); box-shadow: 0 6px 24px -18px rgba(15, 39, 71, .4); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 137px; height: 38px; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 4px; justify-content: center; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 15.5px; text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--navy); background: var(--mist); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--navy); font-weight: 600; text-decoration: none; font-size: 15px; }
.lang-switch:hover { background: var(--mist); }
.lang-switch .icon { width: 18px; height: 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.mobile-panel { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 72px 88px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 600; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--green-600); }
.hero h1 .accent-blue { color: var(--blue); }
.hero-lead { font-size: 19px; color: var(--ink-2); max-width: 580px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 15px; }
.avatars { display: flex; }
.avatars span {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; margin-inline-start: -8px; font-family: var(--font-display);
}
.avatars span:first-child { margin-inline-start: 0; }
.avatars span:nth-child(1) { background: var(--navy); }
.avatars span:nth-child(2) { background: var(--blue); }
.avatars span:nth-child(3) { background: var(--green-600); }
.avatars span:nth-child(4) { background: #8A5A00; }
.avatars span:nth-child(5) { background: #fff; color: var(--navy); border-color: var(--line); }

/* dashboard mock */
.mock { position: relative; }
.mock-window { background: var(--navy); border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; color: #fff; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy-800); border-bottom: 1px solid var(--navy-line); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A5781; display: block; }
.mock-url { flex: 1; font-family: var(--font-mono); font-size: 12.5px; color: var(--on-dark-2); background: rgba(255,255,255,.06); border-radius: 8px; padding: 6px 10px; direction: ltr; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--navy); background: var(--green-dk); padding: 4px 8px; border-radius: 6px; }
.mock-body { padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mock-card { background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mock-card .mock-title { font-family: var(--font-display); font-size: 15px; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mock-card .mock-title .icon { width: 18px; height: 18px; color: var(--green-dk); }
.metric { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--on-dark-2); }
.metric strong { font-family: var(--font-display); font-size: 22px; color: #fff; font-weight: 600; }
.bar { height: 6px; border-radius: 3px; background: var(--navy-line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green-dk); border-radius: 3px; }
.feed { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--on-dark-2); }
.feed li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.feed time { flex-shrink: 0; color: var(--green-dk); font-weight: 600; }
.code {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: #D5E2F5; background: #0A1C35; border-radius: 10px; padding: 10px 12px;
  direction: ltr; text-align: left; white-space: pre; overflow: hidden;
}
.code .k { color: var(--blue-dk); } .code .s { color: var(--green-dk); } .code .c { color: #8DA2BF; } .code .a { color: var(--amber); }
.mock-wide { grid-column: 1 / -1; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.chip-green { background: rgba(52, 199, 123, .15); color: var(--green-dk); }
.chip-amber { background: rgba(255, 178, 63, .16); color: var(--amber); }
.chip-blue { background: rgba(127, 170, 255, .16); color: var(--blue-dk); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,123,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,199,123,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,123,0); } }
.stream { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--on-dark-2); direction: ltr; }
.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px;
  display: flex; gap: 10px; align-items: center; font-size: 13.5px; max-width: 260px; border: 1px solid var(--line-2);
}
.float-card .badge-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); flex-shrink: 0; }
.float-card strong { display: block; font-size: 14px; }
.float-a { inset-inline-start: -28px; bottom: -26px; }

/* ---------- stats ---------- */
.stats { padding-block: 40px; border-bottom: 1px solid var(--line-2); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 20px; border-inline-start: 3px solid var(--green); }
.stat:nth-child(2) { border-color: var(--blue); }
.stat:nth-child(3) { border-color: var(--navy); }
.stat:nth-child(4) { border-color: var(--amber); }
.stat dt { order: 2; color: var(--ink-2); font-size: 15px; }
.stat dd { order: 1; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 38px; line-height: 1.1; }

/* ---------- segmented control / tabs ---------- */
.segmented { display: inline-flex; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; gap: 4px; margin-bottom: 40px; }
.segmented button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2); font-weight: 600; cursor: pointer;
}
.segmented button[aria-selected="true"] { background: var(--navy); color: #fff; }
.segmented .icon { width: 18px; height: 18px; }
[role="tabpanel"][hidden] { display: none !important; }

/* ---------- pillars ---------- */
.pillars-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pillars-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.pillar { display: flex; flex-direction: column; gap: 14px; }
.pillar-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--green); }
.pillar:nth-child(2) .pillar-icon { background: var(--blue); }
.pillar:nth-child(3) .pillar-icon { background: var(--navy); }
.pillar:nth-child(4) .pillar-icon { background: var(--green-600); }
.pillar h3 { font-size: 22px; font-weight: 600; }
.pillar > p { color: var(--ink-2); font-size: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.feature-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.feature-list li .icon { width: 20px; height: 20px; color: var(--green-600); margin-top: 2px; }
.feature-list strong { color: var(--ink); font-weight: 600; }
.side-stack { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.widget { background: var(--navy); color: #fff; border-radius: var(--radius-l); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.widget h3 { color: #fff; font-size: 18px; font-weight: 600; }
.widget p { color: var(--on-dark-2); font-size: 14.5px; }
.notice { background: rgba(255,255,255,.06); border: 1px solid var(--navy-line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; }
.notice .icon { color: var(--amber); }
.notice p { color: #fff; font-size: 14.5px; }
.notice small { display: block; color: var(--green-dk); font-weight: 600; font-size: 12.5px; margin-bottom: 2px; }
.route { position: relative; height: 92px; border-radius: 14px; background: #0A1C35; overflow: hidden; }
.route svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; color: var(--on-dark-2); }
.route-meta strong { color: #fff; }
.eta { color: var(--navy); background: var(--green-dk); font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* corporate panel */
.corp-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.corp-intro .card h3 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.corp-intro .card p { color: var(--ink-2); }
.roi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.roi { background: var(--mist); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.roi .icon { color: var(--blue); margin-top: 2px; }
.roi strong { display: block; color: var(--ink); }
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.area { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.area .icon { color: var(--green-600); }

/* ---------- roles ---------- */
.roles-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.role-tab {
  text-align: start; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.role-tab:hover { border-color: #B9C7D4; transform: translateY(-2px); }
.role-tab[aria-selected="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.role-tab .role-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.role-tab[aria-selected="true"] .role-icon { background: var(--blue); color: #fff; }
.role-tab strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.role-tab span.desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.role-tab .more { color: var(--blue); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; margin-top: auto; }
.role-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--mist); border-radius: 28px; padding: 44px; }
.role-panel h3 { font-size: 30px; font-weight: 600; margin-block: 10px 14px; }
.role-panel .lead { color: var(--ink-2); margin-bottom: 20px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.checks li .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 2.6; margin-top: 2px; }
.console { background: var(--navy); color: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.console-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.console-row { background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.console-row .metric strong { font-size: 18px; }

/* ---------- AI section ---------- */
.ai-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.sim-card { background: var(--navy-800); border: 1px solid var(--navy-line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.sim-card h3 { font-size: 24px; font-weight: 600; }
.sim-card p { color: var(--on-dark-2); }
.teacher { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--navy-line); border-radius: 14px; padding: 12px 14px; }
.teacher .ava { width: 42px; height: 42px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); color: #fff; }
.teacher strong { display: block; color: #fff; font-size: 15.5px; }
.teacher span { color: var(--on-dark-2); font-size: 14px; }
.ai-points { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.ai-points li { display: flex; gap: 10px; color: var(--on-dark-2); font-size: 15px; }
.ai-points .icon { color: var(--green-dk); }
.terminal { background: #07162B; border: 1px solid var(--navy-line); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; min-height: 460px; }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--navy-line); font-size: 13px; color: var(--on-dark-2); }
.terminal-body { padding: 18px 20px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; color: #D5E2F5; direction: ltr; text-align: left; flex: 1; overflow: auto; }
.terminal-body .warn { color: var(--amber); }
.terminal-body .ok { color: var(--green-dk); }
.terminal-body .muted { color: #8DA2BF; }
.quiz { margin-top: 14px; border-top: 1px dashed var(--navy-line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.quiz .q-title { color: #fff; font-weight: 700; }
.quiz .correct { color: var(--green-dk); font-weight: 700; }
.cursor::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--green-dk); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- gamification ---------- */
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.game-card { display: flex; flex-direction: column; gap: 18px; }
.game-card h3 { font-size: 24px; font-weight: 600; }
.game-card > p { color: var(--ink-2); }
.me { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: #fff; border-radius: 16px; padding: 16px; }
.me-id { display: flex; gap: 12px; align-items: center; }
.me .ava { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.me strong { display: block; }
.me span { color: var(--on-dark-2); font-size: 14px; }
.me .xp { text-align: end; }
.me .xp strong { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.level { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.level .bar { background: var(--line-2); height: 8px; }
.level .bar i { background: linear-gradient(90deg, var(--green), var(--blue)); transition: width .6s ease; }
.board { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--mist); transition: background-color .3s; }
.board li.is-me { background: var(--blue-50); outline: 1.5px solid var(--blue); }
.board .rank { font-family: var(--font-display); font-weight: 700; color: var(--ink-3); }
.board li:first-child .rank { color: #9A6400; }
.board .pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13.5px; font-weight: 600; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line); }
.badge .b-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.badge:nth-child(1) .b-ico { background: var(--green); }
.badge:nth-child(2) .b-ico { background: var(--blue); }
.badge:nth-child(3) .b-ico { background: var(--navy); }
.badge:nth-child(4) .b-ico { background: #C77E00; }
.cert-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.certificate {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px 22px; text-align: center; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow-s);
}
.certificate::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid var(--green-50); border-radius: 12px; pointer-events: none; }
.certificate .watermark { position: absolute; inset-inline-end: -30px; bottom: -30px; width: 190px; opacity: .06; }
.certificate .c-logo { width: 130px; height: auto; margin-bottom: 4px; }
.certificate .c-title { font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; font-size: 13px; color: var(--green-600); text-transform: uppercase; }
[lang="ar"] .certificate .c-title { letter-spacing: 0; font-size: 15px; }
.certificate .c-name { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.certificate .c-course { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.certificate .small { font-size: 14px; color: var(--ink-2); }
.signatures { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; width: 100%; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.signatures div { border-top: 1px solid #C9D4DE; padding-top: 6px; }
.signatures strong { display: block; color: var(--navy); font-size: 13.5px; }
.seal { width: 52px; height: 52px; border-radius: 50%; background: var(--amber-50); color: #9A6400; display: grid; place-items: center; border: 2px solid var(--amber); }
.hash { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); direction: ltr; overflow-wrap: anywhere; }
.hash b { color: var(--green-600); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field input, .field select {
  min-height: 48px; padding: 10px 14px; border: 1.5px solid #CBD7E1; border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #7A8A9E; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.field input[aria-invalid="true"] { border-color: #C0362C; }
.field .err { color: #B42318; font-size: 13.5px; min-height: 0; }

/* ---------- apps ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.app-card .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
[lang="ar"] .app-card .kicker { letter-spacing: 0; font-size: 14px; }
.app-card h3 { font-size: 22px; font-weight: 600; }
.app-card p { color: var(--ink-2); font-size: 15.5px; }
.phone { margin-top: auto; align-self: center; width: 230px; border-radius: 34px; background: var(--navy); padding: 10px; box-shadow: var(--shadow); }
.phone-screen { background: #fff; border-radius: 26px; padding: 18px 14px; min-height: 250px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--navy); }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--green-50); color: var(--green-600); }
.pill-blue { background: var(--blue-50); color: var(--blue-600); }
.tile { border-radius: 12px; padding: 10px 12px; background: var(--mist); display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink); }
.tile.dark { background: var(--navy); color: #fff; }
.tile.dark small { color: var(--green-dk); }
.tile small { color: var(--ink-3); font-size: 11.5px; display: block; }
.mini-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-btns span { text-align: center; font-weight: 700; border-radius: 10px; padding: 9px 4px; background: var(--blue); color: #fff; font-size: 12px; }
.mini-btns span + span { background: var(--green-600); }
.mini-map { height: 90px; border-radius: 12px; background: #EAF1FE; position: relative; overflow: hidden; }
.mini-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- communities ---------- */
.soon { position: relative; overflow: hidden; border-radius: 32px; background: var(--navy); color: #fff; padding: 64px; }
.soon::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 360px; height: 360px; background: url("../img/edutree-symbol-reversed.svg") no-repeat center / contain; opacity: .08; pointer-events: none; }
.soon .section-head { margin-bottom: 40px; }
.soon .section-head h2 { color: #fff; }
.soon .section-head p { color: var(--on-dark-2); }
.soon-tag { align-self: flex-start; background: var(--amber); color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
[lang="ar"] .soon-tag { letter-spacing: 0; }
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; position: relative; z-index: 1; }
.soon-item { background: rgba(255,255,255,.05); border: 1px solid var(--navy-line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.soon-item .icon { color: var(--green-dk); width: 28px; height: 28px; }
.soon-item h3 { color: #fff; font-size: 19px; font-weight: 600; }
.soon-item p { color: var(--on-dark-2); font-size: 15px; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.modules { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
.modules legend { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 12px; padding: 0; }
.module {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; transition: border-color .2s, background-color .2s;
}
.module:hover { border-color: #B9C7D4; }
.module:has(input:checked) { border-color: var(--green); background: #F6FBF8; }
.module input { width: 22px; height: 22px; accent-color: var(--green-600); margin: 0; cursor: pointer; }
.module .m-name { font-weight: 600; line-height: 1.35; }
.module .m-name small { display: block; font-weight: 400; color: var(--ink-3); font-size: 14px; }
.module .m-price { font-family: var(--font-display); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.module .m-price span { color: var(--ink-3); font-weight: 400; font-size: 14px; }
.summary { position: sticky; top: calc(var(--header-h) + 24px); background: var(--navy); color: #fff; border-radius: var(--radius-l); padding: 30px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.summary h3 { color: #fff; font-size: 20px; font-weight: 600; }
.summary .total { display: flex; align-items: baseline; gap: 8px; }
.summary .total output { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.summary .total span { color: var(--on-dark-2); }
.summary .note { color: var(--on-dark-2); font-size: 14.5px; }
.summary ul { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--on-dark-2); border-top: 1px solid var(--navy-line); padding-top: 16px; min-height: 40px; }
.summary ul li { display: flex; justify-content: space-between; gap: 10px; }
.summary ul li b { color: #fff; font-weight: 600; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 18.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; margin-top: -6px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq details p { padding-bottom: 20px; color: var(--ink-2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-copy h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 600; }
.contact-copy > p { font-size: 19px; color: var(--ink-2); }
.promises { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.promises li { display: flex; gap: 14px; align-items: flex-start; }
.promises .p-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; flex-shrink: 0; }
.promises strong { display: block; }
.promises span { color: var(--ink-2); font-size: 15.5px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; box-shadow: var(--shadow); }
.form-card form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-card .full { grid-column: 1 / -1; }
.form-card .fine { font-size: 13.5px; color: var(--ink-3); }
.form-success { display: none; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-success.is-visible { display: flex; }
.form-success .s-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--ink-2); }
.selected-modules { font-size: 14px; color: var(--ink-2); background: var(--mist); border-radius: 12px; padding: 10px 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding-block: 72px 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 152px; height: 42px; }
.footer-brand p { max-width: 340px; }
.site-footer h2 { font-size: 15px; color: #fff; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); }
[lang="ar"] .site-footer h2 { letter-spacing: 0; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.status li { display: flex; gap: 8px; align-items: center; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-dk); flex-shrink: 0; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom ul { flex-direction: row; gap: 20px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .main-nav a { padding: 8px 9px; font-size: 15px; }
  .header-actions .btn-ghost { display: none; }
  .pillars-layout { grid-template-columns: minmax(0, 1fr); }
  .side-stack { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .main-nav, .header-actions .btn, .header-actions .lang-switch { display: none; }
  .header-inner { justify-content: space-between; }
  .nav-toggle { display: inline-flex; }
  .mobile-panel { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px var(--gutter) 24px; flex-direction: column; gap: 6px; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .mobile-panel.is-open { display: flex; }
  .mobile-panel a.m-link { padding: 12px 8px; border-bottom: 1px solid var(--line-2); color: var(--navy); font-weight: 600; text-decoration: none; }
  .mobile-panel .m-actions { display: grid; gap: 10px; margin-top: 12px; }
  .hero-grid, .ai-grid, .game-grid, .pricing-grid, .contact-grid, .role-panel, .corp-intro { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 48px 72px; }
  .float-a { inset-inline-start: 12px; bottom: -22px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .roles-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .soon-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-panel { padding: 28px; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 36px; }
  .section-head p, .hero-lead, .contact-copy > p { font-size: 17px; }
  .brand img { width: 122px; height: 34px; }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .pillars-grid, .side-stack, .roi-grid, .cert-form, .form-card form { grid-template-columns: minmax(0, 1fr); }
  .card, .app-card { padding: 22px; }
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1; padding: 8px 10px; font-size: 14.5px; justify-content: center; }
  .roles-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .role-tab { padding: 14px; }
  .role-tab .desc, .role-tab .more { display: none; }
  .role-tab strong { font-size: 16px; }
  .terminal { min-height: 320px; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soon { padding: 36px 22px; border-radius: 24px; }
  .summary .total output { font-size: 46px; }
  .form-card { padding: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .float-card { position: relative; inset: auto; margin-top: 14px; max-width: none; }
  .areas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat dd { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* RTL details */
[dir="rtl"] input[dir="ltr"] { text-align: right; }
[dir="rtl"] .stat dd, [dir="rtl"] .m-price, [dir="rtl"] .summary .total output, [dir="rtl"] .board .pts { unicode-bidi: plaintext; }
.terminal-body [dir="rtl"] { font-family: var(--font-body); line-height: 1.8; }
