/* =========================================================
   OuglSoft — design system v9
   Emerald · Gold · Sand  |  light / dark  |  RTL / LTR
   ========================================================= */

:root {
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23c8952a' stroke-opacity='.30' stroke-width='1'%3E%3Cpath d='M48.00,18.00 L54.89,31.37 L69.21,26.79 L64.63,41.11 L78.00,48.00 L64.63,54.89 L69.21,69.21 L54.89,64.63 L48.00,78.00 L41.11,64.63 L26.79,69.21 L31.37,54.89 L18.00,48.00 L31.37,41.11 L26.79,26.79 L41.11,31.37Z'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3Cpath d='M0.00,-14.00 L3.06,-7.39 L9.90,-9.90 L7.39,-3.06 L14.00,0.00 L7.39,3.06 L9.90,9.90 L3.06,7.39 L0.00,14.00 L-3.06,7.39 L-9.90,9.90 L-7.39,3.06 L-14.00,0.00 L-7.39,-3.06 L-9.90,-9.90 L-3.06,-7.39Z'/%3E%3Cpath d='M96.00,-14.00 L99.06,-7.39 L105.90,-9.90 L103.39,-3.06 L110.00,0.00 L103.39,3.06 L105.90,9.90 L99.06,7.39 L96.00,14.00 L92.94,7.39 L86.10,9.90 L88.61,3.06 L82.00,0.00 L88.61,-3.06 L86.10,-9.90 L92.94,-7.39Z'/%3E%3Cpath d='M0.00,82.00 L3.06,88.61 L9.90,86.10 L7.39,92.94 L14.00,96.00 L7.39,99.06 L9.90,105.90 L3.06,103.39 L0.00,110.00 L-3.06,103.39 L-9.90,105.90 L-7.39,99.06 L-14.00,96.00 L-7.39,92.94 L-9.90,86.10 L-3.06,88.61Z'/%3E%3Cpath d='M96.00,82.00 L99.06,88.61 L105.90,86.10 L103.39,92.94 L110.00,96.00 L103.39,99.06 L105.90,105.90 L99.06,103.39 L96.00,110.00 L92.94,103.39 L86.10,105.90 L88.61,99.06 L82.00,96.00 L88.61,92.94 L86.10,86.10 L92.94,88.61Z'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
  --font: "Readex Pro", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", "Noto Sans", "DejaVu Sans", Arial, sans-serif;

  --bg: #fbf9f3;
  --bg-2: #edf4ee;
  --surface: #ffffff;
  --surface-2: #f5f7f0;
  --text: #10201a;
  --muted: #4f625a;
  --faint: #7b8a83;
  --line: rgba(16, 32, 26, .1);
  --line-2: rgba(16, 32, 26, .18);

  --emerald-950: #04231b;
  --emerald-900: #073b2e;
  --emerald-800: #0b4d3b;
  --emerald-700: #0f6b54;
  --emerald-500: #1e9a76;
  --gold-300: #f6d48a;
  --gold-400: #efb441;
  --gold-500: #d9962a;
  --gold-700: #8f5e0e;

  --primary: var(--emerald-800);
  --primary-hover: var(--emerald-900);
  --primary-fg: #ffffff;
  --link: var(--emerald-700);
  --eyebrow: var(--emerald-700);
  --on-gold: #2b1e06;

  --hl: linear-gradient(115deg, #0b4d3b 5%, #178a63 48%, #e0962a 96%);
  --glow-a: rgba(239, 168, 57, .32);
  --glow-b: rgba(30, 154, 118, .2);
  --band-bg: linear-gradient(135deg, #06392b, #0b5a43 55%, #12785b);
  --footer-top: #0b5a43;
  --footer-bottom: #063a2b;
  --band-fg: #f3f7f4;

  --shadow-sm: 0 1px 2px rgba(16, 32, 26, .05), 0 6px 18px -8px rgba(16, 32, 26, .12);
  --shadow-md: 0 2px 4px rgba(16, 32, 26, .05), 0 18px 40px -18px rgba(7, 59, 46, .28);
  --shadow-lg: 0 40px 80px -36px rgba(7, 59, 46, .45);

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07140f;
    --bg-2: #0a1b15;
    --surface: #0e2018;
    --surface-2: #122a20;
    --text: #eaf2ed;
    --muted: #a6b9af;
    --faint: #7f9589;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --primary: var(--gold-400);
    --primary-hover: var(--gold-300);
    --primary-fg: #1e1505;
    --link: var(--gold-400);
    --eyebrow: var(--gold-400);
    --hl: linear-gradient(115deg, #a8ecd0 5%, #efb441 95%);
    --glow-a: rgba(239, 168, 57, .16);
    --glow-b: rgba(30, 154, 118, .22);
    --band-bg: linear-gradient(135deg, #0b2a21, #0e3a2d 55%, #12483a);
  --footer-top: #0b3a2d;
  --footer-bottom: #06231b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -8px rgba(0, 0, 0, .5);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .65);
    --shadow-lg: 0 40px 80px -36px rgba(0, 0, 0, .8);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07140f;
  --bg-2: #0a1b15;
  --surface: #0e2018;
  --surface-2: #122a20;
  --text: #eaf2ed;
  --muted: #a6b9af;
  --faint: #7f9589;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --primary: var(--gold-400);
  --primary-hover: var(--gold-300);
  --primary-fg: #1e1505;
  --link: var(--gold-400);
  --eyebrow: var(--gold-400);
  --hl: linear-gradient(115deg, #a8ecd0 5%, #efb441 95%);
  --glow-a: rgba(239, 168, 57, .16);
  --glow-b: rgba(30, 154, 118, .22);
  --band-bg: linear-gradient(135deg, #0b2a21, #0e3a2d 55%, #12483a);
  --footer-top: #0b3a2d;
  --footer-bottom: #06231b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -8px rgba(0, 0, 0, .5);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .65);
  --shadow-lg: 0 40px 80px -36px rgba(0, 0, 0, .8);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ar) body, body:lang(ar) { line-height: 1.95; }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { line-height: 1.4; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-400); color: #1e1505; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--primary); color: var(--primary-fg); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; text-decoration: none; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 96px); position: relative; }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.section.alt { background: var(--bg-2); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }
.icon-back { transform: scaleX(-1); }
[dir="rtl"] .icon-back { transform: none; }
.only-mobile { display: none; }

/* ---------- type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; opacity: .7; }
.display { font-size: clamp(2.5rem, 1.2rem + 5.2vw, 4.9rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
:lang(ar) .display { line-height: 1.3; letter-spacing: 0; font-size: clamp(2.3rem, 1rem + 4.6vw, 4.2rem); }
.h2 { font-size: clamp(1.8rem, 1rem + 2.8vw, 3rem); }
.h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--muted); max-width: 62ch; line-height: 1.7; }
.muted { color: var(--muted); }
.hl { background: var(--hl); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.section-head.split > div:first-child { display: grid; gap: 16px; max-width: 720px; }
@media (max-width: 720px) { .section-head.split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- buttons / chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 10px 24px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--on-gold); box-shadow: 0 10px 26px -10px rgba(217, 150, 42, .8); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn-light { background: #fff; color: var(--emerald-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .9375rem; }
.btn-lg { padding: 17px 30px; font-size: 1.0625rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .875rem; font-weight: 500; color: var(--muted); }
.chip .icon { width: 1.05em; height: 1.05em; color: var(--eyebrow); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--link); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.site-header.is-scrolled::before { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.header-inner { display: flex; align-items: center; gap: 20px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.brand-tile { width: 44px; height: 44px; border-radius: 13px; background: #f6f1e7; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(7, 59, 46, .4); overflow: hidden; }
.brand-tile img { width: 32px; height: 32px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em; }
.brand-name b { color: var(--gold-500); font-weight: 700; }
.brand-sub { font-size: .72rem; color: var(--faint); letter-spacing: .06em; margin-top: 3px; }
:lang(ar) .brand-sub { letter-spacing: 0; font-size: .8rem; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-link { white-space: nowrap; padding: 9px 15px; border-radius: 999px; font-weight: 500; font-size: .98rem; color: var(--muted); text-decoration: none !important; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav-link[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.lang-switch a { min-width: 36px; text-align: center; padding: 5px 9px; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--muted); text-decoration: none !important; }
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--bg); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.icon-btn:hover { border-color: var(--text); transform: translateY(-1px); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@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; }
}
.menu-toggle { display: none; }
@media (max-width: 1180px) {
  .header-cta { width: 42px; height: 42px; padding: 0; }
  .header-cta span { display: none; }
  .brand-sub { display: none; }
  .nav-link { padding: 9px 12px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .only-mobile { display: block; }
  .brand-sub { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 6px; padding: 24px var(--gutter) 40px; margin: 0; background: var(--bg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; overflow-y: auto; }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { font-size: 1.35rem; padding: 16px 18px; border-radius: 16px; }
  .brand-sub { display: none; }
}
@media (max-width: 420px) { .lang-switch a { min-width: 30px; padding: 5px 7px; } .header-tools { gap: 6px; } }
body.menu-open { overflow: hidden; }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 80px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: -2; background: radial-gradient(48% 42% at 78% 28%, var(--glow-a), transparent 70%), radial-gradient(44% 40% at 12% 12%, var(--glow-b), transparent 70%); }
[dir="rtl"] .hero::before { background: radial-gradient(48% 42% at 22% 28%, var(--glow-a), transparent 70%), radial-gradient(44% 40% at 88% 12%, var(--glow-b), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat) center top / 96px 96px; opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 78%); mask-image: linear-gradient(180deg, #000 0, transparent 78%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-copy .lead { max-width: 54ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual { position: relative; height: clamp(440px, 46vw, 600px); }
.hero-phone { position: absolute; width: 38%; }
.hero-phone.p1 { inset-inline-start: 4%; top: 12%; transform: rotate(-7deg); z-index: 1; }
.hero-phone.p2 { inset-inline-start: 31%; top: 0; z-index: 3; width: 42%; }
.hero-phone.p3 { inset-inline-end: 4%; top: 16%; transform: rotate(7deg); z-index: 2; }
[dir="rtl"] .hero-phone.p1 { transform: rotate(7deg); }
[dir="rtl"] .hero-phone.p3 { transform: rotate(-7deg); }
.hero-phone .phone { box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-phone.p2 { animation: floaty 7s ease-in-out infinite; }
  .hero-phone.p1 { animation: floaty-l 8s ease-in-out infinite; }
  .hero-phone.p3 { animation: floaty-r 9s ease-in-out infinite; }
  @keyframes floaty { 50% { translate: 0 -12px; } }
  @keyframes floaty-l { 50% { translate: 0 10px; } }
  @keyframes floaty-r { 50% { translate: 0 -8px; } }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: clamp(380px, 92vw, 520px); order: 2; }
}

/* ---------- phone mockup ---------- */
.phone-frame { container-type: inline-size; width: 100%; }
.phone { position: relative; aspect-ratio: var(--r, 900 / 1841); border-radius: 30px; border-radius: 9.2cqw; padding: 2.4cqw; background: linear-gradient(160deg, #26302b, #0b0f0d 60%); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset, var(--shadow-md); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; border-radius: 6.9cqw; background: var(--bg-2); }
.phone .scr { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 22px; border-radius: 6.9cqw; background: var(--bg-2); }
.phone .scr img { position: absolute; top: 0; left: 0; width: calc(var(--n, 6) * 100%); max-width: none; height: 100%; object-fit: fill; border-radius: 0; background: none; transform: translateX(calc(var(--i, 0) * -100% / var(--n, 6))); }
.phone::after { content: ""; position: absolute; top: 2.6cqw; inset-inline: 38cqw; height: 2.2cqw; border-radius: 99px; background: rgba(0, 0, 0, .55); }


/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }
.pcard { --accent: var(--emerald-700); position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 460px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; color: inherit; text-decoration: none !important; }
.pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 190px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent); pointer-events: none; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pcard-top { position: relative; display: flex; align-items: center; gap: 14px; padding: 24px 24px 0; }
.pcard-icon { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4), 0 0 0 1px var(--line); background: var(--surface-2); }
.pcard-cat { font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
:root[data-theme="dark"] .pcard-cat { color: color-mix(in srgb, var(--accent) 40%, #fff); }
.pcard-title { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.pcard-body { position: relative; padding: 18px 24px 0; display: grid; gap: 10px; }
.pcard-body p { color: var(--muted); font-size: .98rem; line-height: 1.65; }
.pcard-foot { position: relative; margin-top: auto; padding: 0 24px 0; }
.pcard-peek { position: relative; width: 56%; margin: 22px auto 0; transform: translateY(8px); transition: transform .4s var(--ease); }
.pcard:hover .pcard-peek { transform: translateY(-4px); }
.pcard-peek .phone { border-end-start-radius: 0; border-end-end-radius: 0; box-shadow: 0 -10px 40px -18px rgba(0, 0, 0, .4), 0 0 0 1.5px rgba(255, 255, 255, .1) inset; }
.pcard-peek-clip { height: 236px; overflow: hidden; }
.pcard-more { position: absolute; inset-inline-end: 18px; top: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); transition: all .25s; }
.pcard:hover .pcard-more { background: var(--text); color: var(--bg); }
.platform-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
:root[data-theme="dark"] .platform-tag { color: color-mix(in srgb, var(--accent) 35%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pcard-cat, :root:not([data-theme="light"]) .platform-tag { color: color-mix(in srgb, var(--accent) 35%, #fff); } }
/* cards with a direct play button: a stretched link covers the card, the button sits above it */
.pcard-stretch, .prow-stretch { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard-stretch:focus-visible, .prow-stretch:focus-visible { outline-offset: -6px; border-radius: inherit; }
.pcard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pcard-open, .prow-open { position: relative; z-index: 2; }

/* ---------- feature / service cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .card-grid, .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; } }
.card { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; align-content: start; gap: 14px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.7; }
.card-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, var(--emerald-800), var(--emerald-700)); color: var(--gold-300); box-shadow: 0 10px 20px -10px rgba(11, 77, 59, .7); }
.card-icon .icon { width: 24px; height: 24px; }
:root[data-theme="dark"] .card-icon { background: linear-gradient(145deg, #173f32, #1d4f40); }
.card ul { display: grid; gap: 8px; margin-top: 4px; }
.card li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--muted); line-height: 1.55; }
.card li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--gold-500); }
.vision-card { gap: 16px; padding: 32px; }
.vision-card p { font-size: 1.02rem; line-height: 1.8; }
.card-num { position: absolute; inset-inline-end: 22px; top: 18px; font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; color: color-mix(in srgb, var(--text) 7%, transparent); line-height: 1; }

.split-2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; }
@media (max-width: 900px) { .sticky-col { position: static; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.step { position: relative; padding: 0 24px 0 0; display: grid; gap: 12px; align-content: start; }
[dir="rtl"] .step { padding: 0 0 0 24px; }
.step-dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface); border: 1px solid var(--line-2); color: var(--eyebrow); position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.step::before { content: ""; position: absolute; top: 26px; inset-inline-start: 52px; inset-inline-end: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.step:last-child::before { display: none; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } .step::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-l); padding: clamp(36px, 6vw, 72px); background: var(--band-bg); color: var(--band-fg); display: grid; gap: 22px; justify-items: start; box-shadow: var(--shadow-lg); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat) center / 96px 96px; opacity: .6; -webkit-mask-image: radial-gradient(80% 120% at 100% 0, #000, transparent 70%); mask-image: radial-gradient(80% 120% at 100% 0, #000, transparent 70%); }
[dir="rtl"] .band::before { -webkit-mask-image: radial-gradient(80% 120% at 0 0, #000, transparent 70%); mask-image: radial-gradient(80% 120% at 0 0, #000, transparent 70%); }
.band::after { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-end: -120px; bottom: -220px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(239, 168, 57, .32), transparent 65%); }
.band h2 { font-size: clamp(1.8rem, 1rem + 3vw, 3.1rem); max-width: 18ch; }
:lang(ar) .band h2 { max-width: 22ch; }
.band p { color: rgba(243, 247, 244, .8); max-width: 56ch; font-size: 1.1rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(60px, 8vw, 110px); position: relative; isolation: isolate; color: #d3e4da;
  background: radial-gradient(55% 70% at 90% 62%, rgba(239, 168, 57, .17), transparent 66%), radial-gradient(46% 60% at 4% 100%, rgba(30, 154, 118, .30), transparent 70%), linear-gradient(180deg, var(--footer-top), var(--footer-bottom)); }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat) center / 96px 96px; opacity: .16; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.dunes { position: absolute; inset-inline: 0; top: -1px; width: 100%; height: 56px; transform: translateY(calc(-100% + 1px)); color: var(--footer-top); fill: currentColor; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-block: 64px 40px; }
.footer-brand { display: grid; gap: 18px; align-content: start; max-width: 360px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-sub { color: #a7c3b5; }
.footer-brand .brand-name b { color: var(--gold-400); }
.footer-brand p { color: #bcd3c7; font-size: .95rem; }
.footer-col h4 { color: var(--gold-300); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
:lang(ar) .footer-col h4 { letter-spacing: 0; font-size: 1rem; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #d6e7dd; font-size: .96rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-300); font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .875rem; color: #8aa398; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; max-width: none; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(48px, 8vw, 104px) clamp(36px, 5vw, 64px); }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 140%; z-index: -2; background: radial-gradient(50% 45% at 85% 20%, var(--glow-a), transparent 70%), radial-gradient(40% 40% at 8% 0%, var(--glow-b), transparent 70%); }
[dir="rtl"] .page-hero::before { background: radial-gradient(50% 45% at 15% 20%, var(--glow-a), transparent 70%), radial-gradient(40% 40% at 92% 0%, var(--glow-b), transparent 70%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat) center top / 96px 96px; opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.page-hero .container { display: grid; gap: 22px; justify-items: start; }
.page-hero h1 { font-size: clamp(2.3rem, 1rem + 4.4vw, 4rem); letter-spacing: -.03em; max-width: 20ch; }
:lang(ar) .page-hero h1 { font-size: clamp(2.1rem, 1rem + 3.8vw, 3.5rem); max-width: 26ch; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; color: var(--faint); }
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { opacity: .5; }

.page-hero.compact { padding-block: clamp(32px, 5vw, 56px) 16px; }
.page-hero.compact h1 { font-size: clamp(1.8rem, 1rem + 2.6vw, 2.8rem); max-width: 30ch; }

/* slim opener used by Products, Services and About */
.page-top { position: relative; isolation: isolate; padding-block: clamp(24px, 3.4vw, 40px) 0; }
.page-top::before { content: ""; position: absolute; inset: -80px 0 auto; height: 340px; z-index: -2; background: radial-gradient(50% 55% at 85% 30%, var(--glow-a), transparent 70%), radial-gradient(40% 50% at 8% 10%, var(--glow-b), transparent 70%); }
[dir="rtl"] .page-top::before { background: radial-gradient(50% 55% at 15% 30%, var(--glow-a), transparent 70%), radial-gradient(40% 50% at 92% 10%, var(--glow-b), transparent 70%); }
.page-top::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 260px; z-index: -1; background: var(--pat) center top / 96px 96px; opacity: .4; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.page-top + .section { padding-top: clamp(28px, 4vw, 48px); }

/* ---------- product rows (Products page) ---------- */
.prow-list { display: grid; gap: clamp(20px, 3vw, 32px); }
.prow { --accent: var(--emerald-700); position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 400px; overflow: hidden; color: inherit; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none !important; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.prow:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.prow-body { padding: clamp(26px, 4vw, 52px); display: grid; gap: 20px; align-content: center; justify-items: start; }
.prow-top { display: flex; align-items: center; gap: 16px; }
.prow .pcard-icon { width: 64px; height: 64px; border-radius: 18px; }
.prow-title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
:lang(ar) .prow-title { line-height: 1.35; letter-spacing: 0; }
.prow-text { color: var(--muted); font-size: 1.06rem; line-height: 1.75; max-width: 54ch; }
.prow-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.prow-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; font-weight: 500; }
.prow-facts .icon { color: var(--accent); width: 1.2em; height: 1.2em; }
:root[data-theme="dark"] .prow-facts .icon { color: color-mix(in srgb, var(--accent) 40%, #fff); }
.prow-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }
.prow-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--link); }
.prow-cta .icon { transition: transform .25s var(--ease); }
.prow:hover .prow-cta .icon { transform: translateX(4px); }
[dir="rtl"] .prow:hover .prow-cta .icon { transform: scaleX(-1) translateX(4px); }
.prow-visual { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 3%; padding: 30px 7% 0; overflow: hidden; background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 78%), linear-gradient(180deg, color-mix(in srgb, var(--accent) 11%, var(--surface-2)), color-mix(in srgb, var(--accent) 4%, var(--surface-2))); }
.prow:nth-child(even) .prow-visual { order: -1; }
.prow-phone { width: 30%; flex: none; margin-top: 44px; transition: transform .4s var(--ease); }
.prow-phone.n2 { width: 34%; margin-top: 0; }
.prow:hover .prow-phone.n2 { transform: translateY(-6px); }
.prow-phone .phone { border-end-start-radius: 0; border-end-end-radius: 0; box-shadow: 0 -10px 40px -18px rgba(0, 0, 0, .45), 0 0 0 1.5px rgba(255, 255, 255, .1) inset; }
@media (max-width: 860px) {
  .prow { grid-template-columns: 1fr; min-height: 0; }
  .prow:nth-child(even) .prow-visual { order: 0; }
  .prow-visual { height: 300px; padding-top: 24px; }
  .prow-phone { margin-top: 36px; }
}

/* ---------- product detail ---------- */
.pd-hero { --accent: var(--emerald-700); position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(28px, 4vw, 48px) clamp(32px, 4vw, 56px); }
.pd-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 150%; z-index: -2; background: radial-gradient(46% 42% at 80% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), radial-gradient(40% 36% at 10% 0%, var(--glow-a), transparent 70%); }
[dir="rtl"] .pd-hero::before { background: radial-gradient(46% 42% at 20% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), radial-gradient(40% 36% at 90% 0%, var(--glow-a), transparent 70%); }
.pd-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat) center top / 96px 96px; opacity: .4; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 28px; }
.pd-copy { display: grid; gap: 24px; justify-items: start; }
.pd-id { display: flex; align-items: center; gap: 16px; }
.pd-icon { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow-md), 0 0 0 1px var(--line); background: var(--surface); }
.pd-copy h1 { font-size: clamp(2.3rem, 1rem + 4.4vw, 4.1rem); letter-spacing: -.03em; }
:lang(ar) .pd-copy h1 { font-size: clamp(2.1rem, 1rem + 3.8vw, 3.5rem); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-stage { position: relative; height: clamp(400px, 40vw, 540px); }
.pd-stage .ph { position: absolute; width: 50%; }
.pd-stage .ph.main { inset-inline-start: 25%; top: 0; z-index: 3; }
.pd-stage .ph.back1 { inset-inline-start: 2%; top: 14%; width: 40%; transform: rotate(-6deg); z-index: 1; opacity: .96; }
.pd-stage .ph.back2 { inset-inline-end: 2%; top: 18%; width: 40%; transform: rotate(6deg); z-index: 2; opacity: .96; }
[dir="rtl"] .pd-stage .ph.back1 { transform: rotate(6deg); }
[dir="rtl"] .pd-stage .ph.back2 { transform: rotate(-6deg); }
.pd-stage.wide .ph.main { width: 58%; inset-inline-start: 21%; }
@media (max-width: 960px) { .pd-grid { grid-template-columns: 1fr; } .pd-stage { height: clamp(360px, 90vw, 520px); } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.fact { padding: 24px 26px; display: flex; gap: 16px; align-items: flex-start; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact .icon { width: 28px; height: 28px; color: var(--gold-500); margin-top: 2px; }
.fact strong { display: block; font-weight: 600; line-height: 1.35; }
.fact span { color: var(--muted); font-size: .92rem; line-height: 1.5; display: block; margin-top: 4px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; } .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--line); } }

.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .feature-list { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); line-height: 1.6; font-size: .98rem; }
.feature .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent, var(--emerald-700)) 16%, transparent); color: var(--accent, var(--emerald-700)); margin-top: 2px; }
:root[data-theme="dark"] .feature .tick { color: var(--gold-300); }
.feature .tick .icon { width: 15px; height: 15px; stroke-width: 2.6; }

/* gallery */
.shots-wrap { position: relative; }
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 34px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; -webkit-overflow-scrolling: touch; scroll-padding-inline: var(--gutter); }
.shot { flex: 0 0 auto; width: clamp(190px, 21vw, 250px); scroll-snap-align: start; display: grid; gap: 14px; margin: 0; }
.shot .phone { cursor: zoom-in; transition: transform .3s var(--ease); }
.shot:hover .phone { transform: translateY(-6px); }
.shot figcaption { font-size: .9rem; color: var(--muted); text-align: center; line-height: 1.5; padding-inline: 6px; }
.shots-nav { display: flex; gap: 10px; }
.shots-nav .icon-btn[disabled] { opacity: .4; cursor: default; }

/* notes */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .notes { grid-template-columns: 1fr; } }
.note { padding: 26px; border-radius: var(--radius); background: color-mix(in srgb, var(--gold-400) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold-500) 28%, var(--line)); display: grid; gap: 10px; align-content: start; }
.note .icon { color: var(--gold-500); width: 26px; height: 26px; }
.note h3 { font-size: 1.08rem; }
.note p { color: var(--muted); font-size: .96rem; }

