/* ===================================================================
   COFFESOFT — Premium Design System
   Dark, luxurious, futuristic. Built on Bootstrap 5 + custom tokens.
   =================================================================== */

/* ─── 1. Design Tokens ─────────────────────────────────────────── */
:root {
    /* Brand */
    --brand-500: #8E40F1;
    --brand-400: #A871F4;
    --brand-600: #7128D9;
    --brand-700: #5A1FB0;
    --brand-glow: rgba(142, 64, 241, 0.45);
    --brand-soft: rgba(142, 64, 241, 0.12);
    --brand-line: rgba(142, 64, 241, 0.22);

    /* Surfaces */
    --bg-base: #07060B;
    --bg-1:    #0B0915;
    --bg-2:    #110C1F;
    --bg-3:    #18112C;
    --surface-card:  rgba(20, 14, 36, 0.65);
    --surface-glass: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(142, 64, 241, 0.08);

    /* Lines */
    --line-1: rgba(255, 255, 255, 0.06);
    --line-2: rgba(255, 255, 255, 0.10);
    --line-brand: rgba(142, 64, 241, 0.35);

    /* Text */
    --text-1: #FFFFFF;
    --text-2: rgba(255, 255, 255, 0.78);
    --text-3: rgba(255, 255, 255, 0.55);
    --text-4: rgba(255, 255, 255, 0.32);

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #8E40F1 0%, #C77DFF 100%);
    --grad-hero:  radial-gradient(ellipse at top, rgba(142,64,241,0.18) 0%, transparent 55%),
                  radial-gradient(ellipse at bottom right, rgba(199,125,255,0.10) 0%, transparent 50%);
    --grad-card:  linear-gradient(160deg, rgba(142,64,241,0.10) 0%, rgba(20,14,36,0.4) 100%);

    /* Shadows */
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 14px 60px rgba(142, 64, 241, 0.35);

    /* Radii */
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-xl: 36px;
    --r-pill: 999px;

    /* Easing */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Fonts */
    --font-en: 'Inter', 'SF Pro Display', -apple-system, system-ui, sans-serif;
    --font-ar: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    --font-ku: 'Vazirmatn', 'Noto Sans Arabic', 'Tajawal', system-ui, sans-serif;
}

/* ─── 2. Reset + Base ──────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg-base);
    color: var(--text-1);
    font-family: var(--font-en);
    font-feature-settings: "ss01", "ss02", "cv11";
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Language-specific font activation */
html[lang="ku"] body, html[lang="ku"] * { font-family: var(--font-ku); }
html[lang="ar"] body, html[lang="ar"] * { font-family: var(--font-ar); }
html[lang="en"] body, html[lang="en"] * { font-family: var(--font-en); }

/* RTL adjustments */
html[dir="rtl"] body { letter-spacing: 0; }
html[dir="rtl"] .text-ltr-only { direction: ltr; }

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease-out); }
a:hover { color: var(--brand-400); }

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

::selection { background: var(--brand-500); color: white; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
    border-radius: 10px;
    border: 2px solid var(--bg-1);
}

/* ─── 3. Ambient Background Layer ──────────────────────────────── */
body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

body::before {
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(142, 64, 241, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(142, 64, 241, 0.10), transparent 60%);
}

body::after {
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.6;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Floating decorative orbs */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}
.bg-orb--1 { width: 480px; height: 480px; background: var(--brand-500); top: -120px; left: -120px; animation: float-orb 22s var(--ease-in-out) infinite; }
.bg-orb--2 { width: 380px; height: 380px; background: #C77DFF; bottom: -80px; right: -100px; animation: float-orb 28s var(--ease-in-out) infinite reverse; opacity: 0.25; }
.bg-orb--3 { width: 320px; height: 320px; background: var(--brand-600); top: 40%; left: 60%; animation: float-orb 30s var(--ease-in-out) infinite; opacity: 0.20; }

@keyframes float-orb {
    0%,100% { transform: translate(0, 0); }
    33%     { transform: translate(80px, 40px); }
    66%     { transform: translate(-40px, 80px); }
}

/* ─── 4. Typography ────────────────────────────────────────────── */
.h-display {
    font-size: clamp(2.2rem, 5.5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
}
html[lang="ku"] .h-display,
html[lang="ar"] .h-display { line-height: 1.35; letter-spacing: 0; }

.h-section {
    font-size: clamp(1.75rem, 3.8vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-weight: 800;
    margin: 0 0 1rem;
}
html[lang="ku"] .h-section,
html[lang="ar"] .h-section { line-height: 1.45; letter-spacing: 0; }

.h-card {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-1);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-400);
    margin-bottom: 1.25rem;
}
html[lang="ku"] .eyebrow,
html[lang="ar"] .eyebrow { letter-spacing: 0.03em; text-transform: none; }

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--brand-400);
}

