/* ==========================================================================
   HAAT Global — unified light theme
   Colours & shapes are taken from the HAAT logo:
   - blue  #094A8D (frame, divider, "هات")   - purple #A145A1 (HAAT letters)
   - the frame: small top-start hook, big rounded top-end corner, open base
   - the thin divider line and the round loop of "ه"
   ========================================================================== */

:root {
    color-scheme: light;

    /* brand (sampled from the logo) */
    --blue: #094A8D;
    --blue-600: #0C5AA8;
    --blue-400: #2F7BE0;
    --blue-100: #E6EEF8;
    --blue-50: #F2F6FC;
    --purple: #A145A1;
    --purple-400: #B85DB6;
    --purple-100: #F4E8F4;
    --grad: linear-gradient(120deg, var(--blue) 0%, var(--blue-600) 35%, var(--purple) 100%);
    --grad-text: linear-gradient(110deg, var(--blue) 10%, var(--blue-400) 45%, var(--purple) 90%);
    --grad-soft: linear-gradient(135deg, var(--blue-100), var(--purple-100));

    /* surfaces */
    --bg: #F6F8FC;
    --bg-2: #FFFFFF;
    --bg-3: #EDF2F9;
    --surface: #FFFFFF;
    --glass: rgba(255, 255, 255, .72);
    --line: rgba(9, 74, 141, .10);
    --line-2: rgba(9, 74, 141, .18);

    /* text */
    --text: #0B1A33;
    --text-2: #33445F;
    --muted: #66758F;
    --success: #15A26B;
    --danger: #D83A56;

    /* shape (logo frame) */
    --r-sm: 12px;
    --r: 18px;
    --r-lg: 28px;
    --r-xl: 40px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(9, 74, 141, .06), 0 4px 14px -6px rgba(9, 74, 141, .12);
    --shadow: 0 2px 4px rgba(9, 74, 141, .04), 0 18px 40px -20px rgba(9, 74, 141, .25);
    --shadow-lg: 0 30px 70px -30px rgba(9, 74, 141, .35);
    --glow-blue: 0 14px 34px -12px rgba(9, 74, 141, .55);
    --glow-purple: 0 14px 34px -12px rgba(161, 69, 161, .5);

    --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --header-h: 76px;
    --edge: clamp(10px, 1.4vw, 16px);
    --container: 1240px;
    --gutter: clamp(18px, 4vw, 40px);
    --section: clamp(72px, 10vw, 136px);
}

@view-transition { navigation: auto; }

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 32px); background: var(--bg); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body::before { /* soft ambient brand light */
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 90% -10%, rgba(47, 123, 224, .10), transparent 60%),
        radial-gradient(800px 600px at -10% 45%, rgba(161, 69, 161, .07), transparent 60%),
        var(--bg);
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(161, 69, 161, .2); color: var(--text); }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
[data-count], .callout-value, .stat-value, .price, bdi { unicode-bidi: isolate; }
[data-count] { direction: ltr; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); display: inline-block; }
.fi { display: inline-flex; line-height: 1; }
.fi::before { line-height: 1; }

.skip-link {
    position: fixed; top: 10px; inset-inline-start: 10px; z-index: 10000;
    padding: 10px 16px; border-radius: var(--r-pill); background: var(--blue); color: #fff;
    transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-3); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--purple)); border-radius: 10px; border: 2px solid var(--bg-3); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: calc(var(--section) / 2); }
.section:last-child { padding-bottom: var(--section); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--text-2); }
.section:not(:first-child) { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* --------------------------------------------------------------- typography helpers */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue);
}
[dir="rtl"] .eyebrow { letter-spacing: .02em; font-size: .9rem; }
.eyebrow::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--grad); } /* logo divider */
.eyebrow .fi { color: var(--purple); }
.eyebrow:has(.fi)::before { display: none; }

.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 3rem); text-wrap: balance; }
.section-subtitle { color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head-row .section-head { margin-bottom: 0; }

/* --------------------------------------------------------------- frame shape (logo) */
.frame { position: relative; isolation: isolate; }
.frame::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    border-radius: inherit; padding: 1.5px;
    background: linear-gradient(215deg, rgba(9, 74, 141, .75), rgba(161, 69, 161, .45) 30%, transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
[dir="rtl"] .frame::before { background: linear-gradient(145deg, rgba(9, 74, 141, .75), rgba(161, 69, 161, .45) 30%, transparent 60%); }

/* --------------------------------------------------------------- icon tile (ring of "ه") */
.icon-tile {
    --s: 48px;
    position: relative; flex: none;
    display: inline-grid; place-items: center;
    width: var(--s); height: var(--s);
    border-radius: 14px 18px 18px 8px;
    color: var(--blue); font-size: calc(var(--s) * .42);
    background: var(--grad-soft);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease), color .3s;
}
[dir="rtl"] .icon-tile { border-radius: 18px 14px 8px 18px; }
.icon-tile::after {
    content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
    inset-block-start: -2px; inset-inline-end: -2px;
    background: var(--purple); box-shadow: 0 0 0 3px #fff;
    opacity: 0; transform: scale(.4); transition: .4s var(--ease);
}
.icon-tile.sm { --s: 34px; border-radius: 10px 12px 12px 6px; }
.icon-tile.lg { --s: 58px; }
.icon-tile.xl { --s: 120px; border-radius: 34px 48px 48px 18px; font-size: 48px; }
.card:hover .icon-tile, a:hover > .icon-tile, a:focus-visible > .icon-tile {
    color: #fff; background: var(--grad); box-shadow: var(--glow-purple); transform: translateY(-2px) rotate(-4deg);
}
.card:hover .icon-tile::after, a:hover > .icon-tile::after { opacity: 1; transform: scale(1); }

/* --------------------------------------------------------------- buttons */
.btn {
    --h: 52px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: var(--h); padding-block: 6px; padding-inline: 24px 6px;
    border-radius: var(--r-pill);
    font-weight: 500; font-size: .98rem; line-height: 1.2; white-space: nowrap;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease), color .3s;
}
.btn > span:first-child { padding-block: 4px; }
.btn-orb {
    display: grid; place-items: center; flex: none;
    width: calc(var(--h) - 12px); height: calc(var(--h) - 12px); border-radius: 50%;
    font-size: 1.1rem; transition: transform .5s var(--ease), background .4s;
}
.btn:hover .btn-orb { transform: translateX(3px) rotate(-12deg); }
[dir="rtl"] .btn:hover .btn-orb { transform: translateX(-3px) rotate(12deg); }
.btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }

