﻿/* =========================================================
   Rumuz Al-Barmajiyat — Main Stylesheet · Modern Edition
   Cairo · RTL + LTR · AR + EN · Responsive · Accessible
   ========================================================= */

/* ─── 1. Fonts ─────────────────────────────────────────── */
@font-face {
    font-family: 'Cairo';
    src: url('../Fonts/Cairo/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../Fonts/Cairo/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@supports not (font-variation-settings: normal) {
    @font-face {
        font-family: 'Cairo';
        src: url('../fonts/cairo/Cairo-Regular.woff2') format('woff2'), url('../fonts/cairo/Cairo-Regular.woff') format('woff'), url('../fonts/cairo/Cairo-Regular.ttf') format('truetype');
        font-weight: 400;
        font-display: swap;
    }

    @font-face {
        font-family: 'Cairo';
        src: url('../fonts/cairo/Cairo-Bold.woff2') format('woff2'), url('../fonts/cairo/Cairo-Bold.woff') format('woff'), url('../fonts/cairo/Cairo-Bold.ttf') format('truetype');
        font-weight: 700;
        font-display: swap;
    }
}

/* ─── 2. Design Tokens ─────────────────────────────────── */
:root {
    /* Brand — Modern Indigo → Violet */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-soft: #eef2ff;
    --primary-softer: #f5f3ff;
    /* Accent palette */
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    /* Gold (popular badge) */
    --gold: #fbbf24;
    --gold-dark: #b45309;
    --gold-soft: #fef3c7;
    /* Text */
    --text: #0f172a;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    /* Surfaces */
    --bg: #fafbff;
    --bg-light: #f5f3ff;
    --bg-lighter: #faf9ff;
    --surface: #ffffff;
    --surface-2: #fbfaff;
    --border: #e9e5f5;
    --border-soft: #f1eefb;
    /* Gradients */
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    /* Shadows — color-tinted */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(99, 102, 241, .06);
    --shadow: 0 4px 6px rgba(15, 23, 42, .03), 0 10px 30px rgba(99, 102, 241, .10);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, .05), 0 25px 50px -12px rgba(99, 102, 241, .25);
    /* Radii */
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    /* Motion */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    /* Safe areas */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    /* Fonts */
    --font-ar: 'Cairo', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
    --font-en: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-body: var(--font-ar);
    --font-heading: var(--font-ar);
    /* Typography */
    --heading-tracking: 0;
    --heading-line-height: 1.45;
    --body-line-height: 1.9;
    /* Layout */
    --header-height: 84px;
    --container-gutter: 40px;
}

html[lang="en"] {
    --font-body: var(--font-en);
    --font-heading: var(--font-en);
    --heading-tracking: -.01em;
    --heading-line-height: 1.3;
    --body-line-height: 1.75;
}

/* ─── 3. Reset ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--safe-top) + 16px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: var(--body-line-height);
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(ellipse 80% 50% at 20% 0%, rgba(99, 102, 241, .10) 0%, transparent 60%), radial-gradient(ellipse 70% 40% at 80% 100%, rgba(168, 85, 247, .08) 0%, transparent 60%), radial-gradient(ellipse 100% 60% at 50% 50%, #fafbff 0%, #f5f3ff 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

    body.menu-open {
        overflow: hidden;
    }

a {
    color: inherit;
    text-decoration: none;
    touch-action: manipulation;
}

button {
    font: inherit;
    font-family: var(--font-body);
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

h1, h2, h3, h4 {
    margin-top: 0;
    font-family: var(--font-heading);
    line-height: var(--heading-line-height);
    font-weight: 700;
    letter-spacing: var(--heading-tracking);
}

p {
    margin-top: 0;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    padding: 0;
}

input, select, textarea {
    font-family: inherit;
    font-size: max(16px, 1em);
}

    a:focus-visible,
    button:focus-visible,
    summary:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 3px solid #a5b4fc;
        outline-offset: 3px;
        border-radius: 6px;
    }

@supports not selector(:focus-visible) {
    a:focus, button:focus, summary:focus {
        outline: 3px solid #a5b4fc;
        outline-offset: 3px;
    }
}

/* ─── 4. Keyframes ─────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -40px) scale(1.08);
    }

    66% {
        transform: translate(-25px, 25px) scale(.95);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── 5. Utilities ─────────────────────────────────────── */
.container {
    width: min(1220px, calc(100% - var(--container-gutter)));
    margin-inline: auto;
    padding-inline: var(--safe-left) var(--safe-right);
}

.section {
    padding-block: 90px;
}

.section-heading {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

    .section-heading h2 {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
        margin-bottom: 14px;
        font-weight: 800;
        letter-spacing: -.01em;
        background: linear-gradient(135deg, #4f46e5, #a855f7);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    .section-heading p,
    .muted {
        color: var(--text-muted);
    }

.label {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 18px;
    border-radius: 100px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: .88rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, .15);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.gradient-text {
    background: var(--gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 8s ease infinite;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.logo {
    width: 60px;
    height: 40px;
    flex-shrink: 0;
}

.logo-large {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

/* ─── 6. Scroll reveal (progressive enhancement) ────────── */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: fadeUp linear both;
            animation-timeline: view();
            animation-range: cover 0% cover 30%;
        }
    }
}

/* ─── 7. Header ────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: var(--safe-top);
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
    transition: transform .35s var(--ease), background .3s var(--ease);
    will-change: transform;
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2.2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: var(--heading-tracking);
}

.header--hidden {
    transform: translateY(-100%);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .nav a {
        padding: 9px 14px;
        border-radius: 10px;
        font-size: .92rem;
        font-weight: 500;
        color: var(--text);
        transition: background .2s var(--ease), color .2s var(--ease);
    }

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: background .2s var(--ease), border-color .2s var(--ease);
}

/* ─── 8. Hero ──────────────────────────────────────────── */
.hero {
    position: relative;
    padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 100px);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    will-change: transform;
    animation: blobFloat 18s ease-in-out infinite;
}

.hero-blob-1 {
    width: 480px;
    height: 480px;
    top: -140px;
    inset-inline-start: -100px;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
}

.hero-blob-2 {
    width: 380px;
    height: 380px;
    bottom: -160px;
    inset-inline-end: -80px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    animation-delay: -6s;
}

.hero-blob-3 {
    width: 320px;
    height: 320px;
    top: 35%;
    inset-inline-end: 25%;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    opacity: .22;
    animation-delay: -12s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    margin-bottom: 28px;
    border: 1px solid rgba(200, 181, 225, .6);
    border-radius: 100px;
    background: rgba(255, 255, 255, .75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(99, 102, 241, .15);
}

.hero-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: contain;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.25;
}

html[lang="en"] .hero h1 {
    letter-spacing: -.03em;
}

.hero p {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    margin: 0 auto;
    max-width: 680px;
    line-height: 1.7;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-badge {
        animation: fadeUp .7s var(--ease) both;
    }

    .hero h1 {
        animation: fadeUp .7s .12s var(--ease) both;
    }

    .hero p {
        animation: fadeUp .7s .24s var(--ease) both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-blob {
        animation: none;
    }
}

/* ─── 9. Intro grid ────────────────────────────────────── */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 16px;
    text-align: center;
}

.intro-item {
    position: relative;
    padding: 32px 20px 28px;
    border-radius: 20px;
    transition: background .3s var(--ease);
    isolation: isolate;
}

    .intro-item::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(180deg, rgba(245, 240, 252, .9), rgba(250, 247, 253, .4));
        opacity: 0;
        transition: opacity .3s var(--ease);
        z-index: -1;
    }

.intro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #fff;
    font-size: 1.5rem;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.intro-icon-finance {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 8px 20px rgba(99, 102, 241, .22);
}

.intro-icon-security {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 8px 20px rgba(6, 182, 212, .22);
}

.intro-icon-integration {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 8px 20px rgba(16, 185, 129, .22);
}

.intro-icon-marketing {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 8px 20px rgba(245, 158, 11, .22);
}

.intro-grid h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: color .3s var(--ease);
}

.intro-grid p {
    color: var(--text-muted);
    margin: 0;
    font-size: .88rem;
    line-height: 1.6;
}

@media (hover: hover) {
    .intro-item:hover::before {
        opacity: 1;
    }

    .intro-item:hover .intro-icon {
        transform: translateY(-5px) rotate(-8deg) scale(1.05);
        box-shadow: 0 16px 32px rgba(99, 102, 241, .35);
    }

    .intro-item:nth-child(even):hover .intro-icon {
        transform: translateY(-5px) rotate(8deg) scale(1.05);
    }

    .intro-item:hover h3 {
        color: var(--primary);
    }
}