.text-grad {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lead {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--text-3);
    line-height: 1.75;
    max-width: 64ch;
}

/* ─── 5. Container & Sections ──────────────────────────────────── */
.shell {
    width: min(100% - 2.5rem, 1240px);
    margin-inline: auto;
}

.section {
    padding: clamp(64px, 8vw, 128px) 0;
    position: relative;
}

.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { content: none; }

/* ─── 6. Buttons ───────────────────────────────────────────────── */
.btn-cf {
    --btn-bg: var(--grad-brand);
    --btn-color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.7rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    background: var(--btn-bg);
    color: var(--btn-color);
    cursor: pointer;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 8px 24px rgba(142, 64, 241, 0.35);
    white-space: nowrap;
}
.btn-cf::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25), transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease-out);
    z-index: -1;
}
.btn-cf:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(142, 64, 241, 0.5);
    color: white;
}
.btn-cf:hover::after { transform: translateX(120%); }

.btn-cf--ghost {
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--line-2);
    box-shadow: none;
    backdrop-filter: blur(10px);
}
.btn-cf--ghost:hover {
    background: var(--surface-hover);
    border-color: var(--brand-500);
    box-shadow: 0 8px 24px rgba(142, 64, 241, 0.15);
    color: white;
}

.btn-cf--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-cf--sm .arrow { width: 15px; height: 15px; }

/* Header CTA: keep compact regardless of script (Vazirmatn/Tajawal glyphs run larger than Inter) */
.cf-header .btn-cf--sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.78rem;
    gap: 0.4rem;
    box-shadow: 0 6px 16px rgba(142, 64, 241, 0.3);
}
.cf-header .btn-cf--sm .arrow { width: 13px; height: 13px; }
html[lang="ku"] .cf-header .btn-cf--sm,
html[lang="ar"] .cf-header .btn-cf--sm { font-size: 0.72rem; }

/* Arrow micro */
.btn-cf .arrow {
    width: 18px; height: 18px;
    transition: transform 0.35s var(--ease-out);
    flex-shrink: 0;
}
.btn-cf:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn-cf .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn-cf:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ─── 7. Header / Navigation ───────────────────────────────────── */
.cf-header {
    position: fixed;
    top: 18px;
    left: 0; right: 0;
    z-index: 100;
    transition: all 0.45s var(--ease-out);
}
.cf-header__inner {
    width: min(100% - 2rem, 1240px);
    margin-inline: auto;
    background: rgba(10, 7, 20, 0.55);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--line-1);
    border-radius: var(--r-pill);
    padding: 0.55rem 0.7rem 0.55rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.45s var(--ease-out);
}
.cf-header.is-scrolled { top: 10px; }
.cf-header.is-scrolled .cf-header__inner {
    background: rgba(10, 7, 20, 0.85);
    box-shadow: var(--shadow-md);
    border-color: var(--line-brand);
}

.cf-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text-1);
}
.cf-logo__mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--grad-brand);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(142,64,241,0.45);
    transition: transform 0.35s var(--ease-out);
}
.cf-logo:hover .cf-logo__mark { transform: rotate(-8deg) scale(1.05); }
.cf-logo__mark svg { width: 22px; height: 22px; color: white; }

.cf-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.cf-nav__link {
    padding: 0.55rem 1rem;
    border-radius: var(--r-pill);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    transition: all 0.3s var(--ease-out);
    position: relative;
}
.cf-nav__link:hover { color: white; background: var(--surface-hover); }
.cf-nav__link.is-active {
    background: var(--grad-brand);
    color: white;
    box-shadow: 0 4px 14px rgba(142,64,241,0.4);
}

.cf-header__right { display: flex; align-items: center; gap: 0.5rem; }

.cf-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--r-pill);
    background: var(--surface-glass);
    border: 1px solid var(--line-1);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}
.cf-lang-switch:hover {
    border-color: var(--brand-500);
    color: white;
    background: var(--surface-hover);
}
.cf-lang-switch svg { width: 16px; height: 16px; }

.cf-lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-end: 12px;
    background: rgba(20, 14, 36, 0.95);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line-1);
    border-radius: var(--r-md);
    padding: 0.4rem;
    min-width: 180px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.3s var(--ease-out);
    z-index: 105;
}
.cf-lang-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.cf-lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s var(--ease-out);
}
.cf-lang-option:hover { background: var(--surface-hover); color: white; }
.cf-lang-option .flag {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--grad-brand);
    display: grid; place-items: center;
    font-size: 0.65rem; font-weight: 800; color: white;
}

/* Mobile menu toggle */
.cf-burger {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-1);
    background: var(--surface-glass);
    color: var(--text-1);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}
