﻿/* =============================================
               TOKENS (Light Glass / Pro)
   ============================================= */
:root {
    /* Background: deeper + more contrast */
    --bg: #e2eafc; /* bottom */
    --bg2: #f0f4ff; /* top */
    /* Text */
    --text: #0b0f1a;
    --muted: #4f5a7a;
    /* Cards (slightly less white, more glass) */
    --card: rgba(255,255,255,.46);
    --card-h: rgba(255,255,255,.68);
    /* Borders */
    --stroke: rgba(15,20,50,.10);
    --stroke2: rgba(15,20,50,.16);
    /* Brand */
    --indigo: #6366f1;
    --indigo-s: rgba(99,102,241,.12);
    --cyan: #22d3ee;
    --teal: #14b8a6;
    --green: #22c55e;
    --amber: #f59e0b;
    --grad: linear-gradient(135deg,#14b8a6,#6366f1 55%,#22d3ee);
    --grad-h: linear-gradient(135deg,#6366f1,#0ea5e9);
    --logo: linear-gradient(0deg, rgba(0,0,0,.30), rgba(0,0,0,.30));
    /* Shadows (a touch stronger) */
    --sh-s: 0 2px 14px rgba(15,20,50,.05);
    --sh-m: 0 12px 44px rgba(15,20,50,.10);
    --sh-l: 0 24px 80px rgba(15,20,50,.14);
    --sh-xl: 0 34px 100px rgba(15,20,50,.16);
    --sh-glow: 0 0 100px rgba(99,102,241,.14);
    --r: 16px;
    --r2: 24px;
    --r3: 32px;
    --max: 1200px;
    --ring: 0 0 0 4px rgba(99,102,241,.20);
}

/* Optional “Dark” mode (toggle via JS) */
[data-theme="dark"] {
    --bg: #070b16;
    --bg2: #0a1022;
    --text: #e7eaff;
    --muted: #a9b0d6;
    --card: rgba(15,23,42,.55);
    --card-h: rgba(15,23,42,.72);
    --stroke: rgba(255,255,255,.10);
    --stroke2: rgba(255,255,255,.16);
    --indigo: #818cf8;
    --indigo-s: rgba(129,140,248,.12);
    --sh-s: 0 2px 14px rgba(0,0,0,.24);
    --sh-m: 0 14px 40px rgba(0,0,0,.28);
    --sh-l: 0 26px 88px rgba(0,0,0,.34);
    --sh-xl: 0 38px 110px rgba(0,0,0,.36);
    --sh-glow: 0 0 90px rgba(129,140,248,.14);
    --ring: 0 0 0 4px rgba(129,140,248,.20);
}

/* =============================================
               RESET
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    color: var(--text);
    /* أقوى + أعمق + واضح */
    background: radial-gradient(1000px 650px at 12% -5%, rgba(34,211,238,.28), transparent 62%), radial-gradient(980px 620px at 92% 6%, rgba(99,102,241,.30), transparent 64%), radial-gradient(900px 560px at 50% 110%, rgba(20,184,166,.18), transparent 60%), linear-gradient(180deg, var(--bg2) 0%, var(--bg) 60%, #d9e4fb 100%);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main, .container, .container-fluid {
    background: transparent !important;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: transparent;
}

/* container */
.container {
    width: min(var(--max), 92vw);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

::selection {
    background: rgba(99,102,241,.18);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,.18), transparent);
    margin: 22px 0;
}

/* =============================================
               BG DECORATION
   ============================================= */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(99,102,241,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,.03) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,.9), transparent 70%);
    opacity: .8;
}

.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

    .bg-blobs .b {
        position: absolute;
        border-radius: 50%;
        filter: blur(120px);
        opacity: .35;
    }

.b1 {
    width: 720px;
    height: 720px;
    top: -20%;
    left: -14%;
    background: rgba(99,102,241,.22);
    animation: d1 20s ease-in-out infinite;
}

.b2 {
    width: 640px;
    height: 640px;
    top: 6%;
    right: -12%;
    background: rgba(34,211,238,.18);
    animation: d2 24s ease-in-out infinite;
}

