/* ==========================================================================
   SkySat — design system
   One stylesheet, both directions (CSS logical properties), both themes.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
	/* brand — sampled from the SkySat logo */
	--brand-500: #0878C0;
	--brand-600: #06639F;
	--brand-400: #339CE0;
	--brand-300: #7CC4EE;
	--gold-500: #F0D010;
	--gold-400: #F7DE4A;
	--gold-600: #C9AE07;
	--deep-900: #0C2A38;
	--deep-800: #123B4E;
	--deep-700: #164B60;

	/* light theme */
	--bg: #FFFFFF;
	--bg-soft: #F5F9FC;
	--bg-elev: #FFFFFF;
	--bg-inset: #EEF5FA;
	--fg: #0F2733;
	--fg-muted: #55707E;
	--fg-faint: #7E96A2;
	--border: #DCE8EF;
	--border-strong: #C3D7E2;
	--accent: var(--brand-500);
	--accent-fg: #FFFFFF;
	--accent-soft: #E6F2FA;
	--ring: rgba(8, 120, 192, .35);
	--gold: var(--gold-600);
	--gold-soft: #FDF6D6;

	--shadow-sm: 0 1px 2px rgba(12, 42, 56, .06), 0 1px 3px rgba(12, 42, 56, .04);
	--shadow-md: 0 4px 12px rgba(12, 42, 56, .07), 0 2px 4px rgba(12, 42, 56, .04);
	--shadow-lg: 0 18px 40px rgba(12, 42, 56, .10), 0 6px 14px rgba(12, 42, 56, .06);
	--shadow-glow: 0 20px 50px rgba(8, 120, 192, .24);

	/* type */
	--font: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--fs-hero: clamp(2.4rem, 1.4rem + 4.2vw, 4.5rem);
	--fs-h2: clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem);
	--fs-h3: clamp(1.15rem, 1rem + .5vw, 1.4rem);
	--fs-lead: clamp(1rem, .95rem + .35vw, 1.175rem);
	--fs-body: 1rem;
	--fs-sm: .9375rem;
	--fs-xs: .8125rem;

	/* space + shape */
	--container: 1180px;
	--gutter: clamp(1.15rem, .6rem + 2vw, 2.5rem);
	--section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 24px;
	--r-full: 999px;

	--ease: cubic-bezier(.22, 1, .36, 1);
	--dur: .5s;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
	--bg: #081A24;
	--bg-soft: #0C2431;
	--bg-elev: #10303F;
	--bg-inset: #0A1E29;
	--fg: #E8F2F7;
	--fg-muted: #9DB6C3;
	--fg-faint: #6F8B99;
	--border: #1B3F52;
	--border-strong: #27596F;
	--accent: #35A0E0;
	--accent-fg: #05161F;
	--accent-soft: #10303F;
	--ring: rgba(53, 160, 224, .40);
	--gold: var(--gold-400);
	--gold-soft: #2B2609;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
	--shadow-lg: 0 20px 44px rgba(0, 0, 0, .55);
	--shadow-glow: 0 20px 50px rgba(8, 120, 192, .30);

	color-scheme: dark;
}
}

:root[data-theme="dark"] {
	--bg: #081A24;
	--bg-soft: #0C2431;
	--bg-elev: #10303F;
	--bg-inset: #0A1E29;
	--fg: #E8F2F7;
	--fg-muted: #9DB6C3;
	--fg-faint: #6F8B99;
	--border: #1B3F52;
	--border-strong: #27596F;
	--accent: #35A0E0;
	--accent-fg: #05161F;
	--accent-soft: #10303F;
	--ring: rgba(53, 160, 224, .40);
	--gold: var(--gold-400);
	--gold-soft: #2B2609;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
	--shadow-lg: 0 20px 44px rgba(0, 0, 0, .55);
	--shadow-glow: 0 20px 50px rgba(8, 120, 192, .30);

	color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.7;
	color: var(--fg);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color .35s var(--ease), color .35s var(--ease);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.22; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-600); }
:root[data-theme="dark"] a:hover { color: var(--brand-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a:hover { color: var(--brand-300); } }
ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.3em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent); color: var(--accent-fg); }