@media (hover: none) {
    .intro-item:active .intro-icon {
        transform: scale(.94);
        transition-duration: .1s;
    }
}

/* ─── 10. About ────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 46px;
}

    .about-grid h3 {
        font-size: 1.5rem;
        color: var(--text);
        margin-bottom: 12px;
    }

.about-note {
    padding: 15px 20px;
    background: var(--primary-soft);
    border-inline-start: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--primary-dark);
    margin-block: 16px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .check-list li {
        position: relative;
        padding-inline-start: 28px;
        margin-bottom: 9px;
        font-size: .95rem;
    }

        .check-list li::before {
            content: "✓";
            position: absolute;
            inset-inline-start: 0;
            color: var(--primary);
            font-weight: 800;
        }

.brand-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(100%, 300px);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    background: linear-gradient(135deg, var(--bg-light), var(--primary-softer));
    border: 1px solid var(--border);
    border-radius: 40px;
    color: var(--primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .brand-art::before {
        content: "";
        position: absolute;
        inset: -50%;
        background: conic-gradient(from 0deg, transparent, rgba(168, 85, 247, .12), transparent 30%);
        animation: spin 12s linear infinite;
        z-index: 0;
    }

    .brand-art img, .brand-art span {
        position: relative;
        z-index: 1;
    }

@supports not (aspect-ratio: 1 / 1) {
    .brand-art {
        height: 300px;
    }
}

.brand-art span {
    font-size: 1.35rem;
    font-weight: 800;
}

/* ─── 11. Services ─────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    padding: 30px 24px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-softer));
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
    border: 1px solid rgba(99, 102, 241, .12);
    transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease);
}

.service-card h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text);
}

.service-card p {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 0;
}

/* ─── 12. Pricing ──────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 24px;
    text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

    .pricing-card h3 {
        font-size: 1.3rem;
        margin-bottom: 6px;
        min-height: 2.1em;
        font-weight: 700;
        color: var(--text);
    }

.plan-subtitle {
    color: var(--text-muted);
    font-size: .88rem;
    margin-bottom: 18px;
    min-height: 3.6em;
}

.price {
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

    .price .currency {
        font-size: .55em;
        font-weight: 600;
        color: var(--text-muted);
    }

.price-custom {
    font-size: 1.5rem;
    padding-block: 6px;
}

.plan-period {
    color: var(--text-muted);
    font-size: .85rem;
    margin: 4px 0;
}

.annual {
    color: var(--text-muted);
    font-size: .88rem;
    margin: 0 0 22px;
}

.plan-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
    text-align: start;
}

    .plan-highlights li {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 0;
        border-bottom: 1px solid var(--border-soft);
        font-size: .88rem;
    }

        .plan-highlights li:last-child {
            border-bottom: 0;
        }

    .plan-highlights strong {
        color: var(--primary-dark);
        text-align: end;
        font-weight: 700;
    }

.pricing-card.popular {
    background: linear-gradient(180deg, #fef9ff 0%, #f5f3ff 100%);
    border: 2px solid var(--primary-light);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-gold);
    color: var(--gold-dark);
    border-radius: 100px;
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(251, 191, 36, .35);
}

.pricing-card.popular .price {
    color: var(--primary-dark);
}

.purchase-button,
.local-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 11px 22px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 700;
    text-align: center;
    touch-action: manipulation;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

a.purchase-button {
    border: 1px solid var(--primary-dark);
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, .25);
    position: relative;
    overflow: hidden;
}

    a.purchase-button::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, transparent, rgba(255, 255, 255, .25), transparent);
        transform: translateX(-100%);
        transition: transform .6s var(--ease);
    }

.popular a.purchase-button {
    background: var(--gradient-gold);
    border-color: #d97706;
    color: #5a2e00;
    box-shadow: 0 6px 16px rgba(251, 191, 36, .35);
}

.purchase-cart {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.local-button {
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
}

/* ─── 13. Comparison ──────────────────────────────────── */
.plan-comparison {
    margin-top: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow);
}

    .plan-comparison summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 22px;
        color: var(--primary-dark);
        font-family: var(--font-heading);
        font-weight: 700;
        background: var(--primary-soft);
        transition: background .2s var(--ease);
    }

        .plan-comparison summary::-webkit-details-marker {
            display: none;
        }

        .plan-comparison summary:focus-visible {
            outline: 3px solid var(--primary-light);
            outline-offset: -4px;
        }

.compare-symbol {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 24px / 1 Arial, sans-serif;
    color: var(--primary);
}

    .compare-symbol::before {
        content: '+';
    }

.plan-comparison[open] .compare-symbol::before {
    content: '−';
}

.when-open {
    display: none;
}

.plan-comparison[open] .when-open {
    display: inline;
}

.plan-comparison[open] .when-closed {
    display: none;
}

.comparison-body {
    padding: 20px;
}

.comparison-hint {
    color: var(--text-muted);
    font-size: .85rem;
    margin: 0 0 14px;
}

.comparison-scroll {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-height: 75vh;
    max-height: 75dvh;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

    .comparison-scroll:focus-visible {
        outline: 3px solid var(--primary-light);
        outline-offset: 3px;
    }

.comparison-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .9rem;
    background: var(--surface);
}

    .comparison-table caption {
        text-align: start;
        padding: 14px;
        font-weight: 700;
        color: var(--primary-dark);
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px 14px;
        border-bottom: 1px solid var(--border-soft);
        vertical-align: middle;
        line-height: 1.7;
    }

    .comparison-table td {
        text-align: center;
        min-width: 145px;
    }

    .comparison-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--primary-soft);
        color: var(--primary-dark);
        text-align: center;
        font-weight: 700;
    }

    .comparison-table th:first-child {
        text-align: start;
        min-width: 240px;
        max-width: 300px;
        position: sticky;
        background: var(--bg-lighter);
        z-index: 1;
        border-inline-end: 1px solid var(--border);
        font-weight: 600;
    }

[dir="rtl"] .comparison-table th:first-child {
    right: 0;
}

[dir="ltr"] .comparison-table th:first-child {
    left: 0;
}

.comparison-table thead th:first-child {
    z-index: 3;
    background: var(--primary-soft);
}

.comparison-table tbody tr:nth-child(even) td {
    background: var(--surface-2);
}

.comparison-table .included {
    color: #059669;
    font-size: 1.2rem;
    font-weight: 800;
}

.comparison-table .not-included {
    color: var(--text-soft);
}

/* ─── 14. Articles ─────────────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article-card {
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.article-art {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-softer));
    color: var(--primary);
    font-size: 2.4rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

    .article-art::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, .15), transparent 60%);
    }

.article-content {
    padding: 24px;
}

    .article-content h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 8px;
    }

    .article-content p {
        margin: 0;
        color: var(--text-muted);
        font-size: .93rem;
    }

/* ─── 15. Contact ──────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 46px;
}

.contact-value {
    margin-block: 18px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

    .contact-value strong {
        display: block;
        color: var(--primary);
        margin-bottom: 4px;
        font-size: .85rem;
        letter-spacing: .02em;
        font-weight: 600;
    }

    .contact-value bdi {
        font-size: 1.05rem;
        font-weight: 600;
    }
/* ─── 16. Footer (Modern Dark · Glass · Animated) ─────── */
.footer {
    position: relative;
    margin-top: 60px;
    padding-bottom: var(--safe-bottom);
    background: radial-gradient(ellipse 60% 80% at 15% 0%, rgba(99, 102, 241, .20) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 85% 100%, rgba(168, 85, 247, .16) 0%, transparent 60%), linear-gradient(180deg, #0a0618 0%, #150a35 55%, #0b0620 100%);
    color: rgba(255, 255, 255, .72);
    overflow: hidden;
    isolation: isolate;
}

    /* Gradient top border (animated) */
    .footer::before {
        content: "";
        position: absolute;
        top: 0;
        inset-inline: 0;
        height: 2px;
        background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #f59e0b, #10b981, #06b6d4, #6366f1);
        background-size: 200% 100%;
        animation: gradientShift 8s linear infinite;
        z-index: 2;
    }

/* ─── CTA strip ─── */
.footer-cta {
    padding: 46px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    position: relative;
}

    .footer-cta::after {
        content: "";
        position: absolute;
        inset-inline-end: -10%;
        top: -50%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(168, 85, 247, .25), transparent 70%);
        filter: blur(60px);
        pointer-events: none;
    }

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-cta-text h3 {
    color: #fff;
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    margin: 0 0 6px;
    font-weight: 800;
}