.b3 {
    width: 520px;
    height: 520px;
    bottom: 0%;
    left: 28%;
    background: rgba(20,184,166,.16);
    animation: d3 22s ease-in-out infinite;
}

@keyframes d1 {
    0%, 100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(60px,-40px);
    }
}

@keyframes d2 {
    0%, 100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(-50px,70px);
    }
}

@keyframes d3 {
    0%, 100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(40px,-40px);
    }
}

/* =============================================
               BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 14px;
    font-weight: 750;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
    user-select: none;
}

    .btn:active {
        transform: translateY(1px) scale(.99);
    }

    .btn:focus-visible {
        outline: none;
        box-shadow: var(--ring);
    }

.btn-ghost {
    background: rgba(255,255,255,.72);
    border-color: var(--stroke);
    color: var(--text);
    box-shadow: var(--sh-s);
}

[data-theme="dark"] .btn-ghost {
    background: rgba(255,255,255,.06);
}

.btn-ghost:hover {
    background: rgba(255,255,255,.92);
    box-shadow: var(--sh-m);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-ghost:hover {
    background: rgba(255,255,255,.10);
}

.btn-brand {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 34px rgba(99,102,241,.28);
}

    .btn-brand:hover {
        box-shadow: 0 16px 52px rgba(99,102,241,.38);
        transform: translateY(-2px);
    }

.btn-outline {
    background: transparent;
    border-color: rgba(99,102,241,.28);
    color: var(--indigo);
}

    .btn-outline:hover {
        background: var(--indigo-s);
        transform: translateY(-1px);
    }

.btn-lg {
    padding: 14px 30px;
    font-size: 15px;
    border-radius: 16px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.65);
    border: 1px solid var(--stroke);
    font-size: 16px;
    color: var(--muted);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    box-shadow: var(--sh-s);
}

[data-theme="dark"] .btn-icon {
    background: rgba(255,255,255,.06);
}

.btn-icon:hover {
    background: #fff;
    box-shadow: var(--sh-m);
    transform: translateY(-1px);
    color: var(--text);
}

[data-theme="dark"] .btn-icon:hover {
    background: rgba(255,255,255,.10);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.62);
    box-shadow: var(--sh-s);
    font-weight: 750;
    font-size: 12.5px;
    color: var(--muted);
}

[data-theme="dark"] .chip {
    background: rgba(255,255,255,.06);
}

/* =============================================
               NAV
   ============================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    background: rgba(240,244,255,.68);
    border-bottom: 1px solid var(--stroke);
    transition: box-shadow .3s ease, background .3s ease;
}

[data-theme="dark"] .nav {
    background: rgba(8,12,24,.62);
}

.nav.scrolled {
    box-shadow: var(--sh-m);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(99,102,241,.22);
}

    .logo-mark::before {
        content: "";
        position: absolute;
        inset: -20%;
        background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.65), transparent 55%);
        transform: rotate(12deg);
        opacity: .9;
    }

    .logo-mark i {
        position: relative;
        z-index: 1;
        color: #fff;
        font-size: 20px;
    }

.brand-text strong {
    display: block;
    font-weight: 950;
    font-size: 18px;
    letter-spacing: -.03em;
    background: var(--grad-h);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 650;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .nav-links a {
        padding: 9px 16px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        color: var(--muted);
        transition: background .2s ease, color .2s ease, transform .2s ease;
    }

        .nav-links a:hover {
            color: var(--text);
            background: rgba(99,102,241,.06);
            transform: translateY(-1px);
        }

        .nav-links a.active {
            color: var(--text);
            background: rgba(99,102,241,.10);
        }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Language dropdown */
.dd-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--stroke);
    box-shadow: var(--sh-l);
    display: none;
    z-index: 999;
}

[data-theme="dark"] .dd-menu {
    background: rgba(15,23,42,.88);
}

.dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    transition: background .15s ease;
}

[data-theme="dark"] .dd-item {
    color: rgba(255,255,255,.92);
}

.dd-item:hover {
    background: rgba(99,102,241,.08);
}

