﻿/* =====================================================================
   NTFC public site — "3D accounting" design system
   Bootstrap 5.3 base · logical properties so RTL (Arabic) works as-is
   ===================================================================== */

:root {
    --brand: #c72027;
    --brand-600: #a9181e;
    --brand-400: #e2474d;
    --brand-soft: rgba(199, 32, 39, .08);
    --gold: #d4a64a;
    --gold-soft: rgba(212, 166, 74, .14);

    --ink-950: #060a14;
    --ink-900: #0a0f1c;
    --ink-800: #111a2e;
    --ink-700: #1a2540;
    --ink-line: rgba(255, 255, 255, .09);
    --on-ink: #eef1f8;
    --on-ink-muted: #a7b0c5;

    --surface: #ffffff;
    --surface-2: #f5f7fb;
    --surface-3: #eceff6;
    --line: #e3e7f0;
    --text: #0f172a;
    --text-muted: #5b6478;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .22), 0 2px 6px rgba(15, 23, 42, .06);
    --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .35), 0 12px 24px -12px rgba(15, 23, 42, .18);
    --shadow-brand: 0 18px 40px -14px rgba(199, 32, 39, .55);

    --font-latin: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-arabic: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, "Segoe UI", Tahoma, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --nav-h: 76px;

    /* Bootstrap hooks */
    --bs-body-font-family: var(--font-latin);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--surface);
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 199, 32, 39;
    --bs-link-hover-color: var(--brand-600);
    --bs-link-hover-color-rgb: 169, 24, 30;
    --bs-primary: var(--brand);
    --bs-primary-rgb: 199, 32, 39;
    --bs-border-radius: var(--radius-sm);
}

html[lang="ar"] { --bs-body-font-family: var(--font-arabic); }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    font-family: var(--bs-body-font-family);
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.8; }

h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.02em; color: inherit; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.4; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.text-brand { color: var(--brand) !important; }
.text-gold { color: var(--gold) !important; }
img { max-width: 100%; }

/* Focus */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: none; }