.btn-primary { color: #fff; background: var(--grad); background-size: 160% 100%; box-shadow: var(--glow-blue); }
.btn-primary:hover { background-position: 100% 0; box-shadow: var(--glow-purple); transform: translateY(-2px); }
.btn-primary .btn-orb { background: rgba(255, 255, 255, .2); }

.btn-ghost { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(161, 69, 161, .45), var(--shadow); }
.btn-ghost .btn-orb { background: var(--grad); color: #fff; }

.btn-light { color: var(--blue); background: #fff; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .35); }
.btn-light:hover { transform: translateY(-2px); }
.btn-light .btn-orb { background: var(--grad); color: #fff; }

.btn-sm { --h: 42px; font-size: .9rem; padding-inline: 18px 5px; }
.btn:not(:has(.btn-orb)) { padding-inline: 22px; }
.btn-block { width: 100%; justify-content: space-between; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .75; }

.icon-btn {
    display: inline-grid; place-items: center; gap: 4px;
    min-width: 42px; height: 42px; padding-inline: 10px;
    border-radius: var(--r-pill); color: var(--text);
    background: #fff; box-shadow: inset 0 0 0 1px var(--line);
    transition: background .3s, box-shadow .3s, transform .3s var(--ease), color .3s;
    font-size: 1.05rem;
}
.icon-btn:hover { color: var(--blue); box-shadow: inset 0 0 0 1px rgba(161, 69, 161, .45), var(--shadow-sm); transform: translateY(-1px); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--blue);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .45s var(--ease), color .3s;
}
[dir="rtl"] .link-arrow { background-position: 100% 100%; }
.link-arrow .fi { transition: transform .4s var(--ease); color: var(--purple); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover .fi-rr-arrow-small-right { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .fi-rr-arrow-small-right { transform: scaleX(-1) translateX(4px); }

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--r-pill);
    font-size: .7rem; font-style: normal; font-weight: 500; line-height: 1.5;
    color: var(--purple); background: var(--purple-100); box-shadow: inset 0 0 0 1px rgba(161, 69, 161, .2);
    white-space: nowrap;
}
.badge-glow { color: #fff; background: var(--grad); box-shadow: var(--glow-purple); }

/* --------------------------------------------------------------- glass & cards */
.glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.card {
    --mx: 50%; --my: 50%;
    position: relative; isolation: isolate; min-width: 0;
    padding: clamp(22px, 2.6vw, 32px);
    border-radius: var(--r) var(--r-xl) var(--r-lg) var(--r-lg); /* logo frame */
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
    transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .6s var(--ease);
    overflow-wrap: anywhere;
}
[dir="rtl"] .card { border-radius: var(--r-xl) var(--r) var(--r-lg) var(--r-lg); }
.card::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47, 123, 224, .08), rgba(161, 69, 161, .05) 40%, transparent 65%);
    opacity: 0; transition: opacity .5s;
}
.card:hover::after { opacity: 1; }
a.card:hover, .feature-card:hover, .product-card:hover, .team-card:hover, .plan:hover, .logo-card:hover {
    transform: translateY(-6px);
    box-shadow: inset 0 0 0 1px rgba(161, 69, 161, .28), var(--shadow-lg);
}
.card-title { display: block; font-size: 1.18rem; font-weight: 600; margin-block: 18px 8px; color: var(--text); }
.card-text { display: block; color: var(--muted); font-size: .95rem; }
.card-arrow {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--blue);
    background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--line); transition: .4s var(--ease);
}
.card:hover .card-arrow { color: #fff; background: var(--grad); box-shadow: none; transform: rotate(-35deg); }
[dir="rtl"] .card:hover .card-arrow { transform: rotate(35deg); }

/* --------------------------------------------------------------- forms */
.form { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: .88rem; font-weight: 500; color: var(--text-2); }
.input-wrap { position: relative; }
.input-wrap > .fi { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color .3s; }
.input-wrap .input { padding-inline-start: 46px; }
.input-wrap .input-action { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.input-wrap .input-action:hover { color: var(--blue); background: var(--blue-50); }
.input-wrap:has(.input-action) .input { padding-inline-end: 52px; }
.input {
    width: 100%; min-height: 52px; padding: 12px 18px;
    font: inherit; font-size: .96rem; color: var(--text);
    border: 0; border-radius: 14px 18px 18px 8px; outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: box-shadow .35s var(--ease), background .35s var(--ease);
}
[dir="rtl"] .input { border-radius: 18px 14px 8px 18px; }
[dir="rtl"] .input[dir="ltr"] { text-align: right; }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.7; }
.input::placeholder { color: #9AA6BA; }
.input:hover { box-shadow: inset 0 0 0 1px rgba(9, 74, 141, .3); }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(47, 123, 224, .14); }
.input-wrap:focus-within > .fi { color: var(--purple); }
.input-group { display: flex; align-items: center; gap: 6px; position: relative; padding: 5px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .35s; }
.input-group:focus-within { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(47, 123, 224, .12); }
.input-group > .fi { padding-inline-start: 12px; color: var(--muted); }
.input-group .input { min-height: 40px; background: transparent; box-shadow: none; padding-inline: 6px; }
.form-note { margin-top: 10px; font-size: .88rem; display: flex; gap: 8px; align-items: center; }
.form-note.success { color: var(--success); }
.captcha { min-height: 78px; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--text-2); }
.check-row label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); }

.dropzone {
    position: relative; display: grid; justify-items: center; gap: 8px; text-align: center;
    padding: 26px; border-radius: var(--r) var(--r-lg) var(--r-lg) var(--r-sm); cursor: pointer;
    background: var(--blue-50);
    border: 1.5px dashed rgba(161, 69, 161, .4); transition: background .3s, border-color .3s;
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:hover, .dropzone.is-over { background: var(--purple-100); border-color: var(--blue); }
.dropzone small { color: var(--muted); }
.dropzone.has-file .dropzone-text { color: var(--success); }

.switch { position: relative; display: inline-block; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; }
.switch-track { display: block; width: 58px; height: 32px; border-radius: var(--r-pill); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .4s; }
.switch-thumb { position: absolute; top: 4px; inset-inline-start: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .45s var(--ease); box-shadow: 0 2px 8px rgba(9, 74, 141, .3); }
.switch input:checked + .switch-track { background: var(--grad); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(26px); }
[dir="rtl"] .switch input:checked + .switch-track .switch-thumb { transform: translateX(-26px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--blue-400); outline-offset: 3px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin-top: 18px; font-size: .92rem; }
.alert .fi { font-size: 1.2rem; margin-top: 3px; }
.alert-success { background: #E8F7F0; box-shadow: inset 0 0 0 1px rgba(21, 162, 107, .3); color: #0E6E49; }
.alert-error { background: #FDECEF; box-shadow: inset 0 0 0 1px rgba(216, 58, 86, .3); color: #A3243B; }
.alert ul { display: grid; gap: 2px; }

/* ==========================================================================
   Header — floating glass bubble
   ========================================================================== */
.site-header { position: fixed; z-index: 1000; top: var(--edge); inset-inline: var(--edge); pointer-events: none; }
.header-shell {
    position: relative; pointer-events: auto;
    max-width: 1440px; margin-inline: auto;
    display: flex; align-items: center; gap: 18px;
    height: var(--header-h); padding-inline: 14px 10px;
    border-radius: var(--r-pill);
    transition: height .5s var(--ease), max-width .6s var(--ease);
}
/* glass lives on a pseudo element: backdrop-filter on the shell itself would
   trap the fixed mobile drawer inside the bubble */
.header-shell::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(255, 255, 255, .35);
    box-shadow: inset 0 0 0 1px rgba(9, 74, 141, .06);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background .6s var(--ease), box-shadow .6s var(--ease), -webkit-backdrop-filter .6s, backdrop-filter .6s;
}
.site-header.is-scrolled .header-shell, .site-header.is-open .header-shell { --header-h: 66px; max-width: 1320px; }
.site-header.is-scrolled .header-shell::before, .site-header.is-open .header-shell::before {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    box-shadow: inset 0 0 0 1px rgba(9, 74, 141, .1), 0 18px 44px -20px rgba(9, 74, 141, .35);
}
.electrons { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s; }
.site-header.is-charged .electrons { opacity: 1; }

.brand { position: relative; display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { width: auto; height: 46px; transition: transform .6s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; font-weight: 600; color: var(--blue); }
.brand-text small { font-size: .7rem; color: var(--muted); }
.brand-lg .brand-logo { height: 72px; }
.brand-lg .brand-text strong { font-size: 1.3rem; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    height: 42px; padding-inline: 16px; border-radius: var(--r-pill);
    font-size: .94rem; font-weight: 500; color: var(--text-2); white-space: nowrap;
    transition: color .3s, background .3s;
}
.nav-link::after {
    content: ""; position: absolute; inset-inline: 18px; bottom: 6px; height: 2px; border-radius: 2px;
    background: var(--grad); transform: scaleX(0); transition: transform .45s var(--ease);
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--blue); background: rgba(9, 74, 141, .06); }
.nav-link.is-active, .nav-item.is-current > .nav-link { color: var(--blue); }
.nav-link.is-active::after, .nav-item.is-current > .nav-link::after { transform: scaleX(1); }
.nav-caret { font-size: .9rem; transition: transform .4s var(--ease); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }
.brand-text strong, .brand-text small, .nav-link span, .btn > span:first-child, .lang-btn span { white-space: nowrap; line-height: 1.5; }
.lang-btn { display: inline-flex; gap: 6px; font-size: .85rem; font-weight: 600; }
.lang-btn .fi { font-size: 1rem; }
.burger { display: none; }
.burger-lines { display: grid; gap: 4px; width: 18px; }
.burger-lines i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), opacity .3s, width .4s var(--ease); }
.burger-lines i:nth-child(2) { width: 70%; }
.nav-drawer-head, .nav-drawer-foot { display: none; }

