/* ============================================================
 * PWF Platform — Landing redesign (2026 v2)
 *
 * Standalone design system for partials/home2/*. Loaded directly
 * from head.php (filemtime cache-bust) — NOT part of the Vite
 * bundle, so edits here go live without a rebuild.
 *
 * Identity: emerald #10b981 on deep navy, glass surfaces, bento
 * grids, oversized display type. Fully themed ([data-theme=light])
 * and RTL-safe (logical properties).
 *
 * The previous design is untouched at partials/home/* +
 * assets/css/landing.css (see backups/ for the old index.php).
 * ============================================================ */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
    --bg:            #060a14;
    --bg-raise:      #0a101f;
    --surface:       rgba(255, 255, 255, 0.04);
    --surface-2:     rgba(255, 255, 255, 0.07);
    --line:          rgba(255, 255, 255, 0.08);
    --line-strong:   rgba(255, 255, 255, 0.14);
    --text:          #eef2f8;
    --text-2:        #9aa7bd;
    --text-3:        #64748b;
    --brand:         #10b981;
    --brand-2:       #34d399;
    --brand-deep:    #059669;
    --blue:          #3b82f6;
    --amber:         #f59e0b;
    --red:           #f87171;
    --glow:          rgba(16, 185, 129, 0.35);
    --radius:        22px;
    --radius-sm:     14px;
    --font-display:  'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:     'Hack', ui-monospace, SFMono-Regular, Menlo, monospace;
    --shadow-card:   0 20px 50px rgba(0, 0, 0, 0.35);
    --ease-out:      cubic-bezier(.22, 1, .36, 1);
}
html[lang="ar"] {
    --font-display: 'Cairo', 'Segoe UI', system-ui, sans-serif;
}
[data-theme="light"] {
    --bg:          #f6f8fb;
    --bg-raise:    #ffffff;
    --surface:     rgba(255, 255, 255, 0.72);
    --surface-2:   rgba(15, 23, 42, 0.04);
    --line:        rgba(15, 23, 42, 0.09);
    --line-strong: rgba(15, 23, 42, 0.16);
    --text:        #0f172a;
    --text-2:      #475569;
    --text-3:      #64748b;
    --glow:        rgba(16, 185, 129, 0.22);
    --shadow-card: 0 20px 50px rgba(15, 23, 42, 0.08);
}

/* ── 2. Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
::selection { background: rgba(16, 185, 129, 0.35); }

/* Themed scrollbars — page-wide, follow the active theme. */
html { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, 0.3) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.55); }
::-webkit-scrollbar-corner { background: var(--bg); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.22); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.6); }

/* Aurora scene behind everything */
.scene {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(38% 45% at 12% 8%,  rgba(16, 185, 129, 0.13), transparent 70%),
        radial-gradient(34% 40% at 88% 12%, rgba(59, 130, 246, 0.10), transparent 70%),
        radial-gradient(45% 42% at 50% 108%, rgba(16, 185, 129, 0.08), transparent 70%);
}
.scene::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 10%, transparent 75%);
    opacity: .5;
}
[data-theme="light"] .scene { opacity: .8; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── 3. Shared utilities (class API kept for reused partials) ─ */
.skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--brand);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { inset-inline-start: 0; }

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.09);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head .badge-pill { margin-bottom: 22px; }
.section-title {
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.75;
    margin: 0;
}
.text-gradient {
    background: linear-gradient(120deg, var(--brand-2), var(--brand) 55%, #2dd4bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--ease-out), box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff;
    box-shadow: 0 10px 30px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-outline {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--text);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: rgba(16, 185, 129, 0.55); color: var(--brand); transform: translateY(-2px); }
.btn-white { background: #fff; color: #0f172a; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25); }
.btn-lg { padding: 16px 34px; font-size: 16px; }

.glass {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .glass { box-shadow: var(--shadow-card); }

/* Reveal-on-scroll (same .reveal/.active contract as before) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.active { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

section { position: relative; padding: 110px 0; }

/* ── 4. Navbar ─────────────────────────────────────────────── */
.nav2-wrap {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 5000;
    padding: 14px 20px 0;
    transition: padding .3s ease;
}
.nav2 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 12px 10px 22px;
    border-radius: 999px;
    background: rgba(10, 16, 31, 0.62);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: box-shadow .3s ease, background .3s ease;
}
[dir="rtl"] .nav2 { padding: 10px 22px 10px 12px; }
[data-theme="light"] .nav2 { background: rgba(255, 255, 255, 0.75); }
.nav2.scrolled { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
[data-theme="light"] .nav2.scrolled { box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12); }

.nav2 .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}
.nav2 .logo i { color: var(--brand); font-size: 20px; }

.nav2-links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav2-links .nav-link {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
    white-space: nowrap;
}
.nav2-links .nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav2-links .nav-link.active { color: var(--brand); background: rgba(16, 185, 129, 0.1); }

.nav2-actions { display: flex; align-items: center; gap: 8px; }
.nav2-actions .btn { padding: 9px 20px; font-size: 14px; }

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    transition: color .2s, border-color .2s, transform .3s var(--ease-out);
}
.theme-toggle:hover { color: var(--amber); border-color: var(--line-strong); transform: rotate(18deg); }

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
}

