/* ==========================================================================
   Staffora — public website design system
   Plain CSS (no build step). RTL-first via logical properties.
   ========================================================================== */

@font-face { font-family: "GraphikArabic"; src: url("/fonts/GraphikArabic/GraphikArabic-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GraphikArabic"; src: url("/fonts/GraphikArabic/GraphikArabic-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "GraphikArabic"; src: url("/fonts/GraphikArabic/GraphikArabic-Semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "GraphikArabic"; src: url("/fonts/GraphikArabic/GraphikArabic-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
    --brand: #7f47dd;
    --brand-600: #6c36cc;
    --brand-700: #5a28b0;
    --brand-300: #b79af0;
    --brand-100: #ece3fd;
    --brand-50: #f6f1ff;

    --ink: #15112b;
    --ink-2: #3b3852;
    --muted: #6d6a82;
    --line: #e8e5f1;
    --line-2: #f0edf7;
    --bg: #ffffff;
    --bg-soft: #f8f6fd;
    --dark: #130e27;
    --dark-2: #1d1638;
    --success: #16a34a;
    --danger: #dc2626;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(21, 17, 43, .06);
    --shadow: 0 10px 30px -12px rgba(38, 20, 90, .18);
    --shadow-lg: 0 30px 80px -24px rgba(58, 28, 130, .35);

    --font: "Poppins", "GraphikArabic", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header-h: 72px;
}

html[lang="ar"] { --font: "GraphikArabic", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
/* clip (unlike hidden) stops decorative overflow widening the mobile layout viewport without breaking position: sticky */
html, body { overflow-x: clip; }
html[lang="ar"] body { line-height: 1.8; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Broken / missing remote media degrades to a soft tile instead of a broken icon */
img.is-missing { visibility: hidden; }
.media { background: linear-gradient(135deg, var(--brand-50), var(--line-2)); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 880px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: #c9c4dd; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.start { margin-inline: 0; text-align: start; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 46px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); }
.section-dark .section-head p { color: #b7b1cf; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--brand-50); color: var(--brand-700);
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
    border: 1px solid var(--brand-100);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.section-dark .eyebrow { background: rgba(127, 71, 221, .16); border-color: rgba(183, 154, 240, .25); color: #d9c9fb; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding-inline: 24px; border-radius: 999px;
    font-weight: 600; font-size: 15px; white-space: nowrap;
    border: 1.5px solid transparent; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
html[dir="rtl"] .btn .icon-arrow { transform: scaleX(-1); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(127, 71, 221, .7); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 12px 26px -10px rgba(127, 71, 221, .8); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-300); color: var(--brand-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); }
.btn-lg { height: 56px; padding-inline: 30px; font-size: 16px; }
.btn-sm { height: 40px; padding-inline: 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink); }
.lang-switch:hover { background: var(--line-2); }
.lang-switch svg { width: 18px; height: 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background-color .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.drawer, .drawer-backdrop { display: none; }
@media (max-width: 1023px) {
    .nav-links, .nav-actions .hide-mobile { display: none; }
    .nav-actions { margin-inline-start: auto; }
    .nav-toggle { display: inline-flex; }

    .drawer-backdrop {
        display: block; position: fixed; inset: 0; z-index: 90;
        background: rgba(19, 14, 39, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
        opacity: 0; pointer-events: none; transition: opacity .3s;
    }
    .nav-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

    .drawer {
        display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 100;
        width: min(88vw, 380px); background: #fff; box-shadow: -20px 0 60px -20px rgba(19, 14, 39, .35);
        transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s; overflow-y: auto; overscroll-behavior: contain;
        padding-bottom: env(safe-area-inset-bottom);
    }
    html[dir="rtl"] .drawer { transform: translateX(-100%); box-shadow: 20px 0 60px -20px rgba(19, 14, 39, .35); }
    .nav-open .drawer, html[dir="rtl"] .nav-open .drawer { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
    .nav-open { overflow: hidden; }
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: 20px; border-bottom: 1px solid var(--line-2); flex-shrink: 0; }
.drawer-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.drawer-close:hover { background: var(--bg-soft); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-nav { display: flex; flex-direction: column; padding: 12px; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px; border-radius: 12px; font-size: 17px; font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s; }
.drawer-nav a svg { width: 18px; height: 18px; color: #b5b1c7; transition: transform .2s, color .2s; }
html[dir="rtl"] .drawer-nav a svg { transform: scaleX(-1); }
.drawer-nav a:hover, .drawer-nav a.is-current { background: var(--brand-50); color: var(--brand-700); }
.drawer-nav a:hover svg, .drawer-nav a.is-current svg { color: var(--brand); }
.drawer-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 24px 0; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); font-weight: 500; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--line-2); }
.segmented a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.segmented a.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.drawer-foot { margin-top: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.drawer-promo { padding: 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid var(--brand-100); margin-bottom: 6px; }
.drawer-promo strong { display: block; color: var(--ink); font-size: 16px; }
.drawer-promo span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(127, 71, 221, .16), transparent 70%),
        linear-gradient(to bottom, var(--bg-soft), #fff 70%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
}
.hero-copy { max-width: 860px; margin-inline: auto; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 68px); margin-top: 20px; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--brand); }
.hero-lead { margin: 20px auto 0; max-width: 640px; font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--success); }

.shot {
    position: relative; margin-top: clamp(40px, 6vw, 72px);
    border-radius: var(--radius-xl); padding: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
    border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.shot-bar { display: flex; gap: 6px; padding: 6px 10px 12px; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-bar i:first-child { background: #ff8a80; } .shot-bar i:nth-child(2) { background: #ffd180; } .shot-bar i:nth-child(3) { background: #b9f6ca; }
.shot img { width: 100%; height: auto; border-radius: calc(var(--radius-xl) - 12px); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hero .shot { margin-bottom: -1px; }

/* ---------- Hero (dark, home page) ---------- */
.btn-glow { box-shadow: 0 10px 30px -8px rgba(127, 71, 221, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-glow:hover { box-shadow: 0 14px 38px -8px rgba(151, 101, 240, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }

.hero-x { position: relative; isolation: isolate; color: #c9c3e0; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); }
.hero-x-bg { position: absolute; inset: 0 0 clamp(120px, 22vw, 300px) 0; z-index: -1; overflow: hidden; background: #0c0820; }
.hero-x-bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(to bottom, transparent, rgba(12, 8, 32, .9)); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; }
.orb-1 { width: 620px; height: 620px; top: -260px; inset-inline-start: 50%; margin-inline-start: -310px; background: radial-gradient(closest-side, #7f47dd, transparent); opacity: .85; }
.orb-2 { width: 420px; height: 420px; top: 30%; inset-inline-start: -140px; background: radial-gradient(closest-side, #4f46e5, transparent); opacity: .45; }
.orb-3 { width: 460px; height: 460px; top: 18%; inset-inline-end: -160px; background: radial-gradient(closest-side, #c026d3, transparent); opacity: .35; }
.hero-x-grid {
    position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent 80%);
}

.hero-x-copy { max-width: 900px; margin-inline: auto; text-align: center; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #e6defa; font-size: 14px; font-weight: 500;
    transition: background-color .2s, border-color .2s;
}
html[dir="rtl"] .hero-pill { padding: 5px 5px 5px 14px; }
.hero-pill:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.hero-pill b { padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #9b6bf2, #7f47dd); color: #fff; font-size: 12px; font-weight: 600; }
.hero-pill svg { width: 14px; height: 14px; opacity: .7; }
html[dir="rtl"] .hero-pill svg { transform: scaleX(-1); }
.hero-x h1 { color: #fff; font-size: clamp(36px, 6.4vw, 76px); line-height: 1.12; letter-spacing: -.035em; margin-top: 24px; text-wrap: balance; }
html[lang="ar"] .hero-x h1 { line-height: 1.35; letter-spacing: 0; }
.hero-x h1 .grad { background: linear-gradient(100deg, #c4a6ff 0%, #9d6cf5 45%, #f0abfc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-x-lead { margin: 22px auto 0; max-width: 620px; font-size: clamp(17px, 1.8vw, 20px); color: #b9b2d3; text-wrap: pretty; }
.hero-x .hero-ctas { margin-top: 36px; }
.hero-x-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; font-size: 14px; color: #a39cc0; }
.hero-x-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-x-trust svg { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: rgba(34, 197, 94, .16); color: #4ade80; box-sizing: content-box; }

.hero-x-stage { position: relative; max-width: 1080px; margin: clamp(36px, 4.5vw, 56px) auto 0; perspective: 1600px; }
.hero-x-stage::before { content: ""; position: absolute; inset: 8% 6% -4%; border-radius: 40px; background: radial-gradient(closest-side, rgba(127, 71, 221, .55), transparent); filter: blur(40px); z-index: -1; }
.hero-x-shot { transform-origin: 50% 100%; transform: rotateX(var(--tilt, 14deg)) scale(var(--tilt-scale, .96)); transition: transform .1s linear; will-change: transform; border-radius: clamp(14px, 2.4vw, 28px); }
.hero-x-shot img { width: 100%; height: auto; border-radius: inherit; box-shadow: 0 40px 100px -30px rgba(10, 5, 30, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
.hero-x-phone { position: absolute; bottom: -6%; inset-inline-start: -3%; width: clamp(120px, 21%, 230px); filter: drop-shadow(0 30px 40px rgba(20, 10, 50, .35)); animation: floaty 7s ease-in-out infinite; }
.hero-x-phone img { width: 100%; height: auto; border-radius: 22px 22px 0 0; mask-image: linear-gradient(to bottom, #000 78%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); }

.hero-chip {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px;
    background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 20px 50px -20px rgba(20, 10, 60, .45);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 270px;
    animation: floaty 6s ease-in-out infinite;
}
html[dir="rtl"] .hero-chip { padding: 12px 12px 12px 16px; }
.hero-chip-1 { top: 22%; inset-inline-end: -13%; animation-delay: -2s; }
.hero-chip-2 { top: 58%; inset-inline-end: -10%; animation-delay: -4s; }
.hero-chip-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); border: 1px solid var(--brand-100); }
.hero-chip-icon img { width: 22px; height: 22px; object-fit: contain; }
.hero-chip-text strong { display: block; font-size: 14px; color: var(--ink); line-height: 1.35; }
.hero-chip-text small { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; color: var(--success); font-weight: 600; }
.hero-chip-text small svg { width: 12px; height: 12px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Transparent header over the dark hero */
.has-dark-hero .site-header { position: fixed; inset-inline: 0; top: 0; }
.has-dark-hero .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-dark-hero .site-header:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
.has-dark-hero .site-header:not(.is-scrolled) .nav-links a { color: #d6cfee; }
.has-dark-hero .site-header:not(.is-scrolled) .nav-links a:hover,
.has-dark-hero .site-header:not(.is-scrolled) .nav-links a.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.has-dark-hero .site-header:not(.is-scrolled) .lang-switch { color: #fff; }
.has-dark-hero .site-header:not(.is-scrolled) .lang-switch:hover { background: rgba(255, 255, 255, .08); }
.has-dark-hero .site-header:not(.is-scrolled) .btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .22); }
.has-dark-hero .site-header:not(.is-scrolled) .btn-ghost:hover { border-color: rgba(255, 255, 255, .5); }
.has-dark-hero .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.has-dark-hero .site-header:not(.is-scrolled) .nav-toggle span,
.has-dark-hero .site-header:not(.is-scrolled) .nav-toggle span::before,
.has-dark-hero .site-header:not(.is-scrolled) .nav-toggle span::after { background: #fff; }

@media (max-width: 1279px) {
    .hero-chip-1 { inset-inline-end: -3%; }
    .hero-chip-2 { inset-inline-end: -2%; }
}
@media (max-width: 1023px) {
    .hero-chip-1 { inset-inline-end: 2%; top: -6%; }
    .hero-chip-2 { display: none; }
}
@media (max-width: 767px) {
    .hero-x h1 { font-size: clamp(32px, 9vw, 42px); }
    .hero-x .hero-ctas .btn { flex: 1 1 100%; }
    .hero-x-trust { flex-direction: column; align-items: center; gap: 8px; }
    .hero-chip { display: none; }
    .hero-x-phone { width: 30%; inset-inline-start: 2%; bottom: -10%; }
    .hero-x-bg { bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-chip, .hero-x-phone { animation: none; }
    .hero-x-shot { transform: none; }
}

/* ---------- Logos marquee ---------- */
.logos { padding-block: 40px; border-bottom: 1px solid var(--line-2); }
.logos p { text-align: center; font-size: 14px; color: var(--muted); font-weight: 500; }
.marquee { position: relative; overflow: hidden; margin-top: 24px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 30s linear infinite; }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 44px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.feature-card h3 { font-size: 19px; margin-top: 20px; }
.feature-card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); border: 1px solid var(--brand-100); }
.icon-box img { width: 28px; height: 28px; object-fit: contain; }
.section-dark .feature-card { background: var(--dark-2); border-color: rgba(255,255,255,.08); }
.section-dark .feature-card p { color: #b7b1cf; }
.section-dark .feature-card:hover { border-color: rgba(183,154,240,.35); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.section-dark .icon-box { background: rgba(127,71,221,.18); border-color: rgba(183,154,240,.25); }
.section-dark .icon-box img { filter: brightness(0) invert(1); }

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pillar-card {
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: var(--radius-xl); background: var(--bg-soft); border: 1px solid var(--line);
    padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0;
}
.pillar-card .kicker { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.pillar-card h3 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 10px; }
.pillar-card p { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.pillar-card .pillar-media { margin-top: 28px; margin-inline: auto; width: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; min-height: 200px; }
.pillar-card .pillar-media img { max-height: 340px; width: auto; object-fit: contain; }

/* ---------- Tabs (feature explorer) ---------- */
.explorer { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.tab-list { display: flex; flex-direction: column; gap: 10px; }
.tab-btn {
    display: flex; gap: 16px; align-items: flex-start; text-align: start; width: 100%;
    padding: 18px 20px; border-radius: var(--radius); background: transparent; border: 1px solid transparent; cursor: pointer;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.tab-btn:hover { background: var(--bg-soft); }
.tab-btn[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.tab-btn .icon-box { width: 44px; height: 44px; flex-shrink: 0; }
.tab-btn .icon-box img { width: 24px; height: 24px; }
.t-title { display: block; font-weight: 700; color: var(--ink); line-height: 1.35; }
.t-desc { display: block; }
.tab-btn .t-title { font-size: 17px; }
.tab-btn .t-desc { margin-top: 6px; font-size: 15px; color: var(--muted); }
.tab-btn .progress { display: block; height: 3px; border-radius: 3px; background: var(--line-2); margin-top: 12px; overflow: hidden; }
.tab-btn .progress::after { content: ""; display: block; height: 100%; width: 0; background: var(--brand); }
.tab-btn[aria-selected="true"] .progress::after { animation: tabprogress var(--tab-ms, 6000ms) linear forwards; }
.explorer.is-paused .tab-btn .progress::after { animation-play-state: paused; }
@keyframes tabprogress { to { width: 100%; } }
.tab-stage { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius-xl); overflow: hidden; background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid var(--line); }
.tab-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) 0; object-position: bottom; opacity: 0; transform: scale(1.02); transition: opacity .45s, transform .6s; }
.tab-stage img.is-active { opacity: 1; transform: none; }

/* ---------- Smart tools ---------- */
.tools { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 28px; align-items: center; }
.tools-col { display: flex; flex-direction: column; gap: 14px; }
.tool-item { padding: 18px 20px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .2s; background: transparent; text-align: start; width: 100%; }
.tool-item:hover { background: var(--bg-soft); }
.tool-item.is-active { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.tool-item .t-title { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.tool-item .t-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-100); flex-shrink: 0; transition: background-color .2s, box-shadow .2s; }
.tool-item.is-active .t-title::before { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-50); }
.tool-item .t-desc { margin-top: 8px; font-size: 15px; color: var(--muted); padding-inline-start: 20px; }
.tools-stage { position: relative; aspect-ratio: 9 / 13; max-height: 620px; margin-inline: auto; width: 100%; }
.tools-stage::before { content: ""; position: absolute; inset: 12% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(127,71,221,.28), transparent); filter: blur(10px); }
.tools-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s; }
.tools-stage img.is-active { opacity: 1; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--line); }
.plan-card.is-featured { background: var(--dark); border-color: var(--dark); color: #c9c4dd; box-shadow: var(--shadow-lg); }
.plan-card.is-featured h3 { color: #fff; }
.plan-badge { position: absolute; top: 20px; inset-inline-end: 20px; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; }
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-head img { width: 36px; height: 36px; }
.plan-card h3 { font-size: 22px; }
.plan-desc { margin-top: 14px; color: var(--muted); font-size: 15px; min-height: 3.3em; }
.plan-card.is-featured .plan-desc { color: #b7b1cf; }
.plan-card .btn { margin-top: 24px; }
.plan-features { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.plan-card.is-featured .plan-features { border-top-color: rgba(255,255,255,.1); }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan-features svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.plan-card.is-featured .plan-features svg { color: var(--brand-300); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 8px 24px; }
.quotes::-webkit-scrollbar { display: none; }
.quote-card { scroll-snap-align: start; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.quote-card .stars { display: flex; gap: 2px; color: #f5a524; }
.quote-card .stars svg { width: 18px; height: 18px; }
.quote-card blockquote { margin: 16px 0 0; color: var(--ink-2); font-size: 16px; flex: 1; }
.quote-person { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.quote-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-person strong { display: block; color: var(--ink); font-size: 15px; }
.quote-person span { display: block; font-size: 14px; color: var(--muted); }
.slider-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.slider-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.slider-nav button:hover { border-color: var(--brand-300); color: var(--brand); }
.slider-nav svg { width: 18px; height: 18px; }
html[dir="rtl"] .slider-nav svg { transform: scaleX(-1); }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-xl);
    background: radial-gradient(80% 120% at 100% 0%, #9a6cf0 0%, var(--brand) 35%, var(--brand-700) 100%);
    color: #efe8ff; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px;
    padding: clamp(32px, 5vw, 64px); padding-bottom: 0;
}
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.8vw, 42px); }
.cta-band p { margin-top: 14px; font-size: 17px; color: #e4d9ff; max-width: 48ch; }
.cta-band .cta-copy { padding-bottom: clamp(32px, 5vw, 64px); }
.cta-band .hero-ctas { justify-content: flex-start; }
.cta-band .cta-media { align-self: end; display: flex; justify-content: center; }
.cta-band .cta-media img { max-height: 380px; width: auto; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--dark); color: #a9a3c2; padding-top: clamp(56px, 7vw, 88px); }
.site-footer::before { content: ""; position: absolute; top: -220px; inset-inline-start: 50%; width: 760px; height: 440px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(127, 71, 221, .35), transparent); pointer-events: none; }
html[dir="rtl"] .site-footer::before { transform: translateX(50%); }
.site-footer > .container { position: relative; }
.footer-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(127, 71, 221, .22), rgba(255, 255, 255, .03)); border: 1px solid rgba(183, 154, 240, .22);
}
.footer-cta h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); }
.footer-cta p { margin-top: 8px; color: #c9c2e4; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .28); background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; margin-top: clamp(48px, 6vw, 72px); }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 18px; max-width: 36ch; font-size: 15px; line-height: 1.7; }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
html[lang="ar"] .site-footer h4 { letter-spacing: 0; font-size: 15px; }
.site-footer ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer ul a { position: relative; font-size: 15px; transition: color .2s; }
.site-footer ul a:hover { color: #fff; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.store-badges img { height: 42px; width: auto; }
.footer-bottom { margin-top: clamp(40px, 5vw, 64px); padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 14px; }
.footer-bottom-actions { display: flex; gap: 8px; }
.footer-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-inline: 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); color: #d7d1ec; font-weight: 500; transition: border-color .2s, color .2s; }
.footer-pill:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.footer-pill svg { width: 16px; height: 16px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: clamp(22px, 2.6vw, 28px); }
.form-card .form-sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.input {
    display: block; width: 100%; height: 50px; padding-inline: 16px; border-radius: 12px;
    border: 1.5px solid var(--line); background: #fff; font-size: 15px; color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #a3a0b5; }
.input:hover { border-color: #d6d1e6; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.input.has-error { border-color: var(--danger); }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236d6a82' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 42px; }
html[dir="rtl"] select.input { background-position: left 14px center; }
.field-error { margin-top: 6px; font-size: 13px; color: var(--danger); }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.form-note svg { width: 14px; height: 14px; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-top: 20px; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.alert-success { background: #ecfdf3; color: #0f7a3a; border: 1px solid #b7f0cc; }
.alert-error { background: #fef2f2; color: #b42318; border: 1px solid #fecaca; }
.password-wrap { position: relative; }
.password-wrap .input { padding-inline-end: 48px; }
.password-toggle { position: absolute; top: 50%; inset-inline-end: 10px; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.password-toggle:hover { color: var(--ink); background: var(--line-2); }
.password-toggle svg { width: 18px; height: 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.link { color: var(--brand-700); font-weight: 600; font-size: 14px; }
.link:hover { text-decoration: underline; }

/* intl-tel-input */
.iti { display: block !important; width: 100%; }
.iti__flag-container { z-index: 2; }
/* Phone numbers are always LTR, so the dial-code flag stays on the left in both languages */
html[dir="rtl"] .iti { direction: ltr; }
html[dir="rtl"] .iti input.input { text-align: left; }
.iti--container, .iti__country-list { direction: ltr; text-align: left; }
.iti__country-list { border-radius: 12px; border-color: var(--line); box-shadow: var(--shadow); }

/* ---------- Split pages (contact / auth / free trial) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-copy h1 { font-size: clamp(32px, 4.6vw, 54px); margin-top: 18px; }
.split-copy .lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 52ch; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check-list svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--brand); }
.page-top { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.page-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 80% 0%, rgba(127,71,221,.12), transparent 70%), var(--bg-soft); }
html[dir="rtl"] .page-top::before { background: radial-gradient(60% 60% at 20% 0%, rgba(127,71,221,.12), transparent 70%), var(--bg-soft); }
.mini-quote { margin-top: 32px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; max-width: 520px; }
.mini-quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mini-quote p { font-size: 15px; color: var(--ink-2); }
.mini-quote strong { display: block; margin-top: 8px; font-size: 14px; color: var(--ink); }
.auth-card { max-width: 460px; width: 100%; margin-inline: auto; }
.auth-card .form-grid { grid-template-columns: 1fr; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Landing (ads) page ---------- */
.lp-header .container { justify-content: space-between; }
.lp-hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.lp-grid { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "intro form" "proof form"; column-gap: clamp(32px, 5vw, 72px); row-gap: 28px; align-items: start; }
.lp-intro { grid-area: intro; padding-top: 12px; }
.lp-form { grid-area: form; }
.lp-proof { grid-area: proof; }
.lp-proof .mini-quote { margin-top: 28px; }
@media (max-width: 1023px) {
    .lp-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "proof"; }
}
.lp-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.lp-stats div strong { display: block; font-size: 28px; color: var(--ink); font-weight: 700; line-height: 1.1; }
.lp-stats div span { font-size: 14px; color: var(--muted); }
.lp-shot { margin-top: 36px; }
.lp-shot .shot { margin-top: 0; }

.sticky-cta { display: none; }
@media (max-width: 767px) {
    .sticky-cta {
        display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
        transform: translateY(110%); transition: transform .25s;
    }
    .sticky-cta.is-visible { transform: none; }
    .sticky-cta .btn { flex: 1; }
    body.has-sticky-cta { padding-bottom: 76px; }
}

/* ---------- Thank you ---------- */
.thanks { text-align: center; max-width: 620px; margin-inline: auto; }
.thanks-icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #ecfdf3; color: var(--success); box-shadow: 0 0 0 10px #f4fef7; }
.thanks-icon svg { width: 40px; height: 40px; }
.thanks h1 { font-size: clamp(30px, 4.4vw, 48px); margin-top: 32px; }
.thanks p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; text-align: start; }
.step { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: 14px; }
.step p { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

/* ---------- About ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; align-items: end; }
.gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.gallery figure:nth-child(2) { aspect-ratio: 4 / 5.6; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.goal-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--line); }
.goal-card h3 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 16px; }
.goal-card p { margin-top: 12px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { padding: 28px; border-radius: var(--radius-lg); background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); }
.stat strong { display: block; font-size: clamp(34px, 4vw, 48px); color: #fff; line-height: 1; font-weight: 700; }
.stat span { display: block; margin-top: 10px; color: #b7b1cf; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .post-media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-date { font-size: 13px; color: var(--brand-700); font-weight: 600; }
.post-body h3 { font-size: 18px; line-height: 1.45; }
.post-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-700); font-size: 15px; }
.post-more svg { width: 16px; height: 16px; }
html[dir="rtl"] .post-more svg { transform: scaleX(-1); }
.empty { text-align: center; padding-block: 48px; color: var(--muted); }
.empty svg { width: 110px; height: 110px; margin: 0 auto 16px; }
.article-head { text-align: center; max-width: 860px; margin-inline: auto; }
.article-head h1 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 16px; }
.article-cover { margin-top: 40px; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 760px; margin-inline: auto; font-size: 18px; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 22px; margin-top: 1.6em; }
.prose a { color: var(--brand-700); text-decoration: underline; }
.prose ul { list-style: disc; padding-inline-start: 1.4em; }
.prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius); height: auto; }
.prose blockquote { margin-inline: 0; padding-inline-start: 20px; border-inline-start: 4px solid var(--brand-100); color: var(--ink); font-style: italic; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    .tab-btn[aria-selected="true"] .progress::after { animation: none; width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .feature-grid, .plans, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .quotes { grid-auto-columns: calc((100% - 20px) / 2); }
    .explorer { grid-template-columns: 1fr; }
    .explorer .tab-stage { order: -1; }
    .tools { grid-template-columns: 1fr 1fr; }
    .tools-stage { grid-column: 1 / -1; order: -1; max-height: 420px; aspect-ratio: 4 / 3; }
    .split { grid-template-columns: 1fr; }
    .cta-band { grid-template-columns: 1fr; text-align: center; }
    .cta-band p { margin-inline: auto; }
    .cta-band .hero-ctas { justify-content: center; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
    :root { --header-h: 64px; }
    .brand img { height: 30px; }
    .feature-grid, .plans, .post-grid, .pillar-grid, .goals, .tools, .steps { grid-template-columns: 1fr; }
    .quotes { grid-auto-columns: 86%; }
    .form-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .gallery figure:nth-child(2) { grid-column: 1 / -1; order: -1; aspect-ratio: 16 / 10; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .shot { border-radius: var(--radius-lg); padding: 6px; }
    .shot img { border-radius: calc(var(--radius-lg) - 6px); }
    .shot-bar { padding: 4px 6px 8px; }
    .plan-card, .feature-card { padding: 24px; }
}

/* ==========================================================================
   Home page v2 sections
   ========================================================================== */

/* Shared: heading row (title at start, action at end) */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(36px, 4.5vw, 56px); }
.head-row .section-head { margin-bottom: 0; max-width: 640px; }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .75); color: var(--brand-700); border: 1px solid rgba(127, 71, 221, .12); }

/* ---------- Partner logos ---------- */
.logos-x { padding-block: clamp(36px, 5vw, 56px) clamp(24px, 3vw, 40px); }
.logos-x-label { display: flex; align-items: center; gap: 18px; justify-content: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.logos-x-label::before, .logos-x-label::after { content: ""; height: 1px; flex: 0 1 140px; background: linear-gradient(90deg, transparent, var(--line)); }
.logos-x-label::after { background: linear-gradient(90deg, var(--line), transparent); }
.logos-x .marquee { margin-top: 28px; }
.logos-x .marquee-track { gap: 64px; align-items: center; }
.logos-x .marquee-track img { height: 40px; opacity: .55; }

/* ---------- Features: hairline grid ---------- */
.fx-section { padding-top: clamp(56px, 7vw, 96px); }
.fgrid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden;
}
.fcell { position: relative; background: #fff; padding: clamp(24px, 3vw, 36px); transition: background-color .3s; }
.fcell::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(420px 220px at var(--mx, 50%) 0%, rgba(127, 71, 221, .09), transparent 70%); pointer-events: none; }
.fcell:hover::before { opacity: 1; }
.fcell-top { display: flex; align-items: center; justify-content: space-between; }
.ficon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid var(--brand-100); box-shadow: 0 6px 16px -8px rgba(127, 71, 221, .45); transition: transform .3s; }
.fcell:hover .ficon { transform: translateY(-3px) rotate(-4deg); }
.ficon img { width: 26px; height: 26px; object-fit: contain; }
.fnum { font-size: 13px; font-weight: 700; color: #cfc9df; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.fcell h3 { font-size: 19px; margin-top: 22px; }
.fcell p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* ---------- Pillars: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-card { grid-column: span 5; position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0; border: 1px solid rgba(21, 17, 43, .06); min-height: 460px; transition: transform .3s, box-shadow .3s; }
.bento-card.is-wide { grid-column: span 7; }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tint-0 { background: linear-gradient(160deg, #f3edff 0%, #faf8ff 60%); }
.tint-1 { background: linear-gradient(160deg, #e9f7f3 0%, #f8fcfb 60%); }
.tint-2 { background: linear-gradient(160deg, #fff3e6 0%, #fffaf5 60%); }
.tint-3 { background: linear-gradient(160deg, #e8f1ff 0%, #f7faff 60%); }
.tint-1 .chip { color: #0f7a5c; border-color: rgba(15, 122, 92, .15); }
.tint-2 .chip { color: #b45309; border-color: rgba(180, 83, 9, .15); }
.tint-3 .chip { color: #1d4ed8; border-color: rgba(29, 78, 216, .15); }
.bento-copy h3 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 16px; }
.bento-copy p { margin-top: 10px; color: var(--muted); max-width: 46ch; }
.bento-media { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; align-items: flex-end; }
.bento-media img { max-height: 300px; width: auto; max-width: 100%; object-fit: contain; transition: transform .5s; }
.bento-card:hover .bento-media img { transform: translateY(-6px) scale(1.02); }

/* ---------- Dark panel (feature explorer) ---------- */
.panel-dark, .cta-x { position: relative; isolation: isolate; overflow: hidden; border-radius: clamp(24px, 3vw, 40px); background: #0c0820; color: #c9c3e0; }
.panel-dark { padding: clamp(32px, 5vw, 72px); }
.panel-dark-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.panel-dark-bg .orb-1 { top: -320px; }
.panel-dark .section-head h2, .cta-x h2 { color: #fff; }
.panel-dark .section-head p, .cta-x p { color: #b9b2d3; }
.panel-dark .eyebrow, .cta-x .eyebrow { background: rgba(127, 71, 221, .18); border-color: rgba(183, 154, 240, .25); color: #d9c9fb; }
.panel-dark .explorer { grid-template-columns: 1fr 1fr; }
.panel-dark .tab-btn { align-items: center; gap: 16px; border-color: rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .02); }
.panel-dark .tab-btn:hover { background: rgba(255, 255, 255, .05); }
.panel-dark .tab-btn[aria-selected="true"] { background: rgba(255, 255, 255, .07); border-color: rgba(183, 154, 240, .3); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }
.panel-dark .t-title { color: #fff; font-size: 17px; }
.panel-dark .tab-btn .t-desc { color: #b9b2d3; }
.panel-dark .tab-btn .progress { background: rgba(255, 255, 255, .08); }
.panel-dark .tab-btn .progress::after { background: linear-gradient(90deg, #9d6cf5, #f0abfc); }
.tab-num { flex-shrink: 0; width: 36px; font-size: 14px; font-weight: 700; color: #6f6891; font-variant-numeric: tabular-nums; }
.tab-btn[aria-selected="true"] .tab-num { color: #c4a6ff; }
.tab-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); }
.tab-icon img { width: 22px; height: 22px; object-fit: contain; }
.panel-dark .tab-stage { background: radial-gradient(60% 60% at 50% 55%, rgba(127, 71, 221, .55), transparent 75%); border: 0; aspect-ratio: 1 / 1; max-height: 560px; }
.panel-dark .tab-stage img { padding: 6% 12% 0; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }

/* ---------- Smart tools: orbit rings ---------- */
.tools-stage { overflow: visible; }
.tools-stage::before { display: none; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(127, 71, 221, .22); transform: translate(-50%, -50%); pointer-events: none; }
.ring-1 { width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(127, 71, 221, .16), transparent); border-style: solid; border-color: rgba(127, 71, 221, .1); }
.ring-2 { width: 100%; aspect-ratio: 1; animation: spin 60s linear infinite; }
.ring-3 { width: 130%; aspect-ratio: 1; border-color: rgba(127, 71, 221, .12); animation: spin 90s linear infinite reverse; }
.ring-2::after, .ring-3::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 6px var(--brand-50); }
.ring-3::after { left: auto; right: -4px; top: 30%; width: 8px; height: 8px; background: #c084fc; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.tools-stage img { z-index: 1; filter: drop-shadow(0 30px 40px rgba(40, 20, 90, .25)); }
.tool-item { border: 1px solid transparent; }
.tool-item.is-active { border-color: var(--brand-100); box-shadow: 0 16px 40px -20px rgba(127, 71, 221, .45); }

/* ---------- Pricing ---------- */
.px-section { background: linear-gradient(to bottom, #fff, var(--bg-soft) 30%, var(--bg-soft) 70%, #fff); }
.plan-card { transition: transform .3s, box-shadow .3s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card.is-featured { background: linear-gradient(#130e27, #130e27) padding-box, linear-gradient(160deg, #c4a6ff, #7f47dd 40%, #f0abfc) border-box; border: 1.5px solid transparent; transform: translateY(-10px); }
.plan-card.is-featured:hover { transform: translateY(-14px); }
.plan-badge { background: linear-gradient(135deg, #9d6cf5, #7f47dd); box-shadow: 0 6px 16px -6px rgba(127, 71, 221, .8); }
.plan-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); border: 1px solid var(--brand-100); }
.plan-card.is-featured .plan-mark { background: rgba(255, 255, 255, .95); }
.plan-mark img { width: 26px; height: 26px; }
.plan-includes { margin-top: 28px; font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .plan-includes { letter-spacing: 0; font-size: 14px; }
.plan-card.is-featured .plan-includes { color: #fff; }
.plan-card .plan-features { margin-top: 14px; padding-top: 0; border-top: 0; }
.plan-features svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--brand-50); box-sizing: content-box; }
.plan-card.is-featured .plan-features svg { background: rgba(196, 166, 255, .15); color: #c4a6ff; }
.plans-note { margin-top: 32px; text-align: center; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote-card { transition: transform .3s, box-shadow .3s, border-color .3s; }
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.quote-mark { color: var(--brand-100); }
.quote-person img { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand-100); }
.head-row .slider-nav { margin-top: 0; }

/* ---------- Closing CTA (dark) ---------- */
.cta-x { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 32px; padding: clamp(36px, 5.5vw, 72px) clamp(28px, 5vw, 72px) 0; }
.cta-x-copy { padding-bottom: clamp(36px, 5.5vw, 72px); }
.cta-x h2 { font-size: clamp(28px, 4vw, 46px); margin-top: 16px; text-wrap: balance; }
.cta-x p { margin-top: 16px; font-size: 17px; max-width: 50ch; }
.cta-x .hero-ctas { justify-content: flex-start; margin-top: 30px; }
.cta-x-media { display: flex; justify-content: center; }
.cta-x-media img { max-height: 400px; width: auto; filter: drop-shadow(0 -10px 60px rgba(127, 71, 221, .45)); }

@media (max-width: 1023px) {
    .fgrid { grid-template-columns: repeat(2, 1fr); }
    .bento-card, .bento-card.is-wide { grid-column: span 12; min-height: 0; }
    .panel-dark .explorer { grid-template-columns: 1fr; }
    .panel-dark .tab-stage { max-height: 420px; margin-inline: auto; width: 100%; }
    .plan-card.is-featured { transform: none; }
    .cta-x { grid-template-columns: 1fr; text-align: center; }
    .cta-x p { margin-inline: auto; }
    .cta-x .hero-ctas { justify-content: center; }
    .cta-x-media img { max-height: 300px; }
}
@media (max-width: 767px) {
    .fgrid { grid-template-columns: 1fr; }
    .head-row { align-items: flex-start; }
    .head-row > .btn { width: 100%; }
    .panel-dark { padding: 28px 18px; }
    .panel-dark .tab-btn { padding: 14px; gap: 12px; }
    .tab-num { width: 24px; }
    .tab-icon { display: none; }
    .logos-x-label::before, .logos-x-label::after { flex-basis: 40px; }
    .cta-x .hero-ctas .btn { flex: 1 1 100%; }
    .ring-3 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } }

/* ---------- Floating quick actions (login + free trial) ---------- */
.quick-dock {
    position: fixed; z-index: 60; bottom: 24px; inset-inline-end: 24px;
    display: flex; align-items: center; gap: 6px; padding: 6px;
    border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line);
    box-shadow: 0 20px 50px -18px rgba(38, 20, 90, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transform: translateY(140%); opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.quick-dock.is-visible { transform: none; opacity: 1; }
.quick-dock-login { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); transition: background-color .2s, color .2s; }
.quick-dock-login:hover { background: var(--brand-50); color: var(--brand-700); }
.quick-dock-login svg { width: 18px; height: 18px; }
html[dir="rtl"] .quick-dock-login svg { transform: scaleX(-1); }
.quick-dock-trial { height: 44px; }
@media (max-width: 767px) {
    .quick-dock { inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; }
    .quick-dock-trial { flex: 1; }
    body.has-sticky-cta { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .quick-dock { transition: none; } }

/* Hero sign-in button: arrow points into the "door" in both directions */
html[dir="rtl"] .hero-signin svg { transform: scaleX(-1); }

/* ---------- Social links (footer + drawer) ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; transition: background-color .2s, color .2s, transform .2s, border-color .2s; }
.social svg { width: 18px; height: 18px; }
.social a:hover { transform: translateY(-2px); }
.social-footer { margin-top: 22px; }
.social-footer a { color: #d7d1ec; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.social-footer a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.social-footer a.social-whatsapp:hover { background: #25d366; border-color: #25d366; }
.drawer-social { margin: 16px 24px 0; }
.drawer-social:empty { display: none; }
.social-drawer a { width: 44px; height: 44px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); }
.social-drawer a:hover { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }
.social-drawer a.social-whatsapp { color: #fff; background: #25d366; border-color: #25d366; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
    position: fixed; z-index: 61; bottom: 24px; inset-inline-start: 24px;
    display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px;
    border-radius: 999px; background: #25d366; color: #fff !important; font-weight: 600; font-size: 15px;
    box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .75), 0 4px 10px rgba(0, 0, 0, .08);
    transition: transform .2s, box-shadow .2s, background-color .2s;
}
html[dir="rtl"] .wa-float { padding: 0 8px 0 20px; }
.wa-float:hover { transform: translateY(-3px); background: #1ebe5b; box-shadow: 0 18px 40px -12px rgba(37, 211, 102, .9); }
.wa-float-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.wa-float-icon svg { width: 24px; height: 24px; }
.wa-float-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(.85); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 767px) {
    .wa-float { width: 56px; padding: 0 !important; justify-content: center; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-start: 16px; }
    .wa-float-label { display: none; }
    .wa-float-icon { background: none; }
    .wa-float-icon svg { width: 28px; height: 28px; }
    /* Sit above the mobile bottom bar (quick dock / sticky CTA) */
    body.has-sticky-cta .wa-float { bottom: calc(92px + env(safe-area-inset-bottom)); inset-inline-start: auto; inset-inline-end: 16px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float-icon::after { animation: none; } }
.site-footer ul.social { flex-direction: row; gap: 10px; }
.social-footer { gap: 8px !important; }
.social-footer a { width: 36px; height: 36px; border-radius: 11px; }
.social-footer svg { width: 17px; height: 17px; }

/* ---------- Partners (trust section) ---------- */
.partners-x { padding-block: clamp(40px, 6vw, 72px) clamp(8px, 2vw, 24px); }
.partners-x-panel { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-xl); background: radial-gradient(90% 120% at 50% 0%, var(--brand-50) 0%, #fbf9ff 45%, #fff 100%); border: 1px solid var(--line-2); overflow: hidden; }
.partners-x-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); opacity: .55; pointer-events: none; }
.partners-x-panel > * { position: relative; }
.partners-x-head { max-width: 640px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.partners-x-head h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.partners-x-head p { color: var(--muted); font-size: clamp(14.5px, 1.4vw, 16px); line-height: 1.75; margin: 0; }

.partners-x-grid { list-style: none; margin: clamp(28px, 4vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 16px; }
.partner-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 128px; padding: 22px 16px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(21, 17, 43, .04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.partner-logo { --logo-h: 56px; width: 100%; max-width: 150px; height: var(--logo-h); display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-width: 100%; max-height: var(--logo-h); width: auto; height: auto; object-fit: contain; transition: transform .25s ease; } /* brand colours always shown (no hover on phones) */
.partner-name { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.4; transition: color .25s ease; }
.partner-card:hover { transform: translateY(-3px); border-color: var(--brand-100); box-shadow: 0 18px 36px -20px rgba(90, 40, 176, .35); }
.partner-card:hover .partner-logo img { transform: scale(1.05); }
.partner-card:hover .partner-name { color: var(--ink); }

.partners-x-marquee { margin-top: 16px; }
.partners-x-marquee:first-of-type { margin-top: clamp(28px, 4vw, 40px); }
.partners-x-marquee .marquee-track { gap: 16px; animation-duration: 40s; }
.partners-x-marquee.is-reverse .marquee-track { animation-direction: reverse; }
.partners-x-marquee .partner-card { width: 190px; min-height: 96px; padding: 18px; }
.partners-x-marquee .marquee-track img { height: auto; max-width: 100%; max-height: var(--logo-h); }

.partners-x-foot { margin-top: clamp(24px, 3vw, 32px); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 16px; }
.partners-x-foot p { margin: 0; color: var(--ink); font-weight: 600; font-size: 15px; }
.partners-x-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e7f8ef; color: #15803d; }
.partners-x-check svg { width: 15px; height: 15px; }
.partners-x-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transition: background .2s ease, gap .2s ease; }
.partners-x-link:hover { background: var(--brand-700); gap: 12px; color: #fff; }
.partners-x-link svg { width: 16px; height: 16px; }
html[dir="rtl"] .partners-x-link .icon-arrow { transform: scaleX(-1); }

/* Compact variant (free-trial page) */
.partners-x-compact { padding-block: 32px 48px; border-top: 1px solid var(--line-2); }
.partners-x-compact .partners-x-panel { background: none; border: 0; padding: 0; }
.partners-x-compact .partners-x-panel::before { display: none; }
.partners-x-compact .partners-x-head h2 { font-size: clamp(20px, 2.4vw, 26px); }
.partners-x-compact .partners-x-head p { display: none; }

@media (max-width: 1023px) {
    .partners-x-grid { grid-template-columns: repeat(min(var(--cols, 5), 3), minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .partners-x-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .partners-x-grid .partner-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .partner-card { min-height: 112px; padding: 18px 12px 14px; }
    .partner-logo { --logo-h: 46px; }
    .partners-x-foot { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .partner-card, .partner-logo img { transition: none; }
    .partner-card:hover { transform: none; }
}