.cf-burger:hover { background: var(--surface-hover); border-color: var(--brand-500); }
.cf-burger svg { width: 20px; height: 20px; }

/* ─── 8. Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding-top: clamp(140px, 16vh, 200px);
    padding-bottom: clamp(80px, 12vh, 160px);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-400);
    margin-bottom: 1.5rem;
}
.hero__badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand-400);
    box-shadow: 0 0 8px var(--brand-glow);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__title {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0 0 1.5rem;
}
html[lang="ku"] .hero__title,
html[lang="ar"] .hero__title { line-height: 1.4; letter-spacing: 0; font-weight: 700; }

.hero__title .accent {
    display: inline-block;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
}
.hero__title .accent::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -0.05em;
    height: 8px;
    background: var(--grad-brand);
    border-radius: 4px;
    filter: blur(14px);
    opacity: 0.5;
    z-index: -1;
}

.hero__sub {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    color: var(--text-3);
    line-height: 1.7;
    max-width: 58ch;
    margin-bottom: 2.25rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-1);
}
.hero__meta-item .v {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.hero__meta-item .l {
    font-size: 0.78rem;
    color: var(--text-4);
    margin-top: 0.4rem;
}

/* Hero visual canvas (right side) */
.hero__visual {
    position: relative;
    aspect-ratio: 1 / 1.05;
    border-radius: var(--r-xl);
    background:
        radial-gradient(ellipse at 30% 20%, rgba(142,64,241,0.35), transparent 50%),
        linear-gradient(160deg, #1a0f2e, #0a0716);
    border: 1px solid var(--line-1);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}
.hero__visual::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(142,64,241,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(142,64,241,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Floating chips inside hero visual */
.hero__chip {
    position: absolute;
    background: rgba(20, 14, 36, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line-1);
    border-radius: var(--r-md);
    padding: 0.85rem 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: float-chip 6s var(--ease-in-out) infinite;
}
.hero__chip svg { width: 22px; height: 22px; color: var(--brand-400); }
.hero__chip--1 { top: 8%; inset-inline-start: 6%; animation-delay: 0s; }
.hero__chip--2 { top: 40%; inset-inline-end: 4%; animation-delay: -2s; }
.hero__chip--3 { bottom: 8%; inset-inline-start: 12%; animation-delay: -4s; }
.hero__chip--4 { top: 22%; inset-inline-end: 28%; animation-delay: -1s; }

@keyframes float-chip {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-12px); }
}

/* Glow ring at center of hero visual */
.hero__ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid var(--brand-line);
    background: radial-gradient(circle, rgba(142,64,241,0.18), transparent 70%);
    display: grid;
    place-items: center;
    animation: spin-slow 28s linear infinite;
}
.hero__ring::before, .hero__ring::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px dashed var(--line-brand);
}
.hero__ring::before { inset: 18%; }
.hero__ring::after  { inset: 36%; }
.hero__ring .core {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--grad-brand);
    box-shadow: 0 0 50px var(--brand-glow);
    display: grid; place-items: center;
    animation: spin-rev 28s linear infinite;
}
.hero__ring .core svg { width: 50px; height: 50px; color: white; }

@keyframes spin-slow { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes spin-rev  { from { transform: rotate(0); } to { transform: rotate(-360deg); } }

/* Marquee logos under hero */
.hero__marquee {
    margin-top: clamp(48px, 6vw, 88px);
    padding: 1.25rem 0;
    border-top: 1px solid var(--line-1);
    border-bottom: 1px solid var(--line-1);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.hero__marquee-track {
    display: flex;
    gap: 4rem;
    animation: marquee 32s linear infinite;
    width: max-content;
}
.hero__marquee-item {
    color: var(--text-4);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.hero__marquee-item svg { width: 22px; height: 22px; color: var(--brand-500); opacity: 0.7; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
html[dir="rtl"] .hero__marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}

/* ─── 9. Cards (generic premium card) ──────────────────────────── */
.card-cf {
    background: var(--surface-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line-1);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.45s var(--ease-out);
    isolation: isolate;
}
.card-cf::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
    z-index: -1;
}
.card-cf::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--r-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--brand-500), transparent 50%);
    -webkit-mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
            mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
    z-index: -1;
    pointer-events: none;
}
.card-cf:hover {
    transform: translateY(-6px);
    border-color: transparent;
}
.card-cf:hover::before, .card-cf:hover::after { opacity: 1; }

/* ─── 10. Services Grid ────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.service-card {
    /* extends .card-cf */
    cursor: pointer;
}
.service-card__icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    display: grid;
    place-items: center;
    color: var(--brand-400);
    margin-bottom: 1.25rem;
    transition: all 0.4s var(--ease-out);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card:hover .service-card__icon {
    background: var(--grad-brand);
    color: white;
    border-color: transparent;
    transform: rotate(-6deg) scale(1.05);
    box-shadow: 0 10px 22px var(--brand-glow);
}

