/* لوح — platform landing page (brand: navy, gold, cream) */
:root {
  --navy: #1f3a73; --navy-2: #172d5b; --navy-3: #2b4a8a; --gold: #d9a53d; --gold-2: #c8932b; --cream: #f5efe3; --cream-2: #faf7f0;
  --ink: #16213a; --ink-2: #44506a; --muted: #6b7489; --line: #e8e1d2; --white: #fff; --ok: #2e8b57; --bad: #c0503b;
  --font: 'Plex Arabic', 'Segoe UI', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; font-size: 16px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }
.i { flex: none; }
.small { font-size: 13.5px; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: 15.5px; transition: transform .1s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-2); }
.btn-gold:hover { background: #e3b04a; box-shadow: 0 10px 24px rgba(217,165,61,.35); }
.btn-ghost { color: var(--cream); border-color: rgba(245,239,227,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline-light { color: var(--cream); border-color: rgba(245,239,227,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(31,58,115,.94); backdrop-filter: blur(10px); color: var(--cream); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav.solid { background: var(--navy); position: static; }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 26px; font-weight: 700; }
.logo-text small { font-size: 10.5px; letter-spacing: .32em; color: var(--gold); font-weight: 700; margin-top: 3px; }
.nav-links { display: flex; gap: 26px; flex: 1; justify-content: center; }
.nav-links a { text-decoration: none; opacity: .85; font-size: 15px; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: flex; gap: 10px; margin-inline-start: auto; }
.site-announce { background: var(--gold); color: var(--navy-2); text-align: center; padding: 8px 16px; font-weight: 600; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--cream); padding: 72px 0 40px; }
.orbits span { position: absolute; border-radius: 50%; border: 1.5px solid rgba(217,165,61,.35); }
.orbits span:first-child { width: 760px; height: 760px; top: -380px; left: -300px; border-color: rgba(255,255,255,.12); }
.orbits span:nth-child(2) { width: 520px; height: 520px; top: -240px; left: -180px; }
.orbits i { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--gold); top: 200px; left: 290px; box-shadow: 0 0 60px rgba(217,165,61,.45); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.kicker { display: inline-block; color: var(--gold); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { margin-top: 20px; font-size: 18px; color: rgba(245,239,227,.85); max-width: 560px; }
.hero-btns { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 560px; }
.hero-stats li { border-top: 2px solid var(--gold); padding-top: 12px; }
.hero-stats b { display: block; font-size: 22px; }
.hero-stats span { font-size: 13.5px; opacity: .75; }
.hero-visual { position: relative; min-height: 420px; }
.mock-window { background: var(--cream-2); color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: rotate(-1.2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ece5d5; font-size: 12.5px; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e46b5f; }
.mock-bar i:nth-child(2) { background: #e6b54a; }
.mock-bar i:nth-child(3) { background: #5cb46b; }
.mock-bar span { margin-inline-start: auto; font-weight: 600; }
.mock-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.mock-kpis small { display: block; color: var(--muted); font-size: 11.5px; }
.mock-kpis b { font-size: 22px; }
.red { color: var(--bad); }
.green { color: var(--ok); }
.mock-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mock-list > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.mock-list > div:first-child { border-top: 0; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.mock-list p { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.mock-list p b { font-size: 13.5px; }
.mock-list p small { font-size: 11.5px; color: var(--muted); }
.mock-list em { font-style: normal; font-weight: 700; font-size: 13.5px; }
.mock-list button { border: 0; background: var(--ok); color: #fff; border-radius: 8px; padding: 4px 12px; font: inherit; font-size: 12.5px; }
.pill { font-size: 11px; background: #fbefd4; color: #9a6a12; padding: 3px 8px; border-radius: 999px; }
.mock-phone { position: absolute; bottom: -10px; left: -10px; width: 210px; background: #0f1a33; border-radius: 30px; padding: 30px 10px 16px; box-shadow: 0 24px 60px rgba(0,0,0,.45); border: 6px solid #0b1328; display: flex; flex-direction: column; gap: 8px; }
.ph-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 70px; height: 14px; border-radius: 10px; background: #050a18; }
.ph-note { display: flex; gap: 8px; background: rgba(245,239,227,.94); color: var(--ink); border-radius: 14px; padding: 8px 10px; align-items: center; animation: pop .6s ease both; }
.ph-note:nth-child(3) { animation-delay: .25s; }
.ph-note p { display: flex; flex-direction: column; line-height: 1.3; }
.ph-note b { font-size: 12px; }
.ph-note small { font-size: 11px; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.flow { position: relative; margin-top: 56px; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 22px; flex-wrap: wrap; }
.flow > div { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 110px; }
.flow > div > span { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(245,239,227,.45); display: grid; place-items: center; }
.flow .core > span { background: var(--gold); border-color: var(--gold); color: var(--navy-2); }
.flow b { font-size: 16px; }
.flow small { font-size: 12.5px; opacity: .7; }
.flow > i { color: var(--gold); }

/* Sections */
.section { padding: 88px 0; }
.tinted { background: var(--cream-2); }
.eyebrow { color: var(--gold-2); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.eyebrow.light { color: var(--gold); }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--navy); }
.sub { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 640px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.col { border-radius: 22px; padding: 26px; }
.col h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 16px; }
.col.bad { background: #fbeee9; }
.col.bad h3 { color: var(--bad); }
.col.good { background: #e9f4ee; }
.col.good h3 { color: var(--ok); }
.col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.col li { background: #fff; border-radius: 14px; padding: 13px 16px; display: flex; flex-direction: column; }
.col li span { color: var(--muted); font-size: 14.5px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(31,58,115,.1); }
.f-icon { width: 46px; height: 46px; border-radius: 14px; background: #e3e9f6; color: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.shop-band { background: var(--navy); color: var(--cream); }
.shop-band h2 { color: var(--cream); }
.shop-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 16.5px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .i { color: var(--gold); margin-top: 5px; }
.shop-mock { background: #fff; color: var(--ink); border-radius: 28px; padding: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.35); max-width: 320px; margin-inline-start: auto; border: 8px solid #0f1a33; }
.sm-head { display: flex; gap: 10px; align-items: center; background: var(--navy); color: var(--cream); border-radius: 14px; padding: 10px 12px; }
.sm-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--gold); color: var(--navy-2); display: grid; place-items: center; font-weight: 700; }
.sm-head div { display: flex; flex-direction: column; line-height: 1.3; }
.sm-head small { font-size: 11.5px; opacity: .8; }
.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.sm-grid div { border: 1px solid #eee; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; }
.sm-grid i { height: 64px; border-radius: 8px; background: linear-gradient(135deg, #c9ccd3, #9ea3ad); margin-bottom: 6px; }
.sm-grid b { font-size: 12.5px; }
.sm-grid small { color: var(--navy); font-weight: 700; font-size: 12px; }
.sm-btn { background: var(--gold); color: var(--navy-2); text-align: center; border-radius: 12px; padding: 10px; font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps li { background: var(--cream-2); border-radius: 20px; padding: 22px 18px; }
.steps b { color: var(--gold-2); font-size: 26px; }
.steps h3 { color: var(--navy); font-size: 18px; margin: 6px 0; }
.steps p { color: var(--muted); font-size: 14.5px; }

.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-weight: 600; font-size: 17px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; }

.cta { background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); color: var(--cream); padding: 80px 0; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta h2 { font-size: clamp(28px, 3.8vw, 42px); }
.cta p { max-width: 620px; opacity: .85; font-size: 17px; }
.cta-btns { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.cta-num { font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--gold); }
.muted-light { opacity: .7; }

.footer { background: #0f1f42; color: rgba(245,239,227,.8); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner p { flex: 1; color: var(--gold); font-weight: 600; }
.footer nav { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* Simple pages (invite, errors) */
body.simple { background: var(--cream-2); min-height: 100vh; display: flex; flex-direction: column; }
.simple-main { flex: 1; display: grid; place-items: center; padding: 40px 18px; }
.invite-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 40px 32px; max-width: 520px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 24px 60px rgba(31,58,115,.08); }
.invite-card h1 { color: var(--navy); font-size: 28px; }
.inv-logo { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-size: 36px; font-weight: 700; margin-bottom: 6px; }
.inv-logo img { width: 100%; height: 100%; object-fit: cover; }
.inv-text { color: var(--ink-2); margin: 8px 0 14px; }
.big-code { font-size: 64px; font-weight: 700; color: var(--gold); line-height: 1; }

@media (max-width: 980px) {
  .hero-grid, .shop-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; margin-top: 12px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .shop-mock { margin: 0 auto; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-links, .hide-sm { display: none; }
  .nav-inner { min-height: 62px; }
  .hero { padding: 44px 0 28px; }
  .lead { font-size: 16.5px; }
  .hero-btns .btn { width: 100%; }
  .hero-stats { gap: 10px; }
  .hero-stats b { font-size: 18px; }
  .mock-phone { display: none; }
  .hero-visual { min-height: 0; }
  .flow { gap: 8px; padding: 16px 10px; }
  .flow > i { display: none; }
  .flow > div { min-width: 40%; }
  .section { padding: 60px 0; }
  .compare-grid, .cards, .steps { grid-template-columns: 1fr; }
  .orbits { display: none; }
}