.skip-link {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000;
    background: var(--gold); color: var(--ink-900); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: 999px; padding: .75rem 1.5rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn-brand { background: linear-gradient(135deg, var(--brand-400), var(--brand) 55%, var(--brand-600)); color: #fff; border: 0; box-shadow: var(--shadow-brand); }
.btn-brand:hover, .btn-brand:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 24px 44px -14px rgba(199, 32, 39, .7); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover, .btn-glass:focus { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px); }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--brand); color: #fff; }
.btn-link-arrow { font-weight: 700; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.btn-link-arrow i { transition: transform .25s var(--ease); }
.btn-link-arrow:hover i { transform: translateX(4px); }
/* Directional arrows point the reading way in Arabic (flip the glyph, not the element, so hover transforms still work). */
[dir="rtl"] .bi-arrow-right::before, [dir="rtl"] .bi-arrow-left::before { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn-link-arrow:hover i { transform: translateX(-4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink-950); color: var(--on-ink-muted); font-size: .82rem; border-bottom: 1px solid var(--ink-line); }
.topbar a { color: var(--on-ink-muted); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar-list { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar-list i { color: var(--gold); margin-inline-end: .35rem; }
.social-links { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.social-links a {
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid var(--ink-line); color: var(--on-ink); transition: background .2s, border-color .2s, transform .2s;
}
.social-links a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); color: #fff; }

/* ---------- Navbar ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(10, 15, 28, .72);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--ink-line);
    transition: background .3s, box-shadow .3s;
}
.site-nav.is-scrolled { background: rgba(8, 12, 22, .92); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 1rem; }
.brand-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 6px 12px; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5); }
.brand-chip img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    position: relative; display: block; padding: .6rem .9rem; color: var(--on-ink); text-decoration: none;
    font-weight: 600; font-size: .95rem; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
    content: ""; position: absolute; inset-inline: .9rem; bottom: .25rem; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { display: inline-flex; border: 1px solid var(--ink-line); border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, .04); }
.lang-switch a { padding: .3rem .7rem; border-radius: 999px; color: var(--on-ink-muted); font-weight: 700; font-size: .8rem; text-decoration: none; }
.lang-switch a.active { background: #fff; color: var(--ink-900); }
.lang-switch a:not(.active):hover { color: #fff; }
.nav-account { color: var(--on-ink-muted); font-size: .85rem; font-weight: 600; text-decoration: none; padding: .45rem .7rem; border-radius: 10px; }
.nav-account:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .05); color: #fff; font-size: 1.4rem; }
@media (max-width: 991.98px) {
    .nav-links, .site-nav .nav-cta, .site-nav .nav-account { display: none; }
    .nav-toggle { display: grid; place-items: center; }
}
.offcanvas.site-offcanvas { background: var(--ink-900); color: var(--on-ink); }
.site-offcanvas .offcanvas-header { border-bottom: 1px solid var(--ink-line); }
.site-offcanvas .btn-close { filter: invert(1); }
.site-offcanvas .mobile-links { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.site-offcanvas .mobile-links a { display: flex; justify-content: space-between; align-items: center; padding: .95rem .25rem; color: var(--on-ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--ink-line); }
.site-offcanvas .mobile-links a.active { color: var(--gold); }

/* ---------- Dark / 3D hero ---------- */
.hero, .page-hero {
    position: relative; isolation: isolate; overflow: hidden; color: var(--on-ink);
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(199, 32, 39, .35), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(212, 166, 74, .16), transparent 60%),
        linear-gradient(180deg, var(--ink-900), var(--ink-950));
}
.hero { min-height: calc(100svh - var(--nav-h) - 40px); display: flex; align-items: center; padding: 6rem 0 7rem; }
.page-hero { padding: 5.5rem 0 4.5rem; min-height: 360px; display: flex; align-items: center; }
.hero-3d { position: absolute; inset: 0; z-index: -2; }
.hero-3d .f3d-canvas { width: 100% !important; height: 100% !important; display: block; }
.hero::before, .page-hero::before {
    /* legibility veil over the 3D scene, strongest behind the text */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(6, 10, 20, .92) 0%, rgba(6, 10, 20, .7) 42%, rgba(6, 10, 20, .15) 75%, rgba(6, 10, 20, .05) 100%);
}
[dir="rtl"] .hero::before, [dir="rtl"] .page-hero::before {
    background: linear-gradient(270deg, rgba(6, 10, 20, .92) 0%, rgba(6, 10, 20, .7) 42%, rgba(6, 10, 20, .15) 75%, rgba(6, 10, 20, .05) 100%);
}
.hero::after, .page-hero::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 120px; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(6, 10, 20, .8));
}
@media (max-width: 767.98px) {
    .hero::before, .page-hero::before, [dir="rtl"] .hero::before, [dir="rtl"] .page-hero::before { background: rgba(6, 10, 20, .72); }
}
.f3d-fallback {
    background:
        radial-gradient(600px 300px at 70% 30%, rgba(199, 32, 39, .45), transparent 70%),
        radial-gradient(500px 280px at 30% 80%, rgba(212, 166, 74, .25), transparent 70%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 48px);
}
.hero-content { max-width: 680px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-ink);
    font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 166, 74, .2); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.05; margin: 1.25rem 0 1.25rem; color: #fff; }