.footer-cta-text p {
    margin: 0;
    color: rgba(255, 255, 255, .65);
    font-size: .95rem;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 100px;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 10px 24px rgba(99, 102, 241, .35);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    flex-shrink: 0;
}

    .footer-cta-btn i {
        transition: transform .3s var(--ease);
    }

[dir="ltr"] .footer-cta-btn i {
    order: 2;
    transform: rotate(180deg);
}

.footer-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, .5);
}

    .footer-cta-btn:hover i {
        transform: translateX(-4px);
    }

[dir="ltr"] .footer-cta-btn:hover i {
    transform: rotate(180deg) translateX(4px);
}

/* ─── Main footer ─── */
.footer-main {
    padding-top: 60px;
    padding-bottom: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 44px;
    padding-bottom: 44px;
}

/* Headings with underline accent */
.footer h4 {
    color: #fff;
    margin: 0 0 20px;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding-bottom: 12px;
}

    .footer h4::after {
        content: "";
        position: absolute;
        bottom: 0;
        inset-inline-start: 0;
        width: 32px;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--primary-light), #ec4899);
        transition: width .3s var(--ease);
    }

.footer-col:hover h4::after {
    width: 56px;
}

.footer p,
.footer-desc {
    color: rgba(255, 255, 255, .62);
    font-size: .9rem;
    line-height: 1.75;
}

.footer-desc {
    margin: 18px 0 22px;
}

/* Brand */
.footer .brand {
    color: #fff;
    transition: transform .2s var(--ease);
}

    .footer .brand .logo {
        border-radius: 8px;
        background: rgba(255, 255, 255, .10);
        padding: 3px;
    }

    .footer .brand:hover {
        transform: translateY(-1px);
    }

/* ─── Social icons ─── */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .80);
    font-size: 1rem;
    overflow: hidden;
    isolation: isolate;
    transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

    .social-link i {
        position: relative;
        z-index: 1;
        transition: transform .4s var(--ease-spring);
    }

    .social-link::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--social-color, var(--primary));
        opacity: 0;
        transition: opacity .3s var(--ease);
        z-index: 0;
    }

    .social-link:hover {
        color: #fff;
        border-color: transparent;
        transform: translateY(-4px) scale(1.06);
        box-shadow: 0 10px 22px rgba(0, 0, 0, .45);
    }

        .social-link:hover::before {
            opacity: 1;
        }

        .social-link:hover i {
            transform: rotate(360deg) scale(1.15);
        }

    .social-link:focus-visible {
        outline: 3px solid var(--primary-light);
        outline-offset: 3px;
    }

/* Per-network colors */
.social-twitter {
    --social-color: #000;
}

.social-linkedin {
    --social-color: #0a66c2;
}

.social-whatsapp {
    --social-color: #25d366;
}

.social-facebook {
    --social-color: #1877f2;
}
.social-tiktok {
    --social-color: #000;
}
.social-youtube {
    --social-color: #ff0000;
}
.social-instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-tiktok::before {
    background: linear-gradient(45deg, #25f4ee 0%, #000 50%, #fe2c55 100%);
}
.social-youtube::before {
    background: linear-gradient(135deg, #ff0000 0%, #c4302b 100%);
}
/* ─── Footer links ─── */
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .70);
    font-size: .92rem;
    transition: color .2s var(--ease), padding-inline-start .25s var(--ease);
}

    .footer-links a i {
        font-size: .62rem;
        color: rgba(255, 255, 255, .35);
        transition: color .2s var(--ease), transform .25s var(--ease);
    }

[dir="ltr"] .footer-links a i {
    transform: rotate(180deg);
}

.footer-links a:hover {
    color: #fff;
    padding-inline-start: 6px;
}

    .footer-links a:hover i {
        color: var(--primary-light);
        transform: translateX(-3px);
    }

[dir="ltr"] .footer-links a:hover i {
    transform: rotate(180deg) translateX(-3px);
}

/* ─── Contact list ─── */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .70);
    line-height: 1.6;
}

.footer-contact i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(99, 102, 241, .15);
    color: var(--primary-light);
    font-size: .85rem;
    flex-shrink: 0;
    transition: background .25s var(--ease), transform .25s var(--ease);
}

.footer-contact a {
    color: rgba(255, 255, 255, .70);
    overflow-wrap: anywhere;
    transition: color .2s var(--ease);
}

    .footer-contact a:hover {
        color: #fff;
    }

.footer-contact li:hover i {
    background: rgba(99, 102, 241, .32);
    transform: scale(1.08);
}

/* ─── Bottom bar ─── */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .55);
    font-size: .85rem;
}

.footer-bottom-links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

    .footer-bottom-links a {
        color: rgba(255, 255, 255, .6);
        transition: color .2s var(--ease);
    }

        .footer-bottom-links a:hover {
            color: #fff;
        }

/* ─── Back-to-top button ─── */
.back-to-top {
    position: fixed;
    bottom: calc(20px + var(--safe-bottom));
    inset-inline-end: calc(20px + var(--safe-right));
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 8px 22px rgba(99, 102, 241, .45);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s, box-shadow .3s var(--ease);
    /* Button reset */
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

    .back-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(99, 102, 241, .6);
    }

    .back-to-top:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 3px;
    }

/* Scroll-driven appear (modern browsers) */
@supports (animation-timeline: scroll()) {
    .back-to-top {
        animation: showBackToTop linear both;
        animation-timeline: scroll();
        animation-range: 400px 800px;
    }

    @keyframes showBackToTop {
        from {
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
    }
}

/* Fallback: subtle always-visible on older browsers (safe, doesn't break) */
@supports not (animation-timeline: scroll()) {
    .back-to-top {
        opacity: .55;
        visibility: visible;
        transform: none;
    }

        .back-to-top:hover {
            opacity: 1;
        }
}

/* ─── Footer reveal (scroll-driven) ─── */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .footer-grid > * {
            animation: fadeUp linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }

            .footer-grid > *:nth-child(2) {
                animation-range: entry 8% entry 63%;
            }

            .footer-grid > *:nth-child(3) {
                animation-range: entry 16% entry 71%;
            }

            .footer-grid > *:nth-child(4) {
                animation-range: entry 24% entry 79%;
            }
    }
}

/* ─── Footer responsive ─── */
@media (max-width: 1050px) {
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-cta {
        padding: 36px 0;
    }

    .footer-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
        gap: 20px;
    }

    .footer-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-main {
        padding-top: 44px;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: calc(16px + var(--safe-bottom));
        inset-inline-end: calc(16px + var(--safe-right));
        font-size: .9rem;
    }

    .footer-social {
        gap: 8px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: .95rem;
    }
}

/* ─── Footer — reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .footer::before {
        animation: none;
    }

    .social-link:hover i {
        transform: none;
    }

    .back-to-top {
        opacity: .8 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* ─── 17. Responsive ───────────────────────────────────── */
@media (min-width: 1600px) {
    :root {
        --container-gutter: 80px;
        --header-height: 92px;
    }

    .container {
        width: min(1400px, calc(100% - var(--container-gutter)));
    }

    .section {
        padding-block: 110px;
    }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
    .container {
        width: min(1320px, calc(100% - 60px));
    }
}

@media (max-width: 1050px) {
    .services-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-grid {
        row-gap: 44px;
    }

    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 78px;
    }

    .section {
        padding-block: 70px;
    }

    .about-grid {
        gap: 32px;
        padding: 36px;
    }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 40px 0 30px;
    }

    .hero-badge {
        padding: 8px 18px;
        margin-bottom: 18px;
        font-size: 1.05rem;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 4vw, 2.1rem);
    }

    .hero p {
        font-size: .95rem;
    }

    .section {
        padding-block: 40px;
    }
}

@media (max-width: 800px) {
    :root {
        --header-height: 74px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: fixed;
        top: calc(var(--header-height) + var(--safe-top));
        inset-inline: 0;
        padding: 18px;
        padding-inline: max(18px, var(--safe-left)) max(18px, var(--safe-right));
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--header-height) - var(--safe-top));
        max-height: calc(100dvh - var(--header-height) - var(--safe-top));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

        .nav.open {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 2px;
        }

        .nav a {
            padding: 13px 14px;
            font-size: 1rem;
            border-radius: 8px;
        }

    .hero {
        padding: 60px 0 50px;
    }

    .intro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-inline: 18px;
    }

    .about-grid,
    .contact-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        padding: 30px;
    }

    .brand-art {
        width: 220px;
    }

    .section {
        padding-block: 60px;
    }
}

