/* =========================================================
   Najm — marketing site (Website Experience 2.0)
   Arabic-first (RTL) with English (LTR): logical properties only.
   Colours: NONE are defined here. Every colour is a theme token from
   css/themes.css (--t-*, --b-*) or a color-mix() of those tokens, so
   switching [data-theme] re-colours the whole page.
   ========================================================= */

/* ---------- Font (self-hosted Cairo, SIL OFL — assets/fonts) ---------- */
/* Hosting caches *.woff2 for a year as immutable (firebase.json): to change
   a font, ship it under a NEW file name instead of replacing these files. */
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url('assets/fonts/cairo-arabic.748022f50c.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url('assets/fonts/cairo-latin-ext.da6ada83c3.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url('assets/fonts/cairo-latin.82c13cbd13.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Semantic tokens (derived from the active theme) ---------- */
:root,
[data-theme] {
    --bg: var(--t-bg);
    --surface: var(--t-surface);
    --ink: var(--t-ink);
    --muted: var(--t-muted);
    --line: var(--t-line);
    --primary: var(--t-primary);
    --primary-dk: var(--t-primary-dk);
    --on-primary: var(--t-on-primary);
    --accent: var(--t-accent);
    --on-accent: var(--t-on-accent);
    --cool: var(--t-cool);
    --link: var(--t-link);

    --band: color-mix(in srgb, var(--t-container) 24%, var(--t-bg));
    --band-strong: color-mix(in srgb, var(--t-container) 46%, var(--t-bg));
    --raised: color-mix(in srgb, var(--t-surface) 88%, var(--t-container));
    --tint: color-mix(in srgb, var(--t-primary) 9%, transparent);
    --tint-strong: color-mix(in srgb, var(--t-primary) 16%, transparent);
    --tint-cool: color-mix(in srgb, var(--t-cool) 11%, transparent);
    --line-soft: color-mix(in srgb, var(--t-line) 62%, transparent);
    --glass: color-mix(in srgb, var(--t-bg) 78%, transparent);

    --grad-primary: linear-gradient(135deg, var(--t-primary), var(--t-primary-dk));
    --grad-deep: linear-gradient(140deg, var(--t-primary-dk) 0%, color-mix(in srgb, var(--t-primary-dk) 45%, var(--t-cool-deep)) 55%, var(--t-cool-deep) 100%);
    --grad-text: linear-gradient(100deg, var(--t-primary) 10%, var(--t-primary-dk) 60%, var(--t-cool-deep) 110%);

    --shadow-xs: 0 1px 2px color-mix(in srgb, var(--t-ink) 7%, transparent);
    --shadow-sm: 0 1px 2px color-mix(in srgb, var(--t-ink) 6%, transparent), 0 8px 24px -12px color-mix(in srgb, var(--t-ink) 18%, transparent);
    --shadow-md: 0 2px 6px color-mix(in srgb, var(--t-ink) 5%, transparent), 0 22px 48px -22px color-mix(in srgb, var(--t-primary-dk) 38%, transparent);
    --shadow-lg: 0 44px 90px -34px color-mix(in srgb, var(--t-ink) 42%, transparent);
    --shadow-primary: 0 16px 36px -14px color-mix(in srgb, var(--t-primary) 62%, transparent);

    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius: 18px;
    --radius-sm: 12px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --container: 1200px;
    --header-h: 72px;
    --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }

/* Theme switch: a short cross-fade of colours only (js/theme.js adds the
   class for 450 ms; never with reduced motion). */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
    transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease), fill 0.45s var(--ease), stroke 0.45s var(--ease), box-shadow 0.45s var(--ease) !important;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input { font: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
bdi { unicode-bidi: isolate; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--ink); }

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

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-lg { width: 1.75em; height: 1.75em; }
.sprite .fill { fill: currentColor; stroke: none; }

/* Arrows point "forward" in reading direction. */
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    inset-inline-start: 1rem;
    top: 0.75rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.muted { color: var(--muted); }
.sep { color: var(--muted); margin-inline: 0.4rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    color: var(--on-primary);
    background: var(--grad-primary);
    box-shadow: var(--shadow-primary);
}
.btn-ghost {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--link); }
.btn-outline {
    color: var(--link);
    border-color: color-mix(in srgb, var(--primary) 55%, transparent);
    background: var(--surface);
}
.btn-outline:hover { background: var(--tint); }
.btn-sm { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--primary); background: var(--raised); }
.icon-btn:active { transform: scale(0.96); }

/* Store buttons */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.55rem 1.4rem;
    border-radius: 16px;
    border: 1px solid transparent;
    text-align: start;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}
.store-btn-primary {
    color: var(--on-primary);
    background: var(--grad-primary);
    box-shadow: var(--shadow-primary);
}
.store-btn-primary:hover { transform: translateY(-2px); filter: saturate(1.1); }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn-kicker { font-size: 0.78rem; font-weight: 600; opacity: 0.92; }
.store-btn-name { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.01em; }
.store-btn.is-soon {
    cursor: default;
    color: var(--muted);
    background: var(--band);
    border: 1px dashed var(--line);
}
.store-btn-xl { min-height: 66px; padding-inline: 1.8rem; }
.store-btn-xl .store-btn-name { font-size: 1.4rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--link);
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: gap 0.25s var(--ease), border-color 0.25s;
}
.link-arrow:hover { gap: 0.8rem; border-color: currentColor; }

/* Status pills (live / not yet) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.is-live { color: color-mix(in srgb, var(--b-positive) 70%, var(--t-ink)); background: color-mix(in srgb, var(--b-positive) 13%, transparent); }
.status-pill.is-live .status-dot { box-shadow: 0 0 0 0 color-mix(in srgb, var(--b-positive) 60%, transparent); animation: live-pulse 2.2s infinite; }
.status-pill.is-soon { color: var(--muted); background: var(--band-strong); }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.badge {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--on-accent);
    background: var(--accent);
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Ticks / crosses */
.ticks li,
.crosses li {
    position: relative;
    padding-inline-start: 2rem;
    margin-block: 0.55rem;
}
.ticks li::before,
.crosses li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.42em;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: var(--tint-strong);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.85rem;
}
.ticks li::after,
.crosses li::after {
    content: '';
    position: absolute;
    inset-inline-start: 0.2rem;
    top: calc(0.42em + 0.2rem);
    width: 0.85rem;
    height: 0.85rem;
    background: var(--link);
    -webkit-mask: var(--mark) center / contain no-repeat;
    mask: var(--mark) center / contain no-repeat;
}
.ticks li::after { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.crosses li::before { background-color: var(--band-strong); }
.crosses li::after { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); background: var(--muted); }


/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: var(--glass);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-color: var(--line-soft); box-shadow: var(--shadow-sm); }
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow-xs); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.35rem; font-weight: 900; color: var(--ink); }
.brand-sub { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.26em; color: var(--link); margin-top: 0.25rem; }

.site-nav { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 0.15rem; }
.nav-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--muted);
    transition: color 0.2s, background-color 0.2s;
}
.nav-list a:hover { color: var(--ink); background: var(--tint); }
.nav-list a[aria-current="true"] { color: var(--link); }
.nav-list a[aria-current="true"]::after {
    content: '';
    position: absolute;
    inset-inline: 0.75rem;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-primary);
}
.nav-cta { min-height: 44px; padding-block: 0.4rem; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.site-nav + .header-actions { margin-inline-start: 0.25rem; }
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.35rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s;
}
.lang-toggle:hover { border-color: var(--primary); }
.theme-toggle .icon { color: var(--link); }
.theme-dot {
    position: absolute;
    inset-inline-end: 7px;
    bottom: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grad-primary);
    box-shadow: 0 0 0 2px var(--surface);
}
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-scrim { display: none; }

