/* =============== VARIABLES =============== */
:root {
    --bg: #f9fafa;
    /* خلفية عامة فاتحة */
    --card: #ffffff;
    /* خلفية الكروت */
    --text: #1f2937;
    /* رمادي داكن */
    --muted: #6b7280;
    /* رمادي ثانوي */
    --primary: #00cfd5;
    /* سيان أساسي */
    --primary-2: #00aab0;
    /* Hover */
    --line: #e5e7eb;
    /* حدود خفيفة */
    --ring: rgba(0, 207, 213, 0.25);
    --shadow: 0 10px 30px rgba(0, 0, 0, .06);
    --radius: 16px;
}

/* =============== GLOBAL =============== */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Cairo', 'Dubai', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

/* =============== HEADER =============== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu a {
    color: #374151;
    font-weight: 600;
}

.menu a:hover {
    color: #111;
}

.cta {
    background: var(--primary);
    color: #000;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.cta:hover {
    background: var(--primary-2);
}

.burger {
    display: none;
    background: transparent;
    border: 0;
    font-size: 26px;
}

/* =============== HERO =============== */
.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
    padding: 64px 0;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 12px;
    font-weight: 800;
    line-height: 1.25;
}

.hero p {
    color: var(--muted);
    font-size: 18px;
    margin: 8px 0 20px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.btn.primary {
    background: var(--primary);
    color: #000;
}

.btn.primary:hover {
    background: var(--primary-2);
}

.btn.ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: #111;
}

/* =============== HERO CARD =============== */
.hero-card {
    background: linear-gradient(180deg, #fff, #f5ffff);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.stat b {
    font-size: 22px;
}

/* =============== SECTIONS =============== */
section {
    padding: 56px 0;
}

.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sec-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
}

.muted {
    color: var(--muted);
}

/* =============== GRID FEATURES =============== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: .2s transform;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.badge {
    display: inline-block;
    background: #e6fbfc;
    color: #03686b;
    border: 1px dashed #a6eff2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* =============== VIDEO =============== */
.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =============== PRICING =============== */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.plan {
    padding: 22px;
}

.plan .price {
    font-size: 34px;
    font-weight: 800;
    margin: 6px 0;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.plan li {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.plan .most {
    border: 2px solid var(--primary);
}

.plan .tag {
    background: var(--primary);
    color: #000;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 10px;
    display: inline-block;
}

/* =============== TESTIMONIALS =============== */
.testi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.quote {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quote p {
    margin: 0;
}

.avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
}

/* =============== FAQ =============== */
.faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

/* =============== CTA BAND =============== */
.cta-band {
    background: linear-gradient(135deg, #e8feff, #ffffff);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* =============== FOOTER =============== */
footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
    color: var(--muted);
}

.foot {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 18px;
}

.foot a {
    color: var(--muted);
}

.foot h4 {
    margin: 0 0 8px;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid-3,
    .pricing,
    .testi,
    .faq,
    .foot {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: #fff;
        position: absolute;
        inset-inline: 0;
        top: 60px;
        border-bottom: 1px solid var(--line);
        padding: 12px;
    }

    .burger {
        display: block;
    }

    .grid-3,
    .pricing,
    .testi,
    .faq,
    .foot {
        grid-template-columns: 1fr;
    }
}

/* =============== REVEAL ANIMATION =============== */
[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: .6s ease;
}

[data-reveal].show {
    opacity: 1;
    transform: none;
}

.ring:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
    border-radius: 12px;
}

/* =============== SUBPAGES ADD-ONS =============== */

/* Breadcrumbs */
.crumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    margin: 18px 0;
}

.crumbs a {
    color: inherit;
    text-decoration: none;
}

.crumbs span {
    opacity: .6;
}

/* Slim hero (cards-style header for inner pages) */
.hero-slim {
    background: linear-gradient(180deg, #ffffff, #f5ffff);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 20px;
    align-items: center;
    margin: 18px 0 8px;
}

.hero-slim h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3.4vw, 36px);
}

.hero-slim p {
    color: var(--muted);
    margin: 0;
}

.hero-ill {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 10px;
}

/* Two-column sections */
.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Reusable card extras */
.list {
    margin: 8px 0 0;
    padding: 0 18px;
    color: #374151;
    line-height: 1.9;
}

.callout {
    background: #f7fffe;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    padding: 14px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.badge.is-green {
    background: #e8fff8;
    color: #065f46;
    border-color: #b7f7de;
}

.badge.is-yellow {
    background: #fffbe6;
    color: #6b5e00;
    border-color: #f5e9a6;
}

/* FAQ on subpages (reuse main FAQ but allow single column on small screens) */
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
}

/* Simple table style (for logs/backup lists/etc.) */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: right;
}

.table thead th {
    background: #f9ffff;
    color: #03686b;
    font-weight: 700;
}

.table tr:last-child td {
    border-bottom: 0;
}

/* Print-friendly grid (مفيد لبطاقات الهوتسبوت) */
.print-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #fff;
    border: 1px dashed var(--line);
    padding: 12px;
    border-radius: 12px;
}

.print-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

@media print {

    header,
    footer,
    .nav,
    .burger {
        display: none !important;
    }

    .print-grid {
        gap: 8px;
        border: 0;
    }

    .print-card {
        border: 1px solid #000;
    }
}