@media (max-width: 520px) {
    :root {
        --container-gutter: 30px;
    }

    .hero-badge {
        padding: 10px 18px;
    }

    .services-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .intro-grid {
        gap: 24px 12px;
    }

        .intro-grid h3 {
            font-size: 1rem;
        }

    .comparison-body {
        padding: 10px;
    }

    .plan-comparison summary {
        font-size: .9rem;
    }

    .comparison-table th:first-child {
        min-width: 170px;
        max-width: 200px;
    }

    .pricing-card h3,
    .plan-subtitle {
        min-height: 0;
    }

    .logo {
        width: 60px;
        height: 40px;
    }

    .logo-large {
        width: 260px;
        height: 160px;
    }
}

@media (max-width: 360px) {
    :root {
        --container-gutter: 24px;
    }

    body {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .hero p {
        font-size: .95rem;
    }

    .section-heading h2 {
        font-size: 1.4rem;
    }

    .pricing-card,
    .service-card {
        padding: 26px 18px;
    }

    .about-grid,
    .contact-grid {
        padding: 22px;
    }

    .logo {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 320px) {
    :root {
        --container-gutter: 20px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .lang-switch {
        font-size: .75rem;
        padding: 0 10px;
        min-width: 46px;
    }
}

/* ─── 18. Hover & touch ───────────────────────────────── */
@media (hover: hover) {
    .nav a:hover {
        background: var(--primary-soft);
        color: var(--primary-dark);
    }

    .lang-switch:hover {
        background: var(--primary-soft);
        border-color: var(--primary-light);
        color: var(--primary-dark);
        transform: translateY(-1px);
    }

    .menu-toggle:hover {
        background: var(--primary-soft);
        border-color: var(--primary-light);
    }

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

        .service-card:hover .service-icon {
            transform: scale(1.1) rotate(-6deg);
            box-shadow: 0 8px 20px rgba(99, 102, 241, .25);
        }

    .pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px) scale(1.02);
    }

    .article-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    a.purchase-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(99, 102, 241, .35);
    }

        a.purchase-button:hover::before {
            transform: translateX(100%);
        }

    .popular a.purchase-button:hover {
        box-shadow: 0 12px 28px rgba(251, 191, 36, .45);
    }

    .local-button:hover {
        background: var(--primary-soft);
    }

    .plan-comparison summary:hover {
        background: var(--primary-softer);
    }

    .comparison-table tbody tr:hover td {
        background: var(--primary-softer);
    }

    .footer a:hover {
        color: var(--primary);
    }
}

@media (hover: none) {
    .service-card:active,
    .pricing-card:active,
    .article-card:active {
        transform: scale(.985);
        transition-duration: .08s;
    }

    a.purchase-button:active,
    .local-button:active {
        transform: scale(.97);
        transition-duration: .08s;
    }

    .nav a:active {
        background: var(--primary-soft);
    }
}

/* ─── 19. Accessibility ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }

    .gradient-text {
        background: var(--primary) !important;
        -webkit-text-fill-color: var(--primary) !important;
        color: var(--primary) !important;
    }

    .section-heading h2 {
        background: var(--primary) !important;
        -webkit-text-fill-color: var(--primary) !important;
        color: var(--primary) !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .header,
    .footer {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-contrast: more) {
    .card {
        border-color: #cbd5e1;
    }

    .service-card, .pricing-card {
        border-width: 2px;
    }
}

/* ─── 20. High DPI ─────────────────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 8px 24px rgba(99, 102, 241, .08);
    }
}

/* ─── 21. Forced colors ────────────────────────────────── */
@media (forced-colors: active) {
    .card,
    .purchase-button,
    .local-button,
    .lang-switch,
    .menu-toggle,
    .nav a {
        border: 1px solid ButtonText;
    }

    .purchase-button,
    .local-button {
        background: ButtonFace;
        color: ButtonText;
        forced-color-adjust: none;
    }

    .gradient-text,
    .section-heading h2 {
        background: none;
        -webkit-text-fill-color: currentColor;
        color: LinkText;
    }

    .popular-badge {
        border: 1px solid CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    .included,
    .not-included {
        color: currentColor;
    }
}

/* ─── 22. Scrollbar ────────────────────────────────────── */
@supports (scrollbar-width: thin) {
    .comparison-scroll,
    .nav {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-light) transparent;
    }
}

.comparison-scroll::-webkit-scrollbar,
.nav::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.comparison-scroll::-webkit-scrollbar-thumb,
.nav::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.comparison-scroll::-webkit-scrollbar-track,
.nav::-webkit-scrollbar-track {
    background: transparent;
}

/* ─── 23. Print ────────────────────────────────────────── */
@media print {
    *, *::before, *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #fff !important;
        font-size: 12pt;
        line-height: 1.5;
    }

    .header, .menu-toggle, .lang-switch, .footer,
    .purchase-button, .local-button, .popular-badge,
    .plan-comparison summary {
        display: none !important;
    }

    .section {
        padding-block: 20px;
        break-inside: avoid;
    }

    .card, .pricing-card, .service-card, .article-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .pricing-grid, .services-grid, .articles-grid {
        display: block;
    }

    .pricing-card, .service-card, .article-card {
        margin-bottom: 12px;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
        word-break: break-all;
    }

    .plan-comparison .comparison-scroll {
        max-height: none;
        overflow: visible;
        border: 1px solid #ccc;
    }

    .comparison-table {
        font-size: 9pt;
        min-width: 0;
    }

    @page {
        margin: 1.2cm;
    }
}
/* ═══════════════════════════════════════════════════════════
   24. INNER PAGES — Hero · Breadcrumbs · Values · Stats · CTA
       Contact form · Contact layout
   ═══════════════════════════════════════════════════════════ */

/* ─── Page hero (inner pages) ─────────────────────────── */
.page-hero {
    position: relative;
    padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 6vw, 70px);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.page-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .22;
    animation: blobFloat 20s ease-in-out infinite;
    will-change: transform;
}

.page-hero-blob-1 {
    width: 360px;
    height: 360px;
    top: -120px;
    inset-inline-start: -80px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
}

.page-hero-blob-2 {
    width: 300px;
    height: 300px;
    bottom: -120px;
    inset-inline-end: -60px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
    animation-delay: -7s;
}

.page-hero-blob-3 {
    width: 240px;
    height: 240px;
    top: 40%;
    inset-inline-end: 30%;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    opacity: .16;
    animation-delay: -13s;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    margin: 14px 0 14px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.25;
}

.page-hero-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}

/* ─── Breadcrumbs ─────────────────────────────────────── */
.breadcrumbs {
    display: inline-flex;
    margin-bottom: 12px;
}

    .breadcrumbs ol {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 8px 18px;
        list-style: none;
        background: rgba(255, 255, 255, .75);
        border: 1px solid var(--border);
        border-radius: 100px;
        font-size: .82rem;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .breadcrumbs li {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--text-muted);
    }

        .breadcrumbs li i {
            font-size: .7rem;
            color: var(--primary);
        }

        .breadcrumbs li:not(:first-child) i {
            color: var(--text-soft);
            font-size: .6rem;
        }

    .breadcrumbs a {
        color: var(--text-muted);
        transition: color .2s var(--ease);
    }

        .breadcrumbs a:hover {
            color: var(--primary);
        }

    .breadcrumbs li > span[aria-current] {
        color: var(--primary-dark);
        font-weight: 600;
    }

/* ─── Values grid (About) ─────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.value-card {
    padding: 36px 28px;
    text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 20px;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 10px 24px rgba(99, 102, 241, .25);
    transition: transform .35s var(--ease-spring);
}

.value-icon-vision {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.value-icon-mission {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 10px 24px rgba(6, 182, 212, .25);
}

.value-icon-values {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    box-shadow: 0 10px 24px rgba(236, 72, 153, .25);
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.value-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.7;
}

@media (hover: hover) {
    .value-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

        .value-card:hover .value-icon {
            transform: scale(1.08) rotate(-6deg);
        }
}

/* ─── Stats grid ──────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 44px 28px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-softer) 100%);
    border: 1px solid var(--border);
}

.stat-item {
    padding: 12px;
    position: relative;
}

    .stat-item:not(:last-child)::after {
        content: "";
        position: absolute;
        inset-inline-end: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: var(--border);
    }

.stat-number {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
}

/* ─── Service card "more" link ────────────────────────── */
.service-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap .2s var(--ease), color .2s var(--ease);
}