/* Arabic runs slightly larger for equivalent optical size */
:root[lang="ar"] body { line-height: 1.9; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.grid { display: grid; gap: clamp(1.25rem, .8rem + 1.6vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.skip-link {
	position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
	background: var(--accent); color: var(--accent-fg);
	padding: .8rem 1.3rem; border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600;
}
.skip-link:focus { inset-inline-start: 0; color: var(--accent-fg); }

/* ---------- section heading ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: .55rem;
	font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	color: var(--accent); background: var(--accent-soft);
	padding: .4rem .9rem; border-radius: var(--r-full); margin-bottom: 1.1rem;
	border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
:root[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: .5rem; }
.section-head p { font-size: var(--fs-lead); color: var(--fg-muted); margin-bottom: 0; }

.text-gradient {
	background: linear-gradient(120deg, var(--brand-600), var(--brand-500) 55%, var(--brand-400));
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}
:root[data-theme="dark"] .text-gradient {
	background: linear-gradient(120deg, #A9DBF5, var(--brand-300) 50%, var(--brand-400));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .text-gradient {
	background: linear-gradient(120deg, #A9DBF5, var(--brand-300) 50%, var(--brand-400));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
} }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	font: inherit; font-weight: 600; font-size: var(--fs-sm);
	padding: .82rem 1.6rem; border-radius: var(--r-full);
	border: 1px solid transparent; cursor: pointer; white-space: nowrap;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease),
	            background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--brand-600); color: var(--accent-fg); box-shadow: var(--shadow-glow); }
:root[data-theme="dark"] .btn--primary:hover { background: var(--brand-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary:hover { background: var(--brand-300); } }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--bg-inset); color: var(--fg); border-color: var(--accent); }

/* arrow nudges toward the reading direction */
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-3px); }
[dir="rtl"] .btn .arrow { scale: -1 1; }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }

.nav { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.15rem; color: var(--fg); letter-spacing: -.02em; }
.brand:hover { color: var(--fg); }
.brand img { width: 40px; height: 40px; }

.nav-links { display: flex; align-items: center; gap: .2rem; margin: 0 auto; padding: 0; list-style: none; }
.nav-links li { margin: 0; }
.nav-links a {
	position: relative; display: block; padding: .55rem .85rem; border-radius: var(--r-sm);
	font-size: var(--fs-sm); font-weight: 500; color: var(--fg-muted);
}
.nav-links a:hover { color: var(--fg); background: var(--bg-inset); }
.nav-links a.is-active { color: var(--accent); }
.nav-links a.is-active::after {
	content: ""; position: absolute; inset-inline: .85rem; bottom: .25rem;
	height: 2px; border-radius: 2px; background: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	width: 40px; height: 40px; padding: 0;
	border-radius: var(--r-full); border: 1px solid var(--border);
	background: var(--bg-elev); color: var(--fg-muted); cursor: pointer;
	transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.lang-btn { width: auto; padding-inline: .9rem; font: inherit; font-size: var(--fs-sm); font-weight: 600; }

/* theme toggle icon swap */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* mobile nav */
.nav-toggle { display: none; }
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.nav-links {
		position: fixed; inset: 76px 0 auto; margin: 0;
		flex-direction: column; align-items: stretch; gap: .15rem;
		background: var(--bg-elev); border-bottom: 1px solid var(--border);
		padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow-lg);
		transform: translateY(-12px); opacity: 0; visibility: hidden;
		transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
	}
	.nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
	.nav-links a { padding: .8rem .9rem; font-size: 1rem; }
	.nav-links a.is-active::after { display: none; }
	/* with JS off the menu can't be opened, so show it inline instead of hiding it */
	html:not(.js) .nav-links {
		position: static; flex-direction: row; flex-wrap: wrap; justify-content: center;
		transform: none; opacity: 1; visibility: visible; box-shadow: none;
		background: transparent; border: 0; padding: .5rem 0 1rem;
	}
	html:not(.js) .nav { flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) var(--section-y); }