.service-card__desc {
    color: var(--text-3);
    font-size: 0.92rem;
    line-height: 1.65;
}

.service-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    color: var(--brand-400);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.4s var(--ease-out);
}
.service-card:hover .service-card__more { opacity: 1; transform: translateY(0); }

/* ─── 11. Why Coffesoft ────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.why-card {
    padding: 2rem 1.75rem;
    text-align: start;
}
.why-card__num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-400);
    letter-spacing: 0.18em;
    margin-bottom: 0.85rem;
}
html[lang="ku"] .why-card__num,
html[lang="ar"] .why-card__num { letter-spacing: 0.04em; }

/* ─── 12. Process / Timeline ───────────────────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    position: relative;
}
.process-grid::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-line) 20%, var(--brand-line) 80%, transparent);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0.5rem;
}
.process-step__circle {
    width: 76px; height: 76px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    background: var(--bg-2);
    border: 1.5px solid var(--brand-line);
    display: grid;
    place-items: center;
    color: var(--brand-400);
    position: relative;
    transition: all 0.4s var(--ease-out);
}
.process-step__circle svg { width: 28px; height: 28px; }
.process-step__circle::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px dashed var(--brand-line);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}
.process-step:hover .process-step__circle {
    background: var(--grad-brand);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 30px var(--brand-glow);
    transform: scale(1.06);
}
.process-step:hover .process-step__circle::before { opacity: 1; }

.process-step__num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-400);
    margin-bottom: 0.35rem;
    letter-spacing: 0.12em;
}
.process-step__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.process-step__desc {
    font-size: 0.85rem;
    color: var(--text-3);
    line-height: 1.55;
}

/* ─── 13. Stats ────────────────────────────────────────────────── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2.5rem;
    border-radius: var(--r-xl);
    background:
        linear-gradient(180deg, rgba(142,64,241,0.10) 0%, transparent 100%),
        var(--bg-1);
    border: 1px solid var(--line-1);
    position: relative;
    overflow: hidden;
}
.stats-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(142,64,241,0.20), transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(199,125,255,0.10), transparent 40%);
    pointer-events: none;
}
.stat {
    text-align: center;
    position: relative;
}
.stat + .stat::before {
    content: "";
    position: absolute;
    top: 20%; bottom: 20%;
    inset-inline-start: -0.5rem;
    width: 1px;
    background: var(--line-1);
}
.stat__value {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}
.stat__label {
    font-size: 0.85rem;
    color: var(--text-3);
}

/* ─── 14. Portfolio ────────────────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}
.work-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line-1);
    background: var(--bg-2);
    cursor: pointer;
    transition: all 0.5s var(--ease-out);
    isolation: isolate;
}
.work-card--lg { grid-column: span 4; aspect-ratio: 16 / 10; }
.work-card--sm { grid-column: span 2; }
.work-card--md { grid-column: span 3; aspect-ratio: 16 / 11; }

/* Abstract previews — no real client work shown */
.work-card__abstract {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.work-card__abstract::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.9;
    transition: opacity 0.5s var(--ease-out);
}
.work-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s var(--ease-out);
}
.work-card:hover .work-card__img { transform: scale(1.06); }
.work-card[data-style="aurora"] .work-card__abstract::before {
    background:
        radial-gradient(circle at 30% 40%, #8E40F1 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, #C77DFF 0%, transparent 40%),
        linear-gradient(135deg, #1a0a3a, #2d1454);
}
.work-card[data-style="grid"] .work-card__abstract::before {
    background:
        linear-gradient(135deg, #14091e, #2a1245);
    background-image:
        linear-gradient(rgba(142,64,241,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(142,64,241,0.3) 1px, transparent 1px),
        linear-gradient(135deg, #14091e, #2a1245);
    background-size: 22px 22px, 22px 22px, 100% 100%;
}
.work-card[data-style="wave"] .work-card__abstract::before {
    background:
        conic-gradient(from 180deg at 50% 50%, #8E40F1, #C77DFF, #5A1FB0, #8E40F1);
    filter: blur(20px);
}
.work-card[data-style="dots"] .work-card__abstract::before {
    background-color: #0c061a;
    background-image: radial-gradient(circle at 1px 1px, rgba(199,125,255,0.55) 1px, transparent 0);
    background-size: 14px 14px;
}
.work-card[data-style="mono"] .work-card__abstract::before {
    background: linear-gradient(135deg, #0a071a, #1c0e36 60%, #4b1e8a);
}
.work-card[data-style="iso"] .work-card__abstract::before {
    background:
        repeating-linear-gradient(60deg, transparent 0 18px, rgba(142,64,241,0.18) 18px 19px),
        repeating-linear-gradient(-60deg, transparent 0 18px, rgba(142,64,241,0.18) 18px 19px),
        linear-gradient(135deg, #0a071a, #1a0e30);
}

.work-card__abstract-mark {
    position: relative;
    z-index: 1;
    width: 76px; height: 76px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.18);
    display: grid;
    place-items: center;
    color: white;
    transition: all 0.5s var(--ease-out);
}
.work-card__abstract-mark svg { width: 34px; height: 34px; }

.work-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 6, 11, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    z-index: 2;
}
.work-card__tag {
    display: inline-flex;
    width: fit-content;
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-400);
    margin-bottom: 0.75rem;
}
.work-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.work-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-500);
    box-shadow: var(--shadow-glow);
}
.work-card:hover .work-card__abstract-mark {
    transform: scale(1.1) rotate(8deg);
    background: rgba(142, 64, 241, 0.25);
    border-color: var(--brand-400);
}

/* ─── 15. Testimonials ─────────────────────────────────────────── */
.voices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.voice-card {
    padding: 2rem;
    position: relative;
}
.voice-card__quote {
    color: var(--text-2);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    position: relative;
}
.voice-card__quote::before {
    content: "“";
    position: absolute;
    top: -1rem;
    inset-inline-start: -0.5rem;
    font-size: 4rem;
    color: var(--brand-500);
    opacity: 0.35;
    line-height: 1;
    font-family: serif;
}
.voice-card__person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-1);
}
.voice-card__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--grad-brand);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px var(--brand-glow);
}
.voice-card__name { font-weight: 700; font-size: 0.95rem; }
.voice-card__role { font-size: 0.78rem; color: var(--text-4); }