[dir="ltr"] .service-more i {
    transform: rotate(180deg);
}

.service-more:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ─── CTA banner ──────────────────────────────────────── */
.cta-banner {
    padding-block: 60px;
    margin-block: 40px 0;
}

.cta-banner-inner {
    position: relative;
    padding: clamp(40px, 6vw, 60px);
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse 60% 80% at 10% 20%, rgba(168, 85, 247, .35), transparent 60%), radial-gradient(ellipse 50% 70% at 90% 80%, rgba(236, 72, 153, .28), transparent 60%), linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    isolation: isolate;
    box-shadow: 0 24px 60px -12px rgba(76, 29, 149, .45);
}

    .cta-banner-inner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='40' fill='none' stroke='white' stroke-opacity='.05' stroke-width='.5'/></svg>");
        background-size: 200px 200px;
        opacity: .4;
        z-index: -1;
        pointer-events: none;
    }

.cta-banner-text {
    flex: 1;
    min-width: 260px;
}

    .cta-banner-text h2 {
        font-size: clamp(1.4rem, 2.8vw, 1.9rem);
        margin: 0 0 8px;
        color: #fff;
        font-weight: 800;
    }

    .cta-banner-text p {
        margin: 0;
        color: rgba(255, 255, 255, .75);
        font-size: .98rem;
    }

.cta-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 100px;
    font-weight: 700;
    font-size: .95rem;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.cta-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

[dir="ltr"] .cta-primary i {
    transform: rotate(180deg);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

.cta-secondary {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

    .cta-secondary:hover {
        background: rgba(255, 255, 255, .22);
        transform: translateY(-2px);
    }

/* ─── Contact layout ──────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
}

    .contact-layout h2 {
        font-size: 1.4rem;
        color: var(--text);
        margin-bottom: 8px;
    }

    .contact-layout > div > p.muted {
        margin-bottom: 24px;
    }

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-softer));
    color: var(--primary);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.contact-info-text {
    flex: 1;
    min-width: 0;
}

    .contact-info-text strong {
        display: block;
        font-size: .8rem;
        font-weight: 600;
        color: var(--text-muted);
        margin-bottom: 2px;
        letter-spacing: .02em;
    }

    .contact-info-text a,
    .contact-info-text span {
        font-size: .95rem;
        font-weight: 600;
        color: var(--text);
        overflow-wrap: anywhere;
        transition: color .2s var(--ease);
    }

        .contact-info-text a:hover {
            color: var(--primary);
        }

@media (hover: hover) {
    .contact-info-item:hover {
        transform: translateX(-4px);
        border-color: var(--primary-light);
        box-shadow: var(--shadow-sm);
    }

    [dir="ltr"] .contact-info-item:hover {
        transform: translateX(4px);
    }
}

/* ─── Contact form ────────────────────────────────────── */
.contact-form-wrapper {
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-row .form-field {
    margin-bottom: 0;
}

.form-field label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary);
        background: #fff;
        box-shadow: 0 0 0 4px var(--primary-soft);
    }

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    font-size: 1rem;
}

.validation-message {
    color: #dc2626;
    font-size: .8rem;
    margin-top: 2px;
}

/* Form success */
.form-success {
    padding: 20px 0;
    text-align: center;
}

.form-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 12px 32px rgba(16, 185, 129, .3);
    animation: fadeUp .5s var(--ease) both;
}

.form-success h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.form-success p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-success .local-button {
    min-width: 200px;
}

/* ─── Map placeholder ─────────────────────────────────── */
.contact-map-section {
    padding-top: 0;
}

.contact-map {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse 40% 60% at 30% 40%, rgba(99, 102, 241, .10), transparent 70%), radial-gradient(ellipse 40% 60% at 70% 60%, rgba(168, 85, 247, .10), transparent 70%), var(--primary-softer);
    border: 1px dashed var(--primary-light);
}

.contact-map-inner {
    text-align: center;
    padding: 40px 24px;
}

    .contact-map-inner i {
        font-size: 3rem;
        color: var(--primary);
        margin-bottom: 12px;
        display: block;
    }

    .contact-map-inner p {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text);
        margin: 0 0 4px;
    }

/* ─── Responsive: inner pages ─────────────────────────── */
@media (max-width: 1050px) {
    .values-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 800px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
    }

    .cta-banner-actions {
        width: 100%;
    }

    .cta-primary, .cta-secondary {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .breadcrumbs ol {
        font-size: .75rem;
        padding: 6px 14px;
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        padding: 28px 16px;
    }

    .stat-item::after {
        display: none !important;
    }

    .cta-banner {
        padding-block: 40px;
    }

    .contact-info-item {
        padding: 12px;
    }

    .contact-info-icon {
        width: 38px;
        height: 38px;
        font-size: .95rem;
    }
}

/* ─── Reduced motion: inner pages ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .page-hero-blob {
        animation: none;
    }

    .value-card:hover .value-icon {
        transform: none;
    }

    .form-success-icon {
        animation: none;
    }
}
/* ─── Active nav link ──────────────────────────────────── */
.nav a.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
    position: relative;
}

    .nav a.active::after {
        content: "";
        position: absolute;
        bottom: 4px;
        inset-inline: 14px;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--primary), #a855f7);
    }

/* على الجوال: القائمة العمودية — استبدل الخط السفلي بشريط جانبي */
@media (max-width: 800px) {
    .nav a.active {
        background: var(--primary-soft);
        border-inline-start: 3px solid var(--primary);
        padding-inline-start: 11px; /* 14 - 3 */
    }

        .nav a.active::after {
            display: none;
        }
}

/* في الثيم الفاتح عند hover لا يُزال active */
@media (hover: hover) {
    .nav a.active:hover {
        background: var(--primary-soft);
        color: var(--primary-dark);
    }
}
/* ─── Contact info single-column (form removed) ───────── */
.contact-info-single {
    max-width: 860px;
    margin-inline: auto;
}

    .contact-info-single .contact-info {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

        /* العنوان والوصف يمتدان على عرض الشبكة كاملاً */
        .contact-info-single .contact-info > h2,
        .contact-info-single .contact-info > .muted {
            grid-column: 1 / -1;
            text-align: center;
        }

        .contact-info-single .contact-info > h2 {
            margin: 0 0 6px;
        }

        .contact-info-single .contact-info > .muted {
            margin: 0 0 20px;
        }

    /* البطاقات تُلغى هوامشها السفلية لأن الشبكة تستخدم gap */
    .contact-info-single .contact-info-item {
        margin-bottom: 0;
        height: 100%;
    }

@media (max-width: 640px) {
    .contact-info-single .contact-info {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   25. BLOG · ARTICLE · FAQ · MODULES
   ═══════════════════════════════════════════════════════════ */

.container-narrow {
    width: min(860px, calc(100% - var(--container-gutter)));
    margin-inline: auto;
}

/* ─── Blog toolbar ─────────────────────────────────────── */
.blog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

.blog-search,
.faq-search {
    position: relative;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
}

    .blog-search i,
    .faq-search i {
        position: absolute;
        inset-inline-start: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-soft);
        font-size: .9rem;
        pointer-events: none;
    }

    .blog-search input,
    .faq-search input {
        width: 100%;
        padding: 13px 18px;
        padding-inline-start: 44px;
        border: 1px solid var(--border);
        border-radius: 100px;
        background: var(--surface);
        color: var(--text);
        font-size: .95rem;
        transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    }

        .blog-search input:focus,
        .faq-search input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-soft);
        }

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.category-chip {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

    .category-chip:hover {
        border-color: var(--primary-light);
        color: var(--primary);
    }

    .category-chip.active {
        background: var(--gradient-brand);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(99, 102, 241, .3);
    }

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

    .blog-empty i {
        font-size: 2.6rem;
        color: var(--text-soft);
        margin-bottom: 14px;
        display: block;
    }

/* ─── Blog grid ────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.blog-card-art {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-softer));
    position: relative;
    overflow: hidden;
}

    .blog-card-art::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 70% 30%, rgba(168, 85, 247, .20), transparent 60%);
    }

.blog-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-card-cat {
    color: var(--primary);
    font-weight: 700;
}

.blog-card-dot {
    color: var(--text-soft);
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.5;
    font-weight: 700;
}

    .blog-card h3 a {
        color: var(--text);
        transition: color .2s var(--ease);
    }

        .blog-card h3 a:hover {
            color: var(--primary);
        }

.blog-card p {
    flex: 1;
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 16px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary);
    transition: gap .2s var(--ease), color .2s var(--ease);
}

[dir="ltr"] .blog-read-more i {
    transform: rotate(180deg);
}

.blog-read-more:hover {
    gap: 12px;
    color: var(--primary-dark);
}

@media (hover: hover) {
    .blog-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }
}

/* ─── Article layout ───────────────────────────────────── */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

.article-main {
    padding: clamp(24px, 4vw, 48px);
}

.article-header {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 12px;
}

.article-header h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    line-height: 1.35;
    margin-bottom: 14px;
    font-weight: 800;
    color: var(--text);
}