html[lang="ar"] .hero h1 { line-height: 1.35; }
.hero h1 .accent, .page-hero h1 .accent, .section-head h2 .accent { color: var(--brand-400); }
.hero .lead { color: var(--on-ink-muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.75rem; color: var(--on-ink-muted); font-size: .9rem; }
.hero-trust strong { color: #fff; font-size: 1.35rem; display: block; line-height: 1.1; }
.hero-trust .sep { width: 1px; background: var(--ink-line); }
.scroll-cue {
    position: absolute; bottom: 28px; inset-inline-start: 50%; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px;
}
[dir="rtl"] .scroll-cue { transform: translateX(50%); }
.scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); color: #fff; margin: 1rem 0 .75rem; }
.page-hero p { color: var(--on-ink-muted); max-width: 620px; font-size: 1.08rem; margin: 0; }
.crumbs { display: flex; align-items: center; gap: .5rem; list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--on-ink-muted); }
.crumbs a { color: var(--on-ink); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-inline-end: .5rem; opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; position: relative; }
.section-sm { padding: 4rem 0; }
.section-muted { background: var(--surface-2); }
.section-dark { background: linear-gradient(180deg, var(--ink-900), var(--ink-950)); color: var(--on-ink); }
.section-grid-bg::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.section > .container { position: relative; }
.section-head { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }
.section-head .kicker { display: inline-block; color: var(--brand); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .75rem; }
html[lang="ar"] .section-head .kicker { letter-spacing: 0; font-size: .9rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.section-dark .section-head p { color: var(--on-ink-muted); }
.section-dark .section-head .kicker { color: var(--gold); }
.section-head.start { text-align: start; margin-inline: 0; }

/* ---------- 3D tilt cards ---------- */
.tilt-wrap { perspective: 1000px; height: 100%; }
.tilt-card {
    --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
    position: relative; height: 100%; padding: 2rem 1.75rem; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .5s var(--ease), box-shadow .4s var(--ease), border-color .3s;
    display: flex; flex-direction: column;
}
.tilt-card.is-tilting { transition: transform .08s linear, box-shadow .4s var(--ease), border-color .3s; }
.tilt-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(199, 32, 39, .25); }
.tilt-card::after {
    /* moving glare */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255, 255, 255, .55), transparent 45%);
    mix-blend-mode: soft-light;
}
.tilt-card:hover::after { opacity: 1; }
.tilt-card > * { transform: translateZ(20px); }
.tilt-icon {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; color: #fff;
    background: linear-gradient(145deg, var(--brand-400), var(--brand-600));
    box-shadow: 0 14px 28px -10px rgba(199, 32, 39, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
    transform: translateZ(50px); margin-bottom: 1.5rem;
}
.tilt-icon.gold { background: linear-gradient(145deg, #e6c27a, #b98a30); box-shadow: 0 14px 28px -10px rgba(185, 138, 48, .6), inset 0 1px 0 rgba(255, 255, 255, .45); }
.tilt-icon.ink { background: linear-gradient(145deg, var(--ink-700), var(--ink-900)); box-shadow: 0 14px 28px -10px rgba(10, 15, 28, .6), inset 0 1px 0 rgba(255, 255, 255, .15); }
.tilt-card h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.tilt-card p { color: var(--text-muted); margin-bottom: 1.5rem; flex: 1; }
.tilt-card .index { position: absolute; top: 1.25rem; inset-inline-end: 1.5rem; font-weight: 800; font-size: 2.6rem; color: var(--surface-3); line-height: 1; transform: translateZ(10px); }

/* ---------- Stats ---------- */
.stats-band { position: relative; overflow: hidden; }
.stats-band::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
    background-size: 44px 44px;
    transform: perspective(600px) rotateX(55deg) scale(2) translateY(20%); transform-origin: bottom;
}
.stat-card {
    position: relative; padding: 2rem 1.5rem; border-radius: var(--radius-lg); text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    border: 1px solid var(--ink-line); backdrop-filter: blur(6px);
}
.stat-card .value { font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card .value .suffix { color: var(--gold); }
.stat-card .label { margin-top: .75rem; color: var(--on-ink-muted); font-weight: 600; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .stat-card .label { text-transform: none; letter-spacing: 0; }
.stat-card .bar { height: 3px; width: 44px; margin: 1rem auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--gold)); }

/* ---------- CSS 3D ledger stack (decorative) ---------- */
.ledger-scene { perspective: 1400px; display: grid; place-items: center; min-height: 420px; }
.ledger-stack { position: relative; width: min(360px, 80%); aspect-ratio: 4 / 3; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-38deg); animation: ledger-float 7s ease-in-out infinite; }
[dir="rtl"] .ledger-stack { transform: rotateX(56deg) rotateZ(38deg); animation-name: ledger-float-rtl; }
@keyframes ledger-float { 0%, 100% { transform: rotateX(56deg) rotateZ(-38deg) translateZ(0); } 50% { transform: rotateX(56deg) rotateZ(-34deg) translateZ(16px); } }
@keyframes ledger-float-rtl { 0%, 100% { transform: rotateX(56deg) rotateZ(38deg) translateZ(0); } 50% { transform: rotateX(56deg) rotateZ(34deg) translateZ(16px); } }
.ledger-sheet {
    position: absolute; inset: 0; border-radius: 18px; padding: 18px;
    background: linear-gradient(145deg, #fff, #f1f3f9); border: 1px solid var(--line);
    box-shadow: -20px 30px 50px -20px rgba(15, 23, 42, .35);
    display: flex; align-items: flex-end; gap: 10px;
}
.ledger-sheet:nth-child(1) { transform: translateZ(0); opacity: .75; }
.ledger-sheet:nth-child(2) { transform: translateZ(46px); opacity: .9; }
.ledger-sheet:nth-child(3) { transform: translateZ(92px); background: linear-gradient(145deg, var(--ink-800), var(--ink-900)); border-color: var(--ink-700); }
.ledger-sheet .col { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--surface-3); }
.ledger-sheet:nth-child(3) .col { background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); box-shadow: 0 0 18px rgba(199, 32, 39, .45); }
.ledger-sheet:nth-child(3) .col.gold { background: linear-gradient(180deg, #ebcb87, var(--gold)); box-shadow: 0 0 18px rgba(212, 166, 74, .5); }
.ledger-coin {
    position: absolute; width: 64px; height: 64px; border-radius: 50%; transform: translateZ(150px);
    background: radial-gradient(circle at 35% 30%, #f6e3b4, var(--gold) 55%, #9c7427);
    box-shadow: 0 0 0 5px rgba(212, 166, 74, .25), 0 20px 30px -10px rgba(0, 0, 0, .4);
    display: grid; place-items: center; color: #6b4d12; font-weight: 800; font-size: 1.5rem;
    top: -10px; inset-inline-end: -10px;
}

/* ---------- About teaser / feature list ---------- */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list li i { color: var(--brand); font-size: 1.15rem; margin-top: .1rem; flex: none; }
.pill-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); height: 100%; }
.pill-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.pill-card h3 i { color: var(--brand); }
.pill-card p { color: var(--text-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 86%); gap: 1.5rem;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial {
    scroll-snap-align: start; position: relative; padding: 2rem; border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--ink-line);
    display: flex; flex-direction: column; gap: 1.25rem;
}
.testimonial .quote { font-size: 2.6rem; line-height: 1; color: var(--brand-400); }
.testimonial p { color: var(--on-ink); margin: 0; flex: 1; font-size: 1.02rem; }
.testimonial .who { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: #fff; }
.testimonial .who .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--brand-400), var(--brand-600)); color: #fff; }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; font-size: .85rem; }
.slider-controls { display: flex; gap: .5rem; }
.slider-controls button {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .05); color: #fff;
    display: grid; place-items: center; transition: background .2s, transform .2s;
}
.slider-controls button:hover { background: var(--brand); transform: translateY(-2px); }