.dd-item[aria-selected="true"] {
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.18);
}

/* Mobile */
.hamburger {
    display: none;
}

.mobile-menu {
    display: none;
    position: fixed;
    /* ✅ أفضل للجوال مع nav sticky */
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(240,244,255,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stroke);
    z-index: 49;
    padding: 10px 0;
    box-shadow: var(--sh-m);
}

[data-theme="dark"] .mobile-menu {
    background: rgba(8,12,24,.92);
}

.mobile-menu.show {
    display: block;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    font-weight: 750;
    font-size: 15px;
    color: var(--muted);
    transition: background .15s ease, color .15s ease;
}

    .mobile-menu a:hover {
        background: rgba(99,102,241,.07);
        color: var(--text);
    }

/* ✅ FIXED MEDIA QUERIES (كانت غلط عندك) */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: inline-grid;
    }

    .nav-cta .hide-m {
        display: none;
    }

    /* تحسينات للجوال */
    .logo-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .nav-inner {
        padding: 12px 0;
    }

    .mobile-menu {
        top: 66px;
    }
    /* متناسق مع ارتفاع الناف */
}

@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }
}

/* =============================================
               HERO
   ============================================= */
.hero {
    position: relative;
    z-index: 1;
    padding: 60px 0 36px;
}

@media (max-width: 768px) {
    .hero {
        padding: 34px 0 18px;
    }
}

.hero-center {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 54px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    border: 1px solid var(--stroke);
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 26px;
    box-shadow: var(--sh-s);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero-pill {
    background: rgba(255,255,255,.06);
}

.hero-pill .live {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(34,197,94,.55);
    animation: pulse 2.1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .55;
        transform: scale(1.45);
    }
}

.hero-title {
    font-size: clamp(34px, 5.3vw, 66px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -.05em;
    margin-bottom: 18px;
}

    .hero-title .grad {
        background: var(--grad-h);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.hero-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 28px;
    font-weight: 550;
}

    .hero-sub b {
        color: var(--text);
    }

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badges {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mockup */
.hero-mockup {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.mu-wrap {
    border-radius: var(--r3);
    border: 1px solid rgba(255,255,255,.52);
    background: var(--card);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    box-shadow: var(--sh-xl), var(--sh-glow);
    overflow: hidden;
}

[data-theme="dark"] .mu-wrap {
    border-color: rgba(255,255,255,.12);
}

.mu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255,255,255,.52);
    border-bottom: 1px solid var(--stroke);
}

[data-theme="dark"] .mu-bar {
    background: rgba(255,255,255,.06);
}

.mu-dots {
    display: flex;
    gap: 7px;
}

    .mu-dots span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        opacity: .55;
    }

        .mu-dots span:nth-child(1) {
            background: #ef4444;
        }

        .mu-dots span:nth-child(2) {
            background: #f59e0b;
        }

        .mu-dots span:nth-child(3) {
            background: #22c55e;
        }