/* Language switcher (same class API as langSwitcherHTML output) */
.lang-switcher { position: relative; }
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease;
}
.lang-toggle:hover { border-color: var(--line-strong); }
.lang-toggle .fa-chevron-down { font-size: 10px; opacity: .6; transition: transform .3s; }
.lang-switcher.open .lang-toggle .fa-chevron-down { transform: rotate(180deg); }
.lang-flag { display: inline-flex; align-items: center; line-height: 1; }
.lang-code { text-transform: uppercase; }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 6px;
    min-width: 176px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .25s ease;
    z-index: 6000;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .lang-dropdown { box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14); }
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    transition: all .2s;
}
.lang-option:hover { background: rgba(16, 185, 129, 0.08); color: var(--text); }
.lang-option.active { color: var(--brand); font-weight: 700; }
.lang-option .fa-check { margin-inline-start: auto; font-size: 12px; }

/* ── 5. Hero ───────────────────────────────────────────────── */
.hero2 { padding: 190px 0 90px; overflow: hidden; }
.hero2-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 60px;
    align-items: center;
}
.hero2-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--hero-badge-border, rgba(16, 185, 129, 0.3));
    color: var(--hero-badge-color, var(--brand));
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 26px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hero-badge-color, var(--brand));
    animation: pulse2 2s cubic-bezier(.4, 0, .6, 1) infinite;
    flex-shrink: 0;
}
@keyframes pulse2 {
    0%   { box-shadow: 0 0 0 0 var(--hero-badge-shadow, rgba(16,185,129,.4)); }
    70%  { box-shadow: 0 0 0 9px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.hero2-title {
    font-size: clamp(42px, 6.4vw, 76px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1.5px;
    margin: 0 0 24px;
}
[dir="rtl"] .hero2-title { letter-spacing: 0; line-height: 1.22; }
.hero2-title .line { display: block; }
.hero2-title .grad {
    background: linear-gradient(120deg, var(--brand-2), var(--brand) 45%, #2dd4bf 80%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradShift 7s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero2-sub {
    font-size: 18px;
    color: var(--text-2);
    line-height: 1.8;
    max-width: 540px;
    margin: 0 0 34px;
}
.hero2-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero2-trust { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 14px; }
.hero2-trust i { color: var(--brand); }

/* Hero bento visual */
.hero2-visual { position: relative; }
.hero2-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.hb-tile { padding: 18px; }
.hb-tile--feed { grid-column: 1 / -1; padding: 0; overflow: hidden; }

.hb-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
}
.hb-feed-head .live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hb-feed-window { height: 218px; overflow: hidden; position: relative; }
.hb-feed-window::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 54px;
    background: linear-gradient(to top, var(--bg-raise), transparent);
    pointer-events: none;
    opacity: .85;
}
.hb-feed-scroll { animation: feedScroll 16s linear infinite; }
@keyframes feedScroll { to { transform: translateY(-50%); } }
.hb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
}
.hb-row .num { font-family: var(--font-mono); color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; direction: ltr; }
.hb-row img { border-radius: 2px; }
.hb-row .svc { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 11.5px; margin-inline-start: auto; }
.hb-row .svc img { width: 14px; height: 14px; }
.hb-pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .3px;
}
.hb-pill.ok  { background: rgba(16, 185, 129, 0.12); color: var(--brand); }
.hb-pill.bad { background: rgba(248, 113, 113, 0.12); color: var(--red); }