.hero::before {
	content: ""; position: absolute; z-index: -1;
	inset-block-start: -30%; inset-inline-end: -10%;
	width: min(70rem, 110%); aspect-ratio: 1;
	background: radial-gradient(circle at 50% 50%,
		color-mix(in srgb, var(--brand-500) 24%, transparent) 0%,
		transparent 62%);
	filter: blur(20px); pointer-events: none;
}
.hero::after {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background-image:
		linear-gradient(color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
	pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -.03em; margin-bottom: .35em; }
:root[lang="ar"] .hero h1 { letter-spacing: 0; }
.hero-lead { font-size: var(--fs-lead); color: var(--fg-muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.5rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding-block-start: 1.75rem; border-block-start: 1px solid var(--border); }
.hero-stats div { min-width: 6rem; }
.hero-stats dt { font-size: var(--fs-xs); color: var(--fg-faint); font-weight: 500; margin-bottom: .15rem; }
.hero-stats dd { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2rem); font-weight: 700; color: var(--fg); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.hero-visual { position: relative; display: grid; place-items: center; }


/* ---------- cards ---------- */
.card {
	position: relative; overflow: hidden;
	background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-lg);
	padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	box-shadow: var(--shadow-sm);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
	content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
	background: linear-gradient(90deg, var(--brand-500) 0%, var(--brand-400) 58%, var(--gold-500) 72%);
	transform: scaleX(0); transform-origin: inline-start;
	transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.card p { color: var(--fg-muted); font-size: var(--fs-sm); margin-bottom: 0; }

.card-icon {
	display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.15rem;
	border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent);
	transition: transform .4s var(--ease), background-color .4s var(--ease);
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }

.card-num {
	position: absolute; inset-block-start: 1.1rem; inset-inline-end: 1.35rem;
	font-size: 2.5rem; font-weight: 700; line-height: 1;
	color: var(--fg); opacity: .07; font-variant-numeric: tabular-nums;
}

/* feature list with check marks */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; margin: 0; color: var(--fg-muted); }
.check-list svg { flex: none; width: 22px; height: 22px; margin-block-start: .2rem; color: var(--accent); }
.check-list strong { color: var(--fg); font-weight: 600; display: block; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .95fr 1.05fr; } }
.about-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-inset); border: 1px solid var(--border); }
.about-media img { width: 100%; }

/* ---------- network / map ---------- */
.map-wrap {
	position: relative; border-radius: var(--r-lg); overflow: hidden;
	border: 1px solid var(--border); background: var(--bg-inset); box-shadow: var(--shadow-md);
}
.map-wrap img { width: 100%; }
:root[data-theme="dark"] .map-wrap img { filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-wrap img { filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(1.05); } }

/* ---------- newsletter / CTA band ---------- */
.cta-band {
	position: relative; overflow: hidden;
	border-radius: var(--r-lg); padding: clamp(2rem, 1.4rem + 3vw, 3.5rem);
	background: linear-gradient(135deg, var(--deep-800), var(--brand-600));
	color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band::after {
	content: ""; position: absolute; inset-block-start: -60%; inset-inline-end: -10%;
	width: 34rem; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%);
	pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: .4rem; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 0; }
.cta-inner { position: relative; display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 820px) { .cta-inner { grid-template-columns: 1.2fr .8fr; } }

.field-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.field-row .input { flex: 1 1 14rem; }

.input, .textarea {
	width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--fg);
	background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-sm);
	padding: .8rem 1rem;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.textarea { border-radius: var(--r-md); resize: vertical; min-height: 8rem; }
.input::placeholder, .textarea::placeholder { color: var(--fg-faint); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.cta-band .input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.cta-band .input::placeholder { color: rgba(255,255,255,.65); }
.cta-band .input:focus { background: rgba(255,255,255,.2); border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.cta-band .btn--primary { background: #fff; color: var(--deep-800); }
.cta-band .btn--primary:hover { background: #EAF4FA; color: var(--deep-900); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 1rem + 2.5vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1.15rem; border-block-end: 1px solid var(--border); }
.contact-item:last-child { border-block-end: 0; }
.contact-item .card-icon { width: 44px; height: 44px; margin: 0; border-radius: var(--r-sm); }
.contact-item .card-icon svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: .1rem; }
.contact-item p, .contact-item a { color: var(--fg-muted); font-size: var(--fs-sm); margin: 0; }
.contact-item a:hover { color: var(--accent); }

.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }
[hidden] { display: none !important; }
.label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--fg-muted); margin-bottom: .4rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-block-start: 1px solid var(--border); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 0; }
.footer-grid { display: grid; gap: clamp(2rem, 1.2rem + 2.5vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.footer-brand { max-width: 26rem; }
.footer-brand p { color: var(--fg-muted); font-size: var(--fs-sm); margin-block: 1rem 1.4rem; }
.footer-col h4 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg); margin-bottom: 1.1rem; }
:root[lang="ar"] .footer-col h4 { letter-spacing: 0; text-transform: none; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col li { margin: 0; }
.footer-col a { color: var(--fg-muted); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--accent); }

