/* Nexus — marketing site styles. Everything references the Aurora design-kit tokens. */

:root[data-theme="dark"] {
  --bg: #07060f;
  --surface: #0e0c1a;
  --elevated: #151227;
  --fg: #f4f2ff;
  --muted: #9d98bd;
  --line: #221d38;
  --brand: #7c6bff;
  --brand-contrast: #06040f;
  --accent: #22d3ee;
  --gold: #e8c98a;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --space: clamp(4.5rem, 9vw, 8rem);
}

html[lang="ar"] {
  --font-heading: 'IBM Plex Sans Arabic', 'Sora', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.25; }
html[lang="ar"] .display { line-height: 1.22; }

body { background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--space); position: relative; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; margin: 0 0 1.1rem; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; margin: 0 auto 2.2rem; line-height: 1.75; }
.lede.start { margin-inline: 0; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
html[lang="ar"] .eyebrow { letter-spacing: .06em; }
.grad-text {
  background: linear-gradient(100deg, var(--fg) 0%, #cfc6ff 34%, var(--brand) 62%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 46rem; margin-inline: auto; margin-bottom: 3.5rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- buttons ---------- */
.btn { padding: .85rem 1.5rem; font-size: .98rem; font-weight: 600; letter-spacing: .005em; white-space: nowrap; }
.btn-primary {
  background: linear-gradient(135deg, #6a58f0, #4f3fdc 55%, #2f6fe4);
  color: #fff; box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--brand) 85%, transparent);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--brand) 90%, transparent); transform: translateY(-1px); }
.btn-ghost { border-color: color-mix(in srgb, var(--fg) 18%, transparent); color: var(--fg); background: color-mix(in srgb, var(--fg) 4%, transparent); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn .ico { width: 18px; height: 18px; }
html[dir="rtl"] .btn .ico.arrow { transform: scaleX(-1); }

.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }
.cta-row.start { justify-content: flex-start; }

/* ---------- chips / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .42rem .9rem .42rem .55rem;
  border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(10px); font-size: .83rem; color: var(--muted); font-weight: 500;
}
.pill b { color: var(--fg); font-weight: 600; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.16); margin-inline-start: .35rem; }
.tag { display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: color-mix(in srgb, var(--brand) 18%, transparent); color: #c9c0ff; border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.18rem; color: var(--fg); letter-spacing: -.02em; }
.brand:hover { opacity: 1; }
.mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(140deg, var(--brand), #3f8cff 60%, var(--accent)); box-shadow: 0 6px 20px -8px var(--brand); }
.mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a { padding: .5rem .85rem; border-radius: 10px; font-size: .94rem; font-weight: 500; color: var(--muted); transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav-links a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent); opacity: 1; }
.nav-links a.active { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: 600 .85rem/1 var(--font-body); cursor: pointer; transition: all var(--dur) var(--ease); }
.lang-btn:hover { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 24%, transparent); }
.burger { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: transparent; cursor: pointer; place-items: center; }
.burger span { display: block; width: 17px; height: 1.6px; background: var(--fg); margin: 3.4px auto; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { position: fixed; inset-inline: 12px; top: 76px; flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--elevated); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .7rem; box-shadow: var(--shadow-3);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .25s var(--ease); }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: .8rem 1rem; font-size: 1rem; }
  .burger { display: grid; }
  .nav-actions .btn { display: none; }
}

/* ---------- backgrounds ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); }
.aurora::after { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 10%, transparent 72%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-1 { width: 620px; height: 620px; inset-inline-start: -8%; top: -24%; background: radial-gradient(circle, #6d5bff 0%, transparent 68%); }
.orb-2 { width: 540px; height: 540px; inset-inline-end: -10%; top: -14%; background: radial-gradient(circle, #1e8fff 0%, transparent 68%); opacity: .42; }
.orb-3 { width: 480px; height: 480px; inset-inline-start: 38%; top: 24%; background: radial-gradient(circle, #22d3ee 0%, transparent 70%); opacity: .2; }
@media (prefers-reduced-motion: no-preference) {
  .orb-1 { animation: drift 18s ease-in-out infinite alternate; }
  .orb-2 { animation: drift 22s ease-in-out infinite alternate-reverse; }
  .orb-3 { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px, 36px, 0) scale(1.12); } }
}
.glow-line { height: 1px; border: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 55%, transparent), transparent); margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { text-align: center; max-width: 54rem; margin-inline: auto; }
.hero .lede { margin-bottom: 2.4rem; }
.hero-note { margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }

.trust { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.trust p { text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; }
html[lang="ar"] .trust p { letter-spacing: .04em; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.6rem, 5vw, 3.4rem); }
.logos span { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.22rem); color: #b6b1d0;
  letter-spacing: -.01em; transition: color var(--dur) var(--ease); }
.logos span:hover { color: var(--fg); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--bg)); padding: 2.2rem 1.6rem; text-align: center; }
.stat .num { font-family: var(--font-heading); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(180deg, var(--fg), color-mix(in srgb, var(--brand) 70%, var(--fg)));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: .92rem; margin-top: .35rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature { position: relative; padding: 2rem 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--bg) 70%, transparent));
  overflow: hidden; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.feature::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 60%, transparent), transparent); opacity: 0; transition: opacity var(--dur) var(--ease); }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--brand) 80%, transparent); }
.feature:hover::before { opacity: 1; }
.feature h3 { font-size: 1.14rem; margin: 1.1rem 0 .5rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; line-height: 1.7; }
.ico-box { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 28%, transparent), color-mix(in srgb, var(--accent) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent); color: #cdc5ff; }
.ico-box svg { width: 22px; height: 22px; }

/* ---------- dashboard mock ---------- */
.dash-wrap { position: relative; }
.dash-wrap::before { content: ''; position: absolute; inset: 8% 4% -6%; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--brand) 42%, transparent), transparent 68%); filter: blur(70px); z-index: 0; }
.dash { position: relative; z-index: 1; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px color-mix(in srgb, var(--fg) 4%, transparent); overflow: hidden; }
.dash-bar { display: flex; align-items: center; gap: .9rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--elevated) 70%, transparent); }
.dots { display: flex; gap: .4rem; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.dash-url { flex: 1; text-align: center; font-size: .76rem; color: var(--muted); font-family: var(--font-body); }
.dash-body { display: grid; grid-template-columns: 210px 1fr; min-height: 420px; }
.dash-side { border-inline-end: 1px solid var(--line); padding: 1.1rem .8rem; background: color-mix(in srgb, var(--elevated) 45%, transparent); }
.dash-side .s-item { display: flex; align-items: center; gap: .6rem; padding: .58rem .7rem; border-radius: 10px; color: var(--muted); font-size: .88rem; font-weight: 500; }
.dash-side .s-item.on { background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--fg); }
.dash-side .s-item i { width: 16px; height: 16px; border-radius: 5px; background: color-mix(in srgb, var(--fg) 14%, transparent); display: block; flex: none; }
.dash-side .s-item.on i { background: var(--brand); }
.dash-side .s-title { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 1.2rem .7rem .5rem; }
.dash-main { padding: 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dash-head h4 { margin: 0; font-size: 1.05rem; }
.dash-head .sub { font-size: .82rem; color: var(--muted); }
.seg { display: flex; gap: .2rem; padding: .22rem; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 .78rem/1 var(--font-body); padding: .45rem .9rem; min-height: 36px; border-radius: 8px; cursor: pointer; transition: all var(--dur) var(--ease); }
@media (max-width: 880px) { .seg button { min-height: 44px; } }
.seg button.on { background: color-mix(in srgb, var(--brand) 28%, transparent); color: var(--fg); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1rem; background: color-mix(in srgb, var(--elevated) 55%, transparent); }
.kpi .k-l { font-size: .76rem; color: var(--muted); }
.kpi .k-v { font-family: var(--font-heading); font-size: 1.42rem; font-weight: 600; letter-spacing: -.02em; margin-top: .18rem; }
.kpi .k-d { font-size: .74rem; font-weight: 600; color: #34d399; }
.kpi .k-d.down { color: #fb7185; }
.chart-card { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: color-mix(in srgb, var(--elevated) 40%, transparent); }
.chart-card svg { width: 100%; height: auto; display: block; }
.dash-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: .8rem; }
.rows { display: flex; flex-direction: column; gap: .62rem; }
.row-i { display: flex; align-items: center; gap: .7rem; font-size: .84rem; }
.row-i .nm { flex: 1; color: var(--muted); }
.row-i .vl { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 10%, transparent); overflow: hidden; width: 86px; flex: none; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.insight { border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 14px; padding: .9rem 1rem; }
.insight .t { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .35rem; }
.insight p { font-size: .85rem; color: #ddd9f0; margin: 0; line-height: 1.65; }
@media (max-width: 860px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .kpis { grid-template-columns: 1fr; }
  .dash-cols { grid-template-columns: 1fr; }
}

/* ---------- split rows (features page) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(4rem, 8vw, 7rem); }
.split.flip .s-media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip .s-media { order: 0; } }
.s-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.s-text p { color: var(--muted); line-height: 1.8; }
.checks { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; color: #e4e1f5; }
.checks svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--accent); }
.s-media { position: relative; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(170deg, var(--elevated), var(--surface)); padding: 1.3rem; box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); }
.panel-glow { position: absolute; inset: 14% 10%; background: radial-gradient(ellipse, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%); filter: blur(60px); z-index: -1; }

/* ---------- pricing ---------- */
.toggle { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.toggle button { border: 0; background: transparent; color: var(--muted); font: 600 .9rem/1 var(--font-body); padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; transition: all var(--dur) var(--ease); }
.toggle button.on { background: #4f3fdc; color: #fff; }
.save-tag { font-size: .74rem; font-weight: 700; color: #34d399; margin-inline-start: .35rem; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.75rem; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--bg));
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); display: flex; flex-direction: column; }
.plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--fg) 20%, transparent); }
.plan.featured { border-color: color-mix(in srgb, var(--brand) 60%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), var(--surface));
  box-shadow: 0 40px 80px -45px var(--brand), 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent); }