/* Utilities */
.btn.sm {
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.max-w-800 {
    max-width: 800px;
    margin-inline: auto;
}

.shadow {
    box-shadow: var(--shadow);
}

.r {
    border-radius: var(--radius);
}

.r-12 {
    border-radius: 12px;
}

.border {
    border: 1px solid var(--line);
}

.bg-white {
    background: #fff;
}

/* =============== RESPONSIVE TWEAKS (subpages) =============== */
@media (max-width: 900px) {
    .hero-slim {
        grid-template-columns: 1fr;
    }

    .two {
        grid-template-columns: 1fr;
    }
}

.plans-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #e8feff, #ffffff);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
    margin-bottom: 14px
}

.plans-ribbon .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px dashed #a6eff2;
    color: #03686b;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem
}

.plans-ribbon .pill b {
    color: #00aab0
}

.plans-ribbon .hint {
    color: var(--muted);
    font-size: .95rem
}

@media (max-width:640px) {
    .plans-ribbon {
        flex-direction: column;
        align-items: flex-start
    }
}

.hero-card .hero-illustration {
    display: block;
    width: 100%;
    height: auto;
    /* لو كنت تريد نسبة ثابتة بصريًا */
    /* aspect-ratio: 5 / 3; */
}

/* توزيع البطاقات: موبايل عمودي، لابتوب أفقي */
.pricing-duo {
    display: flex !important;
    /* !important ليتغلّب على أي display:grid قديم */
    flex-direction: column;
    /* موبايل: عمودي */
    gap: 18px;
}

/* لابتوب فما فوق */
@media (min-width: 1024px) {
    .pricing-duo {
        flex-direction: row;
        /* لابتوب: أفقي جنب بعض */
        align-items: stretch;
    }
}

/* تأكد أن كل كرت يتمدّد بالتساوي وأن زر CTA يهبط للأسفل */
.pricing-duo .plan {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.pricing-duo .plan .btn {
    margin-top: auto;
}


.pricing-duo {
    display: flex;
    flex-direction: column;
    /* موبايل: عمودي */
    gap: 18px;
}

@media (min-width:1024px) {
    .pricing-duo {
        flex-direction: row;
        align-items: stretch
    }
}


.pricing-duo .plan {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-duo .plan .btn {
    margin-top: auto;
}

.strike-large {
    transition: opacity .25s ease, transform .25s ease;
}

.strike-large[style*="display: inline"] {
    opacity: 1;
    transform: none;
}

.strike-large[style*="display: none"] {
    opacity: 0;
    transform: translateY(-4px);
}

/* ==== Fast, classy rise-in for cards (no HTML changes) ==== */

/* حركة أساسية مع لمسة overshoot خفيفة */
@keyframes ct-rise-fast {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(.995);
    }

    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.001);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* فعّل الحركة فقط عندما يأخذ العنصر كلاس .show الموجود مسبقًا */
[data-reveal].show {
    animation: ct-rise-fast .45s cubic-bezier(.2, .8, .2, 1) both;
    will-change: transform, opacity;
}

/* خصّص الكروت لتكون أسرع ولمّاعة أكثر */
.card[data-reveal].show,
.pricing-duo .plan[data-reveal].show {
    animation-duration: .40s;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .07);
}

/* تدرّج زمني جميل داخل شبكات الميزات/التسعير/الشهادات */
.grid-3 [data-reveal].card:nth-child(1).show {
    animation-delay: .00s;
}

.grid-3 [data-reveal].card:nth-child(2).show {
    animation-delay: .06s;
}

.grid-3 [data-reveal].card:nth-child(3).show {
    animation-delay: .12s;
}

.grid-3 [data-reveal].card:nth-child(4).show {
    animation-delay: .18s;
}

.grid-3 [data-reveal].card:nth-child(5).show {
    animation-delay: .24s;
}

.grid-3 [data-reveal].card:nth-child(6).show {
    animation-delay: .30s;
}

/* خطط التسعير (عمودي على الموبايل/أفقي على اللابتوب) */
.pricing-duo .plan[data-reveal]:nth-child(1).show {
    animation-delay: .00s;
}

.pricing-duo .plan[data-reveal]:nth-child(2).show {
    animation-delay: .08s;
}

/* شبكة الشهادات لو موجودة */
.testi [data-reveal].card:nth-child(1).show {
    animation-delay: .00s;
}

.testi [data-reveal].card:nth-child(2).show {
    animation-delay: .06s;
}

.testi [data-reveal].card:nth-child(3).show {
    animation-delay: .12s;
}

/* Hover lift أقوى للكرت */
.card {
    transition: transform .18s ease, box-shadow .18s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .08);
}

/* تقليل الحركة لمن يفضّل ذلك */
@media (prefers-reduced-motion: reduce) {

    [data-reveal],
    [data-reveal].show,
    .card,
    .card:hover {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

:root {
    /* تحكم مركزي بمسافة الحواف داخل البطاقات */
    --card-pad: 24px;
    --card-pad-lg: 28px;
}

/* تطبّق على جميع البطاقات والتنبيهات */
.card,
.callout {
    padding: var(--card-pad);
}

@media (min-width: 1024px) {

    .card,
    .callout {
        padding: var(--card-pad-lg);
    }
}