.mu-bar-t {
    font-size: 13px;
    font-weight: 850;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mu-body {
    padding: 20px;
    display: grid;
    gap: 14px;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

@media (max-width: 800px) {
    .kpis {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 420px) {
    .kpis {
        grid-template-columns: 1fr;
    }
}

.kpi {
    border-radius: var(--r);
    background: rgba(255,255,255,.56);
    border: 1px solid var(--stroke);
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: var(--sh-s);
}

[data-theme="dark"] .kpi {
    background: rgba(255,255,255,.06);
}

.kpi::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 30%, rgba(99,102,241,.16), transparent 55%);
    opacity: .8;
    transform: translateX(-6%) rotate(10deg);
    transition: opacity .25s ease;
    pointer-events: none;
}

.kpi:hover {
    background: var(--card-h);
    transform: translateY(-2px);
    box-shadow: var(--sh-m);
}

    .kpi:hover::after {
        opacity: 1;
    }

.kpi-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

    .kpi-ic.c1 {
        background: rgba(99,102,241,.10);
        color: var(--indigo);
    }

    .kpi-ic.c2 {
        background: rgba(34,211,238,.10);
        color: var(--cyan);
    }

    .kpi-ic.c3 {
        background: rgba(20,184,166,.10);
        color: var(--teal);
    }

    .kpi-ic.c4 {
        background: rgba(16,185,129,.10);
        color: var(--green);
    }

.kpi-lab {
    font-size: 11px;
    font-weight: 850;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    position: relative;
    z-index: 1;
}

.kpi-val {
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -.03em;
    margin-top: 4px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.kpi-chg {
    font-size: 11px;
    font-weight: 850;
    margin-top: 6px;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.tbl {
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    overflow: hidden;
    background: rgba(255,255,255,.46);
    box-shadow: var(--sh-s);
}

[data-theme="dark"] .tbl {
    background: rgba(255,255,255,.06);
}

.tbl-h {
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg,rgba(99,102,241,.07),rgba(20,184,166,.05));
    border-bottom: 1px solid var(--stroke);
    font-size: 13px;
    font-weight: 900;
}

.tbl-r {
    display: grid;
    grid-template-columns: 1.3fr .8fr .5fr;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid rgba(15,20,50,.05);
    font-size: 13px;
    font-weight: 700;
    align-items: center;
    transition: background .15s ease, transform .15s ease;
}

[data-theme="dark"] .tbl-r {
    border-top: 1px solid rgba(255,255,255,.06);
}

.tbl-r:first-child {
    border-top: none;
}

.tbl-r:hover {
    background: rgba(99,102,241,.035);
    transform: translateY(-1px);
}

.tbl-m {
    color: var(--muted);
    font-weight: 650;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    justify-self: end;
    border: 1px solid rgba(15,20,50,.06);
}

.pill-s {
    background: rgba(99,102,241,.10);
    color: var(--indigo);
}

.pill-c {
    background: rgba(59,130,246,.10);
    color: #3b82f6;
}

.pill-d {
    background: rgba(16,185,129,.10);
    color: var(--green);
}

/* floating */
.fl-card {
    position: absolute;
    right: -18px;
    bottom: 34px;
    width: 226px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.52);
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--sh-l);
    padding: 16px;
    z-index: 2;
    animation: floaty 5.5s ease-in-out infinite;
}

[data-theme="dark"] .fl-card {
    background: rgba(15,23,42,.78);
    border-color: rgba(255,255,255,.14);
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fl-card .fl-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .fl-card .fl-h span:first-child {
        font-weight: 900;
        font-size: 13px;
    }

    .fl-card .fl-h span:last-child {
        font-size: 11px;
        font-weight: 900;
        color: var(--green);
    }

.pbar {
    height: 8px;
    border-radius: 99px;
    background: rgba(15,20,50,.06);
    overflow: hidden;
    border: 1px solid rgba(15,20,50,.05);
}

[data-theme="dark"] .pbar {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.08);
}

.pbar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: var(--grad);
    transition: width 1.4s cubic-bezier(.4,0,.2,1);
}

.fl-card .fl-t {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 650;
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .fl-card {
        display: none;
    }
}

/* =============================================
               SECTIONS
   ============================================= */
section {
    position: relative;
    z-index: 1;
}

.section {
    padding: 62px 0;
}

@media (max-width: 600px) {
    .section {
        padding: 44px 0;
    }
}

.s-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 46px;
}

    .s-head .tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 16px;
        border-radius: 999px;
        background: var(--indigo-s);
        color: var(--indigo);
        font-weight: 900;
        font-size: 12px;
        margin-bottom: 14px;
        text-transform: uppercase;
        letter-spacing: .06em;
        border: 1px solid rgba(99,102,241,.12);
    }

    .s-head h2 {
        font-size: clamp(24px, 3.2vw, 40px);
        font-weight: 950;
        letter-spacing: -.04em;
        line-height: 1.12;
        margin-bottom: 12px;
    }

    .s-head p {
        font-size: 15px;
        color: var(--muted);
        line-height: 1.72;
        font-weight: 550;
    }

/* FEATURES */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .feat-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 600px) {
    .feat-grid {
        grid-template-columns: 1fr;
    }
}