@media (min-width: 941px) { .plan.featured { transform: scale(1.04); } .plan.featured:hover { transform: scale(1.04) translateY(-4px); } }
.plan .p-badge { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%); padding: .3rem .85rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #3f8cff); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 8px 20px -8px var(--brand); }
html[dir="rtl"] .plan .p-badge { transform: translateX(50%); }
.plan h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.plan .p-desc { color: var(--muted); font-size: .9rem; min-height: 2.8em; margin: 0 0 1.3rem; }
.price { display: flex; align-items: baseline; gap: .4rem; font-family: var(--font-heading); }
.price .amt { font-size: 3rem; font-weight: 700; letter-spacing: -.035em; }
.price .cur { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.price .per { font-size: .9rem; color: var(--muted); font-family: var(--font-body); }
.p-note { font-size: .8rem; color: var(--muted); margin: .45rem 0 1.5rem; }
.plan .btn { width: 100%; justify-content: center; }
.p-feats { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .72rem; }
.p-feats li { display: flex; gap: .6rem; font-size: .92rem; color: #e4e1f5; }
.p-feats svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 1px; }
.plan.featured .p-feats svg { color: var(--accent); }

.cmp { width: 100%; border-collapse: collapse; font-size: .93rem; }
.cmp th, .cmp td { padding: .95rem 1rem; text-align: start; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--font-heading); font-size: .95rem; color: var(--fg); }
.cmp tbody th { font-weight: 500; color: var(--muted); }
.cmp td { text-align: center; color: #e4e1f5; }
.cmp td.yes svg { width: 18px; height: 18px; color: var(--accent); }
.cmp .dash-cell { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 80%, transparent); }