/* download panel */
.dl-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.dl-panel::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--gold-400), var(--emerald-700)); }
.dl-panel h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); }
.dl-info { display: grid; gap: 16px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.dl-meta b { color: var(--text); font-weight: 600; }
.dl-actions { display: grid; gap: 10px; justify-items: stretch; min-width: 240px; }
@media (max-width: 800px) { .dl-panel { grid-template-columns: 1fr; } .dl-actions { min-width: 0; } }
.hash { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .78rem; word-break: break-all; color: var(--faint); direction: ltr; text-align: start; unicode-bidi: plaintext; }

/* legal links */
.legal-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.legal-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 500; transition: all .2s; text-decoration: none !important; }
.legal-link:hover { border-color: var(--text); transform: translateY(-2px); }
.legal-link .icon { color: var(--eyebrow); }
.legal-link small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }

/* related */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }
.rel { --accent: var(--emerald-700); display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: all .25s; }
.rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.rel img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; }
.rel strong { display: block; line-height: 1.3; }
.rel span { color: var(--muted); font-size: .875rem; }

/* ---------- downloads page ---------- */
.dl-grid { display: grid; gap: 20px; }
.dl-card { --accent: var(--emerald-700); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; }
.dl-card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.dl-card img.ic { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.dl-card h2 { font-size: 1.35rem; }
.dl-card .dl-meta { margin-top: 8px; }
.dl-card .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .dl-card { grid-template-columns: auto 1fr; } .dl-card .btn-row { grid-column: 1 / -1; justify-content: flex-start; } }
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .install { grid-template-columns: 1fr; } }
.install-step { display: grid; gap: 12px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.install-step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; font-weight: 700; }
.install-step p { color: var(--muted); font-size: .96rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside { display: grid; gap: 18px; }
.contact-card { display: grid; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-card.dark { background: var(--band-bg); color: var(--band-fg); border-color: transparent; }
.contact-card.dark p { color: rgba(243, 247, 244, .78); }
.contact-mail { display: inline-flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 600; color: inherit; direction: ltr; unicode-bidi: isolate; }
.contact-card.dark .contact-mail { color: var(--gold-300); }
.form-panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); display: grid; gap: 18px; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-weight: 600; font-size: .92rem; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-500) 25%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.contact-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-note { font-size: .875rem; color: var(--muted); }
.contact-status { min-height: 1.5em; font-weight: 500; font-size: .95rem; }
.contact-status.is-success { color: #1b8a4f; }
.contact-status.is-error { color: #c0392b; }
.contact-status.is-loading { color: var(--muted); }
:root[data-theme="dark"] .contact-status.is-success { color: #6fe0a0; }
:root[data-theme="dark"] .contact-status.is-error { color: #ff8f80; }

/* ---------- about ---------- */

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--eyebrow); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- legal ---------- */
.legal-hub { display: grid; gap: 18px; }
.legal-row { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.legal-row img { width: 52px; height: 52px; border-radius: 15px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.legal-row .ic-fallback { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, var(--emerald-800), var(--emerald-700)); color: var(--gold-300); }
.legal-row h2 { font-size: 1.15rem; }
.legal-row .btn-row { justify-content: flex-end; }
@media (max-width: 760px) { .legal-row { grid-template-columns: auto 1fr; } .legal-row .btn-row { grid-column: 1 / -1; justify-content: flex-start; } }
.doc-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: 24px clamp(48px, 7vw, 96px); }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 960px) { .toc { position: static; max-height: none; } }
.toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
:lang(ar) .toc h2 { letter-spacing: 0; font-size: .95rem; }
.toc ol { display: grid; gap: 2px; counter-reset: t; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.toc a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); text-decoration: none; }
.doc-tabs { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.doc-tabs a { padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); text-decoration: none !important; }
.doc-tabs a[aria-current="page"] { background: var(--text); color: var(--bg); }
.doc { max-width: 78ch; }
.doc .updated { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.doc .intro { font-size: 1.1rem; color: var(--muted); margin-bottom: 36px; }
.doc section { padding-top: 8px; margin-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 20px); }
.doc h2 { font-size: 1.45rem; margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; letter-spacing: -.01em; }
.doc h2 .n { flex: none; min-width: 2.1em; height: 2.1em; display: inline-grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--gold-400) 18%, transparent); color: var(--gold-700); font-size: .8em; font-weight: 700; }
:root[data-theme="dark"] .doc h2 .n { color: var(--gold-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc h2 .n { color: var(--gold-300); } }
.doc p { margin-bottom: 14px; }
.doc ul { display: grid; gap: 9px; margin: 6px 0 16px; padding-inline-start: 4px; }
.doc li { display: flex; gap: 12px; align-items: flex-start; }
.doc li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .72em; border-radius: 50%; background: var(--gold-500); }
.doc ol.rules { counter-reset: r; display: grid; gap: 14px; margin: 8px 0 18px; }
.doc ol.rules > li { display: block; counter-increment: r; padding: 18px 20px 6px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.doc ol.rules > li::before { content: counter(r); display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 0 8px; margin-inline-end: 10px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); font-size: .85rem; font-weight: 700; vertical-align: middle; }
.doc ol.rules > li > strong:first-child { font-size: 1.05rem; }
.doc ol.rules ul { margin-inline-start: 4px; }
.doc ol.plain { counter-reset: p; display: grid; gap: 10px; margin: 6px 0 16px; padding-inline-start: 24px; list-style: decimal; }
.doc ol.plain > li { display: list-item; }
.doc ol.plain > li::before { content: none; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .legal-switch { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; position: relative; overflow: hidden; isolation: isolate; }
.nf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 40% at 50% 40%, var(--glow-a), transparent 70%), var(--pat) center / 96px; opacity: .8; }
.nf .code { font-size: clamp(5rem, 22vw, 11rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.nf .stack { display: grid; gap: 20px; justify-items: center; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; background: rgba(3, 12, 8, .88); backdrop-filter: blur(8px); padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox .lb-shot { position: relative; overflow: hidden; aspect-ratio: var(--ar, .489); width: min(92vw, 520px, calc(92vh * var(--ar, .489))); border-radius: 28px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.lightbox .lb-shot img { position: absolute; top: 0; left: 0; width: calc(var(--n, 6) * 100%); max-width: none; height: 100%; transform: translateX(calc(var(--i, 0) * -100% / var(--n, 6))); }
.lightbox button { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; }
body.lightbox-open { overflow: hidden; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
@media print {
  .site-header, .site-footer, .toc, .hero-visual, .band { display: none !important; }
  body { background: #fff; color: #000; }
}