.hb-stat-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.hb-stat-label i { color: var(--brand); }
.hb-stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--text); line-height: 1; }
.hb-stat-value .counter { font-family: inherit; }
.hb-tile--accuracy .hb-stat-label i { color: var(--blue); }
.hb-meter { height: 5px; border-radius: 999px; background: var(--surface-2); margin-top: 14px; overflow: hidden; }
.hb-meter > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-deep), var(--brand-2)); }

/* Floating service chips over the bento */
.hero2-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    animation: chipFloat 6s ease-in-out infinite;
}
.hero2-chip img { width: 30px; height: 30px; object-fit: contain; }
.hero2-chip.c1 { top: -22px; inset-inline-start: -18px; }
.hero2-chip.c2 { top: 34%; inset-inline-end: -24px; animation-delay: -2s; }
.hero2-chip.c3 { bottom: -18px; inset-inline-start: 12%; animation-delay: -4s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Services ticker under hero */
.hero2-ticker {
    margin-top: 74px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.hero2-ticker-track { display: flex; gap: 54px; width: max-content; animation: tickerMove 30s linear infinite; }
[dir="rtl"] .hero2-ticker-track { animation-name: tickerMoveRtl; }
@keyframes tickerMove    { to { transform: translateX(-50%); } }
@keyframes tickerMoveRtl { to { transform: translateX(50%); } }
.hero2-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-3);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}
.hero2-ticker-item img { width: 20px; height: 20px; object-fit: contain; }
.hero2-ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); opacity: .6; }

/* ── 6. Trust bar ──────────────────────────────────────────── */
.trust2 { padding: 0 0 30px; }
.trust2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust2-item { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.trust2-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand);
    font-size: 17px;
    flex-shrink: 0;
}
.trust2-item:nth-child(2) .trust2-icon { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.trust2-item:nth-child(3) .trust2-icon { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.trust2-item strong { display: block; font-size: 14.5px; color: var(--text); }
.trust2-item span { font-size: 12.5px; color: var(--text-3); }

/* ── 7. Stats ──────────────────────────────────────────────── */
.stats2-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats2-card { position: relative; padding: 28px 26px; overflow: hidden; }
.stats2-card::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand), transparent);
}
.stats2-card:nth-child(2)::after { background: linear-gradient(180deg, var(--blue), transparent); }
.stats2-card:nth-child(3)::after { background: linear-gradient(180deg, var(--amber), transparent); }
.stats2-card:nth-child(4)::after { background: linear-gradient(180deg, #a78bfa, transparent); }
.stats2-value {
    font-family: var(--font-display);
    font-size: clamp(34px, 3.6vw, 46px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1.05;
    margin-bottom: 6px;
    direction: ltr;
}
[dir="rtl"] .stats2-value { text-align: end; }
.stats2-label { font-size: 14px; color: var(--text-2); font-weight: 600; }
.stats2-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--brand); }

/* ── 8. How it works ───────────────────────────────────────── */
.hiw2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.hiw2-card { position: relative; padding: 34px 28px 30px; overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s ease; }
.hiw2-card:hover { transform: translateY(-5px); border-color: rgba(16, 185, 129, 0.4); }
.hiw2-num {
    position: absolute;
    top: -26px;
    inset-inline-end: 6px;
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-strong);
    opacity: .9;
    pointer-events: none;
}
.hiw2-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand);
}
.hiw2-card:nth-child(2) .hiw2-icon { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.hiw2-card:nth-child(3) .hiw2-icon { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.hiw2-card h3 { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.hiw2-card p { font-size: 14.5px; color: var(--text-2); line-height: 1.75; margin: 0 0 18px; }
.hiw2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hiw2-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-2);
}
.hiw2-chip i { font-size: 10px; }
.hiw2-chip.ok i { color: var(--brand); }
.hiw2-chip.bad i { color: var(--red); }

/* ── 9. Demo (auto-playing pipeline) ───────────────────────── */
.demo2-window { max-width: 900px; margin: 0 auto; overflow: hidden; }
.demo2-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
}
.demo2-dots { display: flex; gap: 6px; }
.demo2-dots span { width: 11px; height: 11px; border-radius: 50%; }
.demo2-dots span:nth-child(1) { background: #ff5f57; }
.demo2-dots span:nth-child(2) { background: #ffbd2e; }
.demo2-dots span:nth-child(3) { background: #28ca42; }
.demo2-url {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 5px 14px;
    direction: ltr;
}
.demo2-url i { color: var(--brand); margin-inline-end: 6px; }
.demo2-body { padding: 28px; }

.demo2-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.demo2-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
    transition: border-color .3s ease, background .3s ease;
}
.demo2-step .n {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--text-3);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all .3s ease;
}
.demo2-step .t { font-size: 13px; font-weight: 600; color: var(--text-3); transition: color .3s ease; }
.demo2-step.on { border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.07); }
.demo2-step.on .n { background: var(--brand); color: #fff; }
.demo2-step.on .t { color: var(--text); }
.demo2-step.done .n { background: rgba(16, 185, 129, 0.2); color: var(--brand); }
.demo2-step.done .t { color: var(--text-2); }

.demo2-stage { min-height: 210px; position: relative; }
.demo2-pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .45s var(--ease-out); }
.demo2-pane.on { opacity: 1; visibility: visible; transform: none; }