.social { display: flex; gap: .5rem; }
.social a {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-full);
	background: var(--bg-elev); border: 1px solid var(--border); color: var(--fg-muted);
	transition: transform .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

.footer-bottom {
	margin-block-start: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
	padding-block: 1.5rem; border-block-start: 1px solid var(--border);
	display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
}
.footer-bottom p { margin: 0; font-size: var(--fs-xs); color: var(--fg-faint); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.footer-legal a { font-size: var(--fs-xs); color: var(--fg-faint); }
.footer-legal a:hover { color: var(--accent); }

/* ---------- legal pages ---------- */
.page-hero {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--deep-900), var(--deep-700));
	color: #fff; padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
.page-hero::after {
	content: ""; position: absolute; inset-block-start: -50%; inset-inline-end: -5%;
	width: 30rem; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, rgba(53,160,224,.28), transparent 62%); pointer-events: none;
}
.page-hero h1 { position: relative; font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); font-weight: 700; color: #fff; margin-bottom: .35rem; }
.page-hero p { position: relative; margin: 0; color: rgba(255,255,255,.72); font-size: var(--fs-sm); }

.prose { max-width: 52rem; padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 650; color: var(--fg); margin-block: 2.75rem 1rem; scroll-margin-top: 6rem; }
.prose h2:first-child { margin-block-start: 0; }
.prose h3 { font-size: 1.075rem; font-weight: 600; color: var(--accent); margin-block: 1.9rem .7rem; }
.prose p, .prose li { color: var(--fg-muted); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul { padding-inline-start: 1.25em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

.note {
	background: var(--bg-soft); border: 1px solid var(--border);
	border-inline-start: 3px solid var(--accent);
	border-radius: var(--r-sm); padding: 1.15rem 1.35rem; margin-block: 0 1.5rem;
}
.note p { margin-bottom: .7rem; }
.note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin-block: 0 1.75rem; border: 1px solid var(--border); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 32rem; }
.prose th, .prose td { padding: .8rem 1rem; text-align: start; vertical-align: top; border-block-end: 1px solid var(--border); color: var(--fg-muted); }
.prose thead th { background: var(--bg-soft); color: var(--fg); font-weight: 600; white-space: nowrap; }
.prose tbody tr:last-child th, .prose tbody tr:last-child td { border-block-end: 0; }
.prose tbody th { font-weight: 600; color: var(--fg); white-space: nowrap; }

.updated { color: var(--fg-faint); font-size: var(--fs-xs); margin-block-start: 2.5rem; }

/* ---------- app page ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: .8rem; }
.store-badge {
	display: inline-flex; align-items: center; gap: .7rem;
	padding: .7rem 1.25rem; border-radius: var(--r-md);
	background: var(--fg); color: var(--bg);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--bg); }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge span { display: block; line-height: 1.15; }
.store-badge .small { font-size: .68rem; opacity: .75; }
.store-badge .big { font-size: .95rem; font-weight: 600; }

/* ---------- scroll reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.d1 { transition-delay: .08s; }
html.js .reveal.d2 { transition-delay: .16s; }
html.js .reveal.d3 { transition-delay: .24s; }
html.js .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
	html.js .reveal, html.js .reveal.is-in { opacity: 1; transform: none; transition: none; }
		*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- print ---------- */
@media print {
	.site-header, .site-footer, .nav-actions, .skip-link { display: none !important; }
	body { color: #000; background: #fff; }
	.prose { max-width: none; }
	.page-hero { background: none; color: #000; padding-block: 0 1rem; }
	.page-hero h1, .page-hero p { color: #000; }
	a { color: #000; }
}

/* ---------- at-a-glance panel (about) ---------- */
.facts {
	background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-lg);
	padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); box-shadow: var(--shadow-md);
	position: relative; overflow: hidden;
}
.facts::before {
	content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
	background: linear-gradient(90deg, var(--brand-500) 0%, var(--brand-400) 58%, var(--gold-500) 72%);
}
.facts h3 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	color: var(--fg-faint); margin-bottom: 1.25rem; }
:root[lang="ar"] .facts h3 { letter-spacing: 0; text-transform: none; }
.facts dl { margin: 0; display: grid; gap: 0; }
.facts .fact { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	padding-block: .85rem; border-block-end: 1px solid var(--border); }
.facts .fact:last-child { border-block-end: 0; padding-block-end: 0; }
.facts dt { color: var(--fg-muted); font-size: var(--fs-sm); margin: 0; }
.facts dd { margin: 0; color: var(--fg); font-weight: 600; font-size: var(--fs-sm); text-align: end; }

/* ---------- Arabic typography: Almarai, lighter weight, smaller scale ---------- */
:root[lang="ar"] {
	--font: 'Almarai', 'Segoe UI', system-ui, sans-serif;
	--fs-hero: clamp(1.95rem, 1.25rem + 3.1vw, 3.35rem);
	--fs-h2:   clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
	--fs-h3:   clamp(1rem, .94rem + .3vw, 1.12rem);
	--fs-lead: clamp(.94rem, .9rem + .22vw, 1.05rem);
	--fs-body: .945rem;
	--fs-sm:   .875rem;
	--fs-xs:   .78rem;
}
:root[lang="ar"] body { line-height: 1.95; font-weight: 400; }
:root[lang="ar"] h1, :root[lang="ar"] h2 { font-weight: 700; letter-spacing: 0; line-height: 1.45; }
/* Almarai has no mid weights, and 700 reads heavy at small sizes — keep the rest regular */
:root[lang="ar"] h3, :root[lang="ar"] h4, :root[lang="ar"] h5,
:root[lang="ar"] .brand, :root[lang="ar"] .btn, :root[lang="ar"] .eyebrow,
:root[lang="ar"] .label, :root[lang="ar"] .facts dd, :root[lang="ar"] .prose strong,
:root[lang="ar"] .check-list strong, :root[lang="ar"] .contact-item h3,
:root[lang="ar"] .prose thead th, :root[lang="ar"] .prose tbody th,
:root[lang="ar"] .footer-col h4, :root[lang="ar"] .nav-links a { font-weight: 400; }
:root[lang="ar"] .hero-stats dd { font-weight: 700; }
:root[lang="ar"] strong { font-weight: 700; }
:root[lang="ar"] .card h3 { font-weight: 700; }

/* ---------- hero: signal propagation ---------- */
.signal {
	position: relative; display: grid; place-items: center;
	width: min(100%, 30rem); aspect-ratio: 1; margin-inline: auto;
}
.signal::before {                     /* soft core glow */
	content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle,
		color-mix(in srgb, var(--brand-500) 22%, transparent) 0%, transparent 68%);
	filter: blur(6px);
}
.signal-ring {                        /* expanding signal wavefronts */
	position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
	opacity: 0; animation: signal 6s cubic-bezier(.16,.62,.3,1) infinite;
}
.signal-ring:nth-of-type(2) { animation-delay: 2s; }
.signal-ring:nth-of-type(3) { animation-delay: 4s; }
@keyframes signal {
	0%   { transform: scale(.66); opacity: 0; }
	10%  { opacity: .5; }
	70%  { opacity: .06; }
	100% { transform: scale(2.05); opacity: 0; }
}
.signal-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.signal-orbit .track { fill: none; stroke: var(--border-strong); stroke-width: 1.25; stroke-dasharray: 2 9; opacity: 1; }
.signal-orbit .node  { stroke: none; }
.signal-orbit--a { animation: orbit 64s linear infinite; }
.signal-orbit--b { animation: orbit 46s linear infinite reverse; }
.signal-orbit--a .node { fill: var(--brand-500); }
.signal-orbit--b .node { fill: var(--gold-500); }
@keyframes orbit { to { transform: rotate(360deg); } }

.signal .mark {
	position: relative; width: 44%;
	filter: drop-shadow(0 18px 38px rgba(12, 42, 56, .22));
	animation: breathe 9s ease-in-out infinite;
}
:root[data-theme="dark"] .signal .mark { filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .55)); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .signal .mark { filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .55)); }
}
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
	.signal-ring { opacity: .28; transform: scale(1.35); animation: none; }
	.signal-ring:nth-of-type(2) { transform: scale(1.7); opacity: .18; }
	.signal-ring:nth-of-type(3) { transform: scale(2); opacity: .1; }
	.signal-orbit--a, .signal-orbit--b, .signal .mark { animation: none; }
}