/* ---------- Theme picker ---------- */
.theme-picker {
    position: fixed;
    top: calc(var(--header-h) - 6px);
    inset-inline-end: max(1rem, calc((100vw - var(--container)) / 2));
    z-index: 85;
    width: min(560px, calc(100vw - 2rem));
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform-origin: top;
    animation: pop-in 0.28s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.theme-picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.theme-picker-title { font-size: 1.15rem; font-weight: 800; }
.theme-picker-sub { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

.theme-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.55rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    text-align: start;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.theme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.theme-card[aria-checked="true"] { border: 2px solid var(--primary); padding: calc(0.55rem - 1px); box-shadow: 0 0 0 4px var(--tint); }
/* The preview draws itself from its own [data-theme] scope. */
.tp-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 92px;
    padding: 8px;
    border-radius: 11px;
    background: var(--t-bg);
    border: 1px solid var(--t-line);
}
.tp-bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--t-primary), var(--t-primary-dk)); }
.tp-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    border-radius: 7px;
    background: var(--t-surface);
    border: 1px solid var(--t-line);
}
.tp-line { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--t-ink) 18%, transparent); }
.tp-line.short { width: 60%; }
.tp-foot { display: flex; align-items: center; justify-content: space-between; }
.tp-btn { width: 46%; height: 12px; border-radius: 6px; background: var(--t-primary); }
.tp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--t-accent); box-shadow: 0 0 0 2px var(--t-surface); }
.tp-swatches { display: flex; gap: 4px; }
.tp-swatches span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--t-ink) 12%, transparent); }
.tp-swatches span:nth-child(1) { background: var(--t-primary); }
.tp-swatches span:nth-child(2) { background: var(--t-primary-dk); }
.tp-swatches span:nth-child(3) { background: var(--t-accent); }
.tp-swatches span:nth-child(4) { background: var(--t-bg); }
.tp-label { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; font-weight: 800; font-size: 0.9rem; line-height: 1.3; }
.tp-default { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.tp-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--on-primary);
    background: var(--primary);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s, transform 0.25s var(--ease-spring);
}
.tp-check .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.theme-card[aria-checked="true"] .tp-check { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(4rem, 7vw, 6.5rem);
    margin-top: calc(var(--header-h) * -1);
    padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
}
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-sun {
    position: absolute;
    width: 62vmax;
    height: 62vmax;
    inset-inline-start: -18vmax;
    top: -26vmax;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent) 0%, color-mix(in srgb, var(--accent) 18%, transparent) 38%, transparent 68%);
    transform: translate3d(calc(var(--tx, 0) * var(--depth, 0) * 1px), calc(var(--ty, 0) * var(--depth, 0) * 1px), 0);
}
.hero-glow {
    position: absolute;
    width: 54vmax;
    height: 54vmax;
    inset-inline-end: -20vmax;
    bottom: -30vmax;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--cool) 22%, transparent), transparent 66%);
    transform: translate3d(calc(var(--tx, 0) * var(--depth, 0) * 1px), calc(var(--ty, 0) * var(--depth, 0) * 1px), 0);
}
.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 70%);
}
.hero-routes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    transform: translate3d(calc(var(--tx, 0) * var(--depth, 0) * 1px), calc(var(--ty, 0) * var(--depth, 0) * 1px), 0);
}
.route-base path { fill: none; stroke: color-mix(in srgb, var(--cool) 22%, transparent); stroke-width: 1.4; }
.route-flow path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 10 340;
    animation: route-flow 7s linear infinite;
    opacity: 0.75;
}
.route-flow path:nth-child(2) { animation-delay: -1.4s; stroke: var(--cool); }
.route-flow path:nth-child(3) { animation-delay: -2.8s; }
.route-flow path:nth-child(4) { animation-delay: -4.2s; stroke: var(--cool); }
.route-flow path:nth-child(5) { animation-delay: -5.6s; }
@keyframes route-flow { to { stroke-dashoffset: -700; } }
.route-nodes circle { fill: var(--surface); stroke: var(--primary); stroke-width: 2.4; }
.route-nodes .pulse { fill: none; stroke: var(--primary); transform-box: fill-box; transform-origin: center; animation: node-pulse 3s var(--ease) infinite; }
.route-nodes .d1 { animation-delay: 0.7s; }
.route-nodes .d2 { animation-delay: 1.4s; }
.route-nodes .d3 { animation-delay: 2.1s; }
@keyframes node-pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(3.2); opacity: 0; } }

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--muted);
}
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--tint-strong); }
.hero-title {
    margin-block: 1.25rem 1.1rem;
    font-size: clamp(2.6rem, 6.2vw, 4.9rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.hero-title .line { display: block; }
.accent-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.08em;
}
.hero-lead { max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: 0.95rem; color: var(--muted); }

.hero-in { opacity: 0; transform: translateY(18px); animation: hero-in 0.9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 0.12s + 0.05s); }
@keyframes hero-in { to { opacity: 1; transform: none; } }
/* The LCP candidates (headline, description, phone) are never transparent:
   they are painted on the first frame and only rise into place, so the
   entrance animation cannot delay Largest Contentful Paint. The eyebrow,
   buttons and note keep the fade-in. */
.hero-title.hero-in,
.hero-lead.hero-in,
.hero-visual.hero-in { opacity: 1; animation-name: hero-rise; animation-delay: 0s; animation-duration: 0.7s; }
@keyframes hero-rise { to { transform: none; } }