.demo2-progress-track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 18px 0 10px; }
.demo2-progress-fill { width: 0%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-deep), var(--brand-2)); transition: width .2s linear; }
.demo2-progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-3); }
.demo2-progress-meta .pct { font-family: var(--font-mono); color: var(--brand); font-weight: 700; }

.demo2-upload {
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 34px 20px;
    text-align: center;
    transition: border-color .3s ease, background .3s ease;
}
.demo2-upload.loaded { border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.05); }
.demo2-upload i { font-size: 30px; color: var(--text-3); margin-bottom: 10px; transition: color .3s ease; }
.demo2-upload.loaded i { color: var(--brand); }
.demo2-upload .tt { font-size: 14px; font-weight: 700; color: var(--text); }
.demo2-upload .dd { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

.demo2-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo2-result {
    padding: 22px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.06);
}
.demo2-result.bad { border-color: rgba(248, 113, 113, 0.25); background: rgba(248, 113, 113, 0.05); }
.demo2-result i { font-size: 20px; color: var(--brand); }
.demo2-result.bad i { color: var(--red); }
.demo2-result .v { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--text); margin: 8px 0 2px; }
.demo2-result .l { font-size: 12.5px; color: var(--text-2); }

/* ── 10. Features bento ────────────────────────────────────── */
.feat2-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.feat2-card { position: relative; padding: 32px 30px; overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s ease; }
.feat2-card:hover { transform: translateY(-5px); border-color: rgba(16, 185, 129, 0.4); }
.feat2-card--wide { grid-column: span 7; }
.feat2-card--slim { grid-column: span 5; }
.feat2-card::before {
    content: '';
    position: absolute;
    top: -60px;
    inset-inline-end: -60px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-tint, rgba(16, 185, 129, 0.12)), transparent 70%);
    pointer-events: none;
}
.feat2-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
    background: var(--card-chip-bg, rgba(16, 185, 129, 0.1));
    color: var(--card-chip-fg, var(--brand));
}
.feat2-card h3 { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.feat2-card p { font-size: 14.5px; color: var(--text-2); line-height: 1.75; margin: 0; }
.feat2-cta { margin-top: 48px; text-align: center; }

/* ── 11. Testimonials marquee ──────────────────────────────────
 * Deliberate replica of the previous design's review section
 * (assets/css/landing.css .testimonials/.review) at the user's
 * request — including its WhatsApp-green accents. */
.rev2 { overflow: hidden; }
.rev2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(37, 211, 102, 0.06), transparent 60%);
    pointer-events: none;
}
.rev2-head { position: relative; text-align: center; max-width: 780px; margin: 0 auto 64px; }
.rev2-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #25D366;
    letter-spacing: .12em;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.rev2-head h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
    color: #e8efea;
}
[data-theme="light"] .rev2-head h2 { color: #0f172a; }
.rev2-grad {
    background: linear-gradient(135deg, #25D366 0%, #1ed760 40%, #b3ff5e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.rev2-sub { color: #a7b3ad; font-size: 17px; margin: 0; }
[data-theme="light"] .rev2-sub { color: #64748b; }

.rev2-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rev2-marquee:hover .rev2-track { animation-play-state: paused; }
.rev2-track { display: flex; gap: 22px; width: max-content; animation: rev2Move 60s linear infinite; }
@keyframes rev2Move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .rev2-track { animation-direction: reverse; }

.rev2-card {
    width: 360px;
    flex-shrink: 0;
    padding: 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .rev2-card {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 16px -6px rgba(15, 23, 42, 0.06);
}
.rev2-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.rev2-stars .fa-star { color: rgba(255, 255, 255, 0.15); font-size: 14px; }
.rev2-stars .fa-star.on { color: #f6c045; }
[data-theme="light"] .rev2-stars .fa-star { color: rgba(15, 23, 42, 0.15); }
.rev2-card p { color: #e8efea; font-size: 16px; line-height: 1.5; margin: 0 0 22px; }
[data-theme="light"] .rev2-card p { color: #334155; }
.rev2-who { display: flex; align-items: center; gap: 12px; }
.rev2-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.14); }
[data-theme="light"] .rev2-who img { border-color: rgba(15, 23, 42, 0.14); }
.rev2-who b { display: block; color: #e8efea; font-size: 14px; font-weight: 700; }
[data-theme="light"] .rev2-who b { color: #0f172a; }
.rev2-who span { display: block; color: #6e7973; font-size: 12px; }
[data-theme="light"] .rev2-who span { color: #64748b; }

/* ── 12. FAQ ───────────────────────────────────────────────── */
.faq2-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq2-item { overflow: hidden; transition: border-color .3s ease; }
.faq2-item.open { border-color: rgba(16, 185, 129, 0.4); }
.faq2-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
}
.faq2-q .idx { font-family: var(--font-mono); font-size: 12px; color: var(--brand); flex-shrink: 0; }
.faq2-q .txt { flex: 1; }
.faq2-q .ico {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 11px;
    flex-shrink: 0;
    transition: all .3s var(--ease-out);
}
.faq2-item.open .ico { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(45deg); }
.faq2-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq2-a p { margin: 0; padding: 0 24px 22px; padding-inline-start: 52px; font-size: 14.5px; color: var(--text-2); line-height: 1.8; }
.faq2-item.open .faq2-a { max-height: 320px; }

/* ── 13. CTA ───────────────────────────────────────────────── */
.cta2-box {
    position: relative;
    text-align: center;
    padding: 74px 34px;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(60% 120% at 50% -20%, rgba(16, 185, 129, 0.28), transparent 70%),
        var(--surface);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.cta2-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 75%);
    opacity: .55;
    pointer-events: none;
}
.cta2-box h2 {
    position: relative;
    font-size: clamp(28px, 4.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 14px;
    z-index: 1;
}
.cta2-box p { position: relative; font-size: 16.5px; color: var(--text-2); max-width: 560px; margin: 0 auto 30px; z-index: 1; }
.cta2-box .btn { position: relative; z-index: 1; }

/* ── 14. Footer ────────────────────────────────────────────── */
.footer2 { position: relative; border-top: 1px solid var(--line); padding: 70px 0 40px; overflow: hidden; }
.footer2-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 50px; }
.footer2 .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 14px;
}
.footer2 .logo i { color: var(--brand); }
.footer2-brand p { font-size: 14px; color: var(--text-3); line-height: 1.8; max-width: 300px; margin: 0; }
.footer2 h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-2); margin-bottom: 18px; }
.footer2 ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer2 ul a { font-size: 14px; color: var(--text-3); text-decoration: none; transition: color .2s; }
.footer2 ul a:hover { color: var(--brand); }
.footer2 ul a i { margin-inline-end: 6px; color: var(--brand); opacity: .8; }
.footer2-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-3);
}
.footer2-watermark {
    position: absolute;
    bottom: -38px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(90px, 16vw, 210px);
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--line);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    opacity: .6;
}
[dir="rtl"] .footer2-watermark { transform: translateX(50%); }

/* ── 15. Back-to-top / cookie consent / social proof ───────── */
.back-to-top {
    position: fixed;
    bottom: 26px;
    inset-inline-end: 26px;
    z-index: 4000;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--text-2);
    font-size: 15px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s var(--ease-out);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--brand); border-color: rgba(16, 185, 129, 0.5); }