.article-excerpt {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Rich article body */
.article-body {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.85;
}

    .article-body h2 {
        font-size: 1.4rem;
        margin: 32px 0 14px;
        color: var(--primary-dark);
        font-weight: 700;
    }

    .article-body h3 {
        font-size: 1.15rem;
        margin: 26px 0 10px;
        color: var(--primary-dark);
    }

    .article-body p {
        margin: 0 0 18px;
    }

    .article-body ul,
    .article-body ol {
        padding-inline-start: 22px;
        margin: 0 0 20px;
    }

    .article-body li {
        margin-bottom: 8px;
    }

    .article-body strong {
        color: var(--primary-dark);
        font-weight: 700;
    }

    .article-body blockquote {
        padding: 16px 20px;
        margin: 20px 0;
        background: var(--primary-soft);
        border-inline-start: 4px solid var(--primary);
        border-radius: var(--radius-sm);
        font-style: italic;
        color: var(--primary-dark);
    }

    .article-body a {
        color: var(--primary);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* Article footer */
.article-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    padding: 5px 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text-muted);
}

    .article-share .social-link {
        width: 36px;
        height: 36px;
        font-size: .9rem;
        border-radius: 10px;
        background: var(--primary-soft);
        border-color: var(--primary-soft);
        color: var(--primary-dark);
    }

        .article-share .social-link:hover {
            color: #fff;
            border-color: transparent;
        }

/* Sidebar */
.article-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--text);
    font-weight: 700;
}

.related-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    align-items: flex-start;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

    .related-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

.related-art {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: 10px;
}

.related-card strong {
    display: block;
    font-size: .92rem;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 4px;
}

.related-meta {
    font-size: .75rem;
    color: var(--text-muted);
}

/* ─── FAQ ──────────────────────────────────────────────── */
.faq-search {
    margin-bottom: 32px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

    .faq-item[open] {
        border-color: var(--primary-light);
        box-shadow: var(--shadow-sm);
    }

    .faq-item summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 18px 20px;
        color: var(--text);
        font-weight: 600;
        font-size: .98rem;
        transition: background .2s var(--ease);
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary:hover {
            background: var(--primary-softer);
        }

        .faq-item summary:focus-visible {
            outline: 3px solid var(--primary-light);
            outline-offset: -3px;
        }

.faq-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    position: relative;
    transition: background .25s var(--ease), color .25s var(--ease);
}

    .faq-icon::before {
        content: "+";
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
    }

.faq-item[open] .faq-icon {
    background: var(--primary);
    color: #fff;
}

    .faq-item[open] .faq-icon::before {
        content: "−";
    }

.faq-question {
    flex: 1;
}

.faq-answer {
    padding: 0 20px 20px;
    padding-inline-start: 60px;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: .92rem;
    animation: fadeIn .3s var(--ease);
}

.faq-footer {
    margin-top: 48px;
    padding: 32px 24px;
    text-align: center;
    background: var(--primary-softer);
    border-radius: var(--radius);
    border: 1px dashed var(--primary-light);
}

    .faq-footer p {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 16px;
    }

/* ─── Modules grid ─────────────────────────────────────── */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.module-card {
    padding: 28px 24px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.module-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, .22);
    transition: transform .35s var(--ease-spring);
}

.module-icon-finance {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.module-icon-security {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 8px 20px rgba(6, 182, 212, .22);
}

.module-icon-integration {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 8px 20px rgba(16, 185, 129, .22);
}

.module-icon-marketing {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 8px 20px rgba(245, 158, 11, .22);
}

.module-title h3 {
    font-size: 1.12rem;
    margin: 0 0 4px;
    color: var(--text);
    font-weight: 700;
}

.module-title p {
    margin: 0;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}

    .module-features li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 6px 0;
        font-size: .88rem;
        color: var(--text-muted);
    }

        .module-features li i {
            color: var(--primary);
            font-size: .75rem;
            margin-top: 6px;
            flex-shrink: 0;
        }

@media (hover: hover) {
    .module-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

        .module-card:hover .module-icon {
            transform: scale(1.08) rotate(-6deg);
        }
}

/* ─── Responsive: Blog · Article · FAQ · Modules ──────── */
@media (max-width: 1050px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 800px) {
    .blog-card-art {
        height: 120px;
        font-size: 2.4rem;
    }

    .article-main {
        padding: 20px;
    }

    .article-body h2 {
        font-size: 1.2rem;
    }

    .faq-answer {
        padding-inline-start: 20px;
        padding-top: 0;
    }
}

@media (max-width: 520px) {
    .blog-grid,
    .modules-grid {
        grid-template-columns: 1fr;
    }

    .blog-toolbar {
        gap: 14px;
        margin-bottom: 28px;
    }

    .category-chip {
        font-size: .8rem;
        padding: 6px 14px;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-share {
        flex-wrap: wrap;
    }

    .module-head {
        gap: 12px;
    }

    .module-icon {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }
}
/* ═══════════════════════════════════════════════════════════
   26. LEGAL · 404 · SITEMAP
   ═══════════════════════════════════════════════════════════ */

/* ─── Legal pages (Privacy / Terms) ────────────────────── */
.legal-page {
    padding: clamp(28px, 4vw, 52px);
    color: var(--text);
    line-height: 1.85;
    font-size: 1rem;
}

    .legal-page p.legal-intro {
        display: inline-block;
        padding: 6px 14px;
        margin-bottom: 24px;
        background: var(--primary-soft);
        color: var(--primary-dark);
        border-radius: 100px;
        font-size: .82rem;
        font-weight: 600;
        font-style: normal;
    }

    .legal-page h2 {
        font-size: 1.25rem;
        margin: 32px 0 14px;
        color: var(--primary-dark);
        font-weight: 700;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

        .legal-page h2:first-of-type {
            margin-top: 8px;
        }

    .legal-page p {
        margin: 0 0 16px;
    }

    .legal-page ul,
    .legal-page ol {
        padding-inline-start: 22px;
        margin: 0 0 18px;
    }

    .legal-page li {
        margin-bottom: 8px;
    }

    .legal-page strong {
        color: var(--primary-dark);
        font-weight: 700;
    }

    .legal-page a {
        color: var(--primary);
        text-decoration: underline;
        text-underline-offset: 3px;
        transition: color .2s var(--ease);
    }

        .legal-page a:hover {
            color: var(--primary-dark);
        }

/* ─── 404 page ──────────────────────────────────────────── */
.not-found-page {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.not-found-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.not-found-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .28;
    animation: blobFloat 18s ease-in-out infinite;
}

.not-found-blob-1 {
    width: 400px;
    height: 400px;
    top: -120px;
    inset-inline-start: -80px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
}

.not-found-blob-2 {
    width: 340px;
    height: 340px;
    bottom: -140px;
    inset-inline-end: -60px;
    background: radial-gradient(circle, #a855f7, transparent 70%);
    animation-delay: -8s;
}

.not-found-inner {
    max-width: 720px;
    margin-inline: auto;
}

.not-found-code {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

    .not-found-code i {
        font-size: clamp(2rem, 6vw, 4rem);
        color: var(--primary);
        -webkit-text-fill-color: var(--primary);
        animation: pulseSearch 2.4s ease-in-out infinite;
    }

@keyframes pulseSearch {
    0%, 100% {
        transform: scale(1) rotate(0);
    }

    50% {
        transform: scale(1.12) rotate(-8deg);
    }
}

.not-found-inner h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 800;
}

.not-found-inner > p {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.not-found-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

    .not-found-actions .local-button {
        min-width: 180px;
        width: auto;
        padding-inline: 26px;
    }

.not-found-links {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: 500px;
    margin-inline: auto;
}

    .not-found-links p {
        color: var(--text-muted);
        font-size: .92rem;
        margin-bottom: 16px;
        font-weight: 500;
    }

    .not-found-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px 20px;
        justify-content: center;
    }

    .not-found-links a {
        color: var(--primary);
        font-size: .9rem;
        font-weight: 600;
        transition: color .2s var(--ease);
    }

        .not-found-links a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

/* ─── Sitemap page ──────────────────────────────────────── */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.sitemap-section {
    padding: 28px 26px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

    .sitemap-section h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 16px;
        font-size: 1.08rem;
        color: var(--primary-dark);
        font-weight: 700;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }

        .sitemap-section h3 i {
            color: var(--primary);
            font-size: 1rem;
            width: 32px;
            height: 32px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--primary-soft);
            border-radius: 9px;
            flex-shrink: 0;
        }

    .sitemap-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .sitemap-section li {
        margin-bottom: 10px;
    }

        .sitemap-section li:last-child {
            margin-bottom: 0;
        }

    .sitemap-section a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--text);
        font-size: .93rem;
        padding: 4px 0;
        transition: color .2s var(--ease), padding-inline-start .2s var(--ease);
    }

        .sitemap-section a::before {
            content: "";
            display: inline-block;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--primary-light);
            flex-shrink: 0;
            transition: background .2s var(--ease), transform .2s var(--ease);
        }

        .sitemap-section a:hover {
            color: var(--primary);
            padding-inline-start: 4px;
        }

            .sitemap-section a:hover::before {
                background: var(--primary);
                transform: scale(1.3);
            }