.hero-visual { position: relative; }
.hero-art img { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.hero-visual.has-art .hero-composition { display: none; }
.hero-composition { position: relative; display: grid; place-items: center; }
.hero-halo {
    position: absolute;
    width: min(520px, 90%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from 200deg, color-mix(in srgb, var(--accent) 50%, transparent), color-mix(in srgb, var(--primary) 26%, transparent), color-mix(in srgb, var(--cool) 26%, transparent), color-mix(in srgb, var(--accent) 50%, transparent));
    filter: blur(48px);
    opacity: 0.7;
    animation: halo-spin 26s linear infinite;
}
@keyframes halo-spin { to { transform: rotate(1turn); } }
.phone-stage { position: relative; display: grid; place-items: center; }

.phone {
    position: relative;
    width: min(330px, 66vw);
    padding: 11px;
    border-radius: 44px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--b-navy-deep) 88%, var(--primary-dk)), var(--b-navy-deep));
    box-shadow: var(--shadow-lg), inset 0 0 0 1.5px color-mix(in srgb, #fff 14%, transparent);
    transform: translate3d(calc(var(--tx, 0) * var(--depth, 0) * 1px), calc(var(--ty, 0) * var(--depth, 0) * 1px), 0) rotate(-2.5deg);
    animation: phone-float 7s ease-in-out infinite;
}
.hero .phone { transform-origin: bottom center; }
@keyframes phone-float { 50% { translate: 0 -10px; } }
.phone::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 84px;
    height: 22px;
    border-radius: 12px;
    background: var(--b-navy-deep);
    transform: translateX(-50%);
    z-index: 2;
}
.phone-screen {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: var(--band);
    aspect-ratio: 941 / 1672;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-screen.is-missing img { opacity: 0; }
.phone-screen.is-missing::after {
    content: 'نجم';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 3rem;
    font-weight: 900;
    color: var(--on-primary);
    background: var(--grad-deep);
}
.phone-lg { width: min(360px, 80vw); transform: none; animation: none; }

/* Screenshot overlays (match the CURRENT app; the screenshot predates them).
   Geometry is % of the 941 x 1672 screenshot; sizes use the screen's own
   width (cqw) so the overlays scale with every phone mock-up. The ribbon
   copies home_selection_card.dart _ComingSoonRibbon: 136 dp band, top 20 dp,
   end -36 dp, rotated 45°, 12 dp w800 text in the card's amber (≈411 dp screen). */
.phone-screen { container-type: inline-size; }
.shot-ad-mask {
    position: absolute;
    left: 3%;
    top: 16.7%;
    width: 94.3%;
    height: 40.1%;
    display: grid;
    place-items: center;
    border-radius: 3.2cqw;
    background:
        repeating-linear-gradient(135deg, color-mix(in srgb, var(--b-card-blue-2) 7%, transparent) 0 2cqw, transparent 2cqw 4cqw),
        linear-gradient(160deg, color-mix(in srgb, var(--b-card-amber-1) 22%, #fff), color-mix(in srgb, var(--b-card-blue-1) 20%, #fff));
    border: 0.5cqw dashed color-mix(in srgb, var(--b-card-blue-3) 35%, transparent);
}
.shot-ad-label {
    display: inline-flex;
    align-items: center;
    gap: 1.6cqw;
    padding: 1.6cqw 3.4cqw;
    border-radius: 999px;
    font-size: 3.6cqw;
    font-weight: 800;
    line-height: 1.3;
    color: var(--b-card-blue-3);
    background: color-mix(in srgb, #fff 88%, transparent);
    box-shadow: 0 1cqw 3cqw color-mix(in srgb, var(--b-navy-deep) 18%, transparent);
}
.shot-ad-label .icon { width: 4.4cqw; height: 4.4cqw; }
.shot-soon {
    position: absolute;
    left: 2.6%;
    top: 58.2%;
    width: 46%;
    height: 16.6%;
    overflow: hidden;
    border-radius: 2.6cqw;
    pointer-events: none;
}
.shot-soon-band {
    position: absolute;
    top: 4.87cqw;
    left: -8.76cqw;
    width: 33.1cqw;
    padding-block: 0.97cqw;
    text-align: center;
    font-size: 2.92cqw;
    font-weight: 800;
    line-height: 1.2;
    color: var(--b-card-amber-3);
    background: linear-gradient(#fff, color-mix(in srgb, #fff 95%, var(--b-navy-deep)));
    box-shadow: 0 0.5cqw 1.5cqw color-mix(in srgb, var(--b-navy-deep) 26%, transparent);
    transform: rotate(-45deg);
}
.phone-screen.is-missing .shot-ad-mask,
.phone-screen.is-missing .shot-soon { display: none; }

.phone-sm { width: 150px; padding: 7px; border-radius: 30px; transform: rotate(6deg); animation: none; }
.phone-sm::before { width: 44px; height: 12px; top: 12px; }
.phone-sm .phone-screen { border-radius: 24px; }

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem 0.6rem 0.75rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    transform: translate3d(calc(var(--tx, 0) * var(--depth, 0) * 1px), calc(var(--ty, 0) * var(--depth, 0) * 1px), 0);
}
.chip-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--on-primary); background: var(--grad-primary); }
.chip-a { inset-inline-end: calc(100% - 30px); top: 14%; }
.chip-b { inset-inline-start: calc(100% - 26px); top: 46%; }
.chip-b .chip-icon { background: var(--cool); color: #fff; }
.chip-c { inset-inline-end: calc(100% - 50px); bottom: 12%; }
.chip-c .chip-icon { background: var(--accent); color: var(--on-accent); }
@media (max-width: 1319px) { .float-chip { display: none; } }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    display: grid;
    place-items: center;
    width: 30px;
    height: 48px;
    border-radius: 16px;
    border: 2px solid var(--line);
    transform: translateX(-50%);
}
.scroll-cue span { width: 4px; height: 9px; border-radius: 2px; background: var(--primary); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-7px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section + .section::before {
    /* Route separator: a dashed road with a travelling dot */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(var(--container), 100% - 2.5rem);
    height: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(90deg, var(--line) 0 14px, transparent 14px 26px);
    opacity: 0.8;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--link);
}
.kicker::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-primary); }
.section-title {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.005em;
}
.section-title.display { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.section-sub { margin-top: 0.9rem; font-size: 1.1rem; color: var(--muted); }
.lead { font-size: 1.17rem; color: var(--ink); }
.card-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: var(--link);
    background: var(--tint);
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--bg), var(--band) 60%, var(--bg)); }
.about-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
.about-figure {
    position: relative;
    border-radius: var(--radius-xl);
    isolation: isolate;
}
.about-figure::before {
    /* Offset frame in the theme accent */
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: -1;
    border-radius: var(--radius-xl);
    border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
    background: repeating-linear-gradient(135deg, var(--tint) 0 2px, transparent 2px 14px);
}
[dir="rtl"] .about-figure::before { inset: 18px 18px -18px -18px; }
.about-figure picture,
.about-figure img {
    display: block;
    width: 100%;
    border-radius: var(--radius-xl);
}
.about-figure img { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-pin {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--on-primary);
    background: var(--grad-primary);
    box-shadow: var(--shadow-primary);
    animation: pin-bob 4s ease-in-out infinite;
}
.pin-1 { inset-inline-start: -14px; top: 18%; }
.pin-2 { inset-inline-end: 12%; top: -18px; animation-delay: -2s; background: var(--cool); color: #fff; }
@keyframes pin-bob { 50% { transform: translateY(-8px); } }
.about-caption {
    position: absolute;
    inset-inline-start: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: calc(100% - 28px);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.about-copy { display: grid; gap: 1.1rem; }
.about-copy p:not(.kicker):not(.lead) { color: var(--muted); }

.principles {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    margin-top: clamp(3.5rem, 6vw, 5rem);
    counter-reset: stop;
}
.principles::before {
    /* The road joining the three stops */
    content: '';
    position: absolute;
    inset-inline: 22% 4%;
    top: 34px;
    height: 3px;
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--primary) 45%, transparent) 0 12px, transparent 12px 22px);
}
.principles-head { align-self: start; }
.principles-title { font-size: 1.45rem; font-weight: 900; line-height: 1.35; }
.principle {
    position: relative;
    display: grid;
    gap: 0.6rem;
    padding: 1.4rem 1.4rem 1.6rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.principle-no { position: absolute; inset-inline-end: 1.2rem; top: 0.9rem; font-size: 2.2rem; font-weight: 900; line-height: 1; color: color-mix(in srgb, var(--primary) 18%, transparent); }
.principle-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--on-primary); background: var(--grad-primary); box-shadow: 0 0 0 6px var(--bg), var(--shadow-primary); }
.principle h4 { font-size: 1.2rem; font-weight: 800; }
.principle p { color: var(--muted); }

.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.fact-card { padding: 1.6rem 1.8rem; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); }
.fact-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.4rem; }
.fact-does { background: linear-gradient(140deg, var(--tint), transparent 70%), var(--surface); }
.fact-doesnt { background: var(--raised); }