/* ---------- faq ---------- */
.faq { max-width: 48rem; margin-inline: auto; display: flex; flex-direction: column; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, transparent); overflow: hidden; transition: border-color var(--dur) var(--ease); }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--brand); line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); line-height: 1.75; font-size: .95rem; }

/* ---------- testimonial ---------- */
.quote { max-width: 52rem; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.55; letter-spacing: -.02em; margin: 0 0 1.8rem; color: var(--fg); }
.who { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--accent)); }
.who .n { font-weight: 600; font-size: .95rem; }
.who .r { font-size: .84rem; color: var(--muted); }
.who div { text-align: start; }

/* ---------- cta band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), color-mix(in srgb, var(--accent) 10%, var(--surface)));
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 50% 120%, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: .8rem; }
.cta-band p { color: #ded9f3; max-width: 44ch; margin: 0 auto 2rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--elevated), var(--surface)); padding: clamp(1.5rem, 3vw, 2.3rem); box-shadow: 0 30px 70px -45px rgba(0,0,0,.9); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: .45rem; }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 75%, transparent);
  color: var(--fg); font: 400 .97rem/1.5 var(--font-body); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-repeat: no-repeat; background-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d98bd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
html[dir="rtl"] .field select { background-position: left 14px center; padding-inline-start: 2.3rem; }
html[dir="ltr"] .field select { background-position: right 14px center; padding-inline-end: 2.3rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field .err { display: none; font-size: .82rem; color: #fb7185; margin-top: .4rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #fb7185; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.success { text-align: center; padding: 2rem 1rem; }
.success .ok { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1.3rem; display: grid; place-items: center;
  background: color-mix(in srgb, #34d399 18%, transparent); border: 1px solid color-mix(in srgb, #34d399 45%, transparent); color: #34d399; }
.success .ok svg { width: 30px; height: 30px; }
.success h3 { margin-bottom: .6rem; }
.success p { color: var(--muted); max-width: 38ch; margin: 0 auto 1.6rem; }
.hidden { display: none !important; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 1.5rem; }
.side-card + .side-card { margin-top: 1.1rem; }
.side-card h3 { font-size: 1.02rem; margin-bottom: 1rem; }
.side-item { display: flex; gap: .8rem; align-items: flex-start; padding: .62rem 0; }
.side-item svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 3px; }
.side-item .l { font-size: .8rem; color: var(--muted); }
.side-item .v { font-size: .95rem; font-weight: 500; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); background: #0b0916; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid p { color: var(--muted); font-size: .92rem; max-width: 34ch; margin: 1rem 0 0; line-height: 1.7; }
.foot-col h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 1rem; }
html[lang="ar"] .foot-col h4 { letter-spacing: .03em; }
.foot-col a { display: block; padding: .38rem 0; color: #d6d2ea; font-size: .93rem; }
.foot-col a:hover { color: var(--fg); opacity: 1; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.foot-bottom small { color: var(--muted); }
.socials { display: flex; gap: .5rem; }
.socials a { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: all var(--dur) var(--ease); }
.socials a:hover { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 25%, transparent); opacity: 1; }
.socials svg { width: 17px; height: 17px; }

/* If JavaScript never runs, nothing may stay hidden. */
.no-js .js-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }

/* page hero (inner pages) */
.page-hero { position: relative; padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); overflow: hidden; text-align: center; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.035em; }

/* scroll-driven reveal fallback for browsers without animation-timeline */
@media (prefers-reduced-motion: no-preference) {
  /* A cinematic focus-in: the text keeps its real colour (never invisible), it simply comes into focus. */
  .js-reveal { transform: translateY(16px); filter: blur(7px); opacity: .55;
    transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease); }
  .js-reveal.in { transform: none; filter: none; opacity: 1; }
}

/* The last section before the footer doesn't need a double gap. */
main > section:last-child { padding-bottom: clamp(2rem, 4vw, 3rem); }
