/* ==========================================================================
   HitNexa — public website design system
   Standalone (the member area uses app.css). No web fonts, no frameworks: fast first paint.
   Light/dark follows the visitor's system preference unless they pick one (html[data-theme]).
   Logical properties everywhere so one stylesheet serves LTR and RTL.
   ========================================================================== */
:root {
  --brand: #6d4aff; --brand-2: #4f7bff; --brand-3: #14d4f4; --lime: #b9ff4a; --pink: #ff4fd8;
  --grad: linear-gradient(135deg, #6d4aff 0%, #4f7bff 55%, #14d4f4 100%);
  --grad-text: linear-gradient(90deg, #7b5cff, #3f8cff 55%, #12c8ee);
  --bg: #f7f8fd; --bg-2: #eef1fa; --surface: #ffffff; --surface-2: #f4f5fb; --glass: rgba(255,255,255,.72);
  --ink: #0b1020; --ink-2: #384063; --muted: #687092; --line: #e4e7f2; --line-2: #d6dbeb;
  --ok: #12a150; --ok-bg: #e7f8ee; --warn: #b86e00; --warn-bg: #fff4e0; --bad: #d23b3b; --bad-bg: #fdeded; --info-bg: #eaf3ff;
  --shadow-sm: 0 1px 2px rgba(16,22,48,.06), 0 2px 8px rgba(16,22,48,.05);
  --shadow: 0 2px 6px rgba(16,22,48,.05), 0 16px 40px -12px rgba(30,30,80,.16);
  --shadow-lg: 0 30px 80px -20px rgba(40,30,120,.35);
  --ring: 0 0 0 4px rgba(109,74,255,.22);
  --r: 18px; --r-sm: 12px; --r-lg: 28px;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Segoe UI", "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, "Geeza Pro", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070a16; --bg-2: #0a0e1e; --surface: #0e1326; --surface-2: #131a33; --glass: rgba(14,19,38,.72);
    --ink: #eef1ff; --ink-2: #c4cae8; --muted: #8d96bb; --line: #1d2545; --line-2: #2a3460;
    --ok-bg: rgba(18,161,80,.14); --warn-bg: rgba(184,110,0,.16); --bad-bg: rgba(210,59,59,.16); --info-bg: rgba(79,123,255,.14);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 18px 50px -18px rgba(0,0,0,.7); --shadow-lg: 0 40px 90px -20px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070a16; --bg-2: #0a0e1e; --surface: #0e1326; --surface-2: #131a33; --glass: rgba(14,19,38,.72);
  --ink: #eef1ff; --ink-2: #c4cae8; --muted: #8d96bb; --line: #1d2545; --line-2: #2a3460;
  --ok-bg: rgba(18,161,80,.14); --warn-bg: rgba(184,110,0,.16); --bad-bg: rgba(210,59,59,.16); --info-bg: rgba(79,123,255,.14);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 18px 50px -18px rgba(0,0,0,.7); --shadow-lg: 0 40px 90px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
[lang="ar"] body, body:lang(ar) { font-family: var(--font-ar); font-size: 16.5px; line-height: 1.8; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; color: var(--ink); }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.25em; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: rgba(109,74,255,.25); }
:focus-visible { outline: 3px solid rgba(109,74,255,.55); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; inset-inline-start: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--surface); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; } .text-center { text-align: center; }
.text-success { color: var(--ok); } .text-danger { color: var(--bad); }
.ico { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.flip-rtl { } [dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Buttons ---------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: var(--h); padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 700 15px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important; color: var(--ink); background: transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s; }
[lang="ar"] .btn { font-family: var(--font-ar); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #fff; background: var(--grad); background-size: 140% 140%; box-shadow: 0 10px 26px -10px rgba(109,74,255,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 34px -12px rgba(79,123,255,.8), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px); }
.btn-secondary, .btn-light { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-secondary:hover, .btn-light:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: var(--ink-2); } .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-glow { position: relative; isolation: isolate; }
.btn-glow::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; background: var(--grad); filter: blur(14px); opacity: .45; z-index: -1; transition: opacity .2s; }
.btn-glow:hover::after { opacity: .75; }
.btn-sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header); background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -.035em; text-decoration: none !important; direction: ltr; flex: none; }
.brand img { height: 34px; width: auto; }
.brand-mark { display: block; flex: none; filter: drop-shadow(0 8px 16px rgba(109,74,255,.35)); }
.brand-word { font-family: var(--font); }
.brand-word b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; gap: 4px; margin-inline-start: 18px; }
.site-nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.site-header .actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn .ico { width: 19px; height: 19px; }
.theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; } }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; } :root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.lang-switch select { height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 14px var(--font); padding: 0 30px 0 12px; cursor: pointer;
  appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23878fb3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-size: 14px; background-position: right 10px center; background-repeat: no-repeat; }