.coverage { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.coverage-title { font-size: 1.35rem; font-weight: 900; margin-bottom: 1rem; }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.coverage-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line-soft);
}
.coverage-card h4 { font-size: 1.15rem; font-weight: 800; margin-block: 0.4rem 0.2rem; }
.coverage-card p:not(.status-pill) { color: var(--muted); }
.coverage-card.is-live .card-icon { color: #fff; border-color: transparent; background: linear-gradient(160deg, var(--b-card-blue-1), var(--b-card-blue-2) 55%, var(--b-card-blue-3)); }
.coverage-card.is-soon { background: var(--raised); border-style: dashed; }
.coverage-card.is-soon .card-icon { color: var(--muted); background: var(--band-strong); border-color: var(--line); }

/* ---------- Audience: role explorer ---------- */
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.role-tab {
    --role: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 88px;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: start;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.role-tab[data-role="driver"] { --role: var(--cool); }
.role-tab[data-role="company"] { --role: var(--t-secondary); }
.role-tab::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 4px;
    background: var(--role);
    transform: scaleX(0);
    transform-origin: var(--origin, right);
    transition: transform 0.4s var(--ease);
}
[dir="ltr"] .role-tab::after { --origin: left; }
.role-tab:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.role-tab[aria-selected="true"] { border-color: color-mix(in srgb, var(--role) 55%, transparent); box-shadow: var(--shadow-md); }
.role-tab[aria-selected="true"]::after { transform: scaleX(1); }
.role-tab-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: var(--role);
    background: color-mix(in srgb, var(--role) 12%, transparent);
    transition: background-color 0.3s, color 0.3s;
}
.role-tab-icon .icon { width: 1.6em; height: 1.6em; }
.role-tab[aria-selected="true"] .role-tab-icon { color: #fff; background: var(--role); }
.role-tab-text { display: flex; flex-direction: column; line-height: 1.35; }
.role-tab-text strong { font-size: 1.05rem; font-weight: 800; }
.role-tab-text span { font-size: 0.88rem; color: var(--muted); }

.role-panel {
    --role: var(--primary);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.5rem, 3.5vw, 3rem);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--role) 10%, transparent), transparent 60%),
        var(--surface);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
}
.role-panel[data-role-panel="driver"] { --role: var(--cool); }
.role-panel[data-role-panel="company"] { --role: var(--t-secondary); }
.role-panel.is-entering { animation: panel-in 0.5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.role-art { display: grid; place-items: center; }
.role-svg { width: 100%; max-width: 360px; height: auto; overflow: visible; }
.role-svg * { vector-effect: non-scaling-stroke; }
.ra-ring { fill: color-mix(in srgb, var(--role) 8%, transparent); stroke: color-mix(in srgb, var(--role) 25%, transparent); stroke-width: 1.5; stroke-dasharray: 6 8; animation: ring-turn 40s linear infinite; transform-origin: 160px 130px; }
@keyframes ring-turn { to { transform: rotate(1turn); } }
.ra-road { fill: none; stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.ra-dash { fill: none; stroke: var(--surface); stroke-width: 2; stroke-dasharray: 14 12; animation: road-move 1.6s linear infinite; }
@keyframes road-move { to { stroke-dashoffset: 52; } }
.ra-box { fill: var(--role); }
.ra-box.alt { fill: color-mix(in srgb, var(--role) 60%, var(--accent)); }
.ra-tape { stroke: color-mix(in srgb, #fff 60%, transparent); stroke-width: 4; fill: none; }
.ra-head, .ra-body { fill: color-mix(in srgb, var(--ink) 80%, var(--role)); }
.ra-pin { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.ra-pin.alt { fill: var(--role); }
.ra-cab { fill: color-mix(in srgb, var(--role) 70%, var(--ink)); }
.ra-window { fill: color-mix(in srgb, #fff 75%, var(--role)); }
.ra-wheel { fill: var(--ink); }
.ra-hub { fill: var(--accent); }
.ra-speed { stroke: color-mix(in srgb, var(--role) 50%, transparent); stroke-width: 4; stroke-linecap: round; fill: none; animation: speed 1.2s ease-in-out infinite; }
@keyframes speed { 50% { transform: translateX(-8px); opacity: 0.4; } }
.ra-building { fill: var(--role); }
.ra-building.alt { fill: color-mix(in srgb, var(--role) 55%, var(--ink)); }
.ra-windows { stroke: color-mix(in srgb, #fff 70%, transparent); stroke-width: 4; stroke-linecap: round; fill: none; }
.role-body { display: grid; gap: 1rem; }
.role-body h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 900; line-height: 1.35; }
.role-body .ticks li::after { background: var(--role); }
.role-body .ticks li::before { background-color: color-mix(in srgb, var(--role) 15%, transparent); }
.role-body .link-arrow { color: var(--link); }
.mini-flow { display: flex; flex-wrap: wrap; gap: 0.4rem; counter-reset: flow; }
.mini-flow li {
    counter-increment: flow;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem 0.3rem 0.4rem;
    border-radius: 999px;
    background: var(--band);
    font-weight: 700;
    font-size: 0.9rem;
}
[dir="rtl"] .mini-flow li { padding: 0.3rem 0.4rem 0.3rem 0.85rem; }
.mini-flow li::before {
    content: counter(flow);
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    color: #fff;
    background: var(--role);
}

/* ---------- How it works: route timeline ---------- */
.how { background: var(--band); }
.tablist {
    position: relative;
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.35rem;
    margin-bottom: 2.5rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}
.tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.45rem 1.3rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-weight: 800;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.3s;
}
.tab[aria-selected="true"] { color: var(--on-primary); }
.tab-indicator {
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0;
    width: 0;
    border-radius: 999px;
    background: var(--grad-primary);
    box-shadow: var(--shadow-primary);
    transition: left 0.45s var(--ease-spring), width 0.45s var(--ease-spring);
}
/* Without JS the selected tab paints its own pill. */
html:not(.js) .tab[aria-selected="true"] { background: var(--grad-primary); }

.tabpanel { outline: none; }
.tabpanel.is-entering { animation: panel-in 0.45s var(--ease); }
.steps {
    --progress: 1;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    counter-reset: step;
}
.steps::before,
.steps::after {
    content: '';
    position: absolute;
    top: 30px;
    inset-inline: 12.5%;
    height: 4px;
    border-radius: 4px;
}
.steps::before { background: repeating-linear-gradient(90deg, var(--line) 0 12px, transparent 12px 20px); }
.steps::after {
    background: var(--grad-primary);
    transform: scaleX(var(--progress));
    transform-origin: right;
    transition: transform 1.6s var(--ease);
}
[dir="ltr"] .steps::after { transform-origin: left; }
.step {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
}
.step-no {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 0.6rem;
    border-radius: 50%;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--muted);
    background: var(--surface);
    border: 2px solid var(--line);
    box-shadow: 0 0 0 8px var(--band);
    transition: color 0.4s, background-color 0.4s, border-color 0.4s, transform 0.4s var(--ease-spring), box-shadow 0.4s;
}
.step.is-lit .step-no {
    color: var(--on-primary);
    background: var(--grad-primary);
    border-color: transparent;
    box-shadow: 0 0 0 8px var(--band), var(--shadow-primary);
}
.step.is-current .step-no { transform: scale(1.1); }
.step h3 { font-size: 1.15rem; font-weight: 800; }
.step p { color: var(--muted); font-size: 0.97rem; }
.step:hover .step-no { transform: translateY(-4px) scale(1.06); }

/* ---------- Why: feature network ---------- */
.why { overflow: hidden; }
.why-mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(40% 50% at 15% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        radial-gradient(40% 50% at 85% 80%, color-mix(in srgb, var(--cool) 14%, transparent), transparent 70%),
        radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 0) 0 0 / 26px 26px;
}
.network { position: relative; display: grid; gap: 1.25rem; }
.network-lines, .network-hub { display: none; }
.network-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem; }
.node {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 60px;
    padding: 0.6rem 1rem 0.6rem 0.6rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-weight: 800;
    text-align: start;
    cursor: pointer;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
[dir="rtl"] .node { padding: 0.6rem 0.6rem 0.6rem 1rem; }
.node-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; color: var(--link); background: var(--tint); transition: background-color 0.3s, color 0.3s; }
.node:hover { transform: translateY(-2px); border-color: var(--primary); }
.node[aria-pressed="true"] { border-color: var(--primary); box-shadow: var(--shadow-md); background: var(--surface); }
.node[aria-pressed="true"] .node-icon { color: var(--on-primary); background: var(--grad-primary); }
.network-detail {
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: var(--radius-xl);
    color: var(--on-primary);
    background: var(--grad-deep);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.network-detail::after {
    content: '';
    position: absolute;
    inset-inline-end: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 30px solid color-mix(in srgb, #fff 6%, transparent);
}
.node-detail { position: relative; z-index: 1; display: grid; gap: 0.8rem; }
.node-detail.is-entering { animation: panel-in 0.4s var(--ease); }
.node-detail h3 { font-size: 1.5rem; font-weight: 900; }
.node-detail p { opacity: 0.94; }
.node-why {
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    background: color-mix(in srgb, #fff 10%, transparent);
    border-inline-start: 4px solid var(--accent);
    font-weight: 600;
}

/* Network layout (JS positions the nodes on a ring, ≥ 1081 px) */
@media (min-width: 1081px) {
    .network.is-network { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 2.5rem; }
    .network.is-network .network-stage { position: relative; aspect-ratio: 1 / 0.86; }
    .network.is-network .network-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .network.is-network .network-hub {
        position: absolute;
        left: 50%;
        top: 50%;
        display: grid;
        place-items: center;
        width: 112px;
        height: 112px;
        border-radius: 50%;
        background: var(--surface);
        box-shadow: 0 0 0 10px var(--tint), 0 0 0 22px color-mix(in srgb, var(--primary) 5%, transparent), var(--shadow-md);
        transform: translate(-50%, -50%);
        animation: hub-breathe 4s ease-in-out infinite;
    }
    .network.is-network .network-hub img { width: 56px; height: 56px; border-radius: 16px; }
    .network.is-network .network-nodes { display: block; position: absolute; inset: 0; }
    .network.is-network .network-nodes li { position: absolute; transform: translate(-50%, -50%); }
    .network.is-network .node { width: auto; white-space: nowrap; box-shadow: var(--shadow-sm); }
}
@keyframes hub-breathe { 50% { box-shadow: 0 0 0 14px var(--tint), 0 0 0 30px color-mix(in srgb, var(--primary) 4%, transparent), var(--shadow-md); } }
.net-line { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; transition: stroke 0.4s; }
.net-line.is-on { stroke: var(--primary); stroke-width: 2.5; stroke-dasharray: 10 8; animation: dash-run 1.2s linear infinite; }
.net-pulse { fill: var(--accent); }
@keyframes dash-run { to { stroke-dashoffset: -36; } }

/* ---------- Showcase (real screenshot + hotspots) ---------- */
.showcase { background: linear-gradient(180deg, var(--bg), var(--band)); }
.showcase-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
}
.showcase-visual { display: grid; justify-items: center; gap: 1rem; }
.spot-box {
    position: absolute;
    border-radius: 14px;
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 9999px color-mix(in srgb, var(--b-navy-deep) 38%, transparent);
    opacity: 0;
    transition: left 0.5s var(--ease), top 0.5s var(--ease), width 0.5s var(--ease), height 0.5s var(--ease), opacity 0.3s;
    pointer-events: none;
}
.spot-box.is-on { opacity: 1; }
.spot-marker {
    position: absolute;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--on-accent);
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--b-navy-deep);
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring);
}
.spot-marker.is-on { transform: scale(1.25); }
.spot-caption { display: none; }
.spots { display: grid; gap: 0.5rem; }
.spot-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid transparent;
    background: transparent;
    text-align: start;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.spot-item:hover { background: var(--band); }
.spot-item[aria-pressed="true"] { background: var(--tint); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.spot-no { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font-weight: 900; color: var(--muted); background: var(--band-strong); transition: background-color 0.25s, color 0.25s; }
.spot-item[aria-pressed="true"] .spot-no { color: var(--on-primary); background: var(--grad-primary); }
.spot-label { display: grid; gap: 0.1rem; }
.spot-label strong { font-weight: 800; font-size: 1.05rem; }
.spot-label span { color: var(--muted); font-size: 0.95rem; }

.capabilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; align-items: start; }
.cap {
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.3s, border-color 0.3s;
}
.cap[open] { border-color: color-mix(in srgb, var(--primary) 40%, transparent); box-shadow: var(--shadow-md); }
.cap summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 76px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    line-height: 1.35;
}
.cap summary::-webkit-details-marker { display: none; }
.cap-title { flex: 1; }
.cap-chev { color: var(--muted); transition: transform 0.3s var(--ease); }
.cap[open] .cap-chev { transform: rotate(180deg); }
.cap > p { padding: 0 1.2rem 1rem; color: var(--muted); }
.cap > .btn { margin: 0 1.1rem 1.1rem; }

/* ---------- Download ---------- */
.dl-primary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.6rem, 4.5vw, 3.5rem);
    border-radius: var(--radius-xl);
    color: var(--on-primary);
    background: var(--grad-deep);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    isolation: isolate;
}
.dl-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50% 70% at 85% 10%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
        radial-gradient(circle at 1px 1px, color-mix(in srgb, #fff 12%, transparent) 1px, transparent 0) 0 0 / 22px 22px;
}
.dl-primary-copy { display: grid; gap: 1.2rem; justify-items: start; }
.dl-head { display: flex; align-items: center; gap: 0.9rem; }
.dl-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: color-mix(in srgb, #fff 14%, transparent); }
.dl-head h3 { font-size: 1.9rem; font-weight: 900; line-height: 1.2; }
.dl-primary .status-pill.is-live { color: #fff; background: color-mix(in srgb, var(--b-positive) 55%, transparent); }
.dl-primary .store-btn-primary { color: var(--on-accent); background: var(--accent); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 80%, transparent); }
.install-steps { display: grid; gap: 0.6rem; }
.install-steps li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
.install-no { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font-weight: 900; color: var(--on-accent); background: color-mix(in srgb, var(--accent) 92%, #fff); }
.dl-meta-line { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem; border-radius: 999px; background: color-mix(in srgb, #fff 12%, transparent); font-weight: 700; font-size: 0.92rem; }
.dl-primary-visual { position: relative; display: grid; justify-items: center; }
.dl-primary-visual .phone-sm { position: absolute; inset-inline-end: -10px; bottom: -40px; box-shadow: var(--shadow-lg); }
.qr {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    width: min(300px, 100%);
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    color: var(--t-ink);
    background: #fff;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.dl-primary-visual .qr { margin-inline-end: 70px; }
.qr-frame {
    position: relative;
    display: block;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    padding: 10px;
}
.qr-frame::before {
    /* Scanner corner brackets */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background:
        linear-gradient(var(--t-primary), var(--t-primary)) top left / 26px 4px no-repeat,
        linear-gradient(var(--t-primary), var(--t-primary)) top left / 4px 26px no-repeat,
        linear-gradient(var(--t-primary), var(--t-primary)) top right / 26px 4px no-repeat,
        linear-gradient(var(--t-primary), var(--t-primary)) top right / 4px 26px no-repeat,
        linear-gradient(var(--t-primary), var(--t-primary)) bottom left / 26px 4px no-repeat,
        linear-gradient(var(--t-primary), var(--t-primary)) bottom left / 4px 26px no-repeat,
        linear-gradient(var(--t-primary), var(--t-primary)) bottom right / 26px 4px no-repeat,
        linear-gradient(var(--t-primary), var(--t-primary)) bottom right / 4px 26px no-repeat;
}
.qr-frame img { width: 100%; height: 100%; }
.qr figcaption { display: grid; gap: 0.2rem; }
.qr figcaption strong { font-weight: 800; }
.qr figcaption span { font-size: 0.9rem; color: var(--t-muted); }
.qr-url { font-size: 0.7rem; color: var(--t-muted); word-break: break-all; }

.dl-ios {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line-soft);
}
.dl-ios .dl-icon { color: var(--muted); background: var(--band); }
.dl-ios-text { flex: 1; }
.dl-ios-text h3 { font-size: 1.2rem; font-weight: 800; }
.dl-ios-text p { color: var(--muted); }

.dl-existing { margin-top: clamp(3rem, 6vw, 4.5rem); }
.dl-existing-head { display: grid; gap: 0.3rem; margin-bottom: 1.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.dl-existing-title { font-size: 1.45rem; font-weight: 900; }
.dl-existing-head p { color: var(--muted); }
.notices { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start; }
.notice {
    display: flex;
    gap: 1rem;
    padding: clamp(1.25rem, 3vw, 1.8rem);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-xs);
}
.notice-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; color: var(--link); background: var(--tint); }
.notice-body { display: grid; gap: 0.8rem; min-width: 0; }
.notice-body h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.4; }
.notice-body > p { color: var(--muted); }
.notice-points li { position: relative; padding-inline-start: 1.3rem; margin-block: 0.35rem; }
.notice-points li::before { content: ''; position: absolute; inset-inline-start: 0.2rem; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.notice-foot { font-size: 0.92rem; color: var(--muted); }
.legacy-download { display: grid; gap: 0.75rem; justify-items: start; padding-top: 0.5rem; border-top: 1px dashed var(--line); }
.dl-meta { font-size: 0.9rem; color: var(--muted); }
.play-warning { display: flex; gap: 0.7rem; padding: 0.9rem 1rem; border-radius: 14px; background: var(--band); font-size: 0.95rem; }
.play-warning > .icon { color: var(--link); margin-top: 0.2rem; }
.play-warning strong { display: block; }
.dl-details { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.dl-details summary { min-height: 44px; display: flex; align-items: center; padding: 0.5rem 1rem; cursor: pointer; font-weight: 700; color: var(--link); }
.dl-details[open] summary { border-bottom: 1px solid var(--line); }
.dl-steps { padding: 0.8rem 1rem 0 2.6rem; list-style: decimal; }
[dir="rtl"] .dl-steps { padding: 0.8rem 2.6rem 0 1rem; }
.dl-steps li { margin-block: 0.25rem; }
.hash { display: grid; gap: 0.2rem; padding: 0.8rem 1rem 1rem; font-size: 0.85rem; }
.hash dt { font-weight: 700; color: var(--muted); margin-top: 0.4rem; }
.hash code { display: block; font-size: 0.78rem; word-break: break-all; padding: 0.4rem 0.6rem; border-radius: 8px; background: var(--band); }

/* ---------- FAQ center ---------- */
.faq { background: var(--band); }
.faq-wrap { max-width: 980px; }
.faq-tools { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.faq-search {
    position: relative;
    display: flex;
    align-items: center;
}
.faq-search > .icon { position: absolute; inset-inline-start: 1.1rem; color: var(--muted); pointer-events: none; }
.faq-search input {
    width: 100%;
    min-height: 58px;
    padding: 0.6rem 1.2rem;
    padding-inline-start: 3.2rem;
    border-radius: 18px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 1.05rem;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.faq-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--tint-strong); }
.faq-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.faq-count { font-size: 0.92rem; color: var(--muted); min-height: 1.5em; }
.faq-list { display: grid; gap: 0.7rem; }
.faq-cat-head { margin-top: 1.1rem; font-size: 1rem; font-weight: 900; color: var(--link); display: flex; align-items: center; gap: 0.6rem; }
.faq-cat-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.faq-item {
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-xs);
    transition: border-color 0.3s, box-shadow 0.3s;
    interpolate-size: allow-keywords;
}
.faq-item:hover { border-color: var(--line); }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 40%, transparent); box-shadow: var(--shadow-md); }
.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
    padding: 0.9rem 1.25rem;
    padding-inline-end: 3.6rem;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    position: absolute;
    inset-inline-end: 1.1rem;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    background:
        linear-gradient(var(--link), var(--link)) center / 12px 2px no-repeat,
        linear-gradient(var(--link), var(--link)) center / 2px 12px no-repeat,
        var(--tint);
    transition: transform 0.35s var(--ease), background-color 0.3s;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-a { display: grid; gap: 0.6rem; padding: 0 1.25rem 1.2rem; color: var(--muted); border-inline-start: 3px solid transparent; }
.faq-item[open] .faq-a { border-inline-start-color: color-mix(in srgb, var(--primary) 55%, transparent); margin-inline-start: 1.25rem; padding-inline-start: 1rem; }
.faq-a ul { display: grid; gap: 0.35rem; }
.faq-a li { position: relative; padding-inline-start: 1.1rem; }
.faq-a li::before { content: ''; position: absolute; inset-inline-start: 0.1rem; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.faq-a a { color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-item.is-hit summary .faq-q mark, .faq-q mark { background: color-mix(in srgb, var(--accent) 45%, transparent); color: inherit; border-radius: 4px; padding-inline: 2px; }
.faq-empty { display: grid; justify-items: center; gap: 1rem; padding: 2rem; text-align: center; border-radius: var(--radius-lg); border: 1px dashed var(--line); background: var(--surface); }
.faq-empty-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

/* ---------- Contact ---------- */
.contact-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.6rem, 4.5vw, 3.5rem);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        var(--surface);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.contact-copy { display: grid; gap: 1rem; align-content: start; }
.contact-copy > p { color: var(--muted); }
.contact-tips { display: grid; gap: 0.5rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--band); font-size: 0.95rem; }
.contact-tips li { position: relative; padding-inline-start: 1.2rem; }
.contact-tips li::before { content: ''; position: absolute; inset-inline-start: 0.1rem; top: 0.7em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.contact-list { display: grid; gap: 0.8rem; align-content: start; }
.contact-row { display: flex; align-items: stretch; gap: 0.6rem; }
.contact-item {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 76px;
    padding: 0.8rem 1.1rem;
    border-radius: 20px;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
a.contact-item:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-sm); }
a.contact-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), var(--tint-strong), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
a.contact-item:hover::before { opacity: 1; }
.contact-text { display: grid; flex: 1; min-width: 0; line-height: 1.4; }
.contact-text strong { font-weight: 800; }
.contact-text bdi, .contact-text span { color: var(--muted); overflow-wrap: anywhere; }
.contact-arrow { color: var(--muted); transition: transform 0.3s var(--ease); }
a.contact-item:hover .contact-arrow { color: var(--link); transform: translateX(-4px); }
[dir="ltr"] a.contact-item:hover .contact-arrow { transform: translateX(4px); }
[dir="rtl"] a.contact-item:hover .contact-arrow { transform: scaleX(-1) translateX(4px); }
.copy-btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: var(--bg);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.copy-btn:hover { color: var(--link); border-color: var(--primary); }
.copy-btn.is-done { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
.contact-side { display: grid; gap: 0.8rem; align-content: start; }
.copy-status { min-height: 1.5em; font-size: 0.92rem; font-weight: 700; color: var(--link); }
.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.socials a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.socials a:hover { color: var(--link); border-color: var(--primary); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-block: 3.5rem 2rem; background: var(--band-strong); }
.footer-route {
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 4px;
    background: var(--grad-primary);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { margin-top: 0.8rem; color: var(--muted); }
.footer-heading { font-size: 1rem; font-weight: 900; margin-bottom: 0.7rem; }
.footer-col li { margin-block: 0.25rem; }
.footer-col a { display: inline-flex; min-height: 36px; align-items: center; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--link); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 800; color: var(--link); }
.to-top .icon { transform: rotate(-90deg); }

/* ---------- Floating controls ---------- */
.fab-stack {
    position: fixed;
    inset-inline-end: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}
[dir="rtl"] .fab-stack { inset-inline-end: max(16px, env(safe-area-inset-left)); }
.fab-stack > * { pointer-events: auto; }
.fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 56px;
    height: 56px;
    border-radius: 20px;
    border: 1px solid var(--line-soft);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--ease), box-shadow 0.3s, opacity 0.3s;
}
.fab:hover { transform: translateY(-3px); }

/* Back to top: a small Najm truck that "sets off" upwards */
.to-top-fab { width: 56px; padding: 0; background: var(--surface); color: var(--ink); animation: fab-in 0.4s var(--ease); }
@keyframes fab-in { from { opacity: 0; transform: translateY(12px) scale(0.9); } }
.truck-icon { width: 42px; height: 42px; overflow: visible; }
.truck-body { transform-box: view-box; transform-origin: 24px 30px; transition: transform 0.35s var(--ease); }
.t-cargo { fill: var(--primary); }
.t-cab { fill: var(--primary-dk); }
.t-window { fill: color-mix(in srgb, #fff 80%, var(--primary)); }
.t-wheel { fill: var(--ink); stroke: var(--surface); stroke-width: 1.4; }
.t-puff { fill: color-mix(in srgb, var(--muted) 55%, transparent); opacity: 0; }
.t-arrow { fill: none; stroke: var(--link); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
[dir="rtl"] .truck-body { transform: scaleX(-1); }
.to-top-fab:hover .t-arrow { transform: translateY(-2px); }
.to-top-fab.is-driving .truck-body { animation: truck-go 0.8s var(--ease) forwards; }
[dir="rtl"] .to-top-fab.is-driving .truck-body { animation-name: truck-go-rtl; }
.to-top-fab.is-driving .t-arrow { animation: arrow-go 0.8s var(--ease) forwards; }
.to-top-fab.is-driving .t-puff { animation: puff 0.6s ease-out; }
.to-top-fab .t-puff { transform-box: fill-box; transform-origin: center; }
@keyframes truck-go { 0% { transform: none; } 20% { transform: translateY(1.5px) rotate(-3deg); } 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes truck-go-rtl { 0% { transform: scaleX(-1); } 20% { transform: scaleX(-1) translateY(1.5px) rotate(-3deg); } 100% { transform: scaleX(-1) translateY(-34px); opacity: 0; } }
@keyframes arrow-go { to { transform: translateY(-20px); opacity: 0; } }
@keyframes puff { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: translateY(6px) scale(1.7); } }

/* Assistant */
.assistant { display: flex; flex-direction: column; align-items: flex-end; }
.assistant-launcher {
    padding-inline: 1.1rem;
    color: var(--on-primary);
    background: var(--grad-primary);
    border-color: transparent;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
    animation: launcher-in 0.6s var(--ease-spring) 0.8s backwards;
}
@keyframes launcher-in { from { opacity: 0; transform: translateY(20px) scale(0.8); } }
.assistant-launcher .icon { width: 1.45em; height: 1.45em; }
.assistant-launcher[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(0.85); }
.assistant-panel {
    position: fixed;
    inset-inline-end: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(400px, calc(100vw - 32px));
    height: min(640px, calc(100dvh - var(--header-h) - 40px));
    border-radius: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform-origin: bottom right;
    animation: panel-open 0.35s var(--ease);
}
[dir="rtl"] .assistant-panel { inset-inline-end: max(16px, env(safe-area-inset-left)); transform-origin: bottom left; }
@keyframes panel-open { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
.assistant-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 0.9rem 0.9rem 1rem;
    color: var(--on-primary);
    background: var(--grad-deep);
}
.assistant-head .icon-btn { width: 40px; height: 40px; border-radius: 12px; color: var(--on-primary); background: color-mix(in srgb, #fff 12%, transparent); border-color: color-mix(in srgb, #fff 18%, transparent); }
.assistant-head .icon-btn:hover { background: color-mix(in srgb, #fff 22%, transparent); }
.assistant-avatar img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 0 0 2px color-mix(in srgb, #fff 30%, transparent); }
.assistant-titles { flex: 1; min-width: 0; line-height: 1.3; }
.assistant-title { font-size: 1.02rem; font-weight: 900; }
.assistant-sub { font-size: 0.78rem; opacity: 0.88; }
.assistant-log {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--band);
    scroll-behavior: smooth;
}
.msg { display: flex; flex-direction: column; gap: 0.45rem; max-width: 88%; animation: msg-in 0.3s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.msg-user { align-self: flex-end; }
.msg-bot { align-self: flex-start; }
.bubble {
    padding: 0.65rem 0.9rem;
    border-radius: 18px;
    line-height: 1.65;
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}
.msg-user .bubble { color: var(--on-primary); background: var(--grad-primary); border-end-end-radius: 6px; }
.msg-bot .bubble { color: var(--ink); background: var(--surface); border: 1px solid var(--line-soft); border-end-start-radius: 6px; box-shadow: var(--shadow-xs); }
.bubble p + p, .bubble p + ul, .bubble ul + p { margin-top: 0.45rem; }
.bubble ul { display: grid; gap: 0.25rem; padding-inline-start: 1rem; list-style: disc; }
.bubble-title { display: block; font-weight: 800; margin-bottom: 0.25rem; color: var(--link); }
.msg-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.msg-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
    background: var(--surface);
    color: var(--link);
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
}
.msg-link:hover { background: var(--tint); }
.msg-meta { font-size: 0.74rem; color: var(--muted); }
.typing { display: inline-flex; gap: 5px; padding: 0.85rem 1rem; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-5px); opacity: 1; } }
.assistant-suggest { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.suggest-chip {
    min-height: 36px;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    text-align: start;
    transition: border-color 0.2s, background-color 0.2s;
}
.suggest-chip:hover { border-color: var(--primary); background: var(--tint); }
.assistant-jump {
    position: absolute;
    left: 50%;
    bottom: 132px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 36px;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    font-size: 0.85rem;
    transform: translateX(-50%);
    cursor: pointer;
}
.assistant-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--line-soft);
    background: var(--surface);
}
.assistant-form input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}
.assistant-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-strong); }
.assistant-send {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    color: var(--on-primary);
    background: var(--grad-primary);
    cursor: pointer;
}
.assistant-note { padding: 0 0.9rem 0.75rem; font-size: 0.72rem; line-height: 1.5; color: var(--muted); background: var(--surface); }
html.assistant-open .to-top-fab { display: none; }

/* ---------- Pointer-following light on cards (fine pointers only) ---------- */
.principle, .coverage-card, .cap, .notice, .fact-card { position: relative; }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 0.1s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-image { clip-path: inset(8% 8% 8% 8% round var(--radius-xl)); transform: scale(0.97); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease), opacity 0.8s var(--ease); }
.js .reveal-image.is-visible { clip-path: inset(-40px -40px -40px -40px round var(--radius-xl)); transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .menu-toggle { display: inline-grid; }
    .site-nav {
        position: fixed;
        top: var(--header-h);
        inset-inline: 0;
        z-index: 55;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin: 0;
        padding: 1rem 1.25rem 1.5rem;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    }
    /* Visible at once on open (so focus can move in); fades out on close. */
    .site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
    .nav-list a { min-height: 50px; font-size: 1.05rem; }
    .site-nav.is-open .nav-list li { animation: menu-item 0.35s var(--ease) backwards; }
    .site-nav.is-open .nav-list li:nth-child(2) { animation-delay: 0.03s; }
    .site-nav.is-open .nav-list li:nth-child(3) { animation-delay: 0.06s; }
    .site-nav.is-open .nav-list li:nth-child(4) { animation-delay: 0.09s; }
    .site-nav.is-open .nav-list li:nth-child(5) { animation-delay: 0.12s; }
    .site-nav.is-open .nav-list li:nth-child(6) { animation-delay: 0.15s; }
    .site-nav.is-open .nav-list li:nth-child(7) { animation-delay: 0.18s; }
    @keyframes menu-item { from { opacity: 0; transform: translateY(-6px); } }
    .nav-list a[aria-current="true"]::after { display: none; }
    .header-actions { margin-inline-start: auto; }
    .nav-scrim { position: fixed; inset: var(--header-h) 0 0; z-index: 40; background: color-mix(in srgb, var(--b-navy-deep) 30%, transparent); }
    html.menu-open .nav-scrim { display: block; }
    html.menu-open { overflow: hidden; }
    .principles { grid-template-columns: repeat(3, 1fr); }
    .principles-head { grid-column: 1 / -1; }
    .principles::before { top: calc(2.4rem + 34px + 1rem); inset-inline: 8%; }
    .capabilities { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-copy { display: grid; justify-items: center; }
    .hero-actions { justify-content: center; }
    .hero-lead { margin-inline: auto; }
    .about-stage { grid-template-columns: 1fr; }
    .about-figure::before { inset: 12px -10px -12px 10px; }
    [dir="rtl"] .about-figure::before { inset: 12px 10px -12px -10px; }
    .role-panel { grid-template-columns: 1fr; }
    .role-art { max-width: 300px; margin-inline: auto; }
    .showcase-feature { grid-template-columns: 1fr; }
    .dl-primary { grid-template-columns: 1fr; }
    .dl-primary-visual { justify-self: center; }
    .notices { grid-template-columns: 1fr; }
    .contact-panel { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
    .steps::before, .steps::after { display: none; }
}

@media (max-width: 760px) {
    .role-tabs { grid-template-columns: 1fr; gap: 0.6rem; }
    .role-tab { min-height: 72px; padding: 0.75rem 1rem; }
    .role-tab-icon { width: 44px; height: 44px; }
    .about-facts, .coverage-grid { grid-template-columns: 1fr; }
    .principles { grid-template-columns: 1fr; }
    .principles::before { display: none; }
    /* Vertical route timeline */
    .steps { grid-template-columns: 1fr; row-gap: 1.25rem; }
    .steps::before, .steps::after {
        display: block;
        top: 32px;
        bottom: 32px;
        inset-inline: auto;
        inset-inline-start: 30px;
        width: 4px;
        height: auto;
    }
    .steps::before { background: repeating-linear-gradient(180deg, var(--line) 0 12px, transparent 12px 20px); }
    .steps::after { transform: scaleY(var(--progress)); transform-origin: top; }
    .step { grid-template-columns: 64px 1fr; justify-items: start; text-align: start; column-gap: 1rem; row-gap: 0.1rem; }
    .step .step-no { grid-row: span 2; margin: 0; }
    .step h3 { align-self: end; }
    .tablist { display: flex; width: 100%; }
    .tab { flex: 1; justify-content: center; padding-inline: 0.6rem; }
    .dl-ios { flex-wrap: wrap; }
}

@media (max-width: 640px) {
    :root { --header-h: 64px; }
    .container { width: min(100% - 2rem, var(--container)); }
    .brand-sub { display: none; }
    .lang-toggle { padding-inline: 0.7rem; }
    .lang-toggle .icon { display: none; }
    .theme-picker {
        position: fixed;
        top: auto;
        bottom: 0;
        inset-inline: 0;
        width: 100%;
        max-height: 85dvh;
        overflow-y: auto;
        border-radius: 26px 26px 0 0;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
        animation: sheet-up 0.32s var(--ease);
    }
    @keyframes sheet-up { from { transform: translateY(100%); } }
    .theme-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: clamp(2.3rem, 11vw, 3rem); }
    .store-btn { width: 100%; justify-content: center; }
    .hero-actions .btn { width: 100%; }
    .network-nodes { grid-template-columns: 1fr 1fr; }
    .node { flex-direction: column; text-align: center; padding: 0.8rem 0.5rem; gap: 0.4rem; font-size: 0.92rem; line-height: 1.35; }
    [dir="rtl"] .node { padding: 0.8rem 0.5rem; }
    .capabilities { grid-template-columns: 1fr; }
    .faq-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.4rem; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: thin; }
    .faq-item summary { font-size: 1rem; padding-inline-start: 1rem; }
    .faq-item[open] .faq-a { margin-inline-start: 1rem; padding-inline-start: 0.8rem; }
    .dl-primary-visual .qr { margin-inline-end: 0; }
    .dl-primary-visual .phone-sm { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .spot-caption {
        display: grid;
        gap: 0.2rem;
        width: 100%;
        padding: 0.8rem 1rem;
        border-radius: 16px;
        background: var(--tint);
        text-align: center;
    }
    .spot-caption strong { font-weight: 800; }
    .spot-caption span { color: var(--muted); font-size: 0.95rem; }
    .spot-caption.is-swapping { animation: panel-in 0.35s var(--ease); }
    .spots { display: none; }
    .launcher-label { display: none; }
    .assistant-launcher { width: 56px; padding: 0; }
    .assistant-panel {
        inset-inline: 0 !important;
        bottom: 0;
        width: 100%;
        height: min(88dvh, 720px);
        border-radius: 26px 26px 0 0;
        transform-origin: bottom center;
        animation: sheet-up 0.32s var(--ease);
    }
    .assistant-form { padding-bottom: max(0.75rem, env(safe-area-inset-bottom)); }
    .scroll-cue { display: none; }
}

@media (max-width: 380px) {
    .header-inner { gap: 0.5rem; }
    .header-actions { gap: 0.35rem; }
    .icon-btn { width: 40px; height: 40px; }
    .lang-toggle { min-height: 40px; padding-inline: 0.55rem; font-size: 0.9rem; }
    .brand-name { font-size: 1.2rem; }
    .brand-mark { width: 34px; height: 34px; }
    .eyebrow { font-size: 0.82rem; padding-inline: 0.8rem; }
    .network-nodes { grid-template-columns: 1fr; }
    .node { flex-direction: row; text-align: start; }
    .theme-grid { gap: 0.5rem; }
    .tab { font-size: 0.9rem; gap: 0.3rem; }
    .tab .icon { display: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }
    .hero-in { opacity: 1; transform: none; }
    .js .reveal, .js .reveal-image { opacity: 1; transform: none; clip-path: none; }
    .route-flow { display: none; }
    .phone { translate: none; }
}