/* ---------- Clients marquee (always LTR) ---------- */
.marquee { direction: ltr; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-tile {
    flex: none; width: 180px; height: 104px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    display: grid; place-items: center; padding: 14px 18px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s;
}
.logo-tile img { max-height: 70px; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; transition: filter .3s, opacity .3s; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem);
    background: radial-gradient(600px 300px at 90% 0%, rgba(212, 166, 74, .35), transparent 60%), linear-gradient(135deg, var(--brand-600), var(--brand) 50%, #7d1016);
    color: #fff; box-shadow: var(--shadow-brand);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-band .cube {
    position: absolute; width: 120px; height: 120px; inset-inline-end: 6%; top: 50%; margin-top: -60px;
    transform-style: preserve-3d; animation: spin3d 16s linear infinite; opacity: .9;
}
.cta-band .cube span { position: absolute; inset: 0; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); border-radius: 10px; }
.cta-band .cube span:nth-child(1) { transform: translateZ(60px); }
.cta-band .cube span:nth-child(2) { transform: rotateY(180deg) translateZ(60px); }
.cta-band .cube span:nth-child(3) { transform: rotateY(90deg) translateZ(60px); }
.cta-band .cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(60px); }
.cta-band .cube span:nth-child(5) { transform: rotateX(90deg) translateZ(60px); }
.cta-band .cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(60px); }
@keyframes spin3d { from { transform: rotateX(-20deg) rotateY(0); } to { transform: rotateX(-20deg) rotateY(360deg); } }
@media (max-width: 991.98px) { .cta-band .cube { display: none; } }