.voice-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.85rem;
    color: #FFB400;
}
.voice-card__stars svg { width: 16px; height: 16px; }

/* ─── 16. CTA Mega Section ─────────────────────────────────────── */
.cta-mega {
    position: relative;
    border-radius: var(--r-xl);
    padding: clamp(3rem, 6vw, 5rem);
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(142,64,241,0.40), transparent 70%),
        linear-gradient(160deg, #1a0a3a, #0a0716);
    border: 1px solid var(--brand-line);
    overflow: hidden;
    isolation: isolate;
}
.cta-mega::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(142,64,241,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(142,64,241,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    z-index: -1;
}

/* ─── 17. FAQ ──────────────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin-inline: auto;
}
.faq-item {
    background: var(--surface-card);
    border: 1px solid var(--line-1);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}
.faq-item.is-open {
    border-color: var(--line-brand);
    box-shadow: 0 8px 30px rgba(142,64,241,0.12);
}
.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    text-align: start;
    color: var(--text-1);
    padding: 1.25rem 1.5rem;
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: inherit;
}
.faq-trigger__icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand-400);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-out);
}
.faq-trigger__icon svg { width: 16px; height: 16px; }
.faq-item.is-open .faq-trigger__icon {
    transform: rotate(45deg);
    background: var(--grad-brand);
    color: white;
    border-color: transparent;
}
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out);
}
.faq-body__inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-3);
    line-height: 1.7;
}

/* ─── 18. Contact ──────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface-card);
    border: 1px solid var(--line-1);
    border-radius: var(--r-md);
    transition: all 0.3s var(--ease-out);
}
.contact-info-item:hover { border-color: var(--brand-500); transform: translateX(4px); }
html[dir="rtl"] .contact-info-item:hover { transform: translateX(-4px); }
.contact-info-item__icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    display: grid; place-items: center;
    color: var(--brand-400);
    flex-shrink: 0;
}
.contact-info-item__icon svg { width: 18px; height: 18px; }
.contact-info-item__label { font-size: 0.75rem; color: var(--text-4); }
.contact-info-item__value { font-weight: 600; font-size: 0.95rem; }

.contact-form {
    background: var(--surface-card);
    border: 1px solid var(--line-1);
    border-radius: var(--r-lg);
    padding: 2rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-3);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-control-cf {
    width: 100%;
    background: var(--bg-1);
    border: 1px solid var(--line-1);
    border-radius: var(--r-sm);
    color: var(--text-1);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s var(--ease-out);
}
.form-control-cf:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px var(--brand-soft);
    background: var(--bg-2);
}
.form-control-cf::placeholder { color: var(--text-4); }
textarea.form-control-cf { resize: vertical; min-height: 130px; }

.success-banner {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
    border: 1px solid rgba(34,197,94,0.35);
    color: #4ade80;
    padding: 0.85rem 1.1rem;
    border-radius: var(--r-md);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 0.6rem;
}

/* ─── 19. Footer ───────────────────────────────────────────────── */
.cf-footer {
    border-top: 1px solid var(--line-1);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}
.cf-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.cf-footer__brand p {
    color: var(--text-3);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 1.25rem 0;
    max-width: 30ch;
}
.cf-footer__socials {
    display: flex;
    gap: 0.5rem;
}
.cf-footer__social {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--surface-glass);
    border: 1px solid var(--line-1);
    color: var(--text-3);
    display: grid;
    place-items: center;
    transition: all 0.3s var(--ease-out);
}
.cf-footer__social:hover {
    background: var(--grad-brand);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--brand-glow);
}
.cf-footer__social svg { width: 16px; height: 16px; }