.cookie-consent {
    position: fixed;
    bottom: 20px;
    inset-inline-start: 20px;
    z-index: 9000;
    max-width: 480px;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--bg-raise);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(16px);
    transition: all .3s var(--ease-out);
}
[data-theme="light"] .cookie-consent { box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16); }
.cookie-consent--visible { opacity: 1; transform: none; }
.cookie-consent__text strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.cookie-consent__text p { margin: 0 0 16px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.cookie-consent__link { color: var(--brand); }
.cookie-consent__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text-2);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}
.cookie-btn:hover { color: var(--text); border-color: var(--text-3); }
.cookie-btn--accept { background: var(--brand); border-color: var(--brand); color: #fff; }
.cookie-btn--accept:hover { background: var(--brand-deep); color: #fff; }

.social-proof-container {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 48px));
}
.sp-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 14px 16px;
    border-radius: 16px;
    background: var(--bg-raise);
    border: 1px solid var(--line-strong);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(.97);
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
[dir="rtl"] .sp-toast { padding: 12px 16px 14px 18px; }
[data-theme="light"] .sp-toast { box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16); }
.sp-toast::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 160% at 0% 50%, rgba(16, 185, 129, 0.09), transparent 55%);
    pointer-events: none;
}
[dir="rtl"] .sp-toast::before { background: radial-gradient(120% 160% at 100% 50%, rgba(16, 185, 129, 0.09), transparent 55%); }
.sp-toast.sp-show { opacity: 1; transform: none; }
.sp-toast.sp-hide { opacity: 0; transform: translateY(-10px) scale(.97); }
.sp-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}
.sp-avatar img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; }
.sp-avatar i { color: var(--brand); font-size: 14px; }
.sp-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; }
.sp-text { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.sp-text b { color: var(--text); font-weight: 700; }
.sp-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    color: var(--text-3);
}
.sp-time i { font-size: 9px; color: var(--brand); opacity: .8; }
.sp-bar {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-deep), var(--brand-2));
    transform-origin: 0 50%;
}
[dir="rtl"] .sp-bar { transform-origin: 100% 50%; }
.sp-toast.sp-show .sp-bar { animation: spBar 4.5s linear forwards; }
@keyframes spBar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .sp-toast.sp-show .sp-bar { animation: none; } }

