/* Barraq marketing site — shared stylesheet for /ar/ and /en/.
   Design tokens extracted from the real Barraq brand assets (character
   renders + logo), not guessed: see README.md for the source mapping. */

:root {
  --bg: #F5F3FB;
  --bg-soft: #EBE7F6;
  --surface: #FFFFFF;
  --surface-2: #FBFAFE;
  --ink: #14172B;
  --ink-soft: #565A72;
  --ink-faint: #8B8FA8;
  --border: #E1DCEF;
  --border-strong: #CFC7E6;
  --accent: #C9871B;
  --accent-solid: #E8A025;
  --accent-contrast: #14172B;
  --shadow: 0 20px 45px -25px rgba(20, 23, 43, .35);
  --shadow-sm: 0 8px 20px -12px rgba(20, 23, 43, .3);

  --c-fahes: #2E7FBE;
  --c-khota: #A6392A;
  --c-rasheed: #2F7A3B;
  --c-sada: #623793;
  --c-kholasa: #B23A5C;

  --font-display: 'Almarai', 'Tahoma', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Tahoma', sans-serif;

  --container: 1180px;
  --radius: 26px;
  --radius-sm: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0E1A; --bg-soft: #10152A; --surface: #141A2C; --surface-2: #191F35;
    --ink: #F4F2FB; --ink-soft: #ABB0C8; --ink-faint: #6C7290;
    --border: #262C46; --border-strong: #333B5C;
    --accent: #F2B84E; --accent-solid: #F2B84E; --accent-contrast: #14172B;
    --shadow: 0 24px 55px -20px rgba(0,0,0,.6); --shadow-sm: 0 10px 24px -14px rgba(0,0,0,.55);
    --c-fahes: #6FB2E8; --c-khota: #E0725F; --c-rasheed: #6BCB74; --c-sada: #A57AD1; --c-kholasa: #E37DA0;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0E1A; --bg-soft: #10152A; --surface: #141A2C; --surface-2: #191F35;
  --ink: #F4F2FB; --ink-soft: #ABB0C8; --ink-faint: #6C7290;
  --border: #262C46; --border-strong: #333B5C;
  --accent: #F2B84E; --accent-solid: #F2B84E; --accent-contrast: #14172B;
  --shadow: 0 24px 55px -20px rgba(0,0,0,.6); --shadow-sm: 0 10px 24px -14px rgba(0,0,0,.55);
  --c-fahes: #6FB2E8; --c-khota: #E0725F; --c-rasheed: #6BCB74; --c-sada: #A57AD1; --c-kholasa: #E37DA0;
}

html[lang="en"] { --font-display: 'Poppins', 'Segoe UI', sans-serif; --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::selection { background: color-mix(in srgb, var(--accent-solid) 32%, transparent); color: var(--ink); }
html[lang="en"] body { line-height: 1.65; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }

.wrap {
  max-width: var(--container); margin-inline: auto; padding-inline: 24px;
  /* Safe-area insets are physical (a device notch doesn't care about text
     direction), so these stay left/right rather than inline-start/end --
     each falls back to the same 24px as padding-inline above when there's
     no notch, and only grows past it on a device that has one. */
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--accent-solid); color: var(--accent-contrast);
  padding: 10px 18px; border-radius: 10px; font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-solid); outline-offset: 3px; border-radius: 6px; }

section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent-solid) 14%, transparent); padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-solid); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-head.centered { margin-inline: auto; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent-solid); color: var(--accent-contrast); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent-solid); color: var(--accent); }
.btn:active { transform: scale(.96); }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); border-color: var(--border); box-shadow: 0 10px 30px -24px rgba(20,23,43,.6); }
.header-inner { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
/* A single gems-only mark (no wordmark text baked in) works unchanged on
   both themes, so the header no longer needs a light/dark image swap --
   that swap is what silently broke: the full logo's white/navy background
   removal missed the dark variant's actual background color, so it kept
   rendering as an opaque square in dark mode. The full icon+wordmark lockup
   is still used at hero/footer size, where the wordmark is actually legible. */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; filter: drop-shadow(0 4px 10px rgba(232,160,37,.3)); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 28px; margin-inline-start: 12px; flex: 1; }