.cf-footer__col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}
html[lang="ku"] .cf-footer__col h4,
html[lang="ar"] .cf-footer__col h4 { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.cf-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.cf-footer__col a { color: var(--text-3); font-size: 0.92rem; }
.cf-footer__col a:hover { color: var(--brand-400); }

.cf-footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--line-1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-4);
}

/* ─── 20. Language Selection Modal ─────────────────────────────── */
.lang-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 6, 11, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: grid;
    place-items: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}
.lang-modal.is-active { opacity: 1; pointer-events: auto; }

.lang-modal__card {
    width: min(100%, 540px);
    background: linear-gradient(160deg, rgba(20,14,36,0.95), rgba(10,7,20,0.95));
    border: 1px solid var(--line-brand);
    border-radius: var(--r-xl);
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
    box-shadow: var(--shadow-glow);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.6s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.lang-modal.is-active .lang-modal__card { transform: translateY(0) scale(1); }
.lang-modal__card::before {
    content: "";
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(142,64,241,0.5), transparent 70%);
    filter: blur(60px);
    z-index: 0;
}
.lang-modal__card > * { position: relative; z-index: 1; }

.lang-modal__logo {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: var(--grad-brand);
    margin: 0 auto 1.5rem;
    display: grid;
    place-items: center;
    color: white;
    box-shadow: 0 12px 30px var(--brand-glow);
}
.lang-modal__logo svg { width: 38px; height: 38px; }

.lang-modal__title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
}
.lang-modal__sub {
    color: var(--text-3);
    font-size: 0.95rem;
    margin: 0 0 2rem;
}

.lang-modal__options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}
.lang-modal__opt {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface-glass);
    border: 1px solid var(--line-1);
    border-radius: var(--r-md);
    color: var(--text-1);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.3s var(--ease-out);
    font-family: inherit;
}
.lang-modal__opt:hover {
    background: var(--surface-hover);
    border-color: var(--brand-500);
    transform: translateY(-2px);
}
.lang-modal__opt[data-lang="ku"]:hover, .lang-modal__opt[data-lang="ku"].is-active { font-family: var(--font-ku); }
.lang-modal__opt[data-lang="ar"]:hover, .lang-modal__opt[data-lang="ar"].is-active { font-family: var(--font-ar); }
.lang-modal__opt.is-active {
    background: var(--grad-brand);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px var(--brand-glow);
}
.lang-modal__opt-flag {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
}
.lang-modal__opt.is-active .lang-modal__opt-flag { background: rgba(255,255,255,0.2); }

/* ─── 21. Mobile Menu Drawer ───────────────────────────────────── */
.cf-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(7, 6, 11, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}
.cf-mobile-drawer.is-open { transform: translateY(0); }

.cf-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.cf-mobile-drawer__close {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-1);
    background: var(--surface-glass);
    color: var(--text-1);
    cursor: pointer;
    display: grid; place-items: center;
}

.cf-mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}
.cf-mobile-drawer__link {
    padding: 1.1rem 1rem;
    border-radius: var(--r-md);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s var(--ease-out);
}
.cf-mobile-drawer__link:hover {
    background: var(--surface-hover);
    color: var(--brand-400);
    padding-inline-start: 1.4rem;
}
.cf-mobile-drawer__link svg { width: 22px; height: 22px; }