.feat {
    border-radius: var(--r2);
    border: 1px solid var(--stroke);
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
    box-shadow: var(--sh-s);
}

    .feat::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--grad);
        opacity: 0;
        transition: opacity .3s ease;
    }

    .feat::after {
        content: "";
        position: absolute;
        inset: -50%;
        background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.14), transparent 55%);
        opacity: 0;
        transition: opacity .3s ease;
        pointer-events: none;
    }

    .feat:hover {
        background: var(--card-h);
        transform: translateY(-5px);
        box-shadow: var(--sh-l);
        border-color: rgba(99,102,241,.14);
    }

        .feat:hover::before {
            opacity: 1;
        }

        .feat:hover::after {
            opacity: 1;
        }

.feat-ic {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 18px;
    border: 1px solid rgba(15,20,50,.06);
}

.fi1 {
    background: rgba(99,102,241,.10);
    color: var(--indigo);
}

.fi2 {
    background: rgba(34,211,238,.10);
    color: var(--cyan);
}

.fi3 {
    background: rgba(20,184,166,.10);
    color: var(--teal);
}

.fi4 {
    background: rgba(16,185,129,.10);
    color: var(--green);
}

.fi5 {
    background: rgba(99,102,241,.10);
    color: #818cf8;
}

.fi6 {
    background: rgba(245,158,11,.10);
    color: #d97706;
}

.feat h3 {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.feat p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 550;
}

/* STEPS */
.step-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .step-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 600px) {
    .step-grid {
        grid-template-columns: 1fr;
    }
}

.step {
    border-radius: var(--r2);
    border: 1px solid var(--stroke);
    background: var(--card);
    backdrop-filter: blur(10px);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
    box-shadow: var(--sh-s);
}

    .step:hover {
        background: var(--card-h);
        transform: translateY(-5px);
        box-shadow: var(--sh-l);
    }

.step-n {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 950;
    color: #fff;
    margin: 0 auto 18px;
    box-shadow: 0 10px 26px rgba(99,102,241,.22);
}

.step h3 {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.75;
    font-weight: 550;
}

/* PRICING */
.price-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: -10px auto 22px;
    flex-wrap: wrap;
}

.toggle {
    display: inline-flex;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.62);
    border-radius: 999px;
    padding: 6px;
    box-shadow: var(--sh-s);
    gap: 6px;
    user-select: none;
}

[data-theme="dark"] .toggle {
    background: rgba(255,255,255,.06);
}

.toggle button {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    color: var(--muted);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

    .toggle button.active {
        background: linear-gradient(135deg, rgba(94,234,212,.40), rgba(129,140,248,.32));
        color: var(--text);
        border: 1px solid rgba(99,102,241,.18);
    }

.price-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1000px) {
    .price-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 600px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
}

.pcard {
    border-radius: var(--r2);
    border: 1px solid var(--stroke);
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--sh-s);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

    .pcard:hover {
        transform: translateY(-5px);
        box-shadow: var(--sh-l);
        background: var(--card-h);
    }

    .pcard.pop {
        border-color: rgba(99,102,241,.32);
        box-shadow: 0 18px 70px rgba(99,102,241,.16);
    }

        .pcard.pop::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--grad);
        }

.ptag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    border: 1px solid rgba(99,102,241,.12);
}

.ptag-d {
    background: var(--indigo-s);
    color: var(--indigo);
}

.ptag-p {
    background: var(--indigo);
    color: #fff;
    border-color: transparent;
}

.pcard h3 {
    margin-top: 14px;
    font-weight: 950;
    font-size: 18px;
    letter-spacing: -.02em;
}

.pcard .amt {
    margin-top: 10px;
    font-size: 42px;
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

    .pcard .amt span {
        font-size: 14px;
        font-weight: 750;
        color: var(--muted);
        letter-spacing: 0;
    }

.pcard .desc {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.55;
}

.pcard .plist {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

    .pcard .plist li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 13.5px;
        font-weight: 700;
        line-height: 1.55;
    }

    .pcard .plist i {
        color: var(--green);
        font-size: 16px;
        flex-shrink: 0;
        margin-top: 2px;
    }

.trial {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.16);
    font-size: 11px;
    font-weight: 900;
    color: #16a34a;
}