.main-nav a { position: relative; font-size: .95rem; font-weight: 600; color: var(--ink-soft); padding-block: 4px; }
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--accent-solid); transform: scaleX(0); transform-origin: center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.pill-btn { border: 1.5px solid var(--border-strong); border-radius: 999px; min-height: 44px; padding-inline: 16px; font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.pill-btn:hover { border-color: var(--accent-solid); color: var(--accent); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: var(--accent-solid); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-moon { display: block; } .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: none; } :root[data-theme="dark"] .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}
@media (max-width: 900px) { .main-nav { display: none; } .header-actions .cta-btn { display: none; } }

/* ============ Hero ============ */
.hero { padding-block: 64px 40px; overflow: hidden; position: relative; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; width: 46vw; height: 46vw; max-width: 520px; max-height: 520px;
  border-radius: 50%; filter: blur(90px); opacity: .28; pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
.hero::before { top: -10%; inset-inline-start: -8%; background: var(--c-sada); }
.hero::after { bottom: -18%; inset-inline-end: -10%; background: var(--c-fahes); animation-delay: -9s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(6%, 8%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; max-width: var(--container); margin-inline: auto; }
.hero-brandmark { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-bottom: -8px; animation: brandmark-pulse 4s ease-in-out infinite; }
.hero-brandmark img { width: 112px; height: auto; filter: drop-shadow(0 10px 26px rgba(232,160,37,.3)); }
.hero-brandmark span { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; line-height: 1; color: var(--ink); }
@keyframes brandmark-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero-brandmark { animation: none; } }
.hero h1 { max-width: 800px; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.5rem); font-weight: 800; }
.hero h1 .hl { color: var(--accent); }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag { font-size: .82rem; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; display: flex; align-items: center; gap: 6px; background: var(--surface-2); }

.constellation {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center;
  gap: clamp(14px, 2.2vw, 28px); width: 100%; max-width: 1040px; margin-top: 20px;
}
.orb {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  flex: 0 1 calc((100% - 112px) / 5); min-width: 120px; max-width: 176px; aspect-ratio: .82;
}
.orb-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent) 0%, transparent 70%); filter: blur(6px); animation: pulse 5s ease-in-out infinite; }
.orb img { position: relative; width: 100%; margin-inline: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.25)); animation: float 6s ease-in-out infinite; }
.orb[data-char="sada"] img { animation-delay: .2s; } .orb[data-char="kholasa"] img { animation-delay: .8s; }
.orb[data-char="rasheed"] img { animation-delay: 1.4s; } .orb[data-char="khota"] img { animation-delay: .5s; }
@keyframes float {
  0%,100% { transform: translate3d(0,0,0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
  50% { transform: translate3d(0,-10px,0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
}
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .85; transform: scale(1.08); } }
@media (max-width: 900px) {
  .constellation { max-width: 650px; }
  .orb { flex-basis: calc((100% - 56px) / 3); max-width: 180px; }
}
@media (max-width: 560px) {
  .constellation { max-width: 390px; gap: 18px; }
  .orb { flex-basis: calc((100% - 18px) / 2); min-width: 0; max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .orb img, .orb-glow { animation: none; }
}

.scroll-cue { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-faint); font-size: .8rem; }
.scroll-cue .line { width: 1px; height: 30px; background: linear-gradient(var(--border-strong), transparent); animation: dropline 2s ease-in-out infinite; }
@keyframes dropline { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .line { animation: none; opacity: .6; } }

.reveal { opacity: 1; transform: none; transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s ease var(--reveal-delay, 0ms); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); }
  .reveal.in-view { opacity: 1; transform: none; }
}