.cf-mobile-drawer__foot {
    padding-top: 2rem;
    border-top: 1px solid var(--line-1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cf-mobile-drawer__lang-row {
    display: flex;
    gap: 0.5rem;
}
.cf-mobile-drawer__lang-row a {
    flex: 1;
    text-align: center;
    padding: 0.7rem;
    border-radius: var(--r-pill);
    background: var(--surface-glass);
    border: 1px solid var(--line-1);
    font-size: 0.85rem;
    font-weight: 600;
}
.cf-mobile-drawer__lang-row a.is-active {
    background: var(--grad-brand);
    border-color: transparent;
    color: white;
}

/* ─── 22. Reveal Animations ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal[data-reveal="left"]  { transform: translateX(-30px); }
.reveal[data-reveal="right"] { transform: translateX(30px); }
.reveal[data-reveal="scale"] { transform: scale(0.92); }
.reveal.is-visible[data-reveal="left"],
.reveal.is-visible[data-reveal="right"] { transform: translateX(0); }
.reveal.is-visible[data-reveal="scale"] { transform: scale(1); }

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 0.50s; }
.reveal-stagger.is-visible > *:nth-child(11) { transition-delay: 0.55s; }
.reveal-stagger.is-visible > *:nth-child(12) { transition-delay: 0.60s; }

/* ─── 23. Cursor Glow (desktop only) ───────────────────────────── */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142,64,241,0.18) 0%, transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.4s var(--ease-out);
    mix-blend-mode: screen;
    will-change: transform;
}

/* ─── 24. Loader / Splash ──────────────────────────────────────── */
.cf-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-base);
    display: grid;
    place-items: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}
.cf-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.cf-splash__logo {
    width: 80px; height: 80px;
    border-radius: 22px;
    background: var(--grad-brand);
    display: grid;
    place-items: center;
    color: white;
    box-shadow: 0 16px 50px var(--brand-glow);
    animation: pulse-grow 1.4s var(--ease-in-out) infinite;
}
.cf-splash__logo svg { width: 44px; height: 44px; }
@keyframes pulse-grow {
    0%,100% { transform: scale(1); }
    50%     { transform: scale(1.08); }
}

/* ─── 25. Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { max-width: 460px; margin-inline: auto; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .work-card--lg, .work-card--md, .work-card--sm { grid-column: span 1; aspect-ratio: 4/5; }
    .contact-grid { grid-template-columns: 1fr; }
    .cf-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .cf-nav { display: none; }
    .cf-burger { display: inline-flex; }
    .cf-lang-switch span { display: none; }

    .hero { padding-top: 130px; }
    .hero__title { font-size: clamp(2rem, 9vw, 3.2rem); }

    .voices-grid,
    .services-grid { grid-template-columns: 1fr; }

    .process-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .process-grid::before { display: none; }
    .process-step { display: flex; gap: 1rem; align-items: flex-start; text-align: start; padding: 1rem; background: var(--surface-card); border: 1px solid var(--line-1); border-radius: var(--r-md); }
    .process-step__circle { width: 56px; height: 56px; margin: 0; flex-shrink: 0; }
    .process-step__circle svg { width: 22px; height: 22px; }

    .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 1.5rem; gap: 1.5rem; }
    .stat + .stat::before { display: none; }

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

    .form-row { grid-template-columns: 1fr; }

    .cf-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .cf-footer__bottom { flex-direction: column; align-items: flex-start; }

    .hero__meta { gap: 1.25rem; }
    .hero__meta-item .v { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .shell { width: calc(100% - 1.75rem); }
    .cf-logo { font-size: 0.95rem; }
    .cf-logo__mark { width: 30px; height: 30px; }
    .cf-logo__mark svg { width: 18px; height: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .bg-orb { animation: none; }
}

/* Touch device: hide cursor glow */
@media (hover: none) {
    .cursor-glow { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ADVANCED ANIMATION LAYER
   Scroll progress, shine/glow, word-by-word reveal, hero spotlight, eyebrow type
   ═══════════════════════════════════════════════════════════════════════ */

/* Top-of-page scroll progress bar */
.cf-scroll-progress {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-brand);
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 18px rgba(142, 64, 241, 0.6);
}
html[dir="rtl"] .cf-scroll-progress { transform-origin: right center; }

/* Word-by-word hero title reveal */
.word-anim {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px) rotate(2deg);
    animation: word-rise 0.85s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
    will-change: transform, opacity;
}
@keyframes word-rise {
    0%   { opacity: 0; transform: translateY(28px) rotate(2deg); filter: blur(8px); }
    60%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}

/* Card shine — mouse-position-aware spotlight on cards */
.card-cf,
.work-card,
.voice-card,
.service-card,
.why-card {
    --shine-x: 50%;
    --shine-y: 50%;
}
.card-cf::before,
.service-card::before,
.why-card::before,
.voice-card::before {
    background:
        radial-gradient(
            420px circle at var(--shine-x) var(--shine-y),
            rgba(142, 64, 241, 0.22),
            transparent 45%
        );
}

/* Hero spotlight follows mouse */
.hero {
    --mx: 50%;
    --my: 50%;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            600px circle at var(--mx) var(--my),
            rgba(142, 64, 241, 0.10),
            transparent 60%
        );
    transition: background 0.15s linear;
    z-index: 0;
}
.hero > .shell { position: relative; z-index: 1; }