.pcard .pcta {
    margin-top: auto;
    padding-top: 16px;
    display: grid;
    gap: 8px;
}

    .pcard .pcta .btn {
        justify-content: center;
    }

/* TESTIMONIALS */
.test-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .test-grid {
        grid-template-columns: 1fr;
    }
}

.tcard {
    border-radius: var(--r2);
    border: 1px solid var(--stroke);
    background: var(--card);
    backdrop-filter: blur(10px);
    box-shadow: var(--sh-s);
    padding: 28px 24px;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

    .tcard:hover {
        transform: translateY(-4px);
        box-shadow: var(--sh-l);
        background: var(--card-h);
    }

.stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}

    .stars i {
        color: var(--amber);
        font-size: 14px;
    }

.tcard blockquote {
    font-size: 14px;
    color: var(--muted);
    font-weight: 550;
    line-height: 1.75;
    font-style: italic;
}

.tcard-u {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.tcard-av {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    overflow: hidden;
    flex-shrink: 0;
}

    .tcard-av img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.tcard-u b {
    display: block;
    font-weight: 950;
    font-size: 14px;
}

.tcard-u span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 750;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

details {
    border: 1px solid var(--stroke);
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--r2);
    box-shadow: var(--sh-s);
    padding: 20px 22px;
    transition: box-shadow .25s ease, background .25s ease, transform .25s ease;
}

    details:hover {
        box-shadow: var(--sh-m);
        transform: translateY(-2px);
    }

    details[open] {
        background: var(--card-h);
    }

summary {
    cursor: pointer;
    font-weight: 900;
    font-size: 14px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    summary::-webkit-details-marker {
        display: none;
    }

    summary i {
        transition: transform .25s ease;
        color: var(--muted);
    }

details[open] summary i {
    transform: rotate(180deg);
}

details p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 550;
    line-height: 1.75;
}

/* CTA */
.cta-box {
    border-radius: var(--r3);
    padding: 60px 40px;
    background: linear-gradient(135deg,#1e1b4b,#312e81 50%,#1e293b);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sh-xl);
    border: 1px solid rgba(255,255,255,.10);
}

    .cta-box::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(560px 320px at 15% 50%, rgba(34,211,238,.14), transparent 60%), radial-gradient(560px 320px at 85% 50%, rgba(99,102,241,.14), transparent 60%);
        opacity: 1;
    }

    .cta-box h2 {
        position: relative;
        font-size: clamp(24px,3vw,38px);
        font-weight: 950;
        color: #fff;
        letter-spacing: -.03em;
        margin-bottom: 14px;
    }

    .cta-box p {
        position: relative;
        color: rgba(226,232,240,.82);
        font-size: 15px;
        max-width: 56ch;
        margin-inline: auto;
        margin-bottom: 28px;
        line-height: 1.75;
        font-weight: 550;
    }

.cta-btns {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-box .btn-brand {
    background: linear-gradient(135deg, var(--teal), #a78bfa);
    color: #0b0f1a;
    font-weight: 950;
}

.cta-box .btn-ghost {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.18);
    color: #fff;
}

    .cta-box .btn-ghost:hover {
        background: rgba(255,255,255,.16);
    }

@media (max-width: 768px) {
    .cta-box {
        padding: 40px 24px;
    }
}

/* FOOTER */
footer {
    padding: 40px 0 54px;
    position: relative;
    z-index: 1;
}

.foot {
    border-top: 1px solid var(--stroke);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.foot-br {
    max-width: 300px;
}

.foot-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

    .foot-logo .lm {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        background: var(--grad);
        display: grid;
        place-items: center;
        box-shadow: 0 10px 26px rgba(99,102,241,.22);
    }

        .foot-logo .lm i {
            color: #fff;
            font-size: 16px;
        }

    .foot-logo strong {
        font-weight: 950;
        font-size: 16px;
        letter-spacing: -.02em;
    }

.foot-br p {
    font-size: 13px;
    color: var(--muted);
    font-weight: 550;
    line-height: 1.7;
}

.foot-cols {
    display: flex;
    gap: 44px;
    flex-wrap: wrap;
}

.foot-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .foot-col a {
        font-size: 13px;
        font-weight: 750;
        color: var(--muted);
        transition: color .15s ease;
    }

        .foot-col a:hover {
            color: var(--text);
        }

.foot-bot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--stroke);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

    .foot-bot span {
        font-size: 12px;
        color: var(--muted);
        font-weight: 750;
    }

.foot-soc {
    display: flex;
    gap: 8px;
}

    .foot-soc a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid var(--stroke);
        background: rgba(255,255,255,.50);
        display: grid;
        place-items: center;
        font-size: 16px;
        color: var(--muted);
        transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
        box-shadow: var(--sh-s);
    }