/* ============ How it works ============ */
.journey { padding-block: 90px; background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; inset-inline: 8%; height: 2px; background: repeating-linear-gradient(to right, var(--border-strong) 0 10px, transparent 10px 18px); }
html[dir="rtl"] .steps::before { background: repeating-linear-gradient(to left, var(--border-strong) 0 10px, transparent 10px 18px); }
.step { position: relative; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-solid); color: var(--accent); font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 20px; position: relative; z-index: 2; }
.step h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ============ Characters ============ */
.characters { padding-block: 90px; }
.char-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1040px) { .char-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  /* 5 cards in a 2-column grid leave the last one alone in its row --
     center it at one column's width instead of stranding it flush-start
     next to a bare gap. */
  .char-grid > .char-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 10px); margin-inline: auto; }
}
@media (max-width: 460px) { .char-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .char-grid > .char-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; width: 100%; } }
.char-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px 24px; text-align: center; cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease; display: flex; flex-direction: column; align-items: center;
}
.char-card:hover, .char-card:focus-within { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow); border-color: var(--card-color, var(--accent-solid)); }
.char-figure { position: relative; width: 100%; aspect-ratio: 1/1; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 14px; }
.char-figure::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--card-color) 30%, transparent) 0%, transparent 72%); }
.char-figure img { position: relative; width: 82%; transition: opacity .4s ease; }
.char-figure img.alt { position: absolute; inset: 0; margin: auto; width: 82%; opacity: 0; }
.char-card:hover .char-figure img.alt, .char-card:focus-within .char-figure img.alt { opacity: 1; }
.char-card:hover .char-figure img.base, .char-card:focus-within .char-figure img.base { opacity: 0; }
.char-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--card-color); margin-bottom: 2px; }
.char-role { font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 12px; }
.char-desc { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.char-quote { font-size: .85rem; font-weight: 600; color: var(--ink); border-inline-start: 3px solid var(--card-color); padding-inline-start: 10px; text-align: start; }
.char-card[data-char="fahes"] { --card-color: var(--c-fahes); } .char-card[data-char="khota"] { --card-color: var(--c-khota); }
.char-card[data-char="rasheed"] { --card-color: var(--c-rasheed); } .char-card[data-char="sada"] { --card-color: var(--c-sada); } .char-card[data-char="kholasa"] { --card-color: var(--c-kholasa); }

.sada-demo {
  margin-top: 32px; display: flex; align-items: flex-start; gap: 18px;
  background: var(--surface); border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 22px 24px; max-width: 640px; margin-inline: auto;
}
.sada-demo-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.sada-demo-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--c-sada); }
.sada-demo-body p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 10px; }
.sada-demo-badge { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 700; color: var(--c-sada); background: color-mix(in srgb, var(--c-sada) 14%, transparent); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 520px) { .sada-demo { flex-direction: column; align-items: flex-start; } }

/* ============ Quiz ============ */
.quiz { padding-block: 90px; background: var(--bg-soft); }
.quiz-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 720px; margin-inline: auto; box-shadow: var(--shadow-sm); }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.quiz-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--border); }
.quiz-progress span.done { background: var(--accent-solid); }
.quiz-q { display: none; } .quiz-q.active { display: block; }
.quiz-q h3 { font-size: 1.2rem; margin-bottom: 18px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { text-align: start; padding: 14px 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: .95rem; font-weight: 600; transition: border-color .2s ease, background .2s ease; }
.quiz-opt:hover { border-color: var(--accent-solid); background: var(--surface-2); }
.quiz-result { display: none; text-align: center; }
.quiz-result.active { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.quiz-result img { width: 150px; }
.quiz-result h3 { font-size: 1.4rem; }
.quiz-result p { color: var(--ink-soft); }
.quiz-result-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 4px; }
.quiz-restart { font-weight: 700; color: var(--accent); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.quiz-share { white-space: normal; }
.quiz-share-status {
  font-size: .85rem; font-weight: 700; color: #2F8F4E; opacity: 0; margin-top: 4px;
  transition: opacity .3s ease;
}
.quiz-share-status.visible { opacity: 1; }
.quiz-share-fallback {
  margin-top: 4px; width: 100%; max-width: 320px; padding: 10px 14px; border-radius: 999px;
  border: 1.5px solid var(--border-strong); background: var(--surface-2); color: var(--ink);
  font-size: .85rem; text-align: center;
}
@media (prefers-reduced-motion: reduce) { .quiz-share-status { transition: none; } }

/* ============ Features ============ */
.features { padding-block: 90px; }
.feat-row { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--border); align-items: start; }
.feat-row:first-child { border-top: 1px solid var(--border); }
.feat-num { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.feat-body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; justify-content: space-between; }
.feat-tab { width: 10px; height: 10px; border-radius: 50%; background: var(--feat-color, var(--accent-solid)); flex-shrink: 0; }
.feat-body p { color: var(--ink-soft); font-size: .95rem; max-width: 62ch; }
.feat-owner { font-size: .78rem; font-weight: 700; color: var(--feat-color, var(--accent)); margin-inline-start: auto; white-space: nowrap; }
@media (max-width: 620px) { .feat-row h3 { flex-wrap: wrap; } .feat-owner { margin-inline-start: 0; } }

/* ============ FAQ ============ */
.faq { padding-block: 90px; background: var(--bg-soft); }
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; min-height: 44px;
  font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--accent); flex-shrink: 0; transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent-solid) 45%, var(--border)); box-shadow: var(--shadow-sm); }