/* ── 16. Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero2-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero2-sub { max-width: 640px; }
    .hero2-chip.c1 { inset-inline-start: 0; }
    .hero2-chip.c2 { inset-inline-end: 0; }
    .stats2-grid { grid-template-columns: repeat(2, 1fr); }
    .feat2-card--wide, .feat2-card--slim { grid-column: span 12; }
    .footer2-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav2-links {
        position: fixed;
        top: 76px;
        inset-inline: 16px;
        z-index: 4900;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border-radius: 20px;
        background: var(--bg-raise);
        border: 1px solid var(--line-strong);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all .3s var(--ease-out);
    }
    [data-theme="light"] .nav2-links { box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18); }
    .nav2-links.active { opacity: 1; visibility: visible; transform: none; }
    .nav2-links .nav-link { padding: 12px 16px; border-radius: 12px; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav2-actions .btn { display: none; }
    .nav2-links .mobile-buttons { display: flex; gap: 8px; margin-top: 8px; }
    .nav2-links .mobile-buttons .btn { flex: 1; }
}
@media (min-width: 861px) { .nav2-links .mobile-buttons { display: none; } }
@media (max-width: 640px) {
    section { padding: 70px 0; }
    .hero2 { padding: 140px 0 60px; }
    .hero2-ctas .btn { flex: 1; min-width: 150px; }
    .trust2-grid { grid-template-columns: 1fr; }
    .stats2-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stats2-card { padding: 20px 18px; }
    .hiw2-grid { grid-template-columns: 1fr; }
    .demo2-steps { grid-template-columns: 1fr; gap: 8px; }
    .demo2-stage { min-height: 250px; }
    .rev2-card { width: 300px; }
    .footer2-grid { grid-template-columns: 1fr; gap: 30px; }
    .cookie-consent { inset-inline: 12px; max-width: none; }
}

/* ── 17. Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hb-feed-scroll, .hero2-ticker-track, .rev2-track,
    .hero2-chip, .pulse-dot, .hero2-title .grad { animation: none; }
    html { scroll-behavior: auto; }
}