/* ---------- Services page ---------- */
.service-row { padding: 4.5rem 0; }
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-row.reverse { background: var(--surface-2); }
.depth-frame { position: relative; perspective: 1200px; padding: 18px; }
.depth-frame .plate {
    position: absolute; inset: 40px -6px -6px 40px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand), var(--brand-600)); opacity: .9;
    transform: translateZ(-60px);
}
.depth-frame .plate.gold { background: linear-gradient(135deg, #e6c27a, #b98a30); }
[dir="rtl"] .depth-frame .plate { inset: 40px 40px -6px -6px; }
.depth-frame .photo {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
    box-shadow: var(--shadow-lg); transform: rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease);
    aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.depth-frame .photo img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; }
.service-row.reverse .depth-frame .photo { transform: rotateY(8deg) rotateX(4deg); }
[dir="rtl"] .depth-frame .photo { transform: rotateY(8deg) rotateX(4deg); }
[dir="rtl"] .service-row.reverse .depth-frame .photo { transform: rotateY(-8deg) rotateX(4deg); }
.depth-frame:hover .photo, [dir="rtl"] .depth-frame:hover .photo { transform: rotateY(0) rotateX(0); }
.service-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .75rem 0 1.25rem; }
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: .75rem; }
.step-list li {
    counter-increment: step; display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 1rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.step-list li::before {
    content: counter(step, decimal-leading-zero); flex: none; font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums;
    color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: .25rem .5rem; margin-top: .1rem;
}

/* ---------- Team ---------- */
.leader-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.leader-card .photo { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--surface-3); transform: translateZ(30px); }
.leader-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.leader-card:hover .photo img { transform: scale(1.05); }
.leader-card .photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(6, 10, 20, .85)); }
.leader-card .name { position: absolute; bottom: 1rem; inset-inline: 1.25rem; z-index: 1; color: #fff; transform: translateZ(60px); }
.leader-card .name h3 { font-size: 1.25rem; margin: 0 0 .2rem; color: #fff; }
.leader-card .name span { color: var(--gold); font-weight: 700; font-size: .88rem; }
.leader-card .bio { padding: 1.25rem 1.25rem 1.5rem; color: var(--text-muted); margin: 0; font-size: .95rem; }
.leader-card.tilt-card { padding: 0; }
.leader-card.tilt-card > * { transform: none; }
.member-card { text-align: center; padding: 1.5rem 1.25rem; }
.member-card .avatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--brand-soft), var(--shadow); transform: translateZ(40px); }
.member-card .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-card h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.member-card span { color: var(--brand); font-weight: 600; font-size: .88rem; }