/* Premium focus ring for accessibility */
:focus-visible {
    outline: 2px solid var(--brand-400, #B47CFF);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Floating element subtle bob */
[data-float] { transition: transform 0.6s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)); }

/* Smooth velocity marquee — handled by JS via animation-duration */
.hero__marquee-track {
    transition: animation-duration 0.4s linear;
}

/* Splash exit */
.cf-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
                visibility 0.6s linear;
}

/* Mobile tweaks for advanced animations */
@media (max-width: 768px) {
    .cf-scroll-progress { height: 3px; }
    .hero::after { display: none; } /* mobile: skip the spotlight to save performance */
    .word-anim { animation-duration: 0.6s; }
}

/* Reduced motion — respect user preference for all advanced anims */
@media (prefers-reduced-motion: reduce) {
    .word-anim { animation: none; opacity: 1; transform: none; }
    .cf-scroll-progress { display: none; }
    .hero::after { display: none; }
}

/* ─── 24. Theme toggle button ──────────────────────────────────── */
.cf-theme-toggle {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--surface-glass);
    border: 1px solid var(--line-2);
    color: var(--text-2);
    cursor: pointer;
    transition: color .25s var(--ease-out), border-color .25s var(--ease-out), background .25s var(--ease-out);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}
.cf-theme-toggle:hover { color: var(--text-1); border-color: var(--brand-500); background: var(--surface-hover); }
.cf-theme-toggle svg { width: 18px; height: 18px; }
/* Show moon in dark mode (click → go light); show sun in light mode (click → go dark) */
.cf-theme-toggle__sun  { display: none; }
.cf-theme-toggle__moon { display: block; }
html[data-theme="light"] .cf-theme-toggle__sun  { display: block; }
html[data-theme="light"] .cf-theme-toggle__moon { display: none; }

/* ─── 25. Light theme ──────────────────────────────────────────── */
html[data-theme="light"] {
    --bg-base: #F6F4FC;
    --bg-1:    #FFFFFF;
    --bg-2:    #F0ECFA;
    --bg-3:    #E7E0F6;

    --surface-card:  rgba(255, 255, 255, 0.86);
    --surface-glass: rgba(26, 20, 48, 0.03);
    --surface-hover: rgba(142, 64, 241, 0.10);

    --line-1: rgba(26, 20, 48, 0.10);
    --line-2: rgba(26, 20, 48, 0.16);
    --line-brand: rgba(142, 64, 241, 0.30);

    --text-1: #16112B;
    --text-2: rgba(22, 17, 43, 0.80);
    --text-3: rgba(22, 17, 43, 0.58);
    --text-4: rgba(22, 17, 43, 0.36);

    --grad-hero:  radial-gradient(ellipse at top, rgba(142,64,241,0.12) 0%, transparent 55%),
                  radial-gradient(ellipse at bottom right, rgba(199,125,255,0.10) 0%, transparent 50%);
    --grad-card:  linear-gradient(160deg, rgba(142,64,241,0.07) 0%, rgba(255,255,255,0.65) 100%);

    --shadow-sm: 0 4px 18px rgba(26, 20, 48, 0.08);
    --shadow-md: 0 14px 40px rgba(26, 20, 48, 0.12);
    --shadow-glow: 0 14px 60px rgba(142, 64, 241, 0.20);
}
html[data-theme="light"] body { color: var(--text-1); }

/* Hardcoded dark surfaces → light equivalents */
html[data-theme="light"] .cf-header__inner { background: rgba(255, 255, 255, 0.70); }
html[data-theme="light"] .cf-header.is-scrolled .cf-header__inner { background: rgba(255, 255, 255, 0.90); }
html[data-theme="light"] .cf-lang-menu { background: rgba(255, 255, 255, 0.98); }
html[data-theme="light"] .hero__chip { background: rgba(255, 255, 255, 0.92); }
html[data-theme="light"] .lang-modal { background: rgba(22, 17, 43, 0.45); }
html[data-theme="light"] .lang-modal__card { background: linear-gradient(160deg, #ffffff, #f3effb); }
html[data-theme="light"] .cf-mobile-drawer { background: rgba(255, 255, 255, 0.97); }

/* White text that sits on translucent (now light) hover surfaces → make dark */
html[data-theme="light"] .cf-nav__link:hover     { color: var(--text-1); }
html[data-theme="light"] .btn-cf--ghost:hover    { color: var(--text-1); }
html[data-theme="light"] .cf-lang-switch:hover   { color: var(--text-1); }
html[data-theme="light"] .cf-lang-option:hover   { color: var(--text-1); }

/* Soften ambient layers so they don't wash out the light page */
html[data-theme="light"] body::before { opacity: 0.45; }
html[data-theme="light"] .bg-orb { opacity: 0.10 !important; }