[data-theme="dark"] .foot-soc a {
    background: rgba(255,255,255,.06);
}

.foot-soc a:hover {
    background: var(--indigo-s);
    color: var(--indigo);
    transform: translateY(-2px);
    box-shadow: var(--sh-m);
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}

    .reveal.show {
        opacity: 1;
        transform: translateY(0);
    }

.dl1 {
    transition-delay: .06s;
}

.dl2 {
    transition-delay: .12s;
}

.dl3 {
    transition-delay: .18s;
}

.dl4 {
    transition-delay: .24s;
}

.dl5 {
    transition-delay: .30s;
}

.dl6 {
    transition-delay: .36s;
}

/* Small helpers */
.muted {
    color: var(--muted);
}

/* Center logo in hero */
.hero-logoWrap {
    display: flex;
    justify-content: center;
    margin: 18px 0 22px;
}

/* New hero logo only */
.hero-logo {
    width: 128px;
    height: 128px;
    border-radius: 30px;
    object-fit: contain;
    box-shadow: 0 22px 70px rgba(99,102,241,.45), 0 0 0 1px rgba(148,163,184,.20);
    transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
    transform: translateZ(0);
}

    .hero-logo:hover {
        transform: scale(1.05);
        filter: saturate(1.18) contrast(1.06);
        box-shadow: 0 28px 90px rgba(99,102,241,.55), 0 0 0 1px rgba(148,163,184,.26);
    }

/* intl-tel-input light theme */
.iti {
    width: 100%;
}

.iti__dropdown-content,
.iti__country-list {
    background: rgba(248,250,252,.98) !important;
    color: rgba(15,23,42,.92) !important;
    border: 1px solid rgba(15,23,42,.14) !important;
    box-shadow: 0 18px 44px rgba(15,23,42,.14);
}

.iti__country {
    color: rgba(15,23,42,.92) !important;
}

    .iti__country:hover,
    .iti__country.iti__highlight {
        background: rgba(59,130,246,.08) !important;
    }

.iti__dial-code {
    color: rgba(71,85,105,.92) !important;
}

.iti__selected-dial-code {
    color: rgba(15,23,42,.92) !important;
    font-weight: 950;
    opacity: 1 !important;
}

.iti__selected-country,
.iti__selected-country * {
    opacity: 1 !important;
    color: rgba(15,23,42,.92) !important;
}

.iti__arrow {
    border-top: 4px solid rgba(15,23,42,.85) !important;
    opacity: 1 !important;
}

.iti__arrow--up {
    border-bottom: 4px solid rgba(15,23,42,.85) !important;
}

.iti--separate-dial-code .iti__tel-input,
.iti--separate-dial-code input[type=tel] {
    padding-left: 125px !important;
}

/* Mobile/Tablet portrait: show flags only */
@media (max-width: 900px) {
    #langDropdownBtn #langNameCurrent {
        display: none !important;
    }

    #langDropdownBtn .bi-chevron-down {
        display: none !important;
    }

    /* خلي الزر أصغر ومناسب */
    #langDropdownBtn {
        padding: 8px 10px !important;
        min-width: auto !important;
        gap: 0 !important;
    }

        #langDropdownBtn img {
            margin: 0 !important;
        }
}