/* ---------- About page ---------- */
.value-card { padding: 1.75rem; }
.value-card .tilt-icon { width: 54px; height: 54px; font-size: 1.4rem; border-radius: 14px; margin-bottom: 1.1rem; }
.standards { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.standards li { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm); }
.standards li i { color: var(--gold); }
.expertise-tabs .nav-link { border-radius: 999px; font-weight: 700; color: var(--text-muted); padding: .6rem 1.1rem; }
.expertise-tabs .nav-link.active { background: var(--brand); color: #fff; }
.meter { margin-bottom: 1.4rem; }
.meter .meter-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: .5rem; font-size: .95rem; }
.meter .meter-head .num { color: var(--brand); }
.meter .track { height: 10px; border-radius: 10px; background: var(--surface-3); overflow: hidden; }
.meter .fill { height: 100%; width: var(--w, 0); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--gold)); transition: width 1.6s var(--ease); }
.js .meter .fill { width: 0; }
[dir="rtl"] .meter .fill { background: linear-gradient(270deg, var(--brand), var(--gold)); }

/* ---------- Contact ---------- */
.contact-card { display: flex; flex-direction: row; gap: 1.1rem; align-items: flex-start; padding: 1.6rem; }
.contact-card .tilt-icon { width: 56px; height: 56px; flex: none; margin: 0; font-size: 1.5rem; border-radius: 16px; }
.contact-card .tilt-icon [class^="typcn"]::before, .contact-card .tilt-icon [class*=" typcn"]::before { font-size: 1.9rem; }
.contact-card h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.contact-card p { margin: 0 0 .35rem; color: var(--text-muted); }
.contact-card a { font-weight: 700; text-decoration: none; word-break: break-word; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow-lg); }
.form-card .form-label { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.form-card .form-control, .form-card .form-select { border-radius: 12px; padding: .8rem 1rem; border-color: var(--line); background-color: var(--surface-2); }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--brand); background-color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.form-card textarea.form-control { min-height: 196px; }
.contact-aside { background: linear-gradient(160deg, var(--ink-800), var(--ink-950)); color: var(--on-ink); border-radius: var(--radius-lg); padding: 2.25rem; height: 100%; position: relative; overflow: hidden; }
.contact-aside h3 { color: #fff; font-size: 1.4rem; }
.contact-aside p { color: var(--on-ink-muted); }
.contact-aside .row-item { display: flex; gap: .85rem; padding: .9rem 0; border-top: 1px solid var(--ink-line); }
.contact-aside .row-item i { color: var(--gold); font-size: 1.2rem; }
.contact-aside .row-item a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-aside .row-item a:hover { color: var(--gold); }
.contact-aside .row-item small { display: block; color: var(--on-ink-muted); }
.hp-field { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert-glass { border-radius: var(--radius); border: 1px solid; display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; }
.alert-glass.success { background: #ecfdf3; border-color: #a6f0c6; color: #065f46; }
.alert-glass.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-glass i { font-size: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--on-ink-muted); padding: 5rem 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), var(--gold), transparent); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .45rem; }
.footer-links a i { font-size: .7rem; color: var(--brand-400); }
[dir="rtl"] .footer-links a i { transform: scaleX(-1); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.footer-contact li { display: flex; gap: .7rem; }
.footer-contact i { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--ink-line); margin-top: 3.5rem; padding: 1.4rem 0; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-brand .brand-chip img { height: 46px; }

.back-to-top {
    position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 1040; width: 48px; height: 48px; border-radius: 14px; border: 0;
    background: linear-gradient(145deg, var(--brand-400), var(--brand-600)); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-brand);
    display: grid; place-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].in-view { opacity: 1; transform: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .marquee { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
    .marquee-track { animation: none; }
    .ledger-stack, [dir="rtl"] .ledger-stack { animation: none; }
    .scroll-cue { display: none; }
}