[dir="rtl"] .lang-switch select { padding: 0 12px 0 30px; background-position: left 10px center; }
.lang-switch select option { color: var(--ink); background: var(--surface); }
.nav-toggle { display: none; }
.nav-langs, .nav-mobile-login { display: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 55% at 85% 10%, rgba(20,212,244,.20), transparent 60%), radial-gradient(55% 60% at 10% 0%, rgba(109,74,255,.22), transparent 62%), radial-gradient(40% 40% at 50% 100%, rgba(255,79,216,.10), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }
[dir="rtl"] .pill { padding: 6px 6px 6px 14px; }
.pill b { background: var(--grad); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; letter-spacing: .02em; }
.hero h1 { margin: 20px 0 18px; }
.hero h1 .grad-text { display: inline; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 600px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.assure { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.assure span { display: inline-flex; gap: 7px; align-items: center; }
.assure .ico { color: var(--ok); width: 18px; height: 18px; }

/* Hero visual: orbiting network of countries around the HitNexa core */
.nexus { position: relative; aspect-ratio: 1; width: min(520px, 100%); margin-inline: auto; }
.nexus .ring { position: absolute; inset: var(--i); border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent); animation: spin var(--d) linear infinite; }
.nexus .ring.r2 { border-style: solid; border-color: color-mix(in srgb, var(--brand-3) 28%, transparent); animation-direction: reverse; }
.nexus .node { position: absolute; left: calc(50% + 50% * cos(var(--a))); top: calc(50% + 50% * sin(var(--a))); width: 46px; height: 46px; margin: -23px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.nexus .node > * { animation: counter var(--d) linear infinite; }
.nexus .ring.r2 .node > * { animation-direction: reverse; }
.nexus .node .fl { width: 26px; height: 19px; border-radius: 4px; }
.nexus .core { position: absolute; inset: 34%; border-radius: 32%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 30px 80px -10px rgba(109,74,255,.6), inset 0 1px 0 rgba(255,255,255,.3); }
.nexus .core::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(109,74,255,.35), transparent 65%); z-index: -1; animation: pulse 3.2s ease-in-out infinite; }
.nexus .core svg { width: 52%; height: 52%; }
.nexus .beam { position: absolute; top: 50%; left: 50%; width: 46%; height: 2px; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(109,74,255,.0), rgba(20,212,244,.9)); border-radius: 2px; animation: spin 6s linear infinite; opacity: .7; }
.surf-card { position: absolute; inset-inline-start: -4%; bottom: 6%; width: min(300px, 70%); padding: 14px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.surf-card .top { display: flex; gap: 12px; align-items: center; }
.surf-card .timer { position: relative; width: 46px; height: 46px; flex: none; }
.surf-card .timer svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.surf-card .timer circle { fill: none; stroke-width: 5; }
.surf-card .timer .t { stroke: var(--line-2); } .surf-card .timer .b { stroke: url(#hx-timer); stroke-linecap: round; stroke-dasharray: 113; animation: dash 8s linear infinite; }
.surf-card .timer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; }
.surf-card .site { flex: 1; min-width: 0; } .surf-card .site b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.surf-card .site small { color: var(--muted); font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.surf-card .gain { font-weight: 800; font-size: 13px; color: #0b1020; background: var(--lime); padding: 5px 10px; border-radius: 999px; }
.surf-card .bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.surf-card .bar span { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: inherit; animation: grow 8s linear infinite; }
.chip-card { position: absolute; inset-inline-end: -2%; top: 8%; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; animation: float 6s ease-in-out infinite; }
.chip-card .ico { color: var(--ok); width: 22px; height: 22px; }
.chip-card b { display: block; font-size: 13.5px; } .chip-card small { color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
@keyframes dash { from { stroke-dashoffset: 113; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { width: 0; } to { width: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-light { background: transparent; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
[lang="ar"] .kicker { letter-spacing: 0; font-size: 14px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* audience chips */
.audience { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.audience > span { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.audience .ico { color: var(--brand); }

/* steps */
.steps { counter-reset: s; position: relative; }
.step { position: relative; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; inset-inline-end: 22px; top: 18px; font: 800 44px/1 var(--font); color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.step-ico, .f-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 12px 26px -12px rgba(109,74,255,.8); margin-bottom: 18px; }
.step-ico .ico, .f-ico .ico { width: 24px; height: 24px; }
.step p, .feature p { color: var(--ink-2); margin: 0; }

/* bento features */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.feature { grid-column: span 2; position: relative; overflow: hidden; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.feature.wide { grid-column: span 3; }
.feature.hero-f { grid-column: span 4; background: radial-gradient(120% 120% at 100% 0%, rgba(20,212,244,.14), transparent 50%), radial-gradient(120% 120% at 0% 100%, rgba(109,74,255,.16), transparent 50%), var(--surface); }
.feature .visual { margin-top: 20px; }
.flag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.flag-cloud > span { display: inline-flex; gap: 7px; align-items: center; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.meter { display: grid; gap: 10px; }
.meter div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.meter i { display: block; height: 8px; border-radius: 99px; background: var(--grad); }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.check-list .ico { color: var(--ok); margin-top: 3px; width: 18px; height: 18px; }

/* calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-copy { padding: clamp(26px, 4vw, 44px); }
.calc-results { padding: clamp(26px, 4vw, 44px); background: radial-gradient(100% 100% at 100% 0%, rgba(20,212,244,.35), transparent 55%), linear-gradient(160deg, #241a6b, #0b1024 70%); color: #fff; display: grid; gap: 14px; align-content: center; }
.calc-results > div { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-results span { color: #c7cdf0; font-size: 14px; } .calc-results b { font-size: 1.6rem; font-weight: 800; }
.calc-results .hl b { font-size: 2.3rem; background: linear-gradient(90deg, #b9ff4a, #14d4f4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-results .small { color: #aab3db; margin: 0; }
input[type="range"] { width: 100%; accent-color: var(--brand); height: 28px; }

/* compare table */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.compare-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.compare-card table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-card th, .compare-card td { padding: 15px 18px; text-align: start; border-bottom: 1px solid var(--line); }
.compare-card tr:last-child td { border-bottom: 0; }
.compare-card th { font-size: 13px; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.compare-card .us { text-align: center; background: color-mix(in srgb, var(--brand) 7%, transparent); font-weight: 800; color: var(--ink); }
.compare-card td:last-child, .compare-card th:last-child { text-align: center; }
.compare-card .ico { width: 20px; height: 20px; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.price-card.featured { border: 0; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); }
.price-card .tag { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
[dir="rtl"] .price-card .tag { transform: translateX(50%); }
.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price-card .desc { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 6px; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 14px 0 24px; display: grid; gap: 10px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.price-card li .ico { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; }
.price-card li.off { color: var(--muted); } .price-card li.off .ico { color: var(--muted); }

/* founders / launch banner */
.launch { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 52px); color: #fff; isolation: isolate;
  background: radial-gradient(80% 120% at 100% 0%, rgba(20,212,244,.45), transparent 50%), radial-gradient(70% 120% at 0% 100%, rgba(255,79,216,.25), transparent 55%), linear-gradient(135deg, #2a1d82, #0d1130 75%); box-shadow: var(--shadow-lg); }
.launch::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.launch h2 { color: #fff; margin-bottom: 10px; } .launch p { color: #d3d8f5; max-width: 640px; }
.launch .perks { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.launch .perks > span { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-weight: 600; font-size: 14px; }
.launch .perks .ico { color: var(--lime); }
.badge-founder { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: #0b1020; background: linear-gradient(90deg, #b9ff4a, #14d4f4); }

/* guides & posts */
.guide-card, .post-card { display: flex; flex-direction: column; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.guide-card:hover, .post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.guide-card { padding: 24px; gap: 8px; }
.guide-card .ico { color: var(--brand); width: 26px; height: 26px; }
.guide-card h3 { margin: 6px 0 0; font-size: 1.08rem; } .guide-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.guide-card .more { margin-top: auto; padding-top: 10px; color: var(--brand); font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.post-card img, .post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-cover { display: grid; place-items: center; background: var(--grad); color: #fff; } .post-cover .ico { width: 56px; height: 56px; opacity: .9; }
.post-body { padding: 20px 22px 24px; } .post-body h2, .post-body h3 { font-size: 1.12rem; margin: 6px 0 8px; } .post-body p { color: var(--muted); font-size: 14.5px; margin: 0; }
.post-body .kicker { font-size: 12px; letter-spacing: .04em; margin: 0; } .post-body .kicker::before { display: none; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d4aff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }

/* final CTA */
.cta-band { text-align: center; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px) 24px; background: radial-gradient(60% 80% at 50% 0%, rgba(109,74,255,.25), transparent 70%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-band p { color: var(--ink-2); max-width: 620px; margin-inline: auto; }
.cta-band .row { justify-content: center; margin-top: 24px; }

/* testimonials (only real, admin-entered ones are ever shown) */
.testimonial { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.testimonial p { color: var(--ink-2); } .testimonial b { font-size: 14px; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); text-align: center; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 50% 0%, rgba(109,74,255,.16), transparent 70%), radial-gradient(40% 60% at 90% 10%, rgba(20,212,244,.12), transparent 70%); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 10px auto 14px; max-width: 900px; }
.page-hero p, .page-hero .lead { color: var(--ink-2); max-width: 720px; margin-inline: auto; }
.page-hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); } .breadcrumbs a:hover { color: var(--brand); }
.page-body { padding: 8px 0 clamp(64px, 8vw, 104px); }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.landing-aside { position: sticky; top: calc(var(--header) + 20px); }
.prose { font-size: 17px; color: var(--ink-2); max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 1.8em 0 .6em; color: var(--ink); }
.prose h3 { margin: 1.5em 0 .5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose li { margin: .35em 0; } .prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-inline-start: 4px solid var(--brand); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.prose img { border-radius: 14px; }
.toc { padding: 18px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; }
.toc strong { color: var(--ink); } .toc ol { margin: 8px 0 0; } .toc a { text-decoration: none; }
.cta-inline { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 24px; margin-top: 36px; border-radius: 18px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); }
.cta-inline p { margin: 4px 0 0; font-size: 15px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.link-list a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.link-list a:hover { background: var(--surface-2); color: var(--brand); }
.aside-cta { text-align: center; background: radial-gradient(100% 100% at 50% 0%, rgba(109,74,255,.15), transparent 70%), var(--surface) !important; }
.aside-cta > .ico { width: 34px; height: 34px; color: var(--brand); }

/* ---------- Cards, forms, alerts ---------- */
.card { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card-body { padding: clamp(20px, 3vw, 30px); }
.card h2 { font-size: 1.25rem; }
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 15.5px var(--font); transition: border-color .15s, box-shadow .15s; }
[lang="ar"] .input, [lang="ar"] .select, [lang="ar"] .textarea { font-family: var(--font-ar); }
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 13px; margin-top: 6px; font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } .form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--brand); width: 17px; height: 17px; }
.hp { position: absolute !important; inset-inline-start: -9999px; opacity: 0; height: 0; width: 0; }
.captcha-row { display: flex; gap: 12px; align-items: center; } .captcha-row img { border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; background: #fff; }
.alert { padding: 13px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok); } .alert-danger { background: var(--bad-bg); color: var(--bad); }
.alert-warning { background: var(--warn-bg); color: var(--warn); } .alert-info { background: var(--info-bg); color: var(--brand-2); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.counter { font-size: 12px; color: var(--muted); text-align: end; margin-top: 4px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none !important; transition: border-color .2s, transform .2s; }
a.c-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.c-card .c-ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.c-card .c-ico.alt { background: linear-gradient(135deg, #12a150, #14d4f4); } .c-card .c-ico.warm { background: linear-gradient(135deg, #ff7a45, #ff4fd8); }
.c-card h3 { font-size: 1rem; margin: 0 0 4px; } .c-card p { margin: 0; color: var(--muted); font-size: 14px; }
.c-card .mail { font-weight: 800; color: var(--brand); font-size: 15.5px; direction: ltr; unicode-bidi: embed; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pills label { position: relative; cursor: pointer; }
.topic-pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topic-pills span { display: inline-flex; gap: 7px; align-items: center; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .15s; }
.topic-pills input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand); box-shadow: var(--ring); }
.topic-pills input:focus-visible + span { outline: 3px solid rgba(109,74,255,.55); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 64px 0 28px; background: var(--bg-2); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
[lang="ar"] .site-footer h4 { letter-spacing: 0; font-size: 14px; }
.site-footer a { display: block; color: var(--ink-2); padding: 4px 0; } .site-footer a:hover { color: var(--brand); }
.site-footer .brand { padding: 0; }
.footer-mail { display: inline-flex !important; gap: 8px; align-items: center; margin-top: 10px; font-weight: 700; color: var(--brand) !important; direction: ltr; }
.footer-langs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.footer-langs a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Toasts / modals (shared JS) ---------- */
.toast-stack { position: fixed; z-index: 200; bottom: 20px; inset-inline-end: 20px; display: grid; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast { padding: 14px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; animation: rise .25s ease; border-inline-start: 4px solid var(--brand); }
.toast.success { border-inline-start-color: var(--ok); } .toast.error { border-inline-start-color: var(--bad); } .toast.warning { border-inline-start-color: var(--warn); }
.toast button { margin-inline-start: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,8,20,.55); z-index: 150; display: grid; place-items: center; padding: 20px; }
.modal { width: min(440px, 100%); border-radius: 20px; background: var(--surface); padding: 24px; box-shadow: var(--shadow-lg); }

/* ---------- Ads & misc ---------- */
.ad-wrap { padding: 20px 0; text-align: center; } .ad-slot { max-width: 100%; display: inline-block; }
.ad-slot img { display: block; max-width: 100%; height: auto; border-radius: 10px; } .ad-slot iframe { display: block; max-width: 100%; border: 0; border-radius: 10px; }
.ad-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.pagination .active, .pagination [aria-current] { background: var(--grad); border-color: transparent; color: #fff; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); } .empty-ico { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px; background: var(--surface-2); color: var(--brand); }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; margin: 0; }

/* ---------- Scroll reveal (only when JS is available; never hides content otherwise) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; } .hero-copy > :nth-child(4) { animation-delay: .18s; } .hero-copy > :nth-child(5) { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .split, .calc, .landing-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .landing-aside { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.wide, .feature.hero-f { grid-column: span 1; }
  .feature.hero-f { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .site-nav { position: fixed; inset: var(--header) 0 auto 0; margin: 0; flex-direction: column; gap: 2px; padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease; }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav { max-height: calc(100dvh - var(--header)); overflow-y: auto; }
  .site-nav a { padding: 13px 12px; font-size: 16px; }
  .nav-toggle { display: inline-grid; }
  .nav-login { display: none !important; }
  .nav-mobile-login { display: block !important; }
  .nav-langs { display: flex !important; gap: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
  .nav-langs a { flex: 1; text-align: center; padding: 10px 6px !important; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14.5px !important; }
  .nav-langs a[aria-current] { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container, .narrow { width: calc(100% - 32px); }
  .site-header .actions .btn-primary { padding: 0 12px; }
  .site-header .lang-switch { display: none; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; } .feature.hero-f { grid-column: span 1; }
  .hero .cta .btn { flex: 1 1 100%; }
  .surf-card { inset-inline-start: 0; width: 82%; } .chip-card { inset-inline-end: 0; }
  .nexus .node { width: 38px; height: 38px; margin: -19px; border-radius: 12px; } .nexus .node .fl { width: 22px; height: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; }
  .compare-card th, .compare-card td { padding: 12px 10px; font-size: 14px; }
  .faq summary { padding: 16px 18px; font-size: 15.5px; }
}
@media (max-width: 380px) { .brand-word { display: none; } }

/* ---------- Mobile performance ---------- */
/* Off-screen sections are not laid out or painted until the visitor scrolls near them. */
.section, .section-alt, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.hero { content-visibility: visible; }
@media (max-width: 760px) {
  /* The animated orbit illustration is decorative: phones skip it entirely (no animations, no flag sprite download). */
  .hero-art { display: none; }
  .hero { padding: 36px 0 44px; }
  .hero::after { display: none; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .btn-glow::after { display: none; }
  .feature:hover, .guide-card:hover, .post-card:hover { transform: none; }
  .js [data-reveal] { transform: none; transition: opacity .4s ease; }
}
@media print { .site-header, .site-footer, .toast-stack, .ad-wrap { display: none !important; } body { background: #fff; color: #000; } }
