/* Reichman University palette (taken from runi.ac.il): royal blue #0f2d96, sky blue #46a1d8 */
:root {
  --blue: #0f2d96;
  --blue-deep: #0a1f6b;
  --blue-ink: #08174f;
  --sky: #46a1d8;
  --sky-soft: #e9f4fb;
  --coral: #c2491f;   /* darkened from the brand coral (#e87750) so white text on it passes WCAG AA (4.9:1) */
  --sky-text: #1f6aa5; /* sky-blue for text on light backgrounds (5.7:1); --sky stays for decoration */
  --bg: #ffffff;
  --tint: #f4f6fb;
  --ink: #111a36;
  --muted: #5a6382;
  --line: #e2e6f0;
  --ok: #0d7a52;
  --ok-soft: #e6f5ee;
  --warn: #9a5a00;
  --warn-soft: #fff4e0;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 31, 107, .06), 0 8px 28px rgba(10, 31, 107, .08);
  --shadow-lg: 0 2px 6px rgba(10, 31, 107, .08), 0 24px 60px rgba(10, 31, 107, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 .8em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; top: -80px; inset-inline-start: 16px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.small { font-size: .875rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; } /* blue ring + white halo: visible on light and dark backgrounds */

/* ---------- loading screen ---------- */
body.is-loading { overflow: hidden; }
.splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; color: #fff; text-align: center;
  background: radial-gradient(900px 500px at 80% -10%, #2a52d6 0%, transparent 60%), linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 55%, var(--blue-ink) 100%);
  transition: opacity .5s ease, visibility .5s ease;
  /* Failsafe: if the script never finishes, the screen still disappears. */
  animation: splashFailsafe .5s ease 15s forwards; }
.splash--done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash__glow { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at center, #000 0%, transparent 70%); pointer-events: none; }
.splash__in { position: relative; display: flex; flex-direction: column; align-items: center; width: min(600px, 100%); animation: fadeIn .5s ease both; }
.splash__brand { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; margin-bottom: 44px; }
.splash__brand img { height: 46px; width: auto; }
.splash__divider { width: 1px; height: 30px; background: rgba(255,255,255,.35); }
.splash__orbit { position: relative; width: 120px; height: 120px; margin-bottom: 36px; }
.splash__orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); }
.splash__core { position: absolute; inset: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; background: rgba(255,255,255,.1); box-shadow: 0 0 0 0 rgba(70,161,216,.5); animation: corePulse 1.8s ease-out infinite; }
.splash__orbit i { position: absolute; inset: 0; animation: orbit 1.6s cubic-bezier(.55,.1,.45,.9) infinite; }
.splash__orbit i::before { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 14px var(--sky); }
.splash__orbit i:nth-of-type(2) { animation-delay: -.2s; } .splash__orbit i:nth-of-type(2)::before { background: #8fd0f7; width: 9px; height: 9px; margin-left: -4.5px; }
.splash__orbit i:nth-of-type(3) { animation-delay: -.4s; } .splash__orbit i:nth-of-type(3)::before { background: #fff; width: 6px; height: 6px; margin-left: -3px; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes corePulse { 70% { box-shadow: 0 0 0 18px rgba(70,161,216,0); } 100% { box-shadow: 0 0 0 0 rgba(70,161,216,0); } }
.splash__title { font-size: clamp(1.35rem, 4.5vw, 1.75rem); font-weight: 800; line-height: 1.3; margin: 0 0 10px; }
.splash__step { color: #c7d2f7; font-size: .98rem; min-height: 1.6em; margin: 0 0 22px; }
.splash__bar { width: 220px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.splash__bar i { display: block; height: 100%; width: 8%; border-radius: 99px; background: linear-gradient(90deg, #8fd0f7, var(--sky)); transition: width .45s ease; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.topbar__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand__divider { width: 1px; height: 28px; background: rgba(255,255,255,.35); }
.brand__name { font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; opacity: .9; }
.nav a:hover { background: rgba(255,255,255,.12); opacity: 1; }
/* Language toggle in the top bar */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: .88rem; padding: 6px 14px; border-radius: 999px; white-space: nowrap; transition: background .15s, border-color .15s; }
.lang-btn:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.nav + .lang-btn { margin-inline-start: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #c9d2f0; }
.live i { position: relative; }
.live.is-live i { background: #4ade80; }
/* Pulse via transform/opacity on a pseudo-element (an animated box-shadow would repaint the header every frame). */
.live.is-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4ade80; animation: pulse 2s ease-out infinite; }
.live.is-offline i { background: #fbbf24; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 16px 30px; font-size: 1.08rem; }
.btn--block { width: 100%; margin-top: 16px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(15,45,150,.25); }
.btn--primary:hover { background: var(--blue-deep); }
.btn--primary:disabled { background: #b8c1dd; box-shadow: none; cursor: not-allowed; }
.btn--light { background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.btn--light:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn--outline { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn--sky { background: var(--sky); color: #fff; }
.btn--sky:hover { background: #3690c6; }
.btn--link { background: none; color: var(--blue); padding: 10px 8px; }
.btn--link:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #2a52d6 0%, transparent 60%), linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 55%, var(--blue-ink) 100%); }
.hero__glow { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero__in { position: relative; padding-top: 88px; padding-bottom: 56px; }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.preview { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.preview__card { background: #fff; color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.preview__card + .preview__card { margin-top: 14px; }
.preview__card--main { transform: rotate(-2deg); animation: float 6s ease-in-out infinite; }
.preview__card--back { transform: rotate(2.5deg) scale(.94); opacity: .9; margin-inline-start: 28px; animation: float 6s ease-in-out -3s infinite; }
.preview__top { display: flex; align-items: center; gap: 12px; }
.preview__top .ring { margin-inline-start: auto; }
.preview__tag { font-size: .75rem; font-weight: 800; color: var(--sky-text); margin-bottom: 4px; }
.preview .reasons { margin: 14px 0 0; }
.preview .reasons li { font-size: .86rem; }
@keyframes float { 50% { translate: 0 -10px; } }
.eyebrow { display: inline-block; font-weight: 700; color: #bfe3fa; background: rgba(70,161,216,.14); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; letter-spacing: .02em; }
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.02; }
.hero__accent { background: linear-gradient(90deg, #8fd0f7, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 620px; font-size: clamp(1.08rem, 1.8vw, 1.3rem); margin: 28px 0 32px; color: #dfe6ff; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 32px; color: #c7d2f7; }
.hero__facts b { color: #fff; font-size: 1.4rem; font-weight: 800; margin-inline-end: 4px; }

/* Logo strip: each row is its own GPU layer and only `transform` animates, so the browser never repaints mid-scroll.
   Laid out left-to-right (the page is RTL) and slid by exactly one logo-set width (--shift, set in app.js).
   Items use a trailing margin (not `gap`) so one set's width is exact and the loop has no jump. */
.marquee { position: relative; padding: 26px 0 40px; display: grid; gap: 14px; overflow: hidden; isolation: isolate; direction: ltr; justify-items: start;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__row { display: flex; width: max-content; direction: ltr; will-change: transform; backface-visibility: hidden; contain: layout style;
  animation: scroll 60s linear infinite; }
.marquee__row--rev { animation-direction: reverse; }
.marquee--paused .marquee__row, .marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__item { flex: none; width: 76px; height: 76px; margin-right: 14px; border-radius: 20px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.marquee__item img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.marquee__item--cover img { object-fit: cover; padding: 0; }
@keyframes scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--shift, -50%), 0, 0); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.kicker { font-weight: 800; color: var(--sky-text); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: 10px; }
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; max-width: 860px; margin-bottom: 16px; }
.h3 { font-size: 1.35rem; font-weight: 800; margin: 48px 0 16px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 56px; }
.stat { background: var(--tint); border-radius: var(--radius); padding: 26px 22px; }
.stat b { display: block; font-size: 2.6rem; font-weight: 900; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-weight: 500; }

.founder { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: start; background: linear-gradient(135deg, var(--sky-soft), #fff 70%); border: 1px solid var(--line); border-radius: 28px; padding: 44px; }
.founder__side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.founder__photo { position: relative; display: block; width: 176px; height: 176px; border-radius: 50%; padding: 5px; background: conic-gradient(from 200deg, var(--blue), var(--sky), #8fd0f7, var(--blue)); box-shadow: var(--shadow-lg); transition: transform .2s; }
.founder__photo:hover { transform: scale(1.03); }
.founder__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: var(--sky-soft); }
.founder__ig { position: absolute; bottom: 8px; inset-inline-end: 8px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border: 3px solid #fff; }
.founder__ig svg { width: 20px; height: 20px; }
.founder__handle { font-weight: 700; color: var(--blue); text-decoration: none; font-size: .95rem; }
.founder__handle:hover { text-decoration: underline; }
.founder__year { display: inline-block; background: var(--coral); color: #fff; font-weight: 800; font-size: .9rem; padding: 5px 14px; border-radius: 999px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(232, 119, 80, .3); }
.founder__hi { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.founder__why { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--blue); border-radius: 14px; padding: 16px 18px; margin: 4px 0 6px; max-width: 720px; }
.founder__why b { display: block; color: var(--blue); font-size: 1.05rem; margin-bottom: 4px; }
.founder__why span { color: #2a3354; font-size: 1.02rem; line-height: 1.6; }
.founder__tagline { font-size: 1.25rem !important; font-weight: 500; color: var(--blue) !important; margin-bottom: 14px; }
.founder__chips { margin-bottom: 18px; }
.founder__body p { font-size: 1.08rem; color: #2a3354; max-width: 720px; }
.founder__proof { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 720px; }
.founder__proof li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.founder__proof b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--blue); line-height: 1.1; }
.founder__proof span { font-size: .85rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 4px; }
.founder__quote { margin: 0 0 22px; padding: 4px 18px; border-inline-start: 4px solid var(--sky); font-size: 1.15rem; font-weight: 600; color: var(--ink); max-width: 720px; }
.founder__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.founder__dm { margin: 0; }
.btn--ig { color: #fff; background: linear-gradient(90deg, #c13584, #833ab4 55%, #5851db); box-shadow: 0 8px 20px rgba(193, 53, 132, .25); }
.btn--ig:hover { filter: brightness(1.07); transform: translateY(-1px); }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 16px; }
.steps h4 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- quiz ---------- */
.quiz { background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); padding: 48px; min-height: 420px; }
.quiz__intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0; }
.quiz__intro .h2 { margin-inline: auto; }
.quiz__intro .btn--primary { margin-top: 16px; }
.quiz__top { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.quiz__count { font-weight: 700; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.progress { flex: 1; height: 8px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--blue)); border-radius: 99px; transition: width .35s ease; }
html[dir="rtl"] .progress i { margin-inline-start: 0; }
.quiz__q { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 6px; outline: none; }
#resultsTitle:focus { outline: none; box-shadow: none; } /* focused by script to announce results; not an interactive control */
.quiz__hint { color: var(--muted); min-height: 1.6em; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 20px 0 32px; }
.options--wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.opt { position: relative; display: flex; align-items: center; gap: 12px; text-align: start; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; padding-inline-end: 36px; color: var(--ink); transition: border-color .15s, background .15s, transform .15s; }
.opt:hover { border-color: var(--sky); transform: translateY(-1px); }
.opt[aria-pressed="true"] { border-color: var(--blue); background: #eef2ff; box-shadow: inset 0 0 0 1px var(--blue); }
.opt[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 8px; inset-inline-end: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .72rem; display: grid; place-items: center; font-weight: 900; }
.opt:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.opt__icon { font-size: 1.5rem; line-height: 1; flex: none; }
.opt__label { font-weight: 600; line-height: 1.3; }
.opt__sub { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: 2px; }
/* degree picker */
.degree { margin: 18px 0 28px; display: grid; gap: 14px; }
.degree__picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 34px; }
.degree__label { font-weight: 700; font-size: .9rem; }
.chip--pick { border: 0; cursor: pointer; background: var(--blue); color: #fff; font-size: .88rem; padding: 6px 14px; }
.chip--pick b { opacity: .7; font-weight: 400; margin-inline-start: 4px; }
.chip--pick:hover b { opacity: 1; }
.degree__search input { width: 100%; font: inherit; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.degree__search input:focus { border-color: var(--blue); }
.degree__list { max-height: 400px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; padding: 6px 16px 16px; overscroll-behavior: contain; }
.degree__group h4 { position: sticky; top: 0; background: #fff; padding: 12px 0 8px; font-size: .95rem; color: var(--blue); z-index: 1; }
.degree__tracks { display: flex; flex-wrap: wrap; gap: 8px; }
.degree__empty { color: var(--muted); text-align: center; padding: 24px 0; margin: 0; }
.degree__specs h4 { font-size: .95rem; margin-bottom: 8px; }
.degree__specs h4 .muted { font-weight: 400; }
.track { display: inline-flex; align-items: center; gap: 8px; text-align: start; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 14px; color: var(--ink); font-weight: 500; line-height: 1.3; transition: border-color .15s, background .15s; }
.track:hover { border-color: var(--sky); }
.track small { flex: none; font-size: .72rem; font-weight: 700; color: var(--blue-deep); background: var(--sky-soft); padding: 2px 8px; border-radius: 999px; }
.track[aria-pressed="true"] { border-color: var(--blue); background: #eef2ff; box-shadow: inset 0 0 0 1px var(--blue); }
.track[aria-pressed="true"]::before { content: "✓"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 900; display: grid; place-items: center; }
.track--spec { border-style: dashed; }

.quiz__nav { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; }
.quiz__loading { display: grid; place-items: center; text-align: center; gap: 18px; padding: 80px 0; font-size: 1.15rem; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid var(--sky-soft); border-top-color: var(--blue); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- results ---------- */
.results__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.results__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--sky-soft); color: var(--blue-deep); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.chip--new { background: var(--coral); color: #fff; }
.chip--plain { background: var(--tint); color: var(--muted); }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.mcard--1 { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.mcard__rank { position: absolute; top: -14px; inset-inline-start: 22px; background: var(--blue); color: #fff; font-weight: 800; font-size: .85rem; padding: 4px 14px; border-radius: 999px; }
.mcard--1 .mcard__rank { background: linear-gradient(90deg, var(--blue), var(--sky)); }
.mcard__head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.mcard__name { font-size: 1.2rem; font-weight: 800; }
.mcard__en { color: var(--muted); font-size: .85rem; text-align: start; }
[dir="rtl"] .mcard__en, [dir="rtl"] [dir="auto"] { text-align: right; }
[dir="ltr"] .mcard__en, [dir="ltr"] [dir="auto"] { text-align: left; }
.mcard__ring { margin-inline-start: auto; flex: none; }
.reasons { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.reasons li { position: relative; padding-inline-start: 26px; font-size: .95rem; color: #2a3354; line-height: 1.45; }
.reasons li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: .7rem; font-weight: 900; display: grid; place-items: center; }
.reasons li.warn::before { content: "!"; background: var(--warn-soft); color: var(--warn); }
.reasons li.warn { color: var(--warn); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .88rem; margin: auto 0 18px; padding-top: 12px; border-top: 1px dashed var(--line); }
.meta span { white-space: nowrap; }
.mcard__actions { display: flex; gap: 8px; }
.mcard__actions .btn { flex: 1; padding: 11px 14px; }

.ring { display: inline-block; flex: none; width: 64px; height: 64px; position: relative; }
.ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: var(--tint); }
.ring .fg { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: var(--blue); }
.ring--sm { width: 48px; height: 48px; }
.ring--sm b { font-size: .82rem; }

.ranklist { display: grid; gap: 10px; }
.rrow { display: grid; grid-template-columns: 36px auto 1fr auto auto; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; text-align: start; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
.rrow:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.rrow__n { font-weight: 800; color: var(--muted); }
.rrow__name { font-weight: 700; }
.rrow__why { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow__main { min-width: 0; }
.rrow__day { color: var(--muted); font-size: .86rem; white-space: nowrap; }

/* ---------- logos ---------- */
.logo { flex: none; width: 56px; height: 56px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.logo--cover img { object-fit: cover; padding: 0; }
.logo--fallback { background: linear-gradient(140deg, var(--blue), var(--sky)); color: #fff; font-weight: 800; font-size: 1.1rem; border: 0; }
.logo--sm { width: 40px; height: 40px; border-radius: 10px; }
.logo--lg { width: 88px; height: 88px; border-radius: 22px; }

/* ---------- explore ---------- */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin: 28px 0 10px; }
.filters input, .filters select { width: 100%; font: inherit; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.filters input:focus, .filters select:focus { border-color: var(--blue); }
.search { display: block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 12px; }
.ccard { display: flex; flex-direction: column; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ccard__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.ccard__name { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.ccard__cat { color: var(--muted); font-size: .82rem; }
.ccard__desc { color: #3a4363; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.ccard .chips { margin-top: auto; }
.ccard .chip { font-size: .76rem; padding: 3px 10px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- modal ---------- */
.modal { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 28px; padding: 0; box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(8, 23, 79, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: fadeIn .25s ease both; }
.modal__close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1rem; }
.modal__hero { background: linear-gradient(140deg, var(--blue), var(--blue-deep)); color: #fff; padding: 36px 36px 28px; padding-inline-end: 76px; display: flex; gap: 20px; align-items: center; }
.modal__hero h2 { font-size: 1.7rem; font-weight: 800; }
.modal__hero .mcard__en { color: #c7d2f7; }
.modal__hero .ring b { color: #fff; }
.modal__hero .ring .bg { stroke: rgba(255,255,255,.15); }
.modal__content { padding: 28px 36px 36px; }
.modal__content h3 { font-size: 1.05rem; font-weight: 800; color: var(--blue); margin: 26px 0 10px; }
.modal__content h3:first-child { margin-top: 0; }
.modal__desc p { color: #2a3354; }
.evidence { font-size: .84rem; color: var(--muted); background: var(--tint); border-radius: 12px; padding: 10px 14px; margin-bottom: 20px; }
.evidence b { color: var(--ink); font-weight: 600; }
.callout { background: var(--sky-soft); border-radius: 16px; padding: 18px 20px; color: #20304f; }
.callout p:last-child { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fact { background: var(--tint); border-radius: 14px; padding: 12px 14px; }
.fact small { display: block; color: var(--muted); font-size: .78rem; }
.fact b { font-weight: 700; }
.team { display: flex; flex-wrap: wrap; gap: 14px; }
.member { display: flex; align-items: center; gap: 10px; background: var(--tint); border-radius: 999px; padding: 6px; padding-inline-end: 16px; }
.member img, .member .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--sky); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.member b { display: block; font-size: .9rem; line-height: 1.2; }
.member small { color: var(--muted); font-size: .78rem; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- footer ---------- */
.footer { background: var(--blue-ink); color: #c7d2f7; padding: 48px 0; font-size: .92rem; }
.footer__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer img { height: 40px; width: auto; margin-bottom: 12px; }
.footer a { color: #fff; }
.footer__meta { max-width: 460px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; transition: transform .3s; z-index: 200; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .podium, .steps { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .preview { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .mcard { padding: 24px 20px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .lang-btn, .nav + .lang-btn { margin-inline-start: auto; padding: 6px 10px; }
  .brand__name { font-size: .95rem; }
  .hero__in { padding-top: 56px; }
  .eyebrow { font-size: .85rem; line-height: 1.5; border-radius: 14px; padding: 6px 12px; }
  .section { padding: 64px 0; }
  .founder { grid-template-columns: 1fr; padding: 28px 20px; gap: 20px; }
  .founder__photo { width: 140px; height: 140px; }
  .founder__hi { font-size: 1.6rem; }
  .founder__proof { grid-template-columns: repeat(2, 1fr); }
  .quiz { padding: 28px 18px; border-radius: 22px; }
  .options, .options--wide { grid-template-columns: 1fr 1fr; }
  .opt { padding: 12px; gap: 8px; }
  .opt__icon { font-size: 1.25rem; }
  .rrow { grid-template-columns: 28px auto 1fr auto; gap: 10px; padding: 10px 12px; }
  .rrow__day { display: none; }
  .modal__hero { padding: 28px 22px 22px; flex-wrap: wrap; }
  .modal__content { padding: 22px; }
  .marquee__item { width: 60px; height: 60px; border-radius: 16px; }
}
@media (max-width: 480px) {
  .brand__divider, .brand__name { display: none; }
}
@media (max-width: 480px) {
  .nowrap { white-space: normal; } /* keep the hero line from overflowing with large text (WCAG 1.4.10) */
}
@media (max-width: 400px) {
  .live { display: none; } /* the same live status is shown in the footer */
}
@media (max-width: 420px) {
  .options, .options--wide { grid-template-columns: 1fr; }
  .stat b { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .splash { animation: splashFailsafe .01s linear 15s forwards !important; }
}