@media (hover: hover) {
    .sitemap-section:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }
}

/* ─── Responsive: legal · 404 · sitemap ────────────────── */
@media (max-width: 800px) {
    .legal-page {
        padding: 24px;
    }

        .legal-page h2 {
            font-size: 1.12rem;
        }

    .not-found-page {
        min-height: 70vh;
        padding: 40px 0;
    }

    .not-found-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .not-found-actions .local-button {
            width: 100%;
        }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .sitemap-section {
        padding: 22px 18px;
    }

    .not-found-code {
        gap: 8px;
        margin-bottom: 14px;
    }

    .not-found-links ul {
        flex-direction: column;
        align-items: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .not-found-blob {
        animation: none;
    }

    .not-found-code i {
        animation: none;
    }
}
/* ─── Defensive: aria-current empty should not highlight ─── */
.nav a[aria-current=""]:not(.active) {
    background: transparent;
    color: inherit;
}

/* Active nav link — ensure it overrides any focus/hover bleed */
.nav a.active,
.nav a.active:hover,
.nav a.active:focus {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
}
/* ═══════════════════════════════════════════════════════════
   28. PORTFOLIO · CAREERS · PARTNERS · DOWNLOADS
   ═══════════════════════════════════════════════════════════ */

/* ─── Portfolio grid ───────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.portfolio-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.portfolio-art {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .portfolio-art::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.25), transparent 60%);
    }

.portfolio-art-finance {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.portfolio-art-security {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.portfolio-art-integration {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.portfolio-art-marketing {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.portfolio-icon {
    font-size: 3.2rem;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}

.portfolio-year {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    padding: 4px 12px;
    background: rgba(255,255,255,.9);
    color: var(--text);
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 700;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.portfolio-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-cat {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: .74rem;
    font-weight: 700;
    margin-bottom: 10px;
    align-self: flex-start;
}

.portfolio-card h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
    line-height: 1.45;
}

    .portfolio-card h3 a {
        color: var(--text);
        transition: color .2s var(--ease);
    }

        .portfolio-card h3 a:hover {
            color: var(--primary);
        }

.portfolio-client {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: .82rem;
    margin-bottom: 10px;
}

    .portfolio-client i {
        color: var(--primary-light);
        font-size: .75rem;
    }

.portfolio-summary {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 16px;
    flex: 1;
}

.portfolio-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.portfolio-tag {
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: .72rem;
    color: var(--text-muted);
    background: var(--surface-2);
}

.portfolio-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary);
    transition: gap .2s var(--ease);
}

[dir="ltr"] .portfolio-more i {
    transform: rotate(180deg);
}

.portfolio-more:hover {
    gap: 12px;
    color: var(--primary-dark);
}

@media (hover: hover) {
    .portfolio-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }
}

/* ─── Case study detail ────────────────────────────────── */
.case-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    margin-bottom: 32px;
    overflow: hidden;
}

.case-hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.case-hero-art-finance {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.case-hero-art-security {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.case-hero-art-integration {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.case-hero-art-marketing {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.case-hero-icon {
    font-size: 5rem;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
}

.case-hero-meta {
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.case-meta-label {
    display: block;
    color: var(--text-muted);
    font-size: .78rem;
    margin-bottom: 4px;
    letter-spacing: .02em;
}

.case-meta-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.case-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-softer));
    border-color: var(--primary-light);
}

    .case-metric i {
        font-size: 1.4rem;
        color: var(--primary);
        flex-shrink: 0;
    }

    .case-metric span {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary-dark);
    }

.case-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.case-section {
    padding: 32px;
}

    .case-section h2 {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1.3rem;
        margin-bottom: 14px;
        color: var(--primary-dark);
        font-weight: 700;
    }

        .case-section h2 i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: var(--primary-soft);
            color: var(--primary);
            border-radius: 12px;
            font-size: 1rem;
        }

    .case-section p {
        margin: 0;
        color: var(--text-muted);
        font-size: .98rem;
        line-height: 1.8;
    }

.case-section-success {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #86efac;
}

    .case-section-success h2 {
        color: #166534;
    }

        .case-section-success h2 i {
            background: #dcfce7;
            color: #16a34a;
        }

.case-modules h3 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 14px;
    font-weight: 700;
}

.case-modules-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-module-chip {
    padding: 8px 18px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: .88rem;
    font-weight: 600;
    border: 1px solid var(--primary-light);
}

/* ─── Jobs ─────────────────────────────────────────────── */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-item {
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

    .job-item[open] {
        border-color: var(--primary-light);
        box-shadow: var(--shadow);
    }

    .job-item summary {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 22px 26px;
        cursor: pointer;
        transition: background .2s var(--ease);
    }

        .job-item summary::-webkit-details-marker {
            display: none;
        }

        .job-item summary:hover {
            background: var(--primary-softer);
        }

        .job-item summary:focus-visible {
            outline: 3px solid var(--primary-light);
            outline-offset: -3px;
        }

.job-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: 12px;
}

.job-header {
    flex: 1;
    min-width: 0;
}

    .job-header h3 {
        font-size: 1.08rem;
        margin: 0 0 6px;
        color: var(--text);
        font-weight: 700;
    }

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: .82rem;
    color: var(--text-muted);
}

    .job-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .job-meta i {
        color: var(--primary);
        font-size: .78rem;
    }

.job-chevron {
    font-size: .9rem;
    color: var(--text-muted);
    transition: transform .3s var(--ease);
    flex-shrink: 0;
}

.job-item[open] .job-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.job-body {
    padding: 0 26px 26px;
    animation: fadeIn .3s var(--ease);
}

    .job-body p {
        color: var(--text-muted);
        line-height: 1.75;
        margin-bottom: 18px;
    }

    .job-body h4 {
        font-size: .95rem;
        color: var(--text);
        margin-bottom: 10px;
        font-weight: 700;
    }

    .job-body .check-list {
        margin-bottom: 20px;
    }

/* ─── Testimonials ─────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-card {
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.testimonial-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
    color: #fbbf24;
}

    .testimonial-rating i {
        font-size: 1rem;
    }

        .testimonial-rating i:not(.filled) {
            color: var(--border);
        }

.testimonial-card blockquote {
    margin: 0 0 20px;
    flex: 1;
    color: var(--text);
    font-size: .96rem;
    line-height: 1.8;
    font-style: italic;
    padding-inline-start: 16px;
    border-inline-start: 3px solid var(--primary-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 800;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: .92rem;
    color: var(--text);
    margin-bottom: 2px;
}

.testimonial-author span {
    display: block;
    font-size: .78rem;
    color: var(--text-muted);
}

@media (hover: hover) {
    .testimonial-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
}

/* ─── Partners ─────────────────────────────────────────── */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 20px;
    text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.partner-icon {
    font-size: 2.6rem;
    margin-bottom: 6px;
    filter: grayscale(0.3);
    transition: filter .3s var(--ease), transform .3s var(--ease-spring);
}