/* ---- mega menu (full width of the bubble) */
.mega {
    position: absolute; top: calc(100% + 10px); inset-inline: 0;
    visibility: hidden; opacity: 0; transform: translateY(-10px) scale(.985); transform-origin: top center;
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
    pointer-events: none;
}
.nav-item.is-open > .mega { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s; }
.mega::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.mega-inner {
    display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 14px;
    padding: 14px; border-radius: 30px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
    box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -30px rgba(9, 74, 141, .4);
}
.mega-intro {
    position: relative; overflow: hidden; display: grid; align-content: start; gap: 12px;
    padding: 26px; border-radius: 18px 30px 22px 22px;
    background: radial-gradient(120% 90% at 100% 0%, rgba(47, 123, 224, .16), transparent 60%), radial-gradient(100% 80% at 0% 100%, rgba(161, 69, 161, .14), transparent 60%), var(--blue-50);
}
[dir="rtl"] .mega-intro { border-radius: 30px 18px 22px 22px; }
.mega-title { font-size: 1.35rem; color: var(--blue); }
.mega-text { color: var(--text-2); font-size: .9rem; }
.mega-intro .link-arrow { margin-top: 6px; }
.mega-orb {
    position: absolute; width: 130px; height: 130px; border-radius: 50%;
    inset-block-end: -46px; inset-inline-end: -36px;
    border: 18px solid rgba(9, 74, 141, .1);
    animation: orb-float 8s ease-in-out infinite;
}
.mega-grid {
    display: grid; gap: 4px;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--rows, 5), auto);
    grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
    align-content: start;
}
.mega-grid > li { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.nav-item.is-open .mega-grid > li { opacity: 1; transform: none; }
.mega-link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; transition: background .3s, box-shadow .3s; }
.mega-link:hover, .mega-link:focus-visible, .mega-link.is-active { background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--line); }
.mega-link-text { display: grid; gap: 2px; min-width: 0; }
.mega-link-text strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .95rem; font-weight: 500; color: var(--text); }
.mega-link-text small { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.mega-link .ext { font-size: .7rem; color: var(--muted); }
.mega-backdrop { position: fixed; inset: 0; z-index: -1; background: rgba(11, 26, 51, .18); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; pointer-events: none; }
.site-header.has-mega .mega-backdrop { opacity: 1; visibility: visible; transition: opacity .4s; }

@media (max-width: 1180px) {
    .brand-text small { display: none; }
    .nav-link { padding-inline: 12px; }
}
@media (max-width: 1080px) {
    :root { --header-h: 64px; }
    .site-header.is-scrolled .header-shell { --header-h: 60px; }
    .burger { display: inline-grid; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; z-index: 2; inset: 0;
        display: flex; flex-direction: column; gap: 10px;
        padding: calc(var(--edge) + var(--header-h) + 18px) 18px 22px;
        background: rgba(246, 248, 252, .96);
        -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
        overflow-y: auto; overscroll-behavior: contain;
        clip-path: circle(0 at calc(100% - 44px) 44px);
        visibility: hidden;
        transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
    }
    [dir="rtl"] .main-nav { clip-path: circle(0 at 44px 44px); }
    .site-header.is-open .main-nav { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path .8s var(--ease-in-out); }
    [dir="rtl"] .site-header.is-open .main-nav { clip-path: circle(150% at 44px 44px); }
    .nav-drawer-foot { display: flex; flex-direction: column; gap: 16px; margin-top: auto; padding-top: 18px; }
    .drawer-contact { display: grid; gap: 8px; color: var(--text-2); font-size: .9rem; }
    .drawer-contact a { display: flex; gap: 10px; align-items: center; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
    .nav-link { width: 100%; height: 56px; justify-content: space-between; font-size: 1.1rem; padding-inline: 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
    .nav-link::after { display: none; }
    .nav-list > .nav-item { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
    .site-header.is-open .nav-list > .nav-item { opacity: 1; transform: none; }
    .site-header.is-open .nav-list > .nav-item:nth-child(2) { transition-delay: .05s; }
    .site-header.is-open .nav-list > .nav-item:nth-child(3) { transition-delay: .1s; }
    .site-header.is-open .nav-list > .nav-item:nth-child(4) { transition-delay: .15s; }
    .site-header.is-open .nav-list > .nav-item:nth-child(5) { transition-delay: .2s; }
    .mega { position: static; visibility: visible; opacity: 1; transform: none; pointer-events: auto; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
    .mega::before { display: none; }
    .nav-item.is-open > .mega { grid-template-rows: 1fr; }
    .mega-inner { min-height: 0; overflow: hidden; display: block; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
    .mega-intro { display: none; }
    .mega-grid { display: grid; grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; padding: 8px 0 4px; }
    .mega-link { padding: 10px; }
    .mega-backdrop { display: none; }
    .electrons { display: none; }
    .site-header.is-open .burger-lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .site-header.is-open .burger-lines i:nth-child(2) { opacity: 0; }
    .site-header.is-open .burger-lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .brand, .header-actions { position: relative; z-index: 3; }
    .site-header.is-open .header-actions .icon-btn:not(.burger) { visibility: hidden; }
}
@media (max-width: 560px) {
    .hide-sm { display: none; }
    .brand-text { display: none; }
    .brand-logo { height: 40px; }
}

/* ==========================================================================
   Blobs — glossy liquid glass in brand colours (light)
   ========================================================================== */
.blob { position: absolute; pointer-events: none; will-change: transform; transition: transform 1.2s var(--ease); }
.blob > span {
    display: block; width: 100%; height: 100%;
    border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
    background:
        radial-gradient(ellipse 22% 14% at 32% 24%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%),
        radial-gradient(circle at 78% 80%, rgba(161, 69, 161, .75), rgba(161, 69, 161, 0) 42%),
        radial-gradient(circle at 16% 74%, rgba(47, 123, 224, .7), rgba(47, 123, 224, 0) 44%),
        radial-gradient(circle at 50% 42%, #FFFFFF 0%, #EAF1FB 45%, #D9E5F6 80%);
    box-shadow:
        inset 10px 14px 34px rgba(255, 255, 255, .9),
        inset -20px -26px 50px rgba(161, 69, 161, .35),
        inset 16px -10px 40px rgba(47, 123, 224, .25),
        0 40px 90px -30px rgba(9, 74, 141, .35);
    animation: blob-morph 18s ease-in-out infinite, blob-spin 40s linear infinite;
}
.blob-main { width: clamp(300px, 38vw, 560px); aspect-ratio: 1; top: 20%; left: 50%; margin-left: calc(clamp(300px, 38vw, 560px) / -2); }
.blob-side { width: clamp(160px, 20vw, 300px); aspect-ratio: 1; bottom: 2%; inset-inline-start: 12%; }
.blob-side > span { animation-duration: 14s, 30s; animation-direction: alternate, reverse; }
.blob-mini { width: clamp(60px, 7vw, 110px); aspect-ratio: 1; top: 18%; inset-inline-end: 12%; }
.blob-mini > span { animation-duration: 10s, 22s; }
.blob-page { width: clamp(240px, 32vw, 460px); aspect-ratio: 1; top: -8%; inset-inline-end: -4%; opacity: .9; }
@keyframes blob-morph {
    0%, 100% { border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; }
    25% { border-radius: 62% 38% 34% 66% / 57% 62% 38% 43%; }
    50% { border-radius: 35% 65% 55% 45% / 38% 55% 45% 62%; }
    75% { border-radius: 55% 45% 40% 60% / 62% 35% 65% 38%; }
}
@keyframes blob-spin { to { rotate: 360deg; } }
@keyframes orb-float { 50% { transform: translate(-8px, -10px) scale(1.05); } }

.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(9, 74, 141, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(9, 74, 141, .06) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero { position: relative; min-height: max(680px, 100svh); display: grid; align-items: center; padding-block: calc(var(--header-h) + var(--edge) + 48px) 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-frame { position: absolute; inset: 12% 6% 10%; width: 88%; height: 78%; opacity: .9; }
.hero-frame path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lg-draw 2.6s .4s var(--ease-in-out) forwards; }
.hero-inner {
    position: relative; display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    align-items: center; column-gap: 20px;
}
.hero-eyebrow { grid-column: 1 / 9; grid-row: 1; margin-bottom: 18px; }
.hero-title { display: contents; font-weight: 400; }
/* the clip box gets generous bottom room (cancelled by the negative margin) so
   descenders like "g" and the lower strokes of Arabic letters are never cut */
.hero-line { display: block; overflow: hidden; padding-block: .08em .3em; margin-bottom: -.22em; line-height: 1; font-size: clamp(3.4rem, min(10.5vw, 17vh), 10rem); letter-spacing: -.055em; font-weight: 400; color: var(--text); }
[dir="rtl"] .hero-line { font-size: clamp(3.2rem, min(9vw, 14.5vh), 9rem); letter-spacing: 0; line-height: 1.25; padding-block: .12em .42em; margin-bottom: -.34em; font-weight: 500; }
.hero-line > span { display: inline-block; transform: translateY(140%); animation: rise 1.2s var(--ease) forwards; animation-delay: calc(.35s + var(--d) * .14s); }
.hero-line-1 { grid-column: 1 / 8; grid-row: 2; }
.hero-line-1 > span { color: var(--blue); }
.hero-line-2 { grid-column: 4 / -1; grid-row: 3; text-align: end; }
.hero-line-2 > span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline: .04em; padding-block: .05em .2em; margin-block: -.05em -.2em; }
.hero-line-3 { grid-column: 1 / 9; grid-row: 4; padding-inline-start: 8%; }
.hero-line-3 > span { color: var(--purple); }
.hero-side { grid-column: 9 / -1; grid-row: 4; display: grid; gap: 16px; align-self: end; padding-bottom: 1.2rem; opacity: 0; animation: fade-up 1s 1s var(--ease) forwards; }
.hero-subtitle { color: var(--text-2); font-size: 1rem; max-width: 380px; }
.callout { position: relative; display: grid; gap: 2px; opacity: 0; animation: fade-up 1s var(--ease) forwards; animation-delay: calc(1.1s + var(--d) * .15s); }
.callout-value { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; line-height: 1; color: var(--blue); }
.callout-label { font-size: .8rem; color: var(--muted); }
.callout-line { position: absolute; height: 1px; width: 90px; background: linear-gradient(90deg, rgba(9, 74, 141, .45), transparent); top: .7em; }
.callout-1 { grid-column: 9 / -1; grid-row: 2; justify-self: end; text-align: end; }
.callout-1 .callout-line { inset-inline-end: calc(100% + 16px); background: linear-gradient(to left, rgba(9, 74, 141, .45), transparent); }
.callout-2 { grid-column: 1 / 4; grid-row: 3; justify-self: start; }
.callout-2 .callout-line { inset-inline-start: calc(100% + 16px); }
.callout-3 { grid-column: 10 / -1; grid-row: 5; justify-self: end; text-align: end; margin-top: 34px; }
.callout-3 .callout-line { inset-inline-end: calc(100% + 16px); background: linear-gradient(to left, rgba(9, 74, 141, .45), transparent); }
[dir="rtl"] .callout-line { transform: scaleX(-1); }
.hero-pill {
    grid-column: 4 / 10; grid-row: 5; justify-self: center; margin-top: 34px;
    display: flex; align-items: center; gap: 14px; padding-block: 6px; padding-inline: 18px 6px; border-radius: var(--r-pill);
    opacity: 0; animation: fade-in 1s 1.4s var(--ease) forwards;
}
.hero-pill-text { font-size: .9rem; color: var(--text-2); white-space: nowrap; }
.hero-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(21, 162, 107, .5); animation: ping 2s infinite; }
.scroll-cue { position: absolute; bottom: 26px; inset-inline-start: 50%; margin-inline-start: -13px; width: 26px; height: 42px; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--grad); animation: scroll-cue 1.8s var(--ease) infinite; }

@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(21, 162, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 162, 107, 0); } }
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
    .hero { min-height: auto; padding-block: calc(var(--header-h) + 70px) 110px; }
    .hero-inner { display: flex; flex-direction: column; align-items: stretch; }
    .hero-line { font-size: clamp(2.6rem, 12.5vw, 6rem); }
    [dir="rtl"] .hero-line { font-size: clamp(2.5rem, 12.5vw, 5.4rem); }
    .hero-side { order: 5; padding: 26px 0 0; }
    .callout { text-align: start !important; align-self: flex-start; }
    .callout-line { display: none; }
    .hero-pill { margin-top: 28px; align-self: flex-start; order: 6; flex-wrap: wrap; border-radius: 26px; }
    .hero-pill-text { white-space: normal; }
    .blob-main { top: 26%; width: 90vw; margin-inline-start: -45vw; opacity: .7; }
    .hero-frame { display: none; }
    .callout-1 { order: 7; margin-top: 30px; }
    .callout-2, .callout-3 { order: 8; margin-top: 14px; }
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero { position: relative; padding-block: calc(var(--header-h) + var(--edge) + 70px) clamp(40px, 6vw, 70px); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero-inner { position: relative; display: grid; gap: 26px; }
.page-hero-head { display: grid; gap: 18px; justify-items: start; max-width: 900px; min-width: 0; }
.page-title { font-size: clamp(2.1rem, 5.2vw, 4.4rem); font-weight: 600; text-wrap: balance; letter-spacing: -.035em; color: var(--blue); overflow-wrap: anywhere; }
[dir="rtl"] .page-title { letter-spacing: 0; }
.page-hero-text { color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 760px; text-wrap: pretty; }
.page-hero.is-split .page-hero-inner { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 60px; }
.page-hero.is-split .page-hero-text { font-size: 1rem; padding-bottom: 10px; }
.page-hero-head > *, .page-hero-text { opacity: 0; animation: fade-up .9s var(--ease) forwards; }
.page-hero-head > :nth-child(2) { animation-delay: .08s; }
.page-hero-head > :nth-child(3) { animation-delay: .16s; }
.page-hero-text { animation-delay: .26s; }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); padding: 6px 14px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; }
.breadcrumb a { display: inline-flex; gap: 6px; align-items: center; transition: color .3s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current] { color: var(--text-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-top { padding-top: calc(var(--header-h) + var(--edge) + 70px); overflow: hidden; }
@media (max-width: 900px) { .page-hero.is-split .page-hero-inner { grid-template-columns: 1fr; gap: 20px; } }

/* ==========================================================================
   Logos — every partner / customer logo sits inside its own card
   ========================================================================== */
.logo-card {
    display: grid; grid-template-rows: auto auto; align-content: start; gap: 12px;
    padding: 12px; text-align: center; overflow: hidden;
}
.logo-media {
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    height: 104px; padding: 12px 16px;
    border-radius: 10px 22px 16px 16px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(9, 74, 141, .06);
}
[dir="rtl"] .logo-media { border-radius: 22px 10px 16px 16px; }
.logo-media img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.logo-card:hover .logo-media img { transform: scale(1.05); }
.logo-name { font-size: .88rem; color: var(--text-2); padding: 0 6px 6px; line-height: 1.45; }
.marquee {
    display: flex; gap: 18px; overflow: hidden; padding-block: 14px 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 18px; flex: none; min-width: 100%; justify-content: space-around; animation: marquee var(--duration, 40s) linear infinite; }
.marquee.is-reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logo-card { width: 200px; flex: none; grid-template-rows: auto; padding: 10px; }
.marquee .logo-media { height: 92px; }
@keyframes marquee { to { transform: translateX(calc(-100% - 18px)); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(calc(100% + 18px)); } }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .logo-media { height: 84px; padding: 10px; } }

/* ==========================================================================
   Statement (word-by-word light-up on scroll)
   ========================================================================== */
.statement-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.statement-text { font-size: clamp(1.6rem, 3.4vw, 2.9rem); line-height: 1.35; font-weight: 400; letter-spacing: -.02em; max-width: 1000px; text-wrap: pretty; }
[dir="rtl"] .statement-text { letter-spacing: 0; line-height: 1.6; }
.statement-text .w { color: rgba(11, 26, 51, .14); transition: color .5s var(--ease); }
.statement-text .w.is-lit { color: var(--text); }
.statement-text .w.is-lit:nth-child(5n+3) { color: var(--purple); }
.statement-text .w.is-lit:nth-child(7n+1) { color: var(--blue); }
.no-js .statement-text .w { color: var(--text); }
@media (max-width: 800px) { .statement-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Features
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { display: flex; flex-direction: column; align-items: flex-start; }
.feature-card .card-text { flex: 1; }
.feature-card .link-arrow { margin-top: 20px; }
.link-arrow.stretched::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.features--bento .feature-grid { grid-auto-flow: dense; }
.features--bento .feature-card:nth-child(6n+1), .features--bento .feature-card:nth-child(6n+4), .features--bento .feature-card:nth-child(6n+6) { grid-column: span 2; }
.features--bento .feature-card .card-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.features--bento .feature-card:nth-child(6n+1) { background: radial-gradient(120% 120% at 100% 0%, rgba(47, 123, 224, .08), transparent 55%), #fff; }
.features--bento .feature-card:nth-child(6n+6) { background: radial-gradient(120% 120% at 0% 100%, rgba(161, 69, 161, .09), transparent 55%), #fff; }
.features--text .feature-card .card-text { color: var(--text-2); }
.features--links .feature-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.features--links .feature-card { padding: 24px; }
.features--links .card-arrow { margin-top: 18px; }
@media (max-width: 1000px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .features--bento .feature-card:nth-child(n) { grid-column: auto; }
}
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Split stats
   ========================================================================== */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split-copy { display: grid; gap: 22px; justify-items: start; }
.split-copy .section-head { margin-bottom: 0; }
.split-grid.is-compact { grid-template-columns: 1fr 1.4fr; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat-card { display: grid; gap: 6px; }
.stat-card:nth-child(2), .stat-card:nth-child(4) { transform: translateY(28px); }
.stat-value { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1.1; margin-top: 16px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); }
@media (max-width: 900px) {
    .split-grid, .split-grid.is-compact { grid-template-columns: 1fr; }
    .stat-card:nth-child(n) { transform: none; }
}

/* ==========================================================================
   Banner (brand-coloured band, white text)
   ========================================================================== */
.banner {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
    padding: clamp(32px, 5vw, 64px);
    border-radius: var(--r-lg) 64px var(--r-xl) var(--r-xl);
    color: #fff;
    background: linear-gradient(135deg, #094A8D, #0C5AA8 55%, #3B5BB7);
    box-shadow: var(--shadow-lg);
}
[dir="rtl"] .banner { border-radius: 64px var(--r-lg) var(--r-xl) var(--r-xl); }
.banner--purple { background: linear-gradient(135deg, #A145A1, #7A4AA8 50%, #094A8D); }
.banner-mesh { position: absolute; inset: 0; z-index: -1; }
.banner-mesh span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: orb-float 10s ease-in-out infinite; }
.banner-mesh span:first-child { width: 380px; height: 380px; background: var(--purple-400); inset-inline-end: -80px; top: -140px; }
.banner-mesh span:last-child { width: 300px; height: 300px; background: var(--blue-400); inset-inline-start: 20%; bottom: -200px; animation-delay: -4s; }
.banner--purple .banner-mesh span:first-child { background: var(--blue-400); }
.banner-frame { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); color: rgba(255, 255, 255, .3); z-index: -1; }
.banner-copy { display: grid; gap: 16px; justify-items: start; }
.banner-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: #fff; }
.banner-copy p { color: rgba(255, 255, 255, .88); max-width: 560px; }
.banner-copy .btn-row { margin-top: 10px; }
.banner .btn-ghost { color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.banner .btn-ghost .btn-orb { background: #fff; color: var(--blue); }
.banner-media { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.banner-chip { display: grid; place-items: center; min-height: 96px; padding: 18px 26px; border-radius: 18px 30px 24px 24px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.banner-chip img { max-height: 90px; width: auto; }
.banner-orb { display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .2); background: #fff; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .35); animation: orb-float 8s ease-in-out infinite; }
.banner-orb .icon-mask { width: 58%; aspect-ratio: 1; background: var(--grad); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
@media (max-width: 860px) { .banner { grid-template-columns: 1fr; } .banner-media { justify-content: flex-start; } }

/* ==========================================================================
   Products
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; gap: 16px; }
.product-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-logo { display: flex; align-items: center; justify-content: center; overflow: hidden; width: 120px; height: 76px; padding: 10px; border-radius: 12px 22px 18px 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
[dir="rtl"] .product-logo { border-radius: 22px 12px 18px 18px; }
.product-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.product-body { flex: 1; }
.product-body .card-title { margin-top: 0; }
.product-foot { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-panel {
    position: relative; overflow: hidden; text-align: center;
    display: grid; justify-items: center; gap: 16px;
    padding: clamp(44px, 7vw, 90px) clamp(22px, 5vw, 60px);
    border-radius: var(--r-lg) 64px var(--r-xl) var(--r-xl);
    background: #fff;
    box-shadow: var(--shadow);
}
[dir="rtl"] .cta-panel { border-radius: 64px var(--r-lg) var(--r-xl) var(--r-xl); }
.cta-glow { position: absolute; z-index: -1; width: 70%; height: 140%; top: 30%; left: 15%; border-radius: 50%; background: conic-gradient(from 90deg, rgba(47, 123, 224, .35), rgba(161, 69, 161, .3), rgba(47, 123, 224, .35)); filter: blur(80px); opacity: .45; animation: blob-spin 16s linear infinite; }
.cta-ring { position: absolute; z-index: -1; width: 240px; height: 240px; border-radius: 50%; border: 30px solid rgba(9, 74, 141, .07); inset-inline-end: -80px; top: -80px; animation: orb-float 9s ease-in-out infinite; }
.cta-title { font-size: clamp(1.9rem, 4.2vw, 3.4rem); max-width: 800px; text-wrap: balance; color: var(--blue); }
.cta-panel .lead { max-width: 620px; }
.cta-panel .btn-row { margin-top: 12px; }

/* ==========================================================================
   Chips / values
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chip { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: var(--r-pill); font-size: 1.05rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s; }
[dir="rtl"] .chip { padding: 10px 10px 10px 22px; }
.chip .icon-tile { border-radius: 50%; }
.chip:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(161, 69, 161, .35), var(--shadow); }
.chip:hover .icon-tile { color: #fff; background: var(--grad); }

/* ==========================================================================
   Profile / team
   ========================================================================== */
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.profile-card { position: sticky; top: calc(var(--header-h) + 40px); display: grid; justify-items: center; text-align: center; gap: 6px; }
.avatar-frame { width: 100%; aspect-ratio: 1; border-radius: 24px 56px 40px 40px; overflow: hidden; background: linear-gradient(160deg, var(--blue-100), var(--purple-100)); margin-bottom: 14px; }
[dir="rtl"] .avatar-frame { border-radius: 56px 24px 40px 40px; }
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-name { font-size: 1.3rem; font-weight: 600; color: var(--blue); }
.profile-role { color: var(--purple); }
.profile-body { position: relative; display: grid; gap: 20px; min-width: 0; }
.profile-quote { font-size: 64px; color: rgba(9, 74, 141, .25); }
.lead-prose p { font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--text); line-height: 1.7; }
.signature { display: grid; gap: 2px; margin-top: 20px; }
.signature strong { color: var(--blue); }
.signature-line { width: 80px; height: 2px; background: var(--grad); margin-bottom: 12px; border-radius: 2px; }
.signature small { color: var(--muted); }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } .profile-card { position: relative; top: 0; max-width: 360px; } }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.team-card { text-align: center; padding: 14px 14px 24px; }
.team-card .card-title { margin-top: 18px; margin-bottom: 4px; }
.team-card .card-text { color: var(--purple); }
.team-photo { position: relative; aspect-ratio: 1; border-radius: 16px 40px 28px 28px; overflow: hidden; background: linear-gradient(160deg, var(--blue-100), var(--purple-100)); }
[dir="rtl"] .team-photo { border-radius: 40px 16px 28px 28px; }
.team-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-ring { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .5); inset-inline-end: -20%; top: -20%; transition: transform .8s var(--ease); }
.team-card:hover .team-ring { transform: scale(1.2) rotate(20deg); }
.team-lead {
    display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
    padding: clamp(16px, 2vw, 22px); margin-bottom: 26px;
    background: radial-gradient(120% 120% at 100% 0%, rgba(47, 123, 224, .07), transparent 55%), #fff;
}
[dir="rtl"] .team-lead { background: radial-gradient(120% 120% at 0% 0%, rgba(47, 123, 224, .07), transparent 55%), #fff; }
.team-lead .team-photo { width: 100%; }
.team-lead-body { display: grid; gap: 14px; justify-items: start; padding-block: 10px; padding-inline-end: clamp(0px, 2vw, 24px); min-width: 0; }
.team-lead-name { font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--blue); }
.team-lead-text { position: relative; display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.85; max-width: 640px; }
.team-lead-text .fi { flex: none; font-size: 28px; color: rgba(161, 69, 161, .45); margin-top: 4px; }
.team-lead .btn { margin-top: 6px; }
@media (max-width: 760px) {
    .team-lead { grid-template-columns: 1fr; }
    .team-lead .team-photo { max-width: 360px; margin-inline: auto; }
    .team-lead-body { justify-items: center; text-align: center; padding-inline: 6px; }
    .team-lead-text { flex-direction: column; align-items: center; }
}

/* ==========================================================================
   Contact / career / login
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-info { display: grid; gap: 16px; min-width: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; height: 100%; }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; }
.contact-card strong { display: block; font-weight: 500; font-size: .95rem; color: var(--text); }
.contact-cards li:last-child { grid-column: 1 / -1; }
.map-frame { border-radius: var(--r) var(--r-xl) var(--r-lg) var(--r-lg); overflow: hidden; height: 300px; box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.form-card { position: sticky; top: calc(var(--header-h) + 36px); min-width: 0; }
.form-title { font-size: 1.7rem; margin-bottom: 6px; color: var(--blue); }
.perk-list { display: grid; gap: 14px; }
.perk { display: flex; align-items: center; gap: 18px; font-size: 1.1rem; }
.career-side { display: grid; gap: 16px; min-width: 0; }
.career-art { display: grid; place-items: center; padding: 50px; border-radius: var(--r) var(--r-xl) var(--r-lg) var(--r-lg); background: radial-gradient(circle at 70% 30%, rgba(47, 123, 224, .12), transparent 60%), radial-gradient(circle at 20% 90%, rgba(161, 69, 161, .12), transparent 60%), #fff; box-shadow: var(--shadow-sm); }
.career-logo { width: min(260px, 70%); animation: orb-float 8s ease-in-out infinite; }
@media (max-width: 960px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-card { position: relative; top: 0; }
}
@media (max-width: 560px) { .form-row, .contact-cards { grid-template-columns: 1fr; } }

.login { position: relative; min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--header-h) + var(--edge) + 40px) 60px; overflow: hidden; }
.login-shell { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; padding: 0; border-radius: var(--r-lg) 56px var(--r-xl) var(--r-xl); box-shadow: var(--shadow-lg); }
[dir="rtl"] .login-shell { border-radius: 56px var(--r-lg) var(--r-xl) var(--r-xl); }
.login-side { position: relative; overflow: hidden; isolation: isolate; display: grid; align-content: space-between; gap: 30px; padding: clamp(28px, 4vw, 52px); color: #fff; background: linear-gradient(145deg, #094A8D, #0C5AA8 55%, #A145A1); }
.login-side .banner-mesh span:first-child { background: var(--purple-400); }
.login-logo { display: inline-grid; place-items: center; justify-self: start; padding: 16px 22px; border-radius: 16px 28px 22px 22px; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); }
.login-logo img { height: 74px; width: auto; }
.login-side h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.login-side p { color: rgba(255, 255, 255, .88); }
.login-points { display: grid; gap: 12px; }
.login-points li { display: flex; align-items: center; gap: 12px; }
.login-points .icon-tile { color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.login-form { padding: clamp(28px, 4vw, 56px); display: grid; align-content: center; }
.login-form h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--blue); }
.login-form .back-link { margin-top: 22px; justify-self: center; }
@media (max-width: 860px) { .login-shell { grid-template-columns: 1fr; } .login-side { gap: 20px; } .login-points { display: none; } }

/* ==========================================================================
   Error pages (404, 500, …)
   ========================================================================== */
.error-page { position: relative; overflow: hidden; min-height: min(100svh, 920px); display: grid; align-items: center; padding-block: calc(var(--header-h) + var(--edge) + 60px) 40px; text-align: center; }
.error-page .blob-main { top: 14%; opacity: .55; }
.error-inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.error-code { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1.5vw, 18px); direction: ltr; line-height: 1; margin-block: 6px 4px; }
.error-digit {
    font-size: clamp(6rem, 22vw, 15rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; padding-block: .05em .12em;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
    opacity: 0; animation: fade-up .9s var(--ease) forwards; animation-delay: calc(.15s + var(--d) * .12s);
}
.error-ring { /* the loop of «ه» */
    position: relative; display: grid; place-items: center; flex: none;
    width: clamp(5rem, 17vw, 11.5rem); aspect-ratio: 1; border-radius: 50%;
    border: clamp(16px, 4.2vw, 42px) solid var(--blue);
    box-shadow: 0 30px 60px -30px rgba(9, 74, 141, .6), inset 0 0 0 1px rgba(255, 255, 255, .15);
    opacity: 0; animation: ring-in 1s var(--ease) forwards, orb-float 7s 1.2s ease-in-out infinite; animation-delay: calc(.15s + var(--d) * .12s), 1.2s;
}
.error-ring i { position: absolute; inset: -12%; border-radius: 50%; border: 2px dashed rgba(161, 69, 161, .45); animation: blob-spin 14s linear infinite; }
.error-ring:nth-child(odd) { border-color: var(--purple); }
@keyframes ring-in { from { opacity: 0; transform: scale(.6) rotate(-40deg); } to { opacity: 1; transform: none; } }
.error-title { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--blue); text-wrap: balance; }
.error-message { max-width: 560px; color: var(--text-2); font-size: clamp(1rem, 1.4vw, 1.12rem); text-wrap: pretty; }
.error-actions { margin-top: 10px; }
.error-links { padding-top: 10px; }
.error-links .section-head { margin-bottom: 28px; }
.error-links .section-title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

/* ==========================================================================
   Article / prose
   ========================================================================== */
.article-grid { display: grid; grid-template-columns: minmax(0, 860px) 64px; justify-content: center; gap: 30px; align-items: start; }
.article--legal .article-grid { grid-template-columns: minmax(0, 860px); }
.article-main { min-width: 0; }
.article-cover { margin: 0 0 22px; border-radius: var(--r) 48px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; background: var(--bg-3); box-shadow: var(--shadow); }
[dir="rtl"] .article-cover { border-radius: 48px var(--r) var(--r-lg) var(--r-lg); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.share-bar { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 12px; justify-items: center; }
.share-bar .eyebrow { writing-mode: vertical-rl; font-size: .7rem; }
.share-bar .eyebrow::before { width: 2px; height: 24px; }
.share-bar ul { display: grid; gap: 8px; }
@media (max-width: 900px) {
    .article-grid { grid-template-columns: minmax(0, 1fr); }
    .share-bar { position: relative; top: 0; display: flex; justify-content: flex-start; flex-wrap: wrap; }
    .share-bar .eyebrow { writing-mode: horizontal-tb; }
    .share-bar ul { display: flex; flex-wrap: wrap; }
    .share-bar .eyebrow::before { width: 24px; height: 2px; }
}

.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.9; min-width: 0; overflow-wrap: anywhere; }
.prose.card { padding: clamp(22px, 4vw, 52px); }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--blue); margin-top: 1.8em; line-height: 1.4; }
.prose h3 { position: relative; font-size: 1.22rem; padding-inline-start: 18px; }
.prose h3::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 3px; border-radius: 3px; background: var(--grad); }
.prose > h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; display: grid; gap: .45em; }
.prose ul { list-style: none; padding-inline-start: 0; }
.prose ul > li { position: relative; padding-inline-start: 28px; }
.prose ul > li::before { /* ring bullet like "ه" */
    content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 11px; height: 11px; border-radius: 50%;
    border: 3px solid var(--purple);
}
.prose ol { list-style: decimal; }
.prose pre, .prose code { white-space: pre-wrap; font-family: inherit; font-size: inherit; background: none; margin: 0; }
.prose img { max-width: 100%; height: auto; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose-figure { margin: 1.6em 0; border-radius: var(--r) var(--r-lg) var(--r) var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.prose-figure.is-small { max-width: 260px; background: #fff; padding: 14px; }
.updated { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 2em !important; padding: 8px 16px; border-radius: var(--r-pill); font-size: .85rem; color: var(--muted); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--line); }

/* ==========================================================================
   Pricing / comparison
   ========================================================================== */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin: -14px 0 42px; color: var(--text-2); flex-wrap: wrap; }
.plans { display: grid; grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: 28px 24px; }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.plan-name { font-size: 1.15rem; font-weight: 600; flex: 1; }
.plan-price { display: grid; gap: 4px; padding-block: 18px; border-block: 1px solid var(--line); }
.price { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(2.2rem, 3.4vw, 2.9rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--blue); }
.price-text { font-size: 1.6rem; }
.period, .vat, .price-note { color: var(--muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; }
.riyal { display: inline-block; width: .82em; height: .9em; background: currentColor; -webkit-mask: var(--riyal) center / contain no-repeat; mask: var(--riyal) center / contain no-repeat; vertical-align: -.08em; }
.price .riyal { width: .62em; height: .7em; color: var(--purple); }
.plan-features { display: grid; gap: 12px; flex: 1; align-content: start; }
.plan-features li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: .94rem; line-height: 1.55; }
.check, .cross { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; font-size: .72rem; }
.check { color: #fff; background: var(--grad); box-shadow: 0 4px 10px -4px rgba(161, 69, 161, .6); }
.cross { color: var(--muted); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.plan.is-featured { background: linear-gradient(180deg, var(--blue-50), #fff 60%); }
.plan.is-featured::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 2px;
    background: conic-gradient(from var(--angle, 0deg), var(--blue), var(--blue-400), var(--purple), var(--blue));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: angle 6s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes angle { to { --angle: 360deg; } }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

.table-wrap { padding: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.compare-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare-table thead th { position: sticky; top: 0; background: #fff; vertical-align: bottom; }
.compare-table thead th strong { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 1rem; color: var(--text); }
.compare-table thead th small { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.compare-table thead th:first-child, .compare-table tbody th { text-align: start; }
.compare-table thead th:first-child strong { justify-content: flex-start; }
.compare-table tbody th { font-weight: 500; color: var(--text-2); position: sticky; inset-inline-start: 0; background: #fff; min-width: 220px; }
.compare-table td .check, .compare-table td .cross { margin-inline: auto; }
.compare-table .is-featured { background: rgba(47, 123, 224, .05); }
.compare-table thead .is-featured { background: linear-gradient(180deg, var(--blue-100), #fff); }
.compare-table thead th .fi-rr-star { color: #E7A321; }
.compare-table tbody tr { transition: background .3s; }
.compare-table tbody tr:hover { background: var(--blue-50); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.cell-text { color: var(--text); font-size: .88rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-art { margin-top: 10px; }
.faq-art .icon-tile { animation: orb-float 8s ease-in-out infinite; }
.faq-list { display: grid; gap: 12px; min-width: 0; }
.faq-item { padding: 0; }
.faq-item summary { display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num { font-size: .8rem; color: var(--purple); font-weight: 600; font-variant-numeric: tabular-nums; }
.faq-q { flex: 1; font-weight: 500; font-size: 1.02rem; line-height: 1.5; color: var(--text); }
.faq-toggle { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), background .4s, color .3s; }
.faq-item[open] .faq-toggle { transform: rotate(135deg); color: #fff; background: var(--grad); box-shadow: none; }
.faq-item[open] { box-shadow: inset 0 0 0 1px rgba(161, 69, 161, .3), var(--shadow); }
.faq-a { padding: 0 22px 22px 60px; font-size: .96rem; }
[dir="rtl"] .faq-a { padding: 0 60px 22px 22px; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-head { position: relative; top: 0; } .faq-art { display: none; } .faq-a, [dir="rtl"] .faq-a { padding: 0 22px 22px; } }

/* ==========================================================================
   Sitemap
   ========================================================================== */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.sitemap-card .card-title { margin-top: 0; margin-bottom: 16px; color: var(--blue); }
.sitemap-card ul { display: grid; gap: 4px; }
.sitemap-card a { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--text-2); transition: background .3s, color .3s; }
.sitemap-card a:hover { background: var(--blue-50); color: var(--blue); }
.sitemap-card a .fi { color: var(--purple); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; padding-top: 30px; margin-top: 40px; content-visibility: auto; contain-intrinsic-size: auto 800px; }
.footer-top { display: grid; grid-template-columns: minmax(260px, 1fr) 2.2fr; gap: clamp(30px, 5vw, 70px); padding: clamp(28px, 4vw, 52px); border-radius: var(--r-lg) 64px var(--r-xl) var(--r-xl); background: #fff; box-shadow: var(--shadow); }
[dir="rtl"] .footer-top { border-radius: 64px var(--r-lg) var(--r-xl) var(--r-xl); }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand > p { font-size: .92rem; }
.newsletter { display: grid; gap: 10px; }
.newsletter label { font-size: .88rem; color: var(--text-2); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; color: var(--blue); }
.footer-col h4::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--grad); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); transition: color .3s, transform .3s var(--ease); }
.footer-col a:hover { color: var(--blue); transform: translateX(3px); }
[dir="rtl"] .footer-col a:hover { transform: translateX(-3px); }
.footer-col .badge { font-size: .62rem; padding: 1px 8px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 14px 30px; padding: 30px 6px; border-bottom: 1px solid var(--line); }
.footer-contact a { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .92rem; }
.footer-contact a:hover { color: var(--blue); }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.footer-badges > * { display: flex; align-items: center; justify-content: center; height: 80px; padding: 10px 18px; border-radius: 14px 22px 18px 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.footer-badges img { height: 56px; width: auto; }
.footer-badges > .is-dark { background: linear-gradient(135deg, var(--blue), #0C5AA8 60%, var(--purple)); box-shadow: var(--shadow-sm); }
.footer-badges > *:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(161, 69, 161, .3), var(--shadow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0 40px; font-size: .85rem; }
.socials { display: flex; gap: 8px; }
.footer-watermark { font-size: clamp(6rem, 24vw, 22rem); font-weight: 700; line-height: .8; text-align: center; letter-spacing: -.06em; margin-bottom: -.12em; background: linear-gradient(180deg, rgba(9, 74, 141, .08), transparent 80%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Floating actions / cookie
   ========================================================================== */
.floating-actions { position: fixed; z-index: 900; inset-inline-end: var(--edge); bottom: var(--edge); display: grid; gap: 10px; justify-items: end; }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 0; height: 54px; padding-inline: 16px; border-radius: var(--r-pill); color: #fff; background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 14px 30px -10px rgba(18, 140, 126, .55); font-size: 1.4rem; overflow: hidden; transition: gap .4s var(--ease), padding .4s var(--ease), transform .3s; }
.whatsapp-btn span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: .9rem; font-weight: 500; transition: max-width .5s var(--ease); }
.whatsapp-btn:hover { gap: 10px; padding-inline: 18px 22px; transform: translateY(-2px); }
.whatsapp-btn:hover span { max-width: 160px; }
.to-top { position: relative; width: 48px; height: 48px; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); transition: opacity .4s, transform .5s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--purple); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0) * 100); stroke-linecap: round; }
.cookie { position: fixed; z-index: 950; bottom: var(--edge); inset-inline-start: var(--edge); max-width: min(520px, calc(100vw - 100px)); display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 20px; border-radius: 22px; font-size: .86rem; color: var(--text-2); animation: fade-up .8s var(--ease) both; }
.cookie .fi { font-size: 1.3rem; color: var(--purple); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .stat-card[data-reveal]:nth-child(2).is-in, .js .stat-card[data-reveal]:nth-child(4).is-in { transform: translateY(28px); }
@media (max-width: 900px) { .js .stat-card[data-reveal]:nth-child(n).is-in { transform: none; } }

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