.faq-item .faq-a { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); font-size: .95rem; }
.faq-item .faq-a a { color: var(--accent); font-weight: 600; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* ============ About ============ */
.about { padding-block: 90px; background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.about-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; background: var(--surface); border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; margin-bottom: 20px; }
.about-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #3AA65A; box-shadow: 0 0 0 3px color-mix(in srgb, #3AA65A 25%, transparent); }
.team-list { display: flex; flex-direction: column; gap: 14px; }
.team-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.team-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1rem; flex-shrink: 0; }
.team-name { font-weight: 700; font-size: .95rem; }
.team-role { font-size: .82rem; color: var(--ink-soft); }

/* ============ Waitlist ============ */
.waitlist { padding-block: 90px; }
.waitlist-box { max-width: 640px; margin-inline: auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px 32px; box-shadow: var(--shadow-sm); }
.waitlist-box h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin-bottom: 12px; }
.waitlist-box > p { color: var(--ink-soft); margin-bottom: 24px; }
.waitlist-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 100%; }
.waitlist-form input {
  display: block; width: 100%; min-width: 0;
  padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--border-strong);
  background: var(--surface-2); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.waitlist-form input:focus { border-color: var(--accent-solid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-solid) 18%, transparent); outline: none; }
.waitlist-form .btn { grid-column: 1 / -1; width: 100%; min-width: 0; }
.waitlist-form .waitlist-phone { grid-column: 1 / -1; }
/* dir="ltr" keeps typed digits and "+963" in order; the Arabic placeholder
   still needs RTL shaping and alignment to match the inputs beside it. */
html[dir="rtl"] .waitlist-form .waitlist-phone { text-align: right; }
html[dir="rtl"] .waitlist-form .waitlist-phone:placeholder-shown { direction: rtl; }
@media (max-width: 560px) { .waitlist-form { grid-template-columns: 1fr; } }
.waitlist-note { margin-top: 14px; font-size: .78rem; color: var(--ink-faint); }
.waitlist-note a { color: var(--accent); text-decoration: underline; }
.waitlist-success { display: none; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: #2F8F4E; margin-top: 14px; }
.waitlist-success.active { display: flex; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); padding-block: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-tag { color: var(--ink-soft); font-size: .85rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: .85rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { width: 100%; text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border); font-size: .78rem; color: var(--ink-faint); }

/* ============ Loading screen ============ */
/* Same visual language as the hero's blurred color blobs (see .hero::before/
   ::after above) -- five "smoke" blobs in the five character colors, so the
   splash reads as part of the same design system instead of a novel effect
   bolted on. Smoke drifts/rotates behind the logo, the logo+wordmark reveal
   with a short scale-in, then everything fades out together. */
.loading-screen {
  position: fixed; inset: 0; z-index: 999; background: #0B0E1A; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  transition: opacity .6s ease;
}
.loading-screen.is-hidden { opacity: 0; pointer-events: none; }

.loading-smoke { position: absolute; inset: 0; z-index: 0; filter: blur(60px) saturate(1.4); }
.loading-smoke .smoke {
  position: absolute; width: 44vw; height: 44vw; min-width: 260px; min-height: 260px;
  max-width: 480px; max-height: 480px; border-radius: 50%; opacity: 0; mix-blend-mode: screen;
  animation: smoke-in .9s ease forwards, smoke-drift 7s ease-in-out infinite 4.5s;
}
.smoke-fahes   { background: #2E7FBE; top: -12%;  inset-inline-start: -10%; animation-delay: 0s,   .9s; }
.smoke-khota   { background: #A6392A; top: 6%;     inset-inline-end: -16%;  animation-delay: .15s, 1.05s; }
.smoke-rasheed { background: #2F7A3B; bottom: -18%; inset-inline-start: 4%; animation-delay: .3s,  1.2s; }
.smoke-sada    { background: #623793; top: -16%;   inset-inline-start: 34%; animation-delay: .45s, 1.35s; }
.smoke-kholasa { background: #B23A5C; bottom: -14%; inset-inline-end: 8%;   animation-delay: .6s,  1.5s; }
@keyframes smoke-in { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: .5; transform: scale(1); } }
@keyframes smoke-drift {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: .38; }
  50%      { transform: translate(5%, -6%) scale(1.18) rotate(18deg); opacity: .58; }
}

.loading-mark { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loading-logo {
  width: 142px; height: auto; opacity: 0; filter: drop-shadow(0 10px 30px rgba(232,160,37,.4));
  animation: logo-reveal 1s cubic-bezier(.2,.8,.2,1) .1s forwards, loader-spin 4.2s cubic-bezier(.55,.05,.45,.95) 1.1s infinite;
}
@keyframes logo-reveal {
  0%   { opacity: 0; transform: scale(.35) rotate(-20deg); }
  65%  { opacity: 1; transform: scale(1.12) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes loader-spin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

.loading-name {
  position: relative; z-index: 2; font-family: var(--font-display); font-weight: 800;
  font-size: 1.6rem; letter-spacing: .01em; color: #F4F2FB; opacity: 0;
  animation: name-reveal .8s ease .6s forwards;
}
@keyframes name-reveal { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }

.loading-screen .loading-bar {
  position: relative; z-index: 2; width: 140px; height: 3px; border-radius: 3px;
  background: rgba(244,242,251,.12); overflow: hidden; opacity: 0; animation: name-reveal .6s ease .9s forwards;
}
.loading-screen .loading-bar::after {
  content: ""; display: block; height: 100%; width: 40%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #F2B84E, transparent);
  animation: loader-sweep 1.3s ease-in-out infinite;
}
@keyframes loader-sweep { 0% { transform: translateX(-140%); } 100% { transform: translateX(280%); } }

@media (prefers-reduced-motion: reduce) {
  .loading-smoke .smoke { animation: none; opacity: .3; }
  .loading-logo { animation: none; opacity: 1; }
  .loading-name { animation: none; opacity: 1; transform: none; }
  .loading-screen .loading-bar { animation: none; opacity: 1; }
  .loading-screen .loading-bar::after { animation: none; width: 100%; }
}

/* ============ Pseudo-3D tilt (character orbs + cards) ============ */
/* --tilt-x/--tilt-y/--shine-x/--shine-y are set inline by js/main.js on
   pointermove; they default to a neutral, flat state so the effect is a
   pure enhancement -- everything still looks correct with JS off. */
.orb, .char-card {
  --tilt-x: 0deg; --tilt-y: 0deg; --shine-x: 50%; --shine-y: 50%;
}
.orb { perspective: 700px; }
.orb img {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .15s ease-out;
  transform-style: preserve-3d;
}
.char-card {
  perspective: 900px;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transition: transform .15s ease-out, box-shadow .35s ease, border-color .35s ease;
}
.char-card:hover, .char-card:focus-within { transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-8px) scale(1.02); }
.char-figure { isolation: isolate; }
.char-figure::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255,255,255,.35), transparent 55%);
  mix-blend-mode: soft-light;
}
@media (prefers-reduced-motion: reduce) {
  .orb img, .char-card { transition: none; }
}

/* ============ Waitlist social proof + error ============ */
.waitlist-count {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700;
  color: var(--accent); background: color-mix(in srgb, var(--accent-solid) 12%, transparent);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 18px;
}
.waitlist-count::before { content: "●"; font-size: .55rem; color: #3AA65A; }
.waitlist-error {
  margin-top: 12px; font-size: .85rem; font-weight: 600; color: #C0392B;
  background: color-mix(in srgb, #C0392B 10%, transparent); padding: 10px 16px; border-radius: var(--radius-sm);
}

/* ============ Legal pages (privacy policy) ============ */
.legal { padding-block: 90px; }
.legal .wrap { max-width: 760px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); margin-bottom: 28px; min-height: 44px; }
.legal-back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem); font-weight: 800; margin-bottom: 10px; }
.legal .updated { font-size: .85rem; color: var(--ink-faint); margin-bottom: 32px; }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin-top: 32px; margin-bottom: 10px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: .98rem; margin-bottom: 14px; overflow-wrap: anywhere; }
.legal ul { padding-inline-start: 20px; list-style: disc; }
.legal a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ============ Not found ============ */
.not-found-page { min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); }
.not-found-page .site-header { position: relative; }
.not-found-main { flex: 1; display: grid; place-items: center; padding-block: clamp(48px, 8vw, 96px); overflow: hidden; }
.not-found-card {
  position: relative; isolation: isolate; width: min(100%, 820px); margin-inline: auto; padding: clamp(28px, 6vw, 64px);
  text-align: center; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border);
  border-radius: clamp(22px, 4vw, 36px); box-shadow: var(--shadow);
}
.not-found-card::before, .not-found-card::after {
  content: ""; position: absolute; z-index: -1; width: 220px; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .28;
  animation: drift 12s ease-in-out infinite alternate;
}
.not-found-card::before { background: var(--c-sada); top: -70px; inset-inline-start: -60px; }
.not-found-card::after { background: var(--c-fahes); bottom: -80px; inset-inline-end: -50px; animation-delay: -5s; }
.not-found-code { display: block; font-family: var(--font-display); font-size: clamp(4.8rem, 18vw, 9rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: var(--accent); text-shadow: 0 12px 36px color-mix(in srgb, var(--accent-solid) 24%, transparent); }
.not-found-character { --tilt-x: 0deg; --tilt-y: 0deg; width: clamp(130px, 25vw, 210px); margin: -18px auto 4px; filter: drop-shadow(0 18px 20px rgba(0,0,0,.22)); animation: float 5s ease-in-out infinite; }
.not-found-card h1 { font-size: clamp(1.65rem, 1.1rem + 2.2vw, 2.65rem); margin-bottom: 12px; }
.not-found-card p { max-width: 560px; margin-inline: auto; color: var(--ink-soft); font-size: clamp(1rem, .95rem + .25vw, 1.12rem); }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.not-found-path { display: inline-block; max-width: 100%; margin-top: 18px; padding: 6px 12px; border-radius: 10px; background: var(--bg-soft); color: var(--ink-faint); font-size: .78rem; direction: ltr; overflow-wrap: anywhere; }
.lang-en[hidden], .lang-ar[hidden] { display: none !important; }

/* ============ Responsive rhythm ============ */
@media (max-width: 1024px) {
  :root { --container: 960px; }
  .header-inner { gap: 14px; }
  .main-nav { gap: 18px; margin-inline-start: 4px; }
}
@media (max-width: 760px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .hero { padding-block: 46px 28px; }
  .hero-inner { gap: 22px; }
  .hero .lede { font-size: 1.05rem; }
  .journey, .characters, .quiz, .features, .faq, .about, .waitlist, .legal { padding-block: 64px; }
  .section-head { margin-bottom: 34px; }
  .quiz-box { padding: 24px 18px; }
  .waitlist-box { padding: 36px 20px; }
  .footer-inner { align-items: flex-start; }
  .footer-links { gap: 12px 18px; }
}
@media (max-width: 420px) {
  .header-inner { padding-block: 10px; }
  .brand-name { display: none; }
  .pill-btn { min-height: 42px; padding-inline: 13px; }
  .icon-btn { width: 42px; height: 42px; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.35rem); }
  .hero-ctas, .not-found-actions { width: 100%; }
  .hero-ctas .btn, .not-found-actions .btn { width: 100%; }
  .tag { font-size: .78rem; }
  .feat-row { grid-template-columns: 42px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .faq-item { transition: none; }
  .not-found-card::before, .not-found-card::after, .not-found-character { animation: none; }
}