.partner-card strong {
    font-size: 1rem;
    color: var(--text);
    font-weight: 700;
}

.partner-cat {
    font-size: .82rem;
    color: var(--text-muted);
}

@media (hover: hover) {
    .partner-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

        .partner-card:hover .partner-icon {
            filter: grayscale(0);
            transform: scale(1.1) rotate(-6deg);
        }
}

/* ─── Downloads ────────────────────────────────────────── */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.download-card {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.download-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.download-icon {
    font-size: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-softer));
    border-radius: 16px;
}

.download-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.download-badge {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
}

.download-badge-type {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.download-badge-size {
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.download-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.download-card p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 20px;
    flex: 1;
}

.download-card .purchase-button {
    margin-top: auto;
}

@media (hover: hover) {
    .download-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
}

/* ─── Responsive: new pages ───────────────────────────── */
@media (max-width: 1050px) {
    .portfolio-grid,
    .testimonials-grid,
    .partners-grid,
    .downloads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-hero {
        grid-template-columns: 1fr;
    }

    .case-hero-art {
        min-height: 140px;
    }

    .case-hero-meta {
        grid-template-columns: repeat(3, 1fr);
    }

    .case-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .case-hero-meta {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
    }

    .case-section {
        padding: 22px;
    }

        .case-section h2 {
            font-size: 1.1rem;
        }

    .job-item summary {
        padding: 18px 18px;
        gap: 12px;
    }

    .job-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .job-body {
        padding: 0 18px 20px;
    }
}

@media (max-width: 520px) {
    .portfolio-grid,
    .testimonials-grid,
    .partners-grid,
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-art {
        height: 140px;
    }

    .portfolio-icon {
        font-size: 2.6rem;
    }

    .case-hero-icon {
        font-size: 3.6rem;
    }

    .testimonial-card {
        padding: 24px 20px;
    }

    .download-card {
        padding: 22px 20px;
    }
}
/* ═══════════════════════════════════════════════════════════
   RECONNECT MODAL — Global styles (matches razor classes)
   Uses `body #id` for high specificity to win over defaults
   ═══════════════════════════════════════════════════════════ */

/* ─── State visibility (REQUIRED by blazor.web.js) ────── */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

body #components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
body #components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
body #components-reconnect-modal.components-reconnect-paused .components-pause-visible,
body #components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
body #components-reconnect-modal.components-reconnect-retrying,
body #components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
body #components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
body #components-reconnect-modal.components-reconnect-failed,
body #components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

    /* Buttons need inline-flex for icon + text */
    body #components-reconnect-modal.components-reconnect-failed button.components-reconnect-failed-visible,
    body #components-reconnect-modal.components-reconnect-paused button.components-pause-visible,
    body #components-reconnect-modal.components-reconnect-resume-failed button.components-pause-visible,
    body #components-reconnect-modal.components-reconnect-resume-failed button.components-resume-failed-visible {
        display: inline-flex;
    }

/* ─── Dialog shell ────────────────────────────────────── */
body #components-reconnect-modal {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: min(440px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px) !important;
    margin: 15vh auto auto !important;
    color: #0f172a;
    opacity: 1;
    transition: none;
}

    body #components-reconnect-modal[open] {
        animation: reconnect-slideIn .35s cubic-bezier(.16, 1, .3, 1) both;
    }

    body #components-reconnect-modal::backdrop {
        background: rgba(15, 23, 42, .55) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    /* ─── Inner panel (.reconnect-inner) ──────────────────── */
    body #components-reconnect-modal .reconnect-inner {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 36px 32px 30px;
        background: #ffffff;
        border: 1px solid #e9e5f5;
        border-radius: 28px;
        text-align: center;
        overflow: hidden;
        isolation: isolate;
        box-shadow: 0 20px 50px -12px rgba(76, 49, 120, .28), 0 0 0 1px rgba(255, 255, 255, .5) inset;
    }

        body #components-reconnect-modal .reconnect-inner::before {
            content: "";
            position: absolute;
            top: -100px;
            inset-inline-end: -100px;
            width: 260px;
            height: 260px;
            background: radial-gradient(circle, rgba(168, 85, 247, .22), transparent 70%);
            filter: blur(40px);
            z-index: -1;
            pointer-events: none;
        }

        body #components-reconnect-modal .reconnect-inner::after {
            content: "";
            position: absolute;
            bottom: -100px;
            inset-inline-start: -100px;
            width: 220px;
            height: 220px;
            background: radial-gradient(circle, rgba(99, 102, 241, .20), transparent 70%);
            filter: blur(40px);
            z-index: -1;
            pointer-events: none;
        }

    /* ─── Brand mark ──────────────────────────────────────── */
    body #components-reconnect-modal .reconnect-brand {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 72px;
        margin-bottom: 4px;
        background: linear-gradient(135deg, #eef2ff, #f5f3ff);
        border: 1px solid #e9e5f5;
        border-radius: 20px;
        box-shadow: 0 8px 20px rgba(99, 102, 241, .15);
    }

    body #components-reconnect-modal .reconnect-logo {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        object-fit: contain;
        display: block;
    }

    /* ─── Loader (two spinning rings) ─────────────────────── */
    body #components-reconnect-modal .components-rejoining-animation {
        position: relative;
        width: 56px;
        height: 56px;
        margin: 0 0 4px;
    }

        body #components-reconnect-modal .components-rejoining-animation > div {
            position: absolute;
            inset: 0;
            border: 3px solid transparent;
            border-top-color: #6366f1;
            border-radius: 50%;
            animation: reconnect-spin 1s linear infinite;
        }

            body #components-reconnect-modal .components-rejoining-animation > div:nth-child(2) {
                inset: 8px;
                border-top-color: #a855f7;
                animation-duration: 1.4s;
                animation-direction: reverse;
            }

@keyframes reconnect-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Text ────────────────────────────────────────────── */
body #components-reconnect-modal .reconnect-text {
    margin: 0;
    text-align: center;
    color: #0f172a;
    font-family: inherit;
    font-size: .98rem;
    line-height: 1.7;
    font-weight: 500;
    max-width: 340px;
}

body #components-reconnect-modal .reconnect-text-error {
    color: #dc2626;
    font-weight: 600;
}

/* ─── Counter ─────────────────────────────────────────── */
body #components-reconnect-modal .reconnect-count {
    display: inline-block;
    min-width: 26px;
    padding: 2px 8px;
    margin: 0 4px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 6px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ─── Buttons ─────────────────────────────────────────── */
body #components-reconnect-modal .reconnect-btn {
    border: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 150px;
    margin-top: 4px;
    -webkit-appearance: none;
    appearance: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

body #components-reconnect-modal .reconnect-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, .3);
}

    body #components-reconnect-modal .reconnect-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(99, 102, 241, .4);
    }

    body #components-reconnect-modal .reconnect-btn-primary:active {
        transform: translateY(0) scale(.98);
    }

body #components-reconnect-modal .reconnect-btn:focus-visible {
    outline: 3px solid #a5b4fc;
    outline-offset: 3px;
}

body #components-reconnect-modal .reconnect-btn i {
    font-size: .9rem;
}

/* ─── Slide-in animation ──────────────────────────────── */
@keyframes reconnect-slideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
    body #components-reconnect-modal .reconnect-inner {
        padding: 30px 22px 24px;
        border-radius: 22px;
    }

    body #components-reconnect-modal .reconnect-text {
        font-size: .92rem;
    }

    body #components-reconnect-modal .reconnect-btn {
        width: 100%;
        min-width: 0;
    }

    body #components-reconnect-modal .reconnect-brand {
        width: 60px;
        height: 60px;
    }

    body #components-reconnect-modal .reconnect-logo {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
}

/* ─── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    body #components-reconnect-modal[open] {
        animation: none;
    }

    body #components-reconnect-modal .components-rejoining-animation > div {
        animation-duration: 2.4s;
    }

    body #components-reconnect-modal .reconnect-btn-primary:hover {
        transform: none;
    }
}

/* ─── Forced colors ───────────────────────────────────── */
@media (forced-colors: active) {
    body #components-reconnect-modal .reconnect-inner {
        border: 2px solid CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    body #components-reconnect-modal .reconnect-btn-primary {
        background: ButtonFace;
        color: ButtonText;
        border: 1px solid ButtonText;
        box-shadow: none;
    }
}
