/* ============================================================
   NetBanan Modern — v5.0  |  Stripe-style · RTL · Persian
   ============================================================ */

@font-face {
    font-family: 'Fira Code';
    src: url('../fonts/FiraCode.woff2') format('woff2');
    font-weight: 400 500; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Regular.woff2') format('woff2');
    font-weight: 400; font-display: swap;
}
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Medium.woff2') format('woff2');
    font-weight: 500; font-display: swap;
}
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: 700; font-display: swap;
}

/* ══════════════════════════════════════════════
   DESIGN TOKENS  — LIGHT (default)
   ══════════════════════════════════════════════ */
:root {
    /* Stripe-inspired palette */
    --p:        #635BFF;   /* stripe purple */
    --p2:       #4F46E5;   /* darker purple */
    --pink:     #EC4899;
    --cyan:     #06B6D4;
    --green:    #10B981;

    /* Gradient shortcuts */
    --grad:          linear-gradient(135deg, #635BFF 0%, #EC4899 100%);
    --grad-3:        linear-gradient(135deg, #635BFF 0%, #EC4899 50%, #06B6D4 100%);
    --grad-soft:     linear-gradient(135deg, rgba(99,91,255,.07) 0%, rgba(236,72,153,.07) 100%);
    --grad-text:     linear-gradient(135deg, #635BFF, #EC4899);
    --grad-cta:      linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #DB2777 100%);

    /* Surfaces */
    --c-bg:        #ffffff;
    --c-bg2:       #f7f7ff;
    --c-bg3:       #f0f0fd;
    --c-surface:   #ffffff;
    --c-border:    rgba(99,91,255,.12);
    --c-border2:   rgba(0,0,0,.06);

    /* Typography */
    --c-text:      #0a0514;
    --c-text2:     #4b5563;
    --c-text3:     #9ca3af;
    --c-accent:    #635BFF;
    --c-accent2:   #EC4899;

    /* Tags */
    --c-tag-bg:    rgba(99,91,255,.08);
    --c-tag:       #4F46E5;

    /* Code */
    --c-code-bg:   #f3f4f6;
    --c-code-text: #4F46E5;

    /* Shadows */
    --sh-sm:   0 1px 3px rgba(99,91,255,.08), 0 1px 2px rgba(0,0,0,.04);
    --sh:      0 4px 20px rgba(99,91,255,.1), 0 1px 4px rgba(0,0,0,.05);
    --sh-lg:   0 16px 48px rgba(99,91,255,.12), 0 4px 12px rgba(0,0,0,.05);
    --sh-p:    0 8px 24px rgba(99,91,255,.35);
    --sh-glow: 0 0 0 1px rgba(99,91,255,.15), 0 8px 32px rgba(99,91,255,.14);

    /* Header */
    --hd-bg:     rgba(255,255,255,.88);
    --hd-border: rgba(99,91,255,.1);

    /* Tokens */
    --f-body:  'Vazir', Tahoma, 'Segoe UI', Arial, sans-serif;
    --f-mono:  'Fira Code', 'Courier New', monospace;
    --cont:    1280px;
    --hd-h:    64px;
    --sb-w:    284px;
    --r-xs:    .25rem;
    --r-sm:    .4rem;
    --r:       .625rem;
    --r-lg:    .875rem;
    --r-xl:    1.25rem;
    --r-2xl:   1.75rem;
    --r-3xl:   2rem;
    --r-full:  9999px;
    --ease:    cubic-bezier(.4,0,.2,1);
    --t:       200ms cubic-bezier(.4,0,.2,1);
    --t-slow:  450ms cubic-bezier(.4,0,.2,1);
}

/* DARK mode */
[data-theme="dark"] {
    --c-bg:        #08071a;
    --c-bg2:       #0f0e26;
    --c-bg3:       #15133a;
    --c-surface:   #0f0e26;
    --c-border:    rgba(99,91,255,.18);
    --c-border2:   rgba(255,255,255,.05);
    --c-text:      #eeeeff;
    --c-text2:     #7c7ca0;
    --c-text3:     #47476a;
    --c-accent:    #7C6FFF;
    --c-accent2:   #F472B6;
    --c-tag-bg:    rgba(124,111,255,.1);
    --c-tag:       #a5b4fc;
    --c-code-bg:   #0f0e26;
    --c-code-text: #a5b4fc;
    --sh-sm:   0 1px 3px rgba(0,0,0,.5);
    --sh:      0 4px 20px rgba(0,0,0,.5);
    --sh-lg:   0 16px 48px rgba(0,0,0,.6);
    --sh-p:    0 8px 24px rgba(99,91,255,.4);
    --sh-glow: 0 0 0 1px rgba(124,111,255,.2), 0 8px 32px rgba(124,111,255,.12);
    --hd-bg:   rgba(8,7,26,.9);
    --hd-border: rgba(99,91,255,.15);
    --grad-soft: linear-gradient(135deg, rgba(99,91,255,.1) 0%, rgba(236,72,153,.1) 100%);
}

/* ══════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--t); }
ol, ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

body {
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--c-text);
    background: var(--c-bg);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background .35s ease, color .35s ease;
}

/* Accessibility */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; top: -200%; left: 50%; transform: translateX(-50%); z-index: 9999; }
.skip-link:focus { top: 1rem; background: var(--p); color: #fff; padding: .5rem 1.25rem; border-radius: var(--r-full); }

/* Container */
.nb-container { width: 100%; max-width: var(--cont); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* Gradient text helper */
.g-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.site-header {
    position: sticky; top: 0; z-index: 200;
    height: var(--hd-h);
    background: var(--hd-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--hd-border);
    transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: var(--sh); }

.header-inner { height: var(--hd-h); display: flex; align-items: center; gap: 1.25rem; }

/* Branding */
.site-branding { flex-shrink: 0; }
.site-logo-text {
    display: flex; align-items: center; gap: .55rem;
    font-size: 1.15rem; font-weight: 700; letter-spacing: -.015em;
    color: var(--c-text);
}
.site-logo-text:hover { color: var(--c-text); }
.logo-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: var(--grad);
    color: #fff;
    border-radius: var(--r);
    font-size: .72rem; font-family: var(--f-mono); font-weight: 600;
    flex-shrink: 0;
    box-shadow: var(--sh-p);
}
.site-header .custom-logo-link img { height: 36px; width: auto; }

/* ══════════════════════════════════════
   PREMIUM NAV
   ══════════════════════════════════════ */

/* Header bottom accent line */
.site-header::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99,91,255,.22) 20%,
        rgba(236,72,153,.22) 80%,
        transparent 100%);
    pointer-events: none;
}
.site-header { border-bottom: none; }

.primary-nav { flex: 1; overflow: visible; }
.nav-menu {
    display: flex; align-items: center; gap: 1px;
    list-style: none; margin: 0; padding: 0; flex-wrap: nowrap;
}
.nav-menu li { position: relative; list-style: none; }

/* ── Top-level link ── */
.nav-menu > li > a {
    display: flex; align-items: center; gap: .28rem;
    padding: .46rem .85rem;
    font-size: .875rem; font-weight: 600;
    color: var(--c-text2);
    border-radius: var(--r-full);
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
    position: relative; z-index: 1;
}
.nav-menu > li > a:hover {
    color: var(--c-text);
    background: rgba(99,91,255,.07);
}
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
    color: var(--c-accent);
    background: rgba(99,91,255,.1);
    font-weight: 700;
}
/* Active dot */
.nav-menu .current-menu-item > a::before,
.nav-menu .current-menu-ancestor > a::before {
    content: '';
    position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--grad); box-shadow: 0 0 6px rgba(99,91,255,.7);
}

/* ── Chevron for parent items ── */
.nav-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block; flex-shrink: 0;
    width: 6px; height: 6px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg) translate(-1px,-1px);
    opacity: .45;
    transition: transform .22s cubic-bezier(.4,0,.2,1), opacity .22s;
}
.nav-menu .menu-item-has-children:hover > a::after,
.nav-menu .menu-item-has-children:focus-within > a::after,
.nav-menu .menu-item-has-children.sub-open > a::after {
    transform: rotate(-135deg) translate(-1px,-1px);
    opacity: 1;
}

/* ── Dropdown panel ── */
.nav-menu .sub-menu {
    display: none; flex-direction: column;
    position: absolute; top: calc(100% + 14px); right: 0;
    min-width: 260px;
    background: var(--c-surface);
    border-radius: 18px;
    padding: .55rem;
    z-index: 400;
    /* No overflow:hidden so sub-sub-menus can escape */
    box-shadow:
        0 0 0 1px rgba(99,91,255,.12),
        0 4px 6px rgba(0,0,0,.04),
        0 20px 60px rgba(99,91,255,.14),
        0 8px 24px rgba(0,0,0,.08);
}
/* Gradient top accent */
.nav-menu .sub-menu::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad); border-radius: 18px 18px 0 0;
    pointer-events: none;
}
/* Connector caret */
.nav-menu .sub-menu::after {
    content: '';
    position: absolute; top: -7px; right: 22px;
    width: 12px; height: 12px;
    background: var(--c-surface);
    border-top: 1px solid rgba(99,91,255,.12);
    border-right: 1px solid rgba(99,91,255,.12);
    transform: rotate(-45deg);
}

/* JS-toggle: opens sub-menu on touch/mobile via .sub-open class */
.nav-menu li.sub-open > .sub-menu {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

/* Mouse-hover devices only: spring animation + hover trigger */
@media (hover: hover) and (pointer: fine) {
    .nav-menu .sub-menu {
        display: flex;
        visibility: hidden; opacity: 0; pointer-events: none;
        transform: translateY(-10px) scale(.97);
        transform-origin: top right;
        transition:
            opacity .22s ease,
            visibility .22s ease,
            transform .28s cubic-bezier(.34,1.56,.64,1);
        transition-delay: 80ms;
    }
    .nav-menu li:hover > .sub-menu,
    .nav-menu li:focus-within > .sub-menu {
        visibility: visible; opacity: 1; pointer-events: auto;
        transform: none;
        transition-delay: 0s;
    }
    /* Bridge gap between link and panel */
    .nav-menu > li::after {
        content: ''; display: block;
        position: absolute; bottom: -14px; left: 0; right: 0; height: 14px;
        pointer-events: none;
    }
    .nav-menu > li:hover::after { pointer-events: auto; }
}

/* ── Dropdown items ── */
.nav-menu .sub-menu a {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem .7rem;
    font-size: .855rem; font-weight: 500;
    color: var(--c-text2);
    border-radius: 11px;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease;
    position: relative;
}
.nav-menu .sub-menu a:hover {
    color: var(--c-text);
    background: var(--grad-soft);
}
/* Remove old dot pseudo */
.nav-menu .sub-menu a::before { display: none; }

/* Icon box (injected by JS as .nb-mi-icon span) */
.nb-mi-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    background: rgba(99,91,255,.08);
    color: var(--c-accent);
    transition: background .16s ease, color .16s ease;
}
.nb-mi-icon svg { width: 16px; height: 16px; }
.nav-menu .sub-menu a:hover .nb-mi-icon {
    background: var(--grad);
    color: #fff;
}

/* ── Sub-sub-menu (3rd level) ── */
.nav-menu .sub-menu .sub-menu {
    top: -.55rem;
    right: calc(100% + 8px);
    left: auto;
}
.nav-menu .sub-menu .sub-menu::before { border-radius: 18px 18px 0 0; }
.nav-menu .sub-menu .sub-menu::after  { display: none; }

/* Chevron direction for items that open sideways */
.nav-menu .sub-menu .menu-item-has-children > a::after {
    transform: rotate(-45deg) translate(-1px,-1px);
}
.nav-menu .sub-menu .menu-item-has-children:hover > a::after,
.nav-menu .sub-menu .menu-item-has-children:focus-within > a::after,
.nav-menu .sub-menu .menu-item-has-children.sub-open > a::after {
    transform: rotate(135deg) translate(-1px,-1px);
}
@media (hover: hover) and (pointer: fine) {
    .nav-menu .sub-menu .sub-menu {
        transform: translateX(10px) scale(.97);
        transform-origin: right center;
    }
    .nav-menu .sub-menu li:hover > .sub-menu,
    .nav-menu .sub-menu li:focus-within > .sub-menu {
        transform: none;
    }
}

/* Allow sub-sub-menus to escape the panel bounds */
.nav-menu > .menu-item-has-children > .sub-menu {
    overflow: visible;
}

/* Actions */
.header-actions { display: flex; align-items: center; gap: .2rem; flex-shrink: 0; }
.action-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--r);
    color: var(--c-text3);
    transition: color var(--t), background var(--t);
}
.action-btn:hover { color: var(--c-accent); background: var(--c-tag-bg); }

/* Theme icons */
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: block; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; border-radius: var(--r); flex-shrink: 0; color: var(--c-text2); }
.hamburger:hover { background: var(--c-tag-bg); }
.bar { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; margin-inline: auto; transition: transform .25s ease, opacity .25s ease; }
.hamburger.is-open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-open .bar:nth-child(2) { opacity: 0; }
.hamburger.is-open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search bar */
.header-search { border-top: 1px solid var(--c-border); padding-block: 1rem; background: var(--c-bg); animation: slideIn .18s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; }
.search-field {
    width: 100%; padding: .65rem 1rem;
    background: var(--c-bg2); border: 1.5px solid var(--c-border); border-radius: var(--r);
    color: var(--c-text); font-size: .9rem; font-family: var(--f-body);
    transition: border-color var(--t), box-shadow var(--t);
}
.search-field:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(99,91,255,.12); }
.search-submit { padding: .65rem 1.4rem; background: var(--grad); color: #fff; border-radius: var(--r); font-size: .875rem; font-weight: 600; box-shadow: var(--sh-p); transition: opacity var(--t), transform var(--t); }
.search-submit:hover { opacity: .9; transform: translateY(-1px); }

.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); z-index: 99; display: none; }
.mobile-nav-overlay.is-visible { display: block; }

.reading-progress { position: fixed; top: var(--hd-h); right: 0; left: 0; height: 3px; background: var(--grad); transform-origin: right; transform: scaleX(0); transition: transform .1s linear; z-index: 198; border-radius: 0 var(--r-full) var(--r-full) 0; }

/* ══════════════════════════════════════
   HERO — split layout agency style
   ══════════════════════════════════════ */
.nb-hero {
    position: relative;
    overflow: hidden;
    background: var(--c-bg);
}

/* Mesh gradient blobs */
.hero-mesh {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}
.hero-mesh::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(ellipse, rgba(99,91,255,.16) 0%, transparent 65%);
    top: -150px; right: -100px;
    animation: meshFloat 10s ease-in-out infinite alternate;
    border-radius: 50%;
}
.hero-mesh::after {
    content: '';
    position: absolute;
    width: 550px; height: 550px;
    background: radial-gradient(ellipse, rgba(236,72,153,.12) 0%, transparent 65%);
    bottom: -120px; left: 5%;
    animation: meshFloat 13s ease-in-out infinite alternate-reverse;
    border-radius: 50%;
}
.hero-mesh-cyan {
    position: absolute;
    width: 380px; height: 380px;
    background: radial-gradient(ellipse, rgba(6,182,212,.09) 0%, transparent 65%);
    top: 20%; left: 35%;
    animation: meshFloat 16s ease-in-out infinite;
    border-radius: 50%;
}
@keyframes meshFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(50px, 35px) scale(1.08); }
}

/* Grid lines */
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(99,91,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,91,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Split layout */
.hero-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-block: 5rem 3rem;
    min-height: 82vh;
}

/* Left: copy */
.hero-copy { display: flex; flex-direction: column; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .3rem .95rem;
    background: var(--grad-soft);
    border: 1px solid rgba(99,91,255,.2);
    border-radius: var(--r-full);
    font-size: .78rem; font-weight: 700;
    color: var(--c-accent);
    margin-bottom: 1.75rem;
    align-self: flex-start;
}
.eyebrow-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--grad);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,91,255,.4); }
    50%       { box-shadow: 0 0 0 6px rgba(99,91,255,0); }
}

.hero-title {
    font-size: clamp(2.8rem, 4.5vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
    color: var(--c-text);
    margin-bottom: 1.4rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--c-text2);
    line-height: 1.85;
    margin-bottom: 2.25rem;
    max-width: 480px;
}

.hero-actions { display: flex; gap: .875rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* Trust checkmarks */
.hero-trust {
    display: flex; flex-direction: column; gap: .5rem;
}
.trust-item {
    display: flex; align-items: center; gap: .5rem;
    font-size: .84rem; color: var(--c-text3); font-weight: 500;
}
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* Right: visual (code window) */
.hero-visual {
    position: relative;
    display: flex; flex-direction: column; gap: 1rem;
}

/* Code window */
.code-window {
    background: #0d1117;
    border-radius: var(--r-2xl);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 32px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(99,91,255,.15);
    overflow: hidden;
    direction: ltr; text-align: left;
}
.code-titlebar {
    display: flex; align-items: center; gap: .45rem;
    padding: .85rem 1.1rem;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.code-dot {
    width: 11px; height: 11px; border-radius: 50; flex-shrink: 0;
    border-radius: 50%;
}
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green  { background: #28ca41; }
.code-filename {
    margin-right: auto; font-size: .75rem;
    font-family: var(--f-mono); color: rgba(255,255,255,.35);
}
.code-body { margin: 0; padding: 1.5rem 1.75rem; overflow-x: auto; }
.code-body code {
    font-family: var(--f-mono); font-size: .875rem;
    line-height: 1.85; color: #c9d1d9;
    display: block;
}
/* Syntax highlight colors */
.t-comment { color: #6e7681; }
.t-keyword  { color: #ff7b72; }
.t-var      { color: #79c0ff; }
.t-fn       { color: #d2a8ff; }
.t-prop     { color: #79c0ff; }
.t-str      { color: #a5d6ff; }
.t-num      { color: #f2cc60; }
.t-op       { color: #c9d1d9; }

/* Floating badge cards */
.hero-badge-card {
    position: absolute;
    display: flex; align-items: center; gap: .7rem;
    padding: .7rem 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    min-width: 170px;
    animation: badgeFloat 6s ease-in-out infinite;
}
.hero-badge-1 { bottom: -12px; right: -20px; animation-delay: 0s; }
.hero-badge-2 { top: 20px;    left: -30px;  animation-delay: 3s; }
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.badge-card-icon { font-size: 1.4rem; flex-shrink: 0; }
.badge-card-title { font-size: .82rem; font-weight: 700; color: var(--c-text); line-height: 1.2; }
.badge-card-sub   { font-size: .72rem; color: var(--c-text3); }

/* Stats strip below hero split */
.hero-stats-strip {
    position: relative; z-index: 2;
    border-top: 1px solid var(--c-border2);
    background: var(--c-bg);
}
.hero-stats {
    display: flex; justify-content: center; gap: 0;
    flex-wrap: wrap;
}
.stat-item {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    padding: 1.75rem 3rem;
    border-left: 1px solid var(--c-border2);
}
.stat-item:last-child { border-left: none; }
.stat-num  { font-size: 2.1rem; font-weight: 900; letter-spacing: -.04em; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label{ font-size: .78rem; color: var(--c-text3); font-weight: 600; letter-spacing: .01em; }

/* ══════════════════════════════════════
   SERVICES — horizontal rows
   ══════════════════════════════════════ */
.services-section {
    padding-block: 6rem;
    background: var(--c-bg2);
}

.service-rows { display: flex; flex-direction: column; }
.service-row {
    display: grid;
    grid-template-columns: 60px 56px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem 1.75rem;
    border-bottom: 1px solid var(--c-border2);
    border-radius: var(--r-xl);
    transition: background var(--t), box-shadow var(--t);
    cursor: default;
}
.service-row:last-child { border-bottom: none; }
.service-row:hover {
    background: var(--c-surface);
    box-shadow: var(--sh);
}
.service-row:hover .sr-num { -webkit-text-fill-color: transparent; }
.service-row:hover .sr-arrow { opacity: 1; transform: translateX(-4px); }

.sr-num {
    font-size: 2.5rem; font-weight: 900; font-family: var(--f-mono);
    color: var(--c-border);
    letter-spacing: -.05em; line-height: 1;
    transition: color var(--t), -webkit-text-fill-color var(--t);
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: var(--c-border);
}
.service-row:hover .sr-num { -webkit-text-fill-color: transparent; }

.sr-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: var(--r-lg);
    color: #fff; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(99,91,255,.2);
}

.sr-body { min-width: 0; }
.sr-title { font-size: 1.2rem; font-weight: 800; color: var(--c-text); letter-spacing: -.02em; margin-bottom: .45rem; }
.sr-desc  { font-size: .875rem; color: var(--c-text2); line-height: 1.7; margin-bottom: .75rem; }
.sr-tags  { display: flex; flex-wrap: wrap; gap: .35rem; }
.sr-tags span {
    font-size: .72rem; font-weight: 700; font-family: var(--f-mono);
    padding: .18rem .6rem;
    background: var(--c-bg3); color: var(--c-text2);
    border: 1px solid var(--c-border2); border-radius: var(--r-full);
    transition: all var(--t);
}
.service-row:hover .sr-tags span { background: var(--c-tag-bg); color: var(--c-accent); border-color: rgba(99,91,255,.2); }

.sr-arrow {
    color: var(--c-accent); opacity: 0;
    transition: opacity var(--t), transform var(--t);
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   PROCESS SECTION
   ══════════════════════════════════════ */
.process-section {
    padding-block: 6rem;
    background: var(--c-bg);
}
.process-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    margin-top: .5rem;
}
.process-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border2);
    border-radius: var(--r-2xl);
    padding: 2rem;
    transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
}
.process-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(99,91,255,.2); }
.process-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: var(--grad);
    color: #fff; font-size: 1.1rem; font-weight: 900;
    border-radius: var(--r-lg);
    margin-bottom: 1.1rem;
    box-shadow: var(--sh-p);
}
.process-title { font-size: 1.1rem; font-weight: 800; color: var(--c-text); margin-bottom: .6rem; }
.process-desc  { font-size: .875rem; color: var(--c-text2); line-height: 1.75; }
.process-connector {
    align-self: center;
    margin-top: -2rem;
    display: flex; align-items: center;
    padding-inline: 1rem;
    color: var(--c-border);
}
.process-connector::before {
    content: '';
    display: block;
    width: 40px; height: 2px;
    background: var(--grad);
    border-radius: 2px;
    opacity: .4;
}

/* ══════════════════════════════════════
   TECH STACK STRIP
   ══════════════════════════════════════ */
.techstack-section {
    padding-block: 3rem 4rem;
    background: var(--c-bg2);
    border-top: 1px solid var(--c-border2);
    border-bottom: 1px solid var(--c-border2);
}
.techstack-label {
    text-align: center;
    font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--c-text3); margin-bottom: 1.5rem;
}
.techstack-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem;
}
.tech-pill {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem 1rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border2);
    border-radius: var(--r-full);
    font-size: .82rem; font-weight: 700; font-family: var(--f-mono);
    color: var(--c-text2);
    transition: all var(--t);
}
.tech-pill:hover {
    border-color: var(--tc, rgba(99,91,255,.3));
    background: color-mix(in srgb, var(--tc, #635BFF) 8%, var(--c-surface));
    color: var(--c-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--tc, #635BFF) 20%, transparent);
}
.tech-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--tc, #635BFF);
    flex-shrink: 0;
    opacity: .75;
}

/* No posts message */
.no-posts-msg { text-align: center; padding: 3rem; color: var(--c-text3); }

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .72rem 1.6rem;
    border-radius: var(--r);
    font-size: .9rem; font-weight: 700; font-family: var(--f-body);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap;
    letter-spacing: -.01em;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--sh-p); }
.btn-primary:hover { color: #fff; opacity: .88; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(99,91,255,.4); }
.btn-outline { background: transparent; color: var(--c-text2); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-tag-bg); }
.btn-ghost  { background: var(--c-tag-bg); color: var(--c-accent); border-color: transparent; }
.btn-ghost:hover { background: rgba(99,91,255,.14); color: var(--c-accent); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg { padding: .85rem 2.25rem; font-size: 1rem; border-radius: var(--r-lg); }

/* ══════════════════════════════════════
   TAGS
   ══════════════════════════════════════ */
.nb-tag {
    display: inline-flex; align-items: center;
    padding: .2rem .7rem;
    background: var(--c-tag-bg); color: var(--c-tag);
    font-size: .73rem; font-weight: 700;
    border-radius: var(--r-full);
    border: 1px solid rgba(99,91,255,.15);
    line-height: 1.6;
    transition: all var(--t);
}
.nb-tag:hover { background: var(--grad); color: #fff; border-color: transparent; }
.tag-sm { font-size: .68rem; padding: .12rem .55rem; }

/* ══════════════════════════════════════
   DIVIDER WAVE
   ══════════════════════════════════════ */
.section-divider {
    overflow: hidden;
    line-height: 0;
    margin-bottom: -2px;
}
.section-divider svg { display: block; }

/* ══════════════════════════════════════
   FEATURES — BENTO GRID
   ══════════════════════════════════════ */
.features-section {
    padding-block: 6rem;
    background: var(--c-bg2);
    position: relative;
}
.features-section::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-soft);
    pointer-events: none;
}

.section-header { text-align: center; margin-bottom: 3.5rem; position: relative; z-index: 1; }
.section-eyebrow {
    display: inline-block;
    font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    background: var(--grad-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: .75rem;
}
.section-title    { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--c-text); letter-spacing: -.03em; line-height: 1.2; }
.section-subtitle { font-size: .95rem; color: var(--c-text2); margin-top: .6rem; max-width: 500px; margin-inline: auto; }

/* Bento layout */
.bento-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.25rem;
    position: relative; z-index: 1;
}
.bento-card:nth-child(1) { grid-row: 1 / 3; }
.bento-card:nth-child(2) { grid-column: 2; }
.bento-card:nth-child(3) { grid-column: 2; }
.bento-card:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }

.bento-card {
    position: relative;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-2xl);
    padding: 2rem;
    overflow: hidden;
    transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
}
/* Corner gradient shine */
.bento-card::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity var(--t-slow);
    border-radius: inherit;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--sh-glow); border-color: rgba(99,91,255,.25); }
.bento-card:hover::before { opacity: 1; }

.bento-icon {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px;
    border-radius: var(--r-lg);
    background: var(--grad);
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: var(--sh-p);
}
.bento-title { position: relative; z-index: 1; font-size: 1.15rem; font-weight: 700; color: var(--c-text); margin-bottom: .5rem; }
.bento-desc  { position: relative; z-index: 1; font-size: .9rem; color: var(--c-text2); line-height: 1.75; }

/* Big card extras */
.bento-card:nth-child(1) .bento-title { font-size: 1.5rem; }
.bento-card:nth-child(1) .bento-number {
    position: absolute; bottom: 1.5rem; left: 1.5rem;
    font-size: 6rem; font-weight: 900; line-height: 1;
    letter-spacing: -.05em;
    background: var(--grad);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    opacity: .12;
    font-family: var(--f-mono);
    pointer-events: none;
}
.bento-card:nth-child(4) { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.bento-card:nth-child(4) .bento-icon { flex-shrink: 0; }
.bento-card:nth-child(4) .bento-body { flex: 1; min-width: 200px; }

/* ══════════════════════════════════════
   LATEST POSTS SECTION
   ══════════════════════════════════════ */
.latest-posts-section { padding-block: 6rem; }

.posts-section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 3rem; gap: 1rem; flex-wrap: wrap;
}

/* ══════════════════════════════════════
   POST CARDS — PREMIUM
   ══════════════════════════════════════ */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.post-card {
    display: flex; flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-border2);
    border-radius: var(--r-2xl);
    overflow: hidden;
    transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
    will-change: transform;
    box-shadow: var(--sh-sm);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(99,91,255,.2); }

/* Thumbnail wrap — keeps consistent aspect ratio for ALL cards */
.card-thumb-wrap {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--c-bg2);
}
.card-thumb { width: 100%; height: 100%; display: block; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.post-card:hover .card-thumb img { transform: scale(1.07); }

/* No thumbnail placeholder */
.card-no-thumb { width: 100%; height: 100%; }
.card-no-thumb-bg {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem; transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.post-card:hover .card-no-thumb-bg { transform: scale(1.05); }
.card-no-thumb-icon { font-size: 2.25rem; line-height: 1; }
.card-no-thumb-label {
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.75); padding: .2rem .6rem;
    background: rgba(255,255,255,.15); border-radius: var(--r-full);
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem; gap: .6rem; }
.card-cats { display: flex; flex-wrap: wrap; gap: .3rem; }
.card-title { font-size: .975rem; font-weight: 700; line-height: 1.45; }
.card-title a { color: var(--c-text); transition: color var(--t); }
.card-title a:hover { color: var(--c-accent); }
.card-excerpt { font-size: .85rem; color: var(--c-text2); line-height: 1.75; flex: 1; }

.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: .85rem;
    border-top: 1px solid var(--c-border2);
    margin-top: auto;
}
.card-meta { display: flex; align-items: center; gap: .4rem; font-size: .73rem; color: var(--c-text3); }
.meta-dot  { width: 3px; height: 3px; background: var(--c-text3); border-radius: 50%; flex-shrink: 0; }
.card-more {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .75rem; font-weight: 700; color: var(--c-accent);
    white-space: nowrap;
}
.card-more svg { transition: transform var(--t); }
.card-more:hover svg { transform: translateX(-3px); }
.card-more:hover { color: var(--c-accent2); }

/* Pagination */
.nav-links { display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; padding-block: 2rem; }
.nav-links .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding-inline: .55rem;
    border: 1.5px solid var(--c-border); border-radius: var(--r);
    font-size: .875rem; color: var(--c-text2); transition: all var(--t);
}
.nav-links .page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-tag-bg); }
.nav-links .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--sh-p); }

/* ══════════════════════════════════════
   CTA SECTION — Rich layout
   ══════════════════════════════════════ */
.cta-section { padding-block: 4rem 6rem; }

.cta-box {
    position: relative;
    background: var(--grad-cta);
    border-radius: var(--r-3xl);
    padding: 4rem;
    color: #fff;
    overflow: hidden;
}

/* Dot pattern overlay */
.cta-box::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: .35;
}
/* Glow orbs */
.cta-box::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,.1), transparent 65%);
    top: -150px; left: -80px; border-radius: 50%;
    pointer-events: none;
}

/* CTA floating orbs */
.cta-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.cta-orb-1 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
    bottom: -80px; right: -60px;
    animation: meshFloat 12s ease-in-out infinite alternate;
}
.cta-orb-2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,200,255,.12), transparent 70%);
    top: 10%; left: 40%;
    animation: meshFloat 9s ease-in-out infinite;
}

/* Two-column inner layout */
.cta-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr auto;
    gap: 3rem; align-items: center;
}

.cta-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .28rem .9rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--r-full);
    font-size: .78rem; font-weight: 700;
    backdrop-filter: blur(8px);
    margin-bottom: 1.25rem;
}
.cta-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #fff;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800; letter-spacing: -.04em; line-height: 1.15;
    margin-bottom: 1rem;
}
.cta-title-accent {
    opacity: .85; font-style: italic;
}
.cta-desc {
    font-size: 1.05rem; opacity: .88; line-height: 1.8;
    max-width: 480px; margin-bottom: 2rem;
}
.cta-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.cta-box .btn-light {
    background: #fff; color: var(--p2); font-weight: 800;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.cta-box .btn-light:hover { color: var(--p2); background: #f3f4f6; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.cta-box .btn-ghost-white {
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff; backdrop-filter: blur(8px);
}
.cta-box .btn-ghost-white:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }

/* Proof cards (right column) */
.cta-proof { display: flex; flex-direction: column; gap: 1rem; min-width: 230px; }
.proof-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--r-xl);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(12px);
    text-align: center;
}
.proof-card-full { text-align: right; }
.proof-num {
    font-size: 2.5rem; font-weight: 900; letter-spacing: -.04em;
    line-height: 1; margin-bottom: .25rem;
}
.proof-num span { font-size: 1.5rem; opacity: .8; }
.proof-label { font-size: .8rem; opacity: .8; font-weight: 600; }
.proof-stack-label { font-size: .75rem; opacity: .7; display: block; margin-bottom: .7rem; font-weight: 600; }
.proof-techs {
    display: flex; flex-wrap: wrap; gap: .4rem;
}
.proof-techs span {
    padding: .2rem .6rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--r-full);
    font-size: .73rem; font-weight: 700; font-family: var(--f-mono);
}

/* ══════════════════════════════════════
   ARCHIVE HERO
   ══════════════════════════════════════ */
.archive-hero {
    position: relative;
    background: linear-gradient(135deg, #09072b 0%, #160b40 50%, #0a1540 100%);
    padding-top: calc(var(--hd-h) + 3rem);
    padding-bottom: 3rem;
    overflow: hidden;
}
.archive-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 80% at 30% -10%, rgba(99,91,255,.3) 0%, transparent 65%);
    pointer-events: none;
}
.archive-hero-inner { position: relative; z-index: 2; }

/* breadcrumb in dark hero */
.archive-hero .nb-breadcrumb { margin-bottom: 1.25rem; }
.archive-hero .nb-breadcrumb,
.archive-hero .nb-breadcrumb a,
.archive-hero .nb-breadcrumb .sep { color: rgba(255,255,255,.5); }
.archive-hero .nb-breadcrumb a:hover { color: #fff; }

.arch-eyebrow { margin-bottom: .75rem; }
.arch-eyebrow-badge {
    display: inline-flex; align-items: center;
    padding: .25rem .75rem; border-radius: var(--r-full);
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(99,91,255,.25); color: #a5b4fc;
    border: 1px solid rgba(99,91,255,.35);
}
.archive-hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900; letter-spacing: -.04em; line-height: 1.15;
    color: #fff; margin-bottom: .75rem;
}
.archive-hero-desc {
    font-size: 1rem; color: rgba(255,255,255,.6);
    max-width: 640px; line-height: 1.7; margin-bottom: 1rem;
}
.archive-hero-meta { display: flex; align-items: center; gap: 1rem; }
.arch-meta-count {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .8rem; color: rgba(255,255,255,.45);
}
.arch-meta-count svg { opacity: .6; }

/* ══════════════════════════════════════
   CONTENT LAYOUT (archive pages)
   ══════════════════════════════════════ */
.archive-main { padding-top: 0; }
.archive-layout { display: grid; grid-template-columns: 1fr var(--sb-w); gap: 2.5rem; align-items: start; padding-block: 3rem; }

/* keep old .content-layout for search.php etc */
.content-layout { display: grid; grid-template-columns: 1fr var(--sb-w); gap: 2.5rem; align-items: start; padding-block: 3rem; }
.posts-area { min-width: 0; }
.archive-header { margin-bottom: 2.25rem; }
.archive-title { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--c-text); }
.archive-desc  { margin-top: .5rem; color: var(--c-text2); font-size: .925rem; }
.search-term   { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Archive grid: 2-col inside sidebar layout, 3-col when no sidebar */
.archive-layout .posts-grid { grid-template-columns: repeat(2, 1fr); }
.content-layout .posts-grid { grid-template-columns: repeat(2, 1fr); }

/* ── No sidebar variant — full-width ── */
.archive-layout.no-sidebar { grid-template-columns: 1fr; }
.single-layout.no-sidebar  { grid-template-columns: 1fr; }
.archive-layout.no-sidebar .posts-grid { grid-template-columns: repeat(3, 1fr); }

/* ── Single post, no sidebar: limit reading width ── */
.single-layout.no-sidebar .single-article { max-width: 800px; margin-inline: auto; width: 100%; }

/* No results */
.no-posts-found {
    text-align: center; padding: 4rem 2rem;
    background: var(--c-surface); border: 1px dashed var(--c-border2);
    border-radius: var(--r-2xl);
}
.no-posts-icon { font-size: 3rem; margin-bottom: 1rem; }
.no-posts-found h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.no-posts-found p  { color: var(--c-text2); font-size: .9rem; margin-bottom: 1.5rem; }

/* ══════════════════════════════════════
   SINGLE POST — HERO HEADER
   ══════════════════════════════════════ */
.single-main { padding-top: 0; }

/* Hero wrapper */
.single-hero {
    position: relative;
    background: linear-gradient(135deg, #09072b 0%, #1a0e42 50%, #0c1642 100%);
    padding-top: calc(var(--hd-h) + 3.5rem);
    padding-bottom: 4rem;
    overflow: hidden;
}
.single-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(99,91,255,.25) 0%, transparent 70%);
    pointer-events: none;
}

/* Optional featured image */
.single-hero-img {
    position: absolute; inset: 0;
}
.single-hero-img img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.single-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(9,7,43,.65) 0%,
        rgba(9,7,43,.78) 40%,
        rgba(9,7,43,.95) 100%
    );
}

/* Hero content (over the image) */
.single-hero-content {
    position: relative; z-index: 2;
    max-width: 860px;
}

/* Breadcrumb inside hero → white text */
.single-hero .nb-breadcrumb { margin-bottom: 1.5rem; }
.single-hero .nb-breadcrumb,
.single-hero .nb-breadcrumb a,
.single-hero .nb-breadcrumb .sep { color: rgba(255,255,255,.55); }
.single-hero .nb-breadcrumb a:hover { color: #fff; }

/* Category tags */
.single-hero .entry-cats { margin-bottom: 1.1rem; }
.single-hero .nb-tag {
    background: rgba(255,255,255,.12);
    color: #fff; border-color: rgba(255,255,255,.2);
}
.single-hero .nb-tag:hover { background: rgba(255,255,255,.22); }

/* Post title */
.single-title {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 900; line-height: 1.15; letter-spacing: -.04em;
    color: #fff; margin-bottom: 1.4rem;
}

/* Meta bar */
.single-meta {
    display: flex; align-items: center; gap: .9rem;
    flex-wrap: wrap; font-size: .84rem; color: rgba(255,255,255,.6);
}
.single-meta-item { display: flex; align-items: center; gap: .4rem; }
.single-meta-item svg { opacity: .7; flex-shrink: 0; }
.single-meta-sep {
    width: 3px; height: 3px; border-radius: 50%;
    background: rgba(255,255,255,.3); flex-shrink: 0;
}
.meta-avatar { border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }

/* ── Page hero (page.php with featured image) ── */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, #09072b 0%, #1a0e42 50%, #0c1642 100%);
    padding-top: calc(var(--hd-h) + 3.5rem);
    padding-bottom: 3.5rem;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
}
.page-hero-img {
    position: absolute; inset: 0;
}
.page-hero-img img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(9,7,43,.5) 0%,
        rgba(9,7,43,.72) 45%,
        rgba(9,7,43,.93) 100%
    );
}
.page-hero-content {
    position: relative; z-index: 2;
}
.page-hero .nb-breadcrumb { margin-bottom: 1rem; }
.page-hero .nb-breadcrumb,
.page-hero .nb-breadcrumb a,
.page-hero .nb-breadcrumb .sep { color: rgba(255,255,255,.55); }
.page-hero .nb-breadcrumb a:hover { color: #fff; }
.page-hero-title {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    font-weight: 900; line-height: 1.2; letter-spacing: -.04em;
    color: #fff; margin: 0;
}

/* ── Single content + sidebar grid ── */
.single-layout {
    display: grid;
    grid-template-columns: 1fr var(--sb-w);
    gap: 2.5rem;
    align-items: start;
    padding-block: 3rem;
}

/* ── Article body ── */
.single-article { min-width: 0; }

/* Old entry-header kept for archive cards */
.entry-header { padding-bottom: 2rem; border-bottom: 1px solid var(--c-border2); margin-bottom: 2.5rem; }
.entry-cats { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.entry-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800; line-height: 1.18; letter-spacing: -.03em; color: var(--c-text); margin-bottom: 1.25rem;
}

/* ── Legacy shortcode rendering ── */
.sc-message {
    padding: 1rem 1.4rem; border-radius: var(--r-lg);
    border-inline-start: 4px solid currentColor;
    margin-block: 1.25rem; font-size: .95rem; line-height: 1.7;
    display: flex; align-items: flex-start; gap: .75rem;
}
.sc-message.sc-blue   { background: #eff6ff; color: #1d4ed8; }
.sc-message.sc-green  { background: #f0fdf4; color: #15803d; }
.sc-message.sc-yellow { background: #fefce8; color: #a16207; }
.sc-message.sc-red    { background: #fef2f2; color: #b91c1c; }
.sc-message.sc-gray   { background: var(--c-bg2); color: var(--c-text2); }
[data-theme="dark"] .sc-message.sc-blue   { background: rgba(29,78,216,.15); }
[data-theme="dark"] .sc-message.sc-green  { background: rgba(21,128,61,.15); }
[data-theme="dark"] .sc-message.sc-yellow { background: rgba(161,98,7,.15); }
[data-theme="dark"] .sc-message.sc-red    { background: rgba(185,28,28,.15); }
[data-theme="dark"] .sc-message.sc-gray   { background: var(--c-bg2); }

.sc-button {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.25rem; border-radius: var(--r-full);
    font-size: .9rem; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: all var(--t); text-decoration: none;
}
.sc-button.sc-blue   { background: var(--c-accent); color: #fff; }
.sc-button.sc-blue:hover { opacity: .88; text-decoration: none; }
.sc-button.sc-green  { background: #16a34a; color: #fff; }
.sc-button.sc-red    { background: #dc2626; color: #fff; }
.sc-button.sc-white  { background: #fff; color: var(--c-accent); border-color: var(--c-border); }

.sc-cols { display: grid; gap: 1.5rem; margin-block: 1.25rem; }
.sc-cols.sc-2cols { grid-template-columns: 1fr 1fr; }
.sc-cols.sc-3cols { grid-template-columns: 1fr 1fr 1fr; }
.sc-col {}

.sc-highlight {
    background: linear-gradient(90deg, rgba(99,91,255,.15), rgba(236,72,153,.1));
    border-radius: 3px; padding: .05em .25em;
}
.sc-divider { border: none; border-top: 1px solid var(--c-border2); margin-block: 2rem; }
.sc-icon { display: inline-flex; vertical-align: middle; margin-inline-end: .3em; }

.sc-tabs { display: flex; flex-direction: column; gap: .5rem; margin-block: 1.25rem; }
.sc-tab { border: 1px solid var(--c-border2); border-radius: var(--r-lg); overflow: hidden; }
.sc-tab-title {
    padding: .85rem 1.25rem; font-weight: 600; font-size: .95rem;
    cursor: pointer; list-style: none; color: var(--c-text);
    background: var(--c-bg2); transition: background var(--t);
}
.sc-tab-title:hover { background: var(--c-bg3); }
.sc-tab[open] .sc-tab-title { color: var(--c-accent); border-bottom: 1px solid var(--c-border2); }
.sc-tab-body { padding: 1.25rem; }

.sc-section { padding-block: 2rem; margin-block: 1.25rem; }
.entry-meta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; font-size: .84rem; color: var(--c-text3); }
.entry-meta > span { display: flex; align-items: center; gap: .4rem; }

.entry-thumbnail { margin-bottom: 2.5rem; border-radius: var(--r-2xl); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--sh-lg); }
.entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.entry-content { font-size: 1.05rem; line-height: 1.85; color: var(--c-text); }
.entry-content > * + * { margin-top: 1.35rem; }
/* Clearfix — contains internal floats (alignleft/alignright images) */
.entry-content::after { content: ''; display: table; clear: both; }

.entry-content h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.025em; margin-top: 2.5rem; clear: both; }
.entry-content h3 { font-size: 1.3rem;  font-weight: 700; margin-top: 2rem;   clear: both; }
.entry-content h4 { font-size: 1.1rem;  font-weight: 700; margin-top: 1.5rem; clear: both; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--c-text); line-height: 1.3; }
.entry-content a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--c-accent2); }
/* display: flow-root creates BFC — list stays beside/below float, never overlaps */
.entry-content ul { list-style: disc;    padding-inline-start: 1.5rem; display: flow-root; }
.entry-content ol { list-style: decimal; padding-inline-start: 1.5rem; display: flow-root; }
.entry-content li { margin-bottom: .4rem; display: list-item; }
.entry-content blockquote {
    padding: 1.25rem 1.5rem;
    border-inline-start: 3px solid var(--c-accent);
    background: var(--c-tag-bg); border-radius: 0 var(--r-lg) var(--r-lg) 0;
    color: var(--c-text2);
}
.entry-content code {
    font-family: var(--f-mono); font-size: .88em;
    background: var(--c-code-bg); color: var(--c-code-text);
    padding: .15em .45em; border-radius: var(--r-xs);
    border: 1px solid var(--c-border2);
}
.entry-content pre {
    position: relative;
    background: #0d1117; border-radius: var(--r-xl);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: var(--sh-lg); overflow: hidden;
}
.entry-content pre code {
    display: block; padding: 1.5rem 1.75rem; overflow-x: auto;
    font-size: .875rem; line-height: 1.8; color: #c9d1d9;
    background: none; border: none; direction: ltr; text-align: left;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.entry-content th, .entry-content td { padding: .7rem 1rem; border: 1px solid var(--c-border2); text-align: right; }
.entry-content th { background: var(--c-bg2); font-weight: 700; }
.entry-content tr:nth-child(even) { background: var(--c-bg2); }
/* Images in content: styled, but not inside floated captions (they have their own container) */
.entry-content img { border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.entry-content .wp-caption img,
.entry-content figure img { border-radius: var(--r-lg); box-shadow: none; }
.entry-content figure { max-width: 100%; }

.entry-footer { padding-top: 1.75rem; border-top: 1px solid var(--c-border2); margin-top: 2.5rem; }
.entry-tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.author-bio {
    display: flex; gap: 1.5rem; align-items: flex-start;
    background: var(--c-bg2); border: 1px solid var(--c-border);
    border-radius: var(--r-2xl); padding: 1.75rem; margin-top: 2.5rem;
}
.author-avatar { border-radius: 50%; flex-shrink: 0; }
.author-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.author-desc { font-size: .875rem; color: var(--c-text2); line-height: 1.75; }

.post-navigation { margin-top: 2.5rem; }
.post-navigation .nav-links { justify-content: space-between; padding: 0; gap: 1rem; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1; max-width: 48%; }
.post-navigation a {
    display: flex; flex-direction: column; gap: .3rem;
    background: var(--c-surface); border: 1px solid var(--c-border2);
    border-radius: var(--r-xl); padding: 1.1rem 1.4rem;
    color: var(--c-text); transition: all var(--t);
}
.post-navigation a:hover { border-color: var(--c-accent); box-shadow: var(--sh-glow); transform: translateY(-2px); color: var(--c-text); }
.nav-label { font-size: .72rem; font-weight: 700; color: var(--c-text3); text-transform: uppercase; letter-spacing: .06em; }
.nav-title  { font-size: .875rem; font-weight: 600; }

/* Copy btn */
.copy-btn {
    position: absolute; top: .75rem; left: .75rem;
    padding: .2rem .65rem;
    background: rgba(255,255,255,.07); color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-xs);
    font-size: .72rem; font-family: var(--f-body);
    transition: all var(--t); cursor: pointer;
}
.copy-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ══════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════ */
.widget-area { position: sticky; top: calc(var(--hd-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.widget { background: var(--c-surface); border: 1px solid var(--c-border2); border-radius: var(--r-2xl); padding: 1.4rem; transition: border-color var(--t); }
.widget:hover { border-color: rgba(99,91,255,.2); }
.widget-title {
    font-size: .875rem; font-weight: 800; color: var(--c-text);
    padding-bottom: .75rem; margin-bottom: 1rem;
    border-bottom: 2px solid transparent;
    border-image: var(--grad) 1; display: block;
}
.widget ul { display: flex; flex-direction: column; }
.widget ul li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .5rem 0; font-size: .875rem; color: var(--c-text2);
    border-bottom: 1px solid var(--c-border2); transition: color var(--t);
}
.widget ul li:last-child a { border-bottom: none; }
.widget ul li a:hover { color: var(--c-accent); }
.widget ul li a::before { content: '‹'; color: var(--c-text3); font-size: .8rem; transition: color var(--t); }
.widget ul li a:hover::before { color: var(--c-accent); }

/* ══════════════════════════════════════
   COMMENTS
   ══════════════════════════════════════ */
.comments-area { margin-top: 3.5rem; }
.comments-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 2rem; letter-spacing: -.025em; }
.comment-list { display: flex; flex-direction: column; gap: 1.25rem; }
.nb-comment { list-style: none; }
.comment-body { display: flex; gap: 1.1rem; background: var(--c-surface); border: 1px solid var(--c-border2); border-radius: var(--r-2xl); padding: 1.4rem; transition: border-color var(--t); }
.comment-body:hover { border-color: rgba(99,91,255,.2); }
.comment-avatar { border-radius: 50%; flex-shrink: 0; }
.comment-content { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.comment-author { font-size: .875rem; font-weight: 700; }
.comment-date { font-size: .74rem; color: var(--c-text3); }
.comment-awaiting { font-size: .72rem; color: var(--c-text3); background: var(--c-bg2); padding: .12rem .5rem; border-radius: var(--r-full); }
.comment-text { font-size: .875rem; color: var(--c-text2); line-height: 1.75; }
.comment-reply { margin-top: .6rem; }
.comment-reply-link { font-size: .78rem; font-weight: 700; color: var(--c-accent); }
.children { margin-inline-start: 2rem; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.comment-form { margin-top: 2.5rem; }
.comment-form h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -.025em; }
.nb-form p { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.nb-form label { font-size: .84rem; font-weight: 700; color: var(--c-text2); }
.nb-form input[type="text"], .nb-form input[type="email"], .nb-form textarea {
    width: 100%; padding: .7rem 1rem;
    background: var(--c-bg2); border: 1.5px solid var(--c-border2);
    border-radius: var(--r); color: var(--c-text); font-size: .9rem; font-family: var(--f-body);
    transition: border-color var(--t), box-shadow var(--t);
}
.nb-form input:focus, .nb-form textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(99,91,255,.1); }
.nb-form textarea { resize: vertical; min-height: 130px; }

/* ══════════════════════════════════════
   FOOTER — Dark premium agency style
   ══════════════════════════════════════ */

/* Dark footer vars */
.site-footer {
    --ft-bg:        #060818;
    --ft-bg2:       #0c1128;
    --ft-border:    rgba(255,255,255,.07);
    --ft-text:      rgba(255,255,255,.9);
    --ft-text2:     rgba(255,255,255,.5);
    --ft-text3:     rgba(255,255,255,.28);
    --ft-accent:    #7C6FFF;
    background: var(--ft-bg);
    color: var(--ft-text);
    position: relative;
    margin-top: 0;
}
/* Gradient top line */
.site-footer::before {
    content: ''; position: absolute; top: 0; right: 0; left: 0;
    height: 2px; background: var(--grad);
}

/* ── Pre-footer CTA strip ── */
.footer-cta-strip {
    background: var(--ft-bg2);
    border-bottom: 1px solid var(--ft-border);
    padding-block: 2.5rem;
}
.footer-cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-cta-label {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ft-accent); margin-bottom: .35rem;
}
.footer-cta-title {
    font-size: 1.35rem; font-weight: 800; color: var(--ft-text);
    letter-spacing: -.025em; line-height: 1.25;
}
.footer-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }
.btn-outline-light {
    background: transparent; color: rgba(255,255,255,.7);
    border: 1.5px solid rgba(255,255,255,.2);
    padding: .72rem 1.6rem; border-radius: var(--r);
    font-size: .9rem; font-weight: 700; font-family: var(--f-body);
    display: inline-flex; align-items: center; gap: .5rem;
    transition: all var(--t); cursor: pointer;
}
.btn-outline-light:hover { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }

/* ── Main footer body ── */
.footer-body { padding-block: 4rem; border-bottom: 1px solid var(--ft-border); }
.footer-body-inner {
    display: grid;
    grid-template-columns: 240px 1fr 1fr 1fr;
    gap: 3rem; align-items: start;
}

/* Brand column */
.footer-brand-col { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: 1.1rem; font-weight: 800; color: var(--ft-text);
}
.footer-logo:hover { color: var(--ft-text); }
.footer-logo-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: var(--grad); color: #fff;
    border-radius: var(--r); font-size: .7rem;
    font-family: var(--f-mono); font-weight: 600;
    box-shadow: 0 4px 12px rgba(99,91,255,.4); flex-shrink: 0;
}
.footer-logo-name { letter-spacing: -.015em; }
.footer-brand-desc { font-size: .84rem; color: var(--ft-text2); line-height: 1.75; }

/* eNamad in footer */
.footer-enamad { margin-top: .25rem; }
.enamad-img { width: 62px; height: auto; display: block; border-radius: var(--r-sm); opacity: .9; transition: opacity var(--t); }
.enamad-img:hover { opacity: 1; }

/* Socials */
.footer-socials { display: flex; gap: .4rem; margin-top: .25rem; }
.footer-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: rgba(255,255,255,.06); color: var(--ft-text2);
    border: 1px solid var(--ft-border); border-radius: var(--r);
    transition: all var(--t);
}
.footer-social:hover {
    background: var(--grad); color: #fff;
    border-color: transparent; transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(99,91,255,.4);
}

/* Link columns */
.footer-link-col { display: flex; flex-direction: column; }
.footer-col-title {
    font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ft-text3); padding-bottom: .65rem; margin-bottom: .65rem;
    border-bottom: 1px solid var(--ft-border);
}
.footer-link-list { display: flex; flex-direction: column; }
.footer-link-list a {
    font-size: .85rem; color: var(--ft-text2);
    padding-block: .32rem;
    display: flex; align-items: center; justify-content: flex-start; gap: 0;
    transition: color var(--t), padding-right var(--t);
    direction: rtl;
}
.footer-link-list a:hover { color: #fff; padding-right: .35rem; }

/* New badge in footer */
.footer-badge-new {
    font-size: .62rem; font-weight: 800; letter-spacing: .04em;
    padding: .08rem .42rem; border-radius: var(--r-full);
    background: linear-gradient(135deg,#8B5CF6,#EC4899);
    color: #fff; margin-inline-start: .4rem; vertical-align: middle;
}

/* Contact list */
.footer-contact-list { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact-list li {
    display: flex; align-items: flex-start; gap: .5rem;
    font-size: .84rem; color: var(--ft-text2); line-height: 1.5;
}
.footer-contact-list svg { color: var(--ft-accent); flex-shrink: 0; margin-top: 3px; }
.footer-contact-list a { color: var(--ft-accent); transition: color var(--t); }
.footer-contact-list a:hover { color: #fff; }

/* Working hours */
.footer-hours { margin-top: 1.25rem; padding: 1rem; background: rgba(255,255,255,.04); border: 1px solid var(--ft-border); border-radius: var(--r-lg); }
.footer-hours-title { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ft-text3); margin-bottom: .4rem; }
.footer-hours-val { font-size: .84rem; color: var(--ft-text2); line-height: 1.7; }

/* ── Bottom bar ── */
.footer-bottom { padding-block: 1.1rem; }
.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.footer-copy { font-size: .75rem; color: var(--ft-text3); }
.footer-bottom-menu { display: flex; flex-direction: row-reverse; }
.footer-bottom-menu li a { font-size: .75rem; color: var(--ft-text3); padding: .15rem .55rem; transition: color var(--t); }
.footer-bottom-menu li a:hover { color: #fff; }
.footer-made { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--ft-text3); flex-shrink: 0; }
.footer-made-tech { color: var(--ft-accent); font-family: var(--f-mono); font-size: .7rem; }

/* Service badge */
.sr-badge {
    font-size: .62rem; font-weight: 800; letter-spacing: .04em;
    padding: .08rem .45rem; border-radius: var(--r-full);
    background: linear-gradient(135deg,#8B5CF6,#EC4899);
    color: #fff; margin-inline-start: .45rem; vertical-align: middle;
}
/* AI row glow accent */
.service-row-ai { position: relative; }
.service-row-ai::before {
    content: '';
    position: absolute; inset: 0; border-radius: var(--r-xl);
    background: linear-gradient(135deg, rgba(139,92,246,.05), rgba(236,72,153,.05));
    pointer-events: none;
}

/* Breadcrumb HTML */
.nb-breadcrumb { padding-block: .875rem; margin-bottom: 1.25rem; }
.breadcrumb-list {
    display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
    font-size: .8rem; color: var(--c-text3); list-style: none;
}
.breadcrumb-list a { color: var(--c-text3); transition: color var(--t); }
.breadcrumb-list a:hover { color: var(--c-accent); }
.breadcrumb-list .sep { color: var(--c-border); }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 1.75rem; left: 1.75rem;
    width: 44px; height: 44px;
    background: var(--grad); color: #fff;
    border-radius: var(--r-lg); box-shadow: var(--sh-p);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: all .35s ease; z-index: 90;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { box-shadow: 0 12px 32px rgba(99,91,255,.45); transform: translateY(-2px) !important; }

/* ══════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════ */
#nb-lightbox {
    position: fixed; inset: 0; z-index: 850;
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem;
    opacity: 0; visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
#nb-lightbox.is-open { opacity: 1; visibility: visible; }

.nb-lb-backdrop {
    position: absolute; inset: 0;
    background: rgba(4,4,20,.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nb-lb-close {
    position: fixed; top: 1.1rem; inset-inline-end: 1.1rem;
    width: 2.5rem; height: 2.5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .15s;
    z-index: 2;
}
.nb-lb-close:hover { background: rgba(255,255,255,.26); transform: scale(1.1); }

.nb-lb-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    max-width: min(92vw, 1200px);
    max-height: 92vh;
}

/* Loading spinner */
.nb-lb-spinner {
    width: 52px; height: 52px;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: rgba(255,255,255,.85);
    border-radius: 50%;
    animation: nb-lb-spin .7s linear infinite;
    display: none;
    flex-shrink: 0;
}
#nb-lightbox.is-loading .nb-lb-spinner { display: block; }
@keyframes nb-lb-spin { to { transform: rotate(360deg); } }

.nb-lb-img {
    max-width: 100%;
    max-height: calc(90vh - 3rem);
    object-fit: contain;
    border-radius: var(--r-xl, 16px);
    box-shadow: 0 40px 100px rgba(0,0,0,.75), 0 8px 24px rgba(0,0,0,.5);
    opacity: 0; transition: opacity .3s ease;
    display: block;
}
.nb-lb-img.nb-lb-ready { opacity: 1; }
#nb-lightbox.is-loading .nb-lb-img { opacity: 0; }

.nb-lb-caption {
    margin-top: .9rem;
    color: rgba(255,255,255,.55);
    font-size: .88rem; line-height: 1.5;
    text-align: center; max-width: 680px;
}

/* Zoom cursor on all wired-up images */
.entry-content img.nb-lb-trigger { cursor: zoom-in; }

/* ══════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════ */
.error-404 { text-align: center; padding-block: 8rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.error-code { font-size: 9rem; font-weight: 900; font-family: var(--f-mono); line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -.05em; }
.error-title { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.error-desc  { color: var(--c-text2); max-width: 400px; }
.error-search { margin-top: 2rem; width: 100%; max-width: 460px; }

/* No results */
.no-results { text-align: center; padding-block: 5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.no-results-icon { color: var(--c-border); }
.no-results-title { font-size: 1.25rem; font-weight: 700; }
.no-results-desc  { color: var(--c-text2); }
.no-results .search-form { margin-top: .5rem; max-width: 440px; }

/* ══════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════ */
.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ══════════════════════════════════════
   WP HELPERS
   ══════════════════════════════════════ */
/* ── WordPress image alignment — RTL ── */
.alignleft,  .entry-content .alignleft,  .wp-caption.alignleft  {
    float: right;
    margin: 0 0 1.25rem 1.5rem;
    max-width: 55%;
}
.alignright, .entry-content .alignright, .wp-caption.alignright {
    float: left;
    margin: 0 1.5rem 1.25rem 0;
    max-width: 55%;
}
.aligncenter, .entry-content .aligncenter, .wp-caption.aligncenter {
    display: block;
    float: none;
    clear: both;
    margin: 1.25rem auto;
    text-align: center;
}
.alignnone { float: none; clear: both; }

/* WordPress caption wrapper */
.wp-caption { max-width: 100%; display: block; }
.wp-caption img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.wp-caption-text { font-size: .8rem; color: var(--c-text3); text-align: center; margin-top: .5rem; padding-inline: .25rem; }
.page-links { display: flex; gap: .35rem; align-items: center; margin-top: 1.5rem; font-size: .875rem; font-weight: 600; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1100px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-card:nth-child(1) { grid-row: auto; }
    .bento-card:nth-child(4) { grid-column: 1 / 3; grid-row: auto; }
    .hero-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .hero-visual .hero-badge-card { display: none; }
    .process-grid { grid-template-columns: 1fr; }
    .process-connector { display: none; }
    .footer-top-inner { grid-template-columns: 240px 1fr; gap: 2.5rem; }
}

@media (max-width: 1024px) {
    /* Sidebar collapses earlier so content isn't too narrow */
    .content-layout  { grid-template-columns: 1fr; }
    .archive-layout  { grid-template-columns: 1fr; }
    .single-layout   { grid-template-columns: 1fr; }
    .widget-area { position: static; }
    /* With sidebar removed, more columns make sense */
    .content-layout .posts-grid  { grid-template-columns: repeat(2, 1fr); }
    .archive-layout .posts-grid  { grid-template-columns: repeat(2, 1fr); }
    /* no-sidebar: keep 3-col until 768px */
    .archive-layout.no-sidebar .posts-grid { grid-template-columns: repeat(3, 1fr); }
    .sc-cols.sc-2cols { grid-template-columns: 1fr; }
    .sc-cols.sc-3cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Remove backdrop-filter from header on mobile — browsers (Safari/Chrome) trap
       position:fixed descendants inside a backdrop-filtered parent, making the nav
       drawer zero-height instead of full-viewport-height. */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--c-surface);
    }

    /* ── Mobile hamburger ── */
    .hamburger { display: flex; }
    .hamburger .bar { background: var(--c-text2); }

    /* ── Mobile nav drawer ── */
    .primary-nav {
        position: fixed; top: var(--hd-h); right: 0; bottom: 0; width: 300px;
        background: var(--c-surface);
        border-left: 1px solid rgba(99,91,255,.12);
        overflow-y: auto; overflow-x: hidden;
        transform: translateX(110%);
        transition: transform .36s cubic-bezier(.22,.61,.36,1);
        z-index: 301;
        padding: 0;
        box-shadow: -12px 0 60px rgba(99,91,255,.12), -4px 0 16px rgba(0,0,0,.08);
    }
    .primary-nav.is-open { transform: translateX(0); }

    /* Gradient top strip inside drawer */
    .primary-nav::before {
        content: '';
        display: block; position: sticky; top: 0;
        height: 3px; width: 100%;
        background: var(--grad);
        flex-shrink: 0; z-index: 1;
    }

    /* Padding wrapper (after the strip) */
    .nav-menu {
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 1.1rem .75rem 2rem;
    }

    /* Top-level link — full width, bigger */
    .nav-menu > li > a {
        font-size: 1rem; font-weight: 600;
        padding: .75rem .9rem;
        border-radius: 12px;
        justify-content: space-between;
        color: var(--c-text);
    }
    .nav-menu > li > a:hover { background: var(--grad-soft); color: var(--c-accent); }
    .nav-menu .current-menu-item > a,
    .nav-menu .current-menu-ancestor > a {
        background: rgba(99,91,255,.1); color: var(--c-accent);
    }
    /* Hide active dot on mobile */
    .nav-menu .current-menu-item > a::before,
    .nav-menu .current-menu-ancestor > a::before { display: none; }

    /* Divider between top-level items */
    .nav-menu > li + li { border-top: 1px solid rgba(99,91,255,.06); }

    /* ── Mobile sub-menu ── */
    .nav-menu .sub-menu {
        position: static;
        visibility: visible; opacity: 1; transform: none; /* reset hover:hover overrides */
        box-shadow: none;
        border: none;
        border-radius: 12px;
        background: rgba(99,91,255,.04);
        padding: .35rem .4rem;
        margin: .3rem .3rem .5rem;
        display: none; flex-direction: column; gap: 2px;
        max-height: none; overflow: visible;
    }
    .nav-menu .sub-menu::before,
    .nav-menu .sub-menu::after { display: none; }
    .nav-menu li.sub-open > .sub-menu { display: flex; }
    .nav-menu .sub-menu a {
        font-size: .9rem; padding: .5rem .7rem; border-radius: 9px;
        gap: .6rem;
    }
    .nb-mi-icon { width: 26px; height: 26px; border-radius: 7px; }
    .nb-mi-icon svg { width: 13px; height: 13px; }

    /* Sub-sub-menu: extra indent */
    .nav-menu .sub-menu .sub-menu {
        right: auto; top: 0; background: rgba(99,91,255,.04);
        margin: .3rem .3rem .3rem 1rem;
    }

    .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-block: 4rem 2rem; gap: 2.5rem; }
    .hero-visual { display: none; }
    .hero-title  { font-size: clamp(2.2rem, 7vw, 3.4rem); }
    .hero-desc   { font-size: 1rem; }
    .hero-stats  { justify-content: flex-start; }
    .stat-item   { padding: 1.25rem 1.75rem; }

    .service-row { grid-template-columns: 40px 44px 1fr; }
    .sr-num { font-size: 1.75rem; }
    .sr-arrow { display: none; }

    .process-grid { grid-template-columns: 1fr; }
    .process-connector { display: none; }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-card:nth-child(4) { grid-column: 1; flex-direction: column; }

    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-layout .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-layout.no-sidebar .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .single-layout.no-sidebar .single-article { max-width: 100%; }
    .archive-hero-title { font-size: 1.75rem; }

    .footer-cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-body-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand-col { grid-column: 1 / 3; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: .6rem; }

    .cta-box { padding: 2.5rem 1.75rem; }
    .cta-inner { grid-template-columns: 1fr; gap: 2rem; }
    .cta-proof { flex-direction: row; flex-wrap: wrap; }
    .proof-card { flex: 1; min-width: 120px; }
    .proof-card-full { flex: 100%; }
}

@media (max-width: 480px) {
    .nb-container { padding-inline: 1rem; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 1.5rem 2rem; justify-content: flex-start; }
    .entry-title { font-size: 1.6rem; }
    .single-title { font-size: 1.7rem; }
    .single-meta  { gap: .6rem; font-size: .78rem; }
    .posts-grid   { grid-template-columns: 1fr; }
    .archive-layout .posts-grid { grid-template-columns: 1fr; }
    .archive-layout.no-sidebar .posts-grid { grid-template-columns: 1fr; }
    .author-bio  { flex-direction: column; }
    .post-navigation .nav-links { flex-direction: column; }
    .footer-body-inner { grid-template-columns: 1fr; }
    .footer-brand-col { grid-column: 1; }
    .footer-bottom-right { flex-direction: column; gap: .4rem; }
    .service-row { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
    .sr-num, .sr-icon { display: none; }
    .post-navigation .nav-previous, .post-navigation .nav-next { max-width: 100%; }
    .error-code { font-size: 6rem; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PAGE TEMPLATES — ABOUT & CONTACT
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Shared section helpers ── */
.section-head.center { text-align: center; margin-bottom: 3rem; }
.section-head.center .section-subtitle { margin-inline: auto; }
.section-eyebrow.light { color: rgba(255,255,255,.55); }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }
.btn-white {
    background: #fff; color: var(--c-accent);
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.75rem; border-radius: var(--r-full);
    font-weight: 700; font-size: .95rem; transition: all var(--t);
}
.btn-white:hover { background: #f0efff; color: var(--c-accent); transform: translateY(-2px); }
.t-comment { color: #8b949e; }
.t-keyword  { color: #ff7b72; }
.t-var      { color: #79c0ff; }
.t-fn       { color: #d2a8ff; }
.t-prop     { color: #7ee787; }
.t-str      { color: #a5d6ff; }

/* ═══════════════════════════
   ABOUT PAGE
   ═══════════════════════════ */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, #07051e 0%, #120833 50%, #08163a 100%);
    padding-top: calc(var(--hd-h) + 4rem);
    padding-bottom: 5rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
}
.about-hero-mesh {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 80% at 20% 30%, rgba(99,91,255,.22) 0%, transparent 60%),
                radial-gradient(ellipse 50% 60% at 80% 70%, rgba(236,72,153,.12) 0%, transparent 60%);
    pointer-events: none;
}
.about-hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(99,91,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(99,91,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.about-hero-inner {
    position: relative; z-index: 2;
    grid-column: 1;
    padding-block: 2rem;
}
.about-hero-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.5); margin-bottom: 1.5rem;
}
.eyebrow-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--grad); display: inline-block; flex-shrink: 0;
    box-shadow: 0 0 8px rgba(99,91,255,.8);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }

.about-hero-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900; line-height: 1.15; letter-spacing: -.04em;
    color: #fff; margin-bottom: 1.25rem;
}
.about-hero-desc {
    font-size: 1.05rem; color: rgba(255,255,255,.6);
    line-height: 1.8; margin-bottom: 2rem; max-width: 520px;
}
.about-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.about-hero-img-wrap {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 3rem 3rem 1rem;
}
.about-hero-code-block {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r-2xl);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(99,91,255,.15);
    width: 100%; max-width: 420px;
}
.ahcb-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-left: 6px; }
.ahcb-dot.red    { background: #ff5f57; }
.ahcb-dot.yellow { background: #ffbd2e; }
.ahcb-dot.green  { background: #28c941; }
.ahcb-code {
    margin-top: 1rem; font-family: var(--f-mono);
    font-size: .82rem; line-height: 1.9; color: #e6edf3;
    direction: ltr; text-align: left; white-space: pre-wrap;
}

/* Stats */
.about-stats-section { padding-block: 4rem; border-bottom: 1px solid var(--c-border2); }
.about-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.about-stat-item {
    text-align: center; padding: 2rem;
    border-left: 1px solid var(--c-border2);
    transition: background var(--t);
}
.about-stat-item:last-child { border-left: none; }
.about-stat-item:hover { background: var(--c-bg2); }
.asi-number { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.asi-label  { font-size: 1rem; font-weight: 700; color: var(--c-text); margin-top: .5rem; }
.asi-desc   { font-size: .8rem; color: var(--c-text3); margin-top: .25rem; }

/* Values grid */
.about-values-section { padding-block: 5rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card {
    background: var(--c-surface); border: 1px solid var(--c-border2);
    border-radius: var(--r-2xl); padding: 2rem;
    transition: all var(--t-slow);
}
.value-card:hover { border-color: rgba(99,91,255,.25); transform: translateY(-4px); box-shadow: var(--sh-lg); }
.vc-icon {
    width: 48px; height: 48px; border-radius: var(--r-xl);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; flex-shrink: 0;
}
.vc-title { font-size: 1.05rem; font-weight: 700; color: var(--c-text); margin-bottom: .6rem; }
.vc-desc  { font-size: .875rem; color: var(--c-text2); line-height: 1.75; }

/* Services grid */
.about-services-section { padding-block: 5rem; background: var(--c-bg2); }
.about-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.about-svc-card {
    background: var(--c-surface); border: 1px solid var(--c-border2);
    border-radius: var(--r-2xl); padding: 1.75rem;
    display: flex; flex-direction: column; gap: .75rem;
    transition: all var(--t-slow);
}
.about-svc-card:hover { border-color: var(--svc-color, var(--c-accent)); transform: translateY(-3px); box-shadow: var(--sh-lg); }
.asc-icon-wrap {
    width: 44px; height: 44px; border-radius: var(--r-xl);
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--svc-color, var(--c-accent)) 12%, transparent);
    font-size: 1.4rem;
}
.asc-title { font-size: .975rem; font-weight: 700; color: var(--c-text); }
.asc-desc  { font-size: .83rem; color: var(--c-text2); line-height: 1.7; }

/* Timeline */
.about-timeline-section { padding-block: 5rem; overflow: hidden; }
.timeline { position: relative; max-width: 800px; margin-inline: auto; padding-block: 2rem; }
.timeline-line {
    position: absolute; top: 0; bottom: 0;
    right: 50%; width: 2px;
    background: linear-gradient(to bottom, transparent, var(--c-accent), transparent);
    transform: translateX(50%);
}
.timeline-item {
    display: grid; grid-template-columns: 1fr 40px 1fr;
    align-items: start; gap: 1.5rem; margin-bottom: 2.5rem;
}
.timeline-item .tl-dot {
    grid-column: 2;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 4px var(--c-bg), 0 0 0 6px rgba(99,91,255,.25);
    z-index: 1; flex-shrink: 0;
}
.tl-year { font-size: .6rem; font-weight: 800; color: #fff; letter-spacing: -.02em; text-align: center; line-height: 1.2; }
.timeline-item.tl-right .tl-card { grid-column: 1; text-align: right; }
.timeline-item.tl-left  .tl-card { grid-column: 3; }
.timeline-item.tl-right .tl-dot  { grid-column: 2; }
.timeline-item.tl-left  .tl-dot  { grid-column: 2; }
.tl-card {
    background: var(--c-surface); border: 1px solid var(--c-border2);
    border-radius: var(--r-xl); padding: 1.25rem 1.4rem;
    transition: all var(--t);
}
.tl-card:hover { border-color: rgba(99,91,255,.25); box-shadow: var(--sh); }
.tl-title { font-size: .975rem; font-weight: 700; color: var(--c-text); margin-bottom: .35rem; }
.tl-desc  { font-size: .83rem; color: var(--c-text2); line-height: 1.65; }

/* Tech pills */
.about-tech-section { padding-block: 5rem; background: var(--c-bg2); }
.about-tech-grid {
    display: flex; flex-wrap: wrap; gap: .65rem;
    justify-content: center; margin-top: 2rem;
}
.about-tech-pill {
    padding: .5rem 1.15rem; border-radius: var(--r-full);
    background: var(--c-surface); border: 1px solid var(--c-border2);
    font-size: .85rem; font-weight: 600; color: var(--c-text2);
    transition: all var(--t);
}
.about-tech-pill:hover {
    border-color: var(--c-accent); color: var(--c-accent);
    background: var(--c-tag-bg); transform: translateY(-2px);
}

/* About CTA */
/* ══ ABOUT CTA — redesign ══════════════════════════════════════════════ */
.about-cta-section {
    position: relative;
    overflow: hidden;
    padding-block: 0;
    background: linear-gradient(150deg, #05031a 0%, #0f0830 45%, #060d24 100%);
}
.about-cta-section::before {
    content: ''; position: absolute;
    width: 700px; height: 520px; right: -120px; top: -120px;
    background: radial-gradient(ellipse, rgba(99,91,255,.2) 0%, transparent 65%);
    pointer-events: none;
}
.about-cta-section::after {
    content: ''; position: absolute;
    width: 500px; height: 380px; left: -60px; bottom: -100px;
    background: radial-gradient(ellipse, rgba(236,72,153,.12) 0%, transparent 65%);
    pointer-events: none;
}
.acta-bg-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(99,91,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,91,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
}
.about-cta-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 5rem; align-items: center;
    padding-block: 6rem;
}

/* ── Right panel: main copy ── */
.acta-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.12);
    padding: .35rem 1rem; border-radius: 100px;
    background: rgba(255,255,255,.05);
    margin-bottom: 1.5rem;
}
.acta-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #7c6dfa; flex-shrink: 0;
    box-shadow: 0 0 6px #7c6dfa;
}
.acta-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900; line-height: 1.2; letter-spacing: -.04em;
    color: #fff; margin: 0 0 1.25rem;
}
.acta-desc {
    font-size: 1rem; color: rgba(255,255,255,.6);
    line-height: 1.85; margin-bottom: 2.5rem; max-width: 480px;
}
.acta-btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.acta-tel-link {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.55);
    text-decoration: none; transition: color var(--t);
}
.acta-tel-link:hover { color: #fff; }
.acta-tel-link svg { opacity: .7; }

/* ── Left panel: feature cards ── */
.acta-cards { display: flex; flex-direction: column; gap: .85rem; }
.acta-card {
    display: flex; align-items: center; gap: 1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px; padding: 1.1rem 1.4rem;
    backdrop-filter: blur(10px);
    transition: background var(--t), border-color var(--t), transform var(--t);
}
.acta-card:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(124,109,250,.35);
    transform: translateX(-6px);
}
.acta-card-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #a5b4fc;
}
.acta-card-title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .2rem; }
.acta-card-desc  { font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.5; }


/* ═══════════════════════════
   CONTACT PAGE
   ═══════════════════════════ */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, #07051e 0%, #160b40 60%, #06112a 100%);
    padding-top: calc(var(--hd-h) + 4rem);
    padding-bottom: 5rem;
    text-align: center; overflow: hidden;
}
.contact-hero-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% -10%, rgba(99,91,255,.35) 0%, transparent 65%),
                radial-gradient(ellipse 40% 40% at 20% 80%, rgba(236,72,153,.12) 0%, transparent 60%);
    pointer-events: none;
}
.contact-hero-inner { position: relative; z-index: 2; max-width: 700px; margin-inline: auto; }
.contact-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900; line-height: 1.12; letter-spacing: -.04em;
    color: #fff; margin: 1rem 0 1.25rem;
}
.contact-hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.6); line-height: 1.8; }

/* Channels */
.contact-channels-section { padding-block: 4rem; }
.contact-channels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.contact-channel-card {
    display: flex; align-items: center; gap: 1rem;
    background: var(--c-surface); border: 1px solid var(--c-border2);
    border-radius: var(--r-2xl); padding: 1.4rem 1.25rem;
    transition: all var(--t-slow); color: var(--c-text);
}
.contact-channel-card:not(.no-link):hover {
    border-color: var(--c-accent); box-shadow: var(--sh-glow);
    transform: translateY(-4px); color: var(--c-text);
}
.ccc-icon {
    width: 48px; height: 48px; border-radius: var(--r-xl);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ccc-body { flex: 1; min-width: 0; }
.ccc-label { font-size: .72rem; font-weight: 700; color: var(--c-text3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.ccc-value { font-size: .95rem; font-weight: 700; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccc-note  { font-size: .75rem; color: var(--c-text3); margin-top: .15rem; }
.ccc-arrow { color: var(--c-text3); flex-shrink: 0; transition: transform var(--t); }
.contact-channel-card:hover .ccc-arrow { transform: translateX(-4px); color: var(--c-accent); }
.ccc-badge {
    font-size: .72rem; font-weight: 700; padding: .2rem .65rem;
    background: rgba(16,185,129,.12); color: #10B981;
    border: 1px solid rgba(16,185,129,.25); border-radius: var(--r-full);
    flex-shrink: 0;
}

/* Main form + info grid */
.contact-main-section { padding-block: 2rem 5rem; }
.contact-main-inner {
    display: grid; grid-template-columns: 1fr 360px;
    gap: 2.5rem; align-items: start;
}

/* Form */
.contact-form-wrap {
    background: var(--c-surface); border: 1px solid var(--c-border2);
    border-radius: var(--r-3xl); padding: 2.5rem;
}
.contact-form-header { margin-bottom: 2rem; }
.contact-form-title { font-size: 1.4rem; font-weight: 800; color: var(--c-text); margin-bottom: .4rem; }
.contact-form-desc  { font-size: .875rem; color: var(--c-text2); }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.cf-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.cf-row .cf-field { margin-bottom: 0; }
.cf-label { font-size: .82rem; font-weight: 600; color: var(--c-text2); }
.cf-req   { color: var(--c-accent2); }
.cf-input {
    width: 100%; padding: .75rem 1rem;
    background: var(--c-bg); color: var(--c-text);
    border: 1.5px solid var(--c-border2); border-radius: var(--r-lg);
    font-size: .9rem; font-family: var(--f-body);
    transition: border-color var(--t), box-shadow var(--t);
    outline: none;
}
.cf-input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(99,91,255,.12); }
.cf-input::placeholder { color: var(--c-text3); }
.cf-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left .8rem center; padding-left: 2.25rem; }
.cf-textarea { resize: vertical; min-height: 130px; }
.cf-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.cf-submit { font-size: .9rem; padding: .8rem 1.75rem; }
.cf-submit:disabled { opacity: .6; cursor: not-allowed; }
.cf-privacy { font-size: .75rem; color: var(--c-text3); }
.cf-success {
    display: flex; align-items: center; gap: .65rem; margin-top: 1rem;
    padding: .9rem 1.25rem; border-radius: var(--r-lg);
    background: rgba(16,185,129,.08); color: #059669;
    border: 1px solid rgba(16,185,129,.2); font-size: .875rem; font-weight: 600;
}

/* Info cards */
.contact-info-wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-card {
    background: var(--c-surface); border: 1px solid var(--c-border2);
    border-radius: var(--r-2xl); overflow: hidden;
}
.cic-header {
    display: flex; align-items: center; gap: .6rem;
    padding: 1rem 1.4rem; font-size: .82rem; font-weight: 700;
    color: var(--c-text); border-bottom: 1px solid var(--c-border2);
    background: var(--c-bg2);
}
.cic-body { padding: 1.25rem 1.4rem; }
.work-hour-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem 0; font-size: .875rem; color: var(--c-text2);
    border-bottom: 1px solid var(--c-border2);
}
.work-hour-row:last-of-type { border-bottom: none; }
.work-hour-row.dim { opacity: .5; }
.whr-time { font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }
.work-hour-badge {
    display: flex; align-items: center; gap: .5rem;
    margin-top: .85rem; padding: .55rem .85rem;
    background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2);
    border-radius: var(--r-full); font-size: .75rem; font-weight: 600; color: #059669;
}
.whr-dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; flex-shrink: 0; animation: pulse 2s infinite; }

.contact-ticket-card .cic-body { display: flex; flex-direction: column; gap: 1rem; }
.cic-ticket-desc { font-size: .85rem; color: var(--c-text2); line-height: 1.7; }

.faq-mini-list { display: flex; flex-direction: column; gap: .35rem; }
.faq-mini-item { border: 1px solid var(--c-border2); border-radius: var(--r-lg); overflow: hidden; }
.faq-mini-q {
    padding: .7rem .9rem; font-size: .82rem; font-weight: 600;
    color: var(--c-text); cursor: pointer; list-style: none;
    background: var(--c-bg); transition: background var(--t);
}
.faq-mini-q:hover { background: var(--c-bg2); }
.faq-mini-item[open] .faq-mini-q { color: var(--c-accent); background: var(--c-bg2); }
.faq-mini-a { padding: .6rem .9rem .8rem; font-size: .8rem; color: var(--c-text2); line-height: 1.65; }

/* Social section */
.contact-social-section { padding-block: 3rem; border-top: 1px solid var(--c-border2); }
.contact-social-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.contact-social-text h3 { font-size: 1.1rem; font-weight: 700; }
.contact-social-text p  { font-size: .875rem; color: var(--c-text2); margin-top: .25rem; }
.contact-social-links { display: flex; gap: .65rem; flex-wrap: wrap; }
.social-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1.1rem; border-radius: var(--r-full);
    font-size: .82rem; font-weight: 600; transition: all var(--t);
    border: 1.5px solid var(--c-border2); color: var(--c-text2);
}
.social-pill:hover { transform: translateY(-2px); color: var(--c-text); }
.social-pill.telegram:hover  { border-color: #26A5E4; color: #26A5E4; background: rgba(38,165,228,.07); }
.social-pill.instagram:hover { border-color: #E1306C; color: #E1306C; background: rgba(225,48,108,.07); }
.social-pill.github:hover    { border-color: var(--c-text); color: var(--c-text); background: var(--c-bg2); }
.social-pill.linkedin:hover  { border-color: #0A66C2; color: #0A66C2; background: rgba(10,102,194,.07); }

/* ═══════════════════════════
   RESPONSIVE — ABOUT & CONTACT
   ═══════════════════════════ */
@media (max-width: 1100px) {
    .about-hero            { grid-template-columns: 1fr; padding-bottom: 3rem; }
    .about-hero-img-wrap   { display: none; }
    .about-hero-inner      { max-width: 100%; }
    .about-stats-grid      { grid-template-columns: repeat(2, 1fr); }
    .about-stat-item:nth-child(2)  { border-left: none; }
    .about-stat-item:nth-child(3)  { border-top: 1px solid var(--c-border2); }
    .about-stat-item:nth-child(4)  { border-top: 1px solid var(--c-border2); }
    .values-grid           { grid-template-columns: repeat(2, 1fr); }
    .about-svc-grid        { grid-template-columns: repeat(2, 1fr); }
    .contact-channels-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-main-inner    { grid-template-columns: 1fr; }
    .contact-info-wrap     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

@media (max-width: 768px) {
    .about-hero-title    { font-size: 2rem; }
    .about-stats-grid    { grid-template-columns: repeat(2, 1fr); }
    .values-grid         { grid-template-columns: 1fr; }
    .about-svc-grid      { grid-template-columns: 1fr; }
    /* کاهش padding سکشن‌ها روی موبایل */
    .about-values-section,
    .about-services-section,
    .about-tech-section,
    .about-cta-section   { padding-block: 3rem; }
    .about-stats-section { padding-block: 2.5rem; }
    .about-timeline-section { padding-block: 3rem; }
    /* تایم‌لاین موبایل — از flex استفاده می‌کنیم نه grid
       دلیل: grid-column های desktop specificity بالاتری دارن و قابل override نیستن
       در RTL flex-row، اولین child (tl-dot) به سمت راست می‌رود
       timeline-line: right:20px مرکز dot (40px) را می‌گیرد ✓ */
    .timeline            { padding-inline: 0; }
    .timeline-line       { right: 20px; transform: none; }
    .timeline-item       { display: flex; flex-direction: row; align-items: flex-start; gap: .75rem; margin-bottom: 2rem; }
    .timeline-item.tl-right .tl-dot,
    .timeline-item.tl-left  .tl-dot  { flex-shrink: 0; width: 40px; height: 40px; }
    .timeline-item.tl-right .tl-card,
    .timeline-item.tl-left  .tl-card { flex: 1; text-align: right; }
    .about-cta-inner     { grid-template-columns: 1fr; gap: 3rem; padding-block: 4rem; }
    .acta-cards          { display: grid; grid-template-columns: 1fr 1fr; }
    .acta-btns           { flex-direction: column; }
    .acta-btns .btn      { justify-content: center; }
    .contact-channels-grid { grid-template-columns: 1fr; }
    .contact-info-wrap   { grid-template-columns: 1fr; }
    .cf-row              { grid-template-columns: 1fr; }
    .contact-hero-title  { font-size: 2.2rem; }
    .contact-social-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .about-stats-grid    { grid-template-columns: 1fr; }
    .about-stat-item     { border-left: none; border-top: 1px solid var(--c-border2); padding: 1.5rem; }
    .about-stat-item:first-child { border-top: none; }
    .about-hero-title    { font-size: 1.65rem; }
    .about-hero-desc     { font-size: .9rem; }
    .about-hero-actions  { flex-direction: column; }
    .about-hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
    .acta-cards          { grid-template-columns: 1fr; }
    .contact-channel-card { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .ccc-arrow           { display: none; }
}

/* ── Homepage Reviews Section ─────────────────────────────────────────── */
.nbr-homepage-section {
    padding: 96px 0;
    background: var(--c-bg2);
    position: relative;
}
.nbr-homepage-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    pointer-events: none;
}

/* Rating stars + count inline, below section subtitle */
.nbr-hp-rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 18px;
    background: var(--c-surface);
    border: 1px solid var(--c-border2);
    border-radius: 50px;
    padding: 7px 16px;
    box-shadow: var(--sh-sm);
}
.nbr-hp-rating-text {
    font-size: 13px;
    color: var(--c-text2);
    margin-right: 4px;
}
.nbr-hp-rating-text strong {
    color: var(--c-text);
    margin-left: 4px;
}

/* CTA buttons row */
.nbr-hp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .nbr-homepage-section { padding: 60px 0; }
}

#snippet-box .ratings {
    float: left;
    position: sticky;
}

/* ════════════════════════════════════════════════════════════
   PORTFOLIO PAGE — نمونه کارها
   ════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.pf-hero {
    position: relative;
    background: linear-gradient(145deg, #07051e 0%, #160b40 50%, #06112a 100%);
    padding-top: calc(var(--hd-h) + 5.5rem);
    padding-bottom: 5rem;
    text-align: center;
    overflow: hidden;
}
.pf-hero-glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 65% 90% at 50% -5%, rgba(99,91,255,.45) 0%, transparent 60%),
        radial-gradient(ellipse 45% 45% at 15% 90%, rgba(236,72,153,.18) 0%, transparent 60%),
        radial-gradient(ellipse 35% 55% at 85% 85%, rgba(6,182,212,.12) 0%, transparent 60%);
    pointer-events: none;
}
.pf-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}
.pf-hero-inner { position: relative; z-index: 2; max-width: 820px; margin-inline: auto; }

.pf-hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 1.5rem;
}
.pf-hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900; line-height: 1.1; letter-spacing: -.04em;
    color: #fff; margin-bottom: 1.35rem;
}
.pf-hero-title .g-text {
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 50%, #38bdf8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pf-hero-sub {
    font-size: 1.05rem; color: rgba(255,255,255,.52);
    line-height: 1.85; max-width: 580px; margin: 0 auto 2.5rem;
}

/* Stats bar */
.pf-stats-bar {
    display: flex; justify-content: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-2xl);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(12px);
    overflow: hidden;
    max-width: 600px; margin-inline: auto;
}
.pf-stat {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 1.4rem 1rem;
    border-right: 1px solid rgba(255,255,255,.08);
}
.pf-stat:last-child { border-right: none; }
.pf-stat-num {
    font-size: 2rem; font-weight: 900; letter-spacing: -.04em;
    color: #fff; line-height: 1; font-family: var(--f-mono);
}
.pf-stat-plus { font-size: 1.3rem; opacity: .7; }
.pf-stat-label {
    font-size: .68rem; font-weight: 600; letter-spacing: .06em;
    color: rgba(255,255,255,.38); text-transform: uppercase; margin-top: .4rem;
}

/* ── Filter bar ── */
.pf-filters-section {
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    position: sticky; top: var(--hd-h); z-index: 50;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.pf-filters {
    display: flex; align-items: center; gap: .4rem;
    padding-block: .9rem;
    overflow-x: auto; scrollbar-width: none;
}
.pf-filters::-webkit-scrollbar { display: none; }
.pf-filter-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .46rem 1.1rem;
    border-radius: var(--r-full);
    border: 1.5px solid transparent;
    font-size: .82rem; font-weight: 700; font-family: var(--f-body);
    color: var(--c-text2); background: transparent;
    cursor: pointer; white-space: nowrap;
    transition: all var(--t);
}
.pf-filter-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; border-radius: var(--r-full);
    background: var(--c-bg2); color: var(--c-text3);
    font-size: .68rem; font-weight: 800; padding-inline: .3rem;
    transition: all var(--t);
}
.pf-filter-btn:hover {
    background: var(--c-tag-bg); color: var(--c-accent);
    border-color: rgba(99,91,255,.2);
}
.pf-filter-btn.active {
    background: var(--grad); color: #fff; border-color: transparent;
    box-shadow: var(--sh-p);
}
.pf-filter-btn.active .pf-filter-count { background: rgba(255,255,255,.22); color: #fff; }

/* ── Grid section ── */
.pf-section {
    padding-block: 5rem;
    background: var(--c-bg2); position: relative;
}
.pf-section::before {
    content: ''; position: absolute; inset: 0;
    background: var(--grad-soft); pointer-events: none;
}
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative; z-index: 1;
    align-items: stretch;
}
@media (max-width: 900px) {
    .pf-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-card2--featured { grid-column: span 2; }
}
.pf-empty-msg {
    grid-column: 1 / -1; text-align: center;
    padding: 4rem 1rem; color: var(--c-text3);
    font-size: .95rem; display: none;
}

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO CARDS v3 — Premium Redesign
   ══════════════════════════════════════════════════════════════*/

/* ── Shell ── */
.pf-card2 {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15,23,42,.07);
    box-shadow:
        0 1px 3px rgba(15,23,42,.05),
        0 6px 20px rgba(15,23,42,.07),
        0 18px 52px rgba(15,23,42,.04);
    transition:
        transform .48s cubic-bezier(.22,.8,.2,1),
        box-shadow .48s ease;
    isolation: isolate;
}

.pf-card2--featured {
    grid-column: span 2;
    flex-direction: row;          /* horizontal layout for featured */
}

.pf-card2:hover {
    transform: translateY(-12px) scale(1.008);
    box-shadow:
        0 2px 8px rgba(15,23,42,.07),
        0 14px 40px rgba(15,23,42,.13),
        0 36px 90px rgba(15,23,42,.1);
}

/* ── Gradient header ── */
.pf-card2-top {
    position: relative;
    background: var(--pf-grad);
    padding: 1.75rem 1.75rem 1.6rem;
    min-height: 224px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    flex-shrink: 0;
}

.pf-card2--featured .pf-card2-top {
    flex: 0 0 38%;
    min-height: auto;
    border-left: 1px solid rgba(0,0,0,.08);  /* separator (physical left = towards content in RTL) */
}

/* Cross-grid texture */
.pf-card2-top::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Bottom vignette */
.pf-card2-top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 110%, rgba(0,0,0,.28) 0%, transparent 60%);
    pointer-events: none;
}

/* Hover shine sweep */
.pf-card2-shine {
    position: absolute;
    top: -40%; left: -50%;
    width: 100%; height: 150%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,.22) 0%, transparent 62%);
    opacity: 0;
    transform: scale(.6) translateX(-30px);
    transition: opacity .65s ease, transform .75s cubic-bezier(.22,.8,.2,1);
    pointer-events: none;
    z-index: 3;
}
.pf-card2:hover .pf-card2-shine {
    opacity: 1;
    transform: scale(1.05) translateX(0);
}

/* Top row: badge + year */
.pf-card2-toprow {
    position: relative; z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.pf-card2-badge {
    display: inline-flex; align-items: center;
    padding: .3rem .95rem;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: var(--r-full);
    font-size: .62rem; font-weight: 800; letter-spacing: .09em;
    color: rgba(255,255,255,.97);
    text-transform: uppercase;
    white-space: nowrap;
}

.pf-card2-year {
    font-size: .68rem; font-family: var(--f-mono);
    color: rgba(255,255,255,.7);
    background: rgba(0,0,0,.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: .22rem .7rem;
    border-radius: var(--r-full);
    letter-spacing: .04em;
    white-space: nowrap;
}

/* Center icon — frosted glass circle */
.pf-card2-icon-wrap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -46%);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px; height: 88px;
    transition: transform .55s cubic-bezier(.22,.8,.2,1);
}
.pf-card2--featured .pf-card2-icon-wrap { width: 110px; height: 110px; }

.pf-card2:hover .pf-card2-icon-wrap {
    transform: translate(-50%, -46%) scale(1.12) translateY(-5px);
}

/* Pulsing ring */
.pf-card2-icon-ring {
    position: absolute; inset: -18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.3);
    animation: pf-ring 3.5s ease-in-out infinite;
}
.pf-card2-icon-ring::before {
    content: '';
    position: absolute; inset: 13px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.18);
}
@keyframes pf-ring {
    0%, 100% { transform: scale(1); opacity: .5; }
    50%       { transform: scale(1.08); opacity: 1; }
}

/* Icon disc */
.pf-card2-icon {
    width: 100%; height: 100%;
    background: rgba(255,255,255,.17);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.36);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.93);
    box-shadow:
        0 6px 28px rgba(0,0,0,.24),
        0 0 0 9px rgba(255,255,255,.07),
        inset 0 1px 0 rgba(255,255,255,.35);
    transition: background .45s, box-shadow .45s;
}
.pf-card2:hover .pf-card2-icon {
    background: rgba(255,255,255,.26);
    box-shadow:
        0 10px 44px rgba(0,0,0,.3),
        0 0 0 16px rgba(255,255,255,.09),
        inset 0 1px 0 rgba(255,255,255,.45);
}
.pf-card2-icon svg { width: 42%; height: 42%; }

/* Number watermark */
.pf-card2-num {
    position: relative; z-index: 4;
    margin-top: auto;
    align-self: flex-end;
    font-size: 3.2rem; font-weight: 900; font-family: var(--f-mono);
    color: rgba(255,255,255,.14);
    line-height: 1; letter-spacing: -.06em;
    transition: color .45s;
}
.pf-card2--featured .pf-card2-num { font-size: 4.2rem; }
.pf-card2:hover .pf-card2-num { color: rgba(255,255,255,.22); }

/* ── Body ── */
.pf-card2-body {
    padding: 1.6rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .9rem;
    position: relative;
}

/* Thin gradient accent at top of body */
.pf-card2-body::before {
    content: '';
    position: absolute;
    top: 0; left: 1.5rem; right: 1.5rem;
    height: 2px;
    background: var(--pf-grad);
    opacity: .14;
    border-radius: 0 0 3px 3px;
}
.pf-card2--featured .pf-card2-body::before {
    /* featured: accent on right side (border towards gradient panel) */
    top: 1.5rem; bottom: 1.5rem;
    left: auto; right: 0;
    width: 2px; height: auto;
    border-radius: 3px 0 0 3px;
    opacity: .18;
}

.pf-card2-title {
    font-size: 1.05rem; font-weight: 800;
    color: #0f172a; line-height: 1.45;
    letter-spacing: -.025em;
}
.pf-card2--featured .pf-card2-title { font-size: 1.3rem; }

.pf-card2-desc {
    font-size: .83rem; color: #64748b;
    line-height: 1.9; flex: 1;
}

/* Tags */
.pf-card2-tags { display: flex; flex-wrap: wrap; gap: .3rem; }

.pf-tag2 {
    padding: .22rem .68rem;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: var(--r-full);
    font-size: .63rem; font-weight: 700;
    color: #64748b;
    font-family: var(--f-mono);
    letter-spacing: .02em;
    transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.pf-card2:hover .pf-tag2 {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}
.pf-card2:hover .pf-tag2:nth-child(1) { transition-delay: 0s; }
.pf-card2:hover .pf-tag2:nth-child(2) { transition-delay: .04s; }
.pf-card2:hover .pf-tag2:nth-child(3) { transition-delay: .08s; }
.pf-card2:hover .pf-tag2:nth-child(4) { transition-delay: .12s; }

/* Footer */
.pf-card2-footer {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    padding-top: .9rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}
.pf-card2-client {
    display: flex; align-items: center; gap: .42rem;
    font-size: .76rem; color: #64748b; font-weight: 600;
}
.pf-card2-client svg { flex-shrink: 0; opacity: .6; }

.pf-card2-link {
    display: inline-flex; align-items: center; gap: .38rem;
    padding: .44rem 1.15rem;
    background: var(--pf-grad);
    color: #fff;
    border-radius: var(--r-full);
    font-size: .76rem; font-weight: 700;
    box-shadow: 0 2px 12px rgba(0,0,0,.16);
    transition: box-shadow .25s, transform .25s, opacity .2s;
}
.pf-card2-link:hover {
    opacity: .9; transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.24);
    color: #fff;
}

/* Gallery button */
.pf-card2-gallery-btn {
    display: flex; align-items: center; gap: .52rem;
    width: 100%;
    padding: .68rem 1.15rem;
    border: 1.5px dashed #d0d9e8;
    border-radius: var(--r-full);
    background: transparent;
    color: #94a3b8;
    font-family: Tahoma, Arial, sans-serif;
    font-size: .78rem; font-weight: 700;
    cursor: pointer;
    transition: all .28s cubic-bezier(.22,.8,.2,1);
}
.pf-card2-gallery-btn svg { flex-shrink: 0; }
.pf-card2-gallery-btn:hover {
    background: var(--pf-grad);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,.17);
}
.pf-card2-gallery-count {
    margin-right: auto;
    padding: .18rem .65rem;
    background: rgba(0,0,0,.06);
    border-radius: 100px;
    font-size: .7rem;
    transition: background .25s;
}
.pf-card2-gallery-btn:hover .pf-card2-gallery-count {
    background: rgba(255,255,255,.22);
}

/* ── Cards responsive: tablet ≤900px ── */
@media (max-width: 900px) {
    .pf-card2--featured {
        flex-direction: column;
    }
    .pf-card2--featured .pf-card2-top {
        flex: none;
        min-height: 200px;
        border-left: none;
    }
    .pf-card2--featured .pf-card2-body::before {
        top: 0; bottom: auto;
        left: 1.5rem; right: 1.5rem;
        width: auto; height: 2px;
        border-radius: 0 0 3px 3px;
        opacity: .14;
    }
}

/* ── Cards responsive: mobile ≤768px ── */
@media (max-width: 768px) {
    /* Grid: 1 column */
    .pf-grid { grid-template-columns: 1fr; gap: .85rem; }
    .pf-card2--featured { grid-column: span 1; }

    /* No lift on touch */
    .pf-card2:hover {
        transform: none;
        box-shadow:
            0 1px 3px rgba(15,23,42,.05),
            0 6px 20px rgba(15,23,42,.07),
            0 18px 52px rgba(15,23,42,.04);
    }

    /* Shorter gradient top */
    .pf-card2-top,
    .pf-card2--featured .pf-card2-top {
        min-height: 160px;
        padding: 1.2rem 1.2rem 1.1rem;
    }

    /* Smaller icon */
    .pf-card2-icon-wrap,
    .pf-card2--featured .pf-card2-icon-wrap {
        width: 68px;
        height: 68px;
        transform: translate(-50%, -44%);
    }
    .pf-card2:hover .pf-card2-icon-wrap { transform: translate(-50%, -44%); }
    .pf-card2-icon-ring { inset: -11px; }
    .pf-card2-icon-ring::before { inset: 10px; }

    /* Smaller number */
    .pf-card2-num,
    .pf-card2--featured .pf-card2-num { font-size: 2.2rem; }

    /* Compact body */
    .pf-card2-body { padding: 1.15rem 1.2rem 1.25rem; gap: .7rem; }
    .pf-card2-body::before,
    .pf-card2--featured .pf-card2-body::before {
        top: 0; bottom: auto;
        left: 1rem; right: 1rem;
        width: auto; height: 2px;
        border-radius: 0 0 3px 3px;
        opacity: .13;
    }

    /* Typography */
    .pf-card2-title,
    .pf-card2--featured .pf-card2-title { font-size: .95rem; }

    /* Limit description to 3 lines — prevents extreme height differences */
    .pf-card2-desc {
        font-size: .8rem;
        line-height: 1.75;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: none;
    }

    /* Smaller tags */
    .pf-tag2 { font-size: .62rem; padding: .18rem .55rem; }

    /* Footer compact */
    .pf-card2-footer { padding-top: .7rem; }
    .pf-card2-client { font-size: .72rem; }
    .pf-card2-link { font-size: .72rem; padding: .38rem .9rem; }

    /* Gallery button */
    .pf-card2-gallery-btn { padding: .58rem .9rem; font-size: .75rem; }
}

/* ══════════════════════════════════════════════════════════════
   GALLERY SECTION
   ══════════════════════════════════════════════════════════════*/
.pf-gallery-section {
    padding-block: 6rem;
    background: linear-gradient(to bottom, var(--c-bg) 0%, #f8faff 100%);
}
.pf-gallery-head {
    text-align: center;
    margin-bottom: 3rem;
}
.pf-gallery-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .3rem 1rem;
    background: rgba(56,189,248,.1);
    border: 1px solid rgba(56,189,248,.25);
    border-radius: var(--r-full);
    font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: #0ea5e9;
    margin-bottom: 1rem;
}
.pf-gallery-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900; letter-spacing: -.04em;
    color: var(--c-text1); margin-bottom: .75rem;
}
.pf-gallery-sub { font-size: .9rem; color: var(--c-text3); }

.pf-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .pf-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pf-gallery-grid { grid-template-columns: 1fr; } }

.pf-gallery-item {
    position: relative;
    background: #fff;
    border-radius: var(--r-xl);
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    text-align: right;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pf-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.15);
}

.pf-gallery-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f0f4f8;
    position: relative;
}
.pf-gallery-thumb svg,
.pf-gallery-thumb img {
    width: 100%; height: 100%;
    display: block;
}
.pf-gallery-thumb img { object-fit: cover; }

.pf-gallery-info {
    padding: .85rem 1rem .9rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    border-top: 2px solid;
    border-image: var(--pf-grad) 1;
}
.pf-gallery-proj {
    font-size: .72rem; font-weight: 700;
    color: var(--c-text3); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.pf-gallery-screen {
    font-size: .85rem; font-weight: 700;
    color: var(--c-text1);
}

.pf-gallery-zoom {
    position: absolute;
    top: .6rem; left: .6rem;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: scale(.75);
    transition: opacity .25s, transform .25s;
}
.pf-gallery-item:hover .pf-gallery-zoom { opacity: 1; transform: scale(1); }

/* ══════════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════════*/
/* ══ LIGHTBOX ══════════════════════════════════════════════════════════════ */
.pf-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: none;
}
.pf-lightbox[hidden] { display: none !important; }
.pf-lightbox.is-open { display: block; }

.pf-lb-backdrop {
    position: absolute; inset: 0;
    background: rgba(4,2,18,.95);
    backdrop-filter: blur(14px);
}

/* Full-screen flex column layout — no more scattered fixed children */
.pf-lb-layout {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column;
    padding: env(safe-area-inset-top,0px) env(safe-area-inset-right,0px)
             env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
    animation: lb-in .28s var(--ease) both;
}
@keyframes lb-in {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── top bar ── */
.pf-lb-topbar {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem 1rem;
    background: rgba(4,2,18,.6);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.pf-lb-counter {
    display: flex; align-items: center; gap: .3rem;
    font-size: .78rem; font-family: var(--f-mono); letter-spacing: .06em;
    color: #fff; opacity: .7;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    border-radius: 2rem; padding: .22rem .65rem;
    flex-shrink: 0;
}
.pf-lb-sep { opacity: .4; }

.pf-lb-topbar-title {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-direction: column; gap: .1rem;
    overflow: hidden;
}
.pf-lb-topbar-title strong {
    font-size: .88rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-lb-topbar-title span {
    font-size: .74rem; color: rgba(255,255,255,.45);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.pf-lb-close {
    flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .15s;
    -webkit-tap-highlight-color: transparent;
}
.pf-lb-close:hover  { background: rgba(255,80,80,.35); border-color: rgba(255,80,80,.6); transform: scale(1.08); }
.pf-lb-close:active { transform: scale(.95); }

/* ── stage: nav + image ── */
.pf-lb-stage {
    flex: 1 1 auto; min-height: 0;
    display: flex; align-items: center; gap: .5rem;
    padding: .6rem .75rem;
    overflow: hidden;
}

.pf-lb-nav {
    flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.28);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .15s, border-color .18s;
    -webkit-tap-highlight-color: transparent;
}
.pf-lb-nav:hover  { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.55); transform: scale(1.08); }
.pf-lb-nav:active { transform: scale(.94); }

.pf-lb-img {
    flex: 1 1 auto; min-width: 0; height: 100%;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: rgba(0,0,0,.2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.07) inset;
}
.pf-lb-photo {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    display: block; object-fit: contain;
}

/* ── bottom bar: zoom ── */
.pf-lb-bottombar {
    display: flex; align-items: center; justify-content: center; gap: 1.5rem;
    padding: .65rem 1rem;
    background: rgba(4,2,18,.6);
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

.pf-lb-zoom-btns {
    display: flex; align-items: center; gap: .2rem;
    background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.22);
    border-radius: 3rem; padding: .3rem .4rem;
    transition: border-color .2s, background .2s;
}
.pf-lb-zoom-btns.is-zoomed {
    background: rgba(99,102,241,.18); border-color: rgba(99,102,241,.55);
}

.pf-lb-zoom-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: transparent; border: none;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s, transform .12s;
    -webkit-tap-highlight-color: transparent;
}
.pf-lb-zoom-btn:hover  { background: rgba(255,255,255,.2); transform: scale(1.1); }
.pf-lb-zoom-btn:active { transform: scale(.92); }
.pf-lb-zoom-btn--reset { opacity: .75; }
.pf-lb-zoom-btn--reset:hover { opacity: 1; }

.pf-lb-zoom-level {
    min-width: 34px; text-align: center;
    font-size: .72rem; font-family: var(--f-mono); letter-spacing: .04em;
    color: rgba(255,255,255,.6);
}
.pf-lb-zoom-sep {
    width: 1px; height: 22px;
    background: rgba(255,255,255,.2);
    margin: 0 .15rem;
}

.pf-lb-hint {
    font-size: .72rem; color: rgba(255,255,255,.3);
    text-align: center; white-space: nowrap;
}

/* ── mobile ── */
@media (max-width: 600px) {
    .pf-lb-topbar      { padding: .5rem .65rem; gap: .5rem; }
    .pf-lb-close       { width: 40px; height: 40px; }
    .pf-lb-topbar-title strong { font-size: .8rem; }
    .pf-lb-stage       { padding: .35rem .35rem; gap: .25rem; }
    .pf-lb-nav         { width: 44px; height: 44px; }
    .pf-lb-img         { border-radius: .75rem; }
    .pf-lb-bottombar   { padding: .5rem .65rem; gap: .75rem; flex-wrap: wrap; }
    .pf-lb-zoom-btn    { width: 44px; height: 44px; }
    .pf-lb-zoom-level  { min-width: 30px; font-size: .7rem; }
    .pf-lb-hint        { display: none; }
}

/* ── CTA section ── */
/* ══ PORTFOLIO CTA — redesign ════════════════════════════════════════ */
.pf-cta-section {
    position: relative; overflow: hidden; padding-block: 0;
    background: linear-gradient(160deg, #05031a 0%, #0d0826 55%, #060b1e 100%);
}
.pf-cta-section::before {
    content: ''; position: absolute; pointer-events: none;
    width: 900px; height: 700px;
    top: 50%; left: 50%; transform: translate(-50%, -55%);
    background: radial-gradient(ellipse, rgba(99,91,255,.18) 0%, rgba(124,58,237,.08) 35%, transparent 65%);
}
.pf-cta-section::after {
    content: ''; position: absolute; pointer-events: none;
    width: 400px; height: 400px; bottom: -80px; right: 10%;
    background: radial-gradient(ellipse, rgba(236,72,153,.12) 0%, transparent 65%);
}
.pf-cta-bg-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(99,91,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,91,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
}
.pf-cta-inner {
    position: relative; z-index: 2;
    max-width: 680px; margin-inline: auto;
    padding-block: 7rem; text-align: center; color: #fff;
}
.pf-cta-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.12); border-radius: 100px;
    padding: .35rem 1rem; background: rgba(255,255,255,.05);
    margin-bottom: 2rem;
}
.pf-cta-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #7c6dfa; box-shadow: 0 0 6px #7c6dfa; flex-shrink: 0;
}
.pf-cta-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900; letter-spacing: -.04em; line-height: 1.1;
    margin-bottom: 1.25rem;
}
.pf-cta-sub {
    font-size: 1.05rem; color: rgba(255,255,255,.6);
    line-height: 1.8; margin-bottom: 2.75rem;
}
.pf-cta-btns {
    display: flex; justify-content: center; align-items: center;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem;
}
.pf-cta-trust {
    display: flex; justify-content: center; align-items: center;
    gap: 0; flex-wrap: wrap;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.pf-trust-item {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.45);
    padding: .4rem 1.5rem;
}
.pf-trust-item svg { color: #7c6dfa; flex-shrink: 0; }
.pf-trust-sep {
    width: 1px; height: 1.2rem;
    background: rgba(255,255,255,.12); flex-shrink: 0;
}

/* ── Portfolio page: general responsive ── */
@media (max-width: 768px) {
    .pf-hero { padding-top: calc(var(--hd-h) + 3rem); padding-bottom: 3rem; }
    .pf-hero-title { font-size: 2.2rem; }
    .pf-stats-bar { flex-wrap: wrap; max-width: 400px; }
    .pf-stat { flex: 1 1 50%; }
    .pf-stat:nth-child(2n) { border-right: none; }
    .pf-stat:nth-child(3),
    .pf-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
    .pf-filters-section { position: relative; top: auto; }
    .pf-cta-inner { padding-block: 4.5rem; }
    .pf-trust-item { padding-inline: 1rem; }
    .pf-section { padding-block: 3.5rem; }
}
/* ═══════════════════════════════════════════════════════════════════
   WEB DESIGN FORM PAGE  (page-templates/web-design-form.php)
   ═══════════════════════════════════════════════════════════════════*/

/* ── Page base ── */
.wdf-page { overflow-x: hidden; }

/* ── HERO ─────────────────────────────────────────────────────────── */
.wdf-hero {
    position: relative;
    background: #04040f;
    padding: 7rem 0 4.5rem;
    overflow: hidden;
}
.wdf-hero-bg {
    position: absolute; inset: 0; pointer-events: none;
}
.wdf-hero-glow {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: .55;
}
.wdf-hero-glow--1 {
    width: 520px; height: 420px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -100px; right: -60px;
}
.wdf-hero-glow--2 {
    width: 380px; height: 300px;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    bottom: -60px; left: 5%;
}
.wdf-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,.08) 1px, transparent 1px);
    background-size: 48px 48px;
}
.wdf-hero-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 2.5rem;
}
.wdf-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.35);
    color: #a5b4fc; font-size: .8rem; font-weight: 600;
    padding: .45rem 1rem; border-radius: 20px;
    width: fit-content; margin-bottom: .5rem;
}
.wdf-eyebrow-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #818cf8;
    box-shadow: 0 0 8px #818cf8;
    animation: wdf-pulse 2s ease infinite;
}
@keyframes wdf-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.75); }
}
.wdf-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800; line-height: 1.25;
    color: #f1f5f9; margin: 0;
}
.wdf-g-text {
    background: linear-gradient(135deg, #818cf8, #38bdf8, #34d399);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.wdf-hero-desc {
    font-size: 1.05rem; color: #94a3b8;
    line-height: 1.85; max-width: 520px; margin: 0;
}
.wdf-hero-desc strong { color: #c7d2fe; }
.wdf-badges {
    display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem;
}
.wdf-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .8rem; font-weight: 600; color: #a5b4fc;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.25);
    padding: .4rem .9rem; border-radius: 20px;
}
.wdf-badge svg { stroke: #818cf8; flex-shrink: 0; }
.wdf-hero-stats {
    display: flex; align-items: center; gap: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px; padding: 1.2rem 1.8rem;
    width: fit-content;
}
.wdf-mini-stat {
    display: flex; flex-direction: column; align-items: center;
    gap: .2rem; padding: 0 1.5rem;
}
.wdf-mini-num {
    font-size: 1.6rem; font-weight: 800; color: #e2e8f0;
    line-height: 1;
}
.wdf-mini-plus { font-size: 1rem; color: #818cf8; }
.wdf-mini-label { font-size: .72rem; color: #64748b; font-weight: 600; }
.wdf-mini-divider {
    width: 1px; height: 36px;
    background: rgba(255,255,255,.1);
    flex-shrink: 0;
}

/* ── HOW IT WORKS ─────────────────────────────────────────────────── */
.wdf-steps-section {
    background: #07070f;
    padding: 3rem 0 3.5rem;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.wdf-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: wrap;
}
.wdf-step {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.4rem 2rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    flex: 1; min-width: 220px; max-width: 280px;
    transition: border-color .3s, background .3s;
}
.wdf-step:hover {
    border-color: rgba(99,102,241,.4);
    background: rgba(99,102,241,.06);
}
.wdf-step-num {
    font-size: 2rem; font-weight: 900;
    color: rgba(99,102,241,.25);
    line-height: 1; flex-shrink: 0; width: 2rem; text-align: center;
}
.wdf-step-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.25);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.wdf-step-icon svg { stroke: #818cf8; }
.wdf-step-body { display: flex; flex-direction: column; gap: .2rem; }
.wdf-step-title { font-size: .95rem; font-weight: 700; color: #e2e8f0; margin: 0; }
.wdf-step-desc  { font-size: .78rem; color: #64748b; margin: 0; line-height: 1.5; }
.wdf-step-arrow {
    flex-shrink: 0; padding: 0 .75rem;
    opacity: .3;
    transform: rotate(180deg);
}
.wdf-step-arrow svg { stroke: #6366f1; }

/* ── FORM SECTION ─────────────────────────────────────────────────── */
.wdf-form-section {
    padding: 4.5rem 0 5rem;
    background: linear-gradient(180deg, #060610 0%, #0a0a1a 100%);
}
.wdf-form-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.wdf-sidebar {
    display: flex; flex-direction: column; gap: 1.25rem;
    position: sticky; top: 90px;
}
.wdf-sidebar-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    padding: 1.5rem;
    transition: border-color .3s;
}
.wdf-sidebar-card:hover { border-color: rgba(99,102,241,.3); }
.wdf-sidebar-card--highlight {
    background: linear-gradient(145deg, rgba(99,102,241,.12), rgba(14,165,233,.08));
    border-color: rgba(99,102,241,.25);
}
.wdf-sc-icon {
    width: 52px; height: 52px;
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.wdf-sc-icon svg { stroke: #818cf8; }
.wdf-sc-title {
    font-size: 1rem; font-weight: 700; color: #e2e8f0;
    margin: 0 0 .75rem;
}
.wdf-sc-desc {
    font-size: .82rem; color: #64748b; margin: 0 0 1rem; line-height: 1.6;
}
.wdf-sc-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: .55rem;
}
.wdf-sc-list li {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; color: #94a3b8;
}
.wdf-sc-list li svg { stroke: #34d399; flex-shrink: 0; }
.wdf-contact-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.2rem; border-radius: 12px;
    font-size: .85rem; font-weight: 700; text-decoration: none;
    transition: all .25s;
}
.wdf-contact-btn--tg {
    background: linear-gradient(135deg, #229ED9, #1a7eb3);
    color: #fff;
    box-shadow: 0 4px 14px rgba(34,158,217,.3);
}
.wdf-contact-btn--tg:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34,158,217,.45); color: #fff; }
.wdf-sidebar-card--testimonial { background: rgba(255,255,255,.03); }
.wdf-testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: .6rem; }
.wdf-testimonial-text {
    font-size: .82rem; color: #94a3b8; line-height: 1.7;
    font-style: italic; margin: 0 0 .6rem;
    border-right: 3px solid rgba(99,102,241,.4);
    padding-right: .75rem;
}
.wdf-testimonial-author {
    font-size: .75rem; color: #64748b; font-style: normal;
}

/* Form card */
.wdf-form-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.wdf-form-card-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.6rem 2rem;
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(14,165,233,.06));
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.wdf-form-card-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: rgba(99,102,241,.2);
    border: 1px solid rgba(99,102,241,.4);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.wdf-form-card-icon svg { stroke: #818cf8; }
.wdf-form-card-title {
    font-size: 1.15rem; font-weight: 700; color: #e2e8f0; margin: 0;
}
.wdf-form-card-subtitle { font-size: .78rem; color: #64748b; margin: .2rem 0 0; }
.wdf-form-body { padding: 2rem; }

/* Override nbf-form styles inside our card */
.wdf-form-body .nbf-wrap { margin: 0; }
.wdf-form-body .nbf-form { display: flex; flex-direction: column; gap: 1.1rem; }
.wdf-form-body .nbf-field { display: flex; flex-direction: column; gap: .4rem; }
.wdf-form-body .nbf-label {
    font-size: .82rem; font-weight: 700; color: #94a3b8;
}
.wdf-form-body .nbf-req { color: #f87171; }
.wdf-form-body .nbf-input,
.wdf-form-body .nbf-select {
    width: 100%; padding: .85rem 1rem;
    background: rgba(255,255,255,.05);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #e2e8f0; font-size: .9rem; font-family: inherit;
    direction: rtl;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.wdf-form-body .nbf-input::placeholder { color: #475569; }
.wdf-form-body .nbf-input:focus,
.wdf-form-body .nbf-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.2);
    background: rgba(99,102,241,.06);
}
.wdf-form-body .nbf-input:hover:not(:focus),
.wdf-form-body .nbf-select:hover:not(:focus) {
    border-color: rgba(255,255,255,.2);
}
.wdf-form-body .nbf-select-wrap { position: relative; }
.wdf-form-body .nbf-select { padding-left: 2rem; cursor: pointer; }
.wdf-form-body .nbf-select option { background: #1e1e2e; color: #e2e8f0; }
.wdf-form-body .nbf-select-arrow {
    position: absolute; left: .75rem; top: 50%;
    transform: translateY(-50%);
    pointer-events: none; stroke: #64748b;
}
.wdf-form-body textarea.nbf-input { min-height: 110px; resize: vertical; line-height: 1.7; }
.wdf-form-body .nbf-field-err { font-size: .75rem; color: #f87171; min-height: 1rem; }
.wdf-form-body .nbf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
/* Submit button */
.wdf-form-body .nbf-submit,
.wdf-form-body button[type="submit"] {
    width: 100%; padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff; font-size: 1rem; font-weight: 700;
    border: none; border-radius: 12px; cursor: pointer;
    letter-spacing: .5px;
    box-shadow: 0 8px 24px rgba(99,102,241,.35);
    transition: all .3s cubic-bezier(.22,.8,.2,1);
    margin-top: .5rem;
}
.wdf-form-body .nbf-submit:hover,
.wdf-form-body button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99,102,241,.5);
    background: linear-gradient(135deg, #818cf8, #6366f1);
}
/* Success / error messages */
.wdf-form-body .nbf-success {
    background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3);
    color: #6ee7b7; border-radius: 12px; padding: 1.2rem 1.4rem;
    font-size: .9rem; line-height: 1.6;
}
.wdf-form-body .nbf-error-box {
    background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3);
    color: #fca5a5; border-radius: 12px; padding: 1rem 1.2rem;
    font-size: .85rem;
}
/* CAPTCHA */
.wdf-form-body .nbf-captcha-wrap {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; padding: 1rem;
    display: flex; align-items: center; gap: .75rem;
    flex-wrap: wrap;
}
.wdf-form-body .nbf-captcha-img { border-radius: 6px; }
/* File upload */
.wdf-form-body input[type="file"] {
    color: #64748b; font-size: .82rem;
    background: rgba(255,255,255,.03);
    border: 1.5px dashed rgba(255,255,255,.12);
    padding: .75rem 1rem; border-radius: 10px; cursor: pointer;
    width: 100%; box-sizing: border-box;
}
.wdf-form-body input[type="file"]:hover { border-color: rgba(99,102,241,.4); }

/* ── TYPES SECTION ────────────────────────────────────────────────── */
.wdf-types-section {
    padding: 5rem 0;
    background: #04040f;
    border-top: 1px solid rgba(255,255,255,.06);
}
.wdf-types-header { text-align: center; margin-bottom: 3rem; }
.wdf-types-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800; color: #f1f5f9; margin: 0 0 .6rem;
}
.wdf-types-sub { font-size: .9rem; color: #64748b; margin: 0; }
.wdf-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.wdf-type-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px; padding: 1.8rem 1.5rem;
    display: flex; flex-direction: column; gap: .75rem;
    transition: border-color .3s, transform .3s, background .3s;
}
.wdf-type-card:hover {
    border-color: rgba(99,102,241,.35);
    background: rgba(99,102,241,.05);
    transform: translateY(-4px);
}
.wdf-type-icon {
    width: 54px; height: 54px;
    background: color-mix(in srgb, var(--wdf-type-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--wdf-type-color) 30%, transparent);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
}
.wdf-type-icon svg { stroke: var(--wdf-type-color); }
.wdf-type-title { font-size: .95rem; font-weight: 700; color: #e2e8f0; margin: 0; }
.wdf-type-desc  { font-size: .8rem; color: #64748b; margin: 0; line-height: 1.6; }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .wdf-form-container { grid-template-columns: 1fr; }
    .wdf-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .wdf-sidebar-card { flex: 1; min-width: 240px; }
    .wdf-types-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .wdf-hero { padding: 5rem 0 3rem; }
    .wdf-hero-title { font-size: 1.85rem; }
    .wdf-steps { flex-direction: column; gap: .5rem; }
    .wdf-step { max-width: 100%; }
    .wdf-step-arrow { transform: rotate(90deg); opacity: .25; }
    .wdf-form-card-header { padding: 1.2rem; flex-wrap: wrap; }
    .wdf-form-body { padding: 1.2rem; }
    .wdf-form-body .nbf-row-2 { grid-template-columns: 1fr; }
    .wdf-types-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
    .wdf-hero-stats { flex-wrap: wrap; gap: 0; }
    .wdf-sidebar { flex-direction: column; }
    .wdf-sidebar-card { min-width: unset; }
}
@media (max-width: 480px) {
    .wdf-types-grid { grid-template-columns: 1fr; }
    .wdf-badges { flex-direction: column; }
    .wdf-mini-divider { width: 36px; height: 1px; }
    .wdf-hero-stats { flex-direction: row; }
}

/* ═══════════════════════════════════════════════════════════════════
   SERVICE PAGE  (page-templates/service-page.php)
   ═══════════════════════════════════════════════════════════════════*/

.sp-page { overflow-x: hidden; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.sp-hero {
    position: relative;
    background: #03030d;
    padding: 7rem 0 5rem;
    overflow: hidden;
}
.sp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.sp-glow {
    position: absolute;
    width: 600px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sp-color, #6366f1) 0%, transparent 65%);
    filter: blur(100px); opacity: .35;
    top: -150px; right: -100px;
}
.sp-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
    background-size: 52px 52px;
}
.sp-hero-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 1.5rem;
    max-width: 720px;
}
.sp-hero-icon {
    width: 72px; height: 72px;
    background: color-mix(in srgb, var(--sp-color, #6366f1) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--sp-color, #6366f1) 30%, transparent);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    color: var(--sp-color, #6366f1);
    margin-bottom: .5rem;
}
.sp-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.3);
    color: #a5b4fc; font-size: .78rem; font-weight: 600;
    padding: .4rem .9rem; border-radius: 20px; width: fit-content;
}
.sp-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sp-color, #818cf8);
    box-shadow: 0 0 8px var(--sp-color, #818cf8);
    animation: wdf-pulse 2s ease infinite;
}
.sp-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800; color: #f1f5f9;
    line-height: 1.2; margin: 0;
}
.sp-g-text {
    background: linear-gradient(135deg, var(--sp-color, #818cf8), #38bdf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sp-hero-desc {
    font-size: 1.05rem; color: #94a3b8;
    line-height: 1.85; margin: 0; max-width: 580px;
}
.sp-badges {
    display: flex; flex-wrap: wrap; gap: .5rem;
}
.sp-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .78rem; font-weight: 600; color: #a5b4fc;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.22);
    padding: .35rem .85rem; border-radius: 20px;
}
.sp-badge svg { stroke: #4ade80; flex-shrink: 0; }
.sp-hero-cta {
    display: flex; align-items: center; gap: 1rem;
    flex-wrap: wrap; margin-top: .5rem;
}

/* ── Shared section ───────────────────────────────────────────────── */
.sp-section {
    padding: 5rem 0;
}
.sp-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800; color: var(--c-text);
    margin: 0 0 .5rem; text-align: center;
}
.sp-section-sub {
    text-align: center; color: var(--c-text3);
    font-size: .9rem; margin: 0 0 3rem;
}

/* ── Features grid ────────────────────────────────────────────────── */
.sp-features-section {
    background: var(--c-bg2);
    border-top: 1px solid var(--c-border2);
}
.sp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.sp-features-grid--wide {
    grid-template-columns: repeat(4, 1fr);
}
.sp-fc {
    background: var(--c-surface);
    border: 1px solid var(--c-border2);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    display: flex; flex-direction: column; gap: .6rem;
    transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
    text-decoration: none; color: inherit;
}
.sp-fc:hover {
    border-color: color-mix(in srgb, var(--sp-fc, #6366f1) 50%, transparent);
    background: color-mix(in srgb, var(--sp-fc, #6366f1) 4%, transparent);
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
}
.sp-fc-icon {
    width: 50px; height: 50px;
    background: color-mix(in srgb, var(--sp-fc, #6366f1) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--sp-fc, #6366f1) 28%, transparent);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: var(--sp-fc, #818cf8);
    flex-shrink: 0;
}
.sp-fc-title {
    font-size: .95rem; font-weight: 700; color: var(--c-text); margin: 0;
}
.sp-fc-desc {
    font-size: .8rem; color: var(--c-text2); margin: 0; line-height: 1.6; flex: 1;
}
.sp-fc-more {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .78rem; font-weight: 700;
    color: var(--sp-fc, #818cf8); margin-top: .25rem;
}

/* ── Process ─────────────────────────────────────────────────────── */
.sp-process-section {
    background: var(--c-bg);
    border-top: 1px solid var(--c-border2);
    border-bottom: 1px solid var(--c-border2);
}
.sp-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.sp-ps {
    display: flex; flex-direction: column; gap: 1rem;
    padding: 2rem 1.5rem;
    position: relative;
    border-right: 1px solid var(--c-border2);
    animation-delay: var(--sp-ps-delay, 0ms);
}
.sp-ps:first-child { border-right: none; }
.sp-ps-num-wrap { position: relative; display: flex; align-items: center; gap: 1rem; }
.sp-ps-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff; font-size: 1.1rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(99,102,241,.3);
}
.sp-ps-connector {
    flex: 1; height: 2px;
    background: linear-gradient(90deg, rgba(99,102,241,.4), rgba(99,102,241,.1));
    display: none;
}
.sp-ps-body { padding-right: 0; }
.sp-ps-title {
    font-size: .95rem; font-weight: 700; color: var(--c-text); margin: 0 0 .3rem;
}
.sp-ps-desc { font-size: .8rem; color: var(--c-text2); margin: 0; line-height: 1.6; }

/* ── Stack ───────────────────────────────────────────────────────── */
.sp-stack-section { background: var(--c-bg2); }
.sp-chips {
    display: flex; flex-wrap: wrap;
    gap: .6rem; justify-content: center;
}
.sp-chip {
    background: var(--c-surface);
    border: 1px solid var(--c-border2);
    color: var(--c-text2); font-size: .82rem; font-weight: 600;
    padding: .4rem 1rem; border-radius: 20px;
    transition: border-color .25s, color .25s, background .25s;
}
.sp-chip:hover { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-tag-bg); }

/* ── Portfolio strip ─────────────────────────────────────────────── */
/* ── Stats Section ───────────────────────────────────────────────── */
.sp-stats-section {
    position: relative;
    background: var(--c-bg);
    padding: 5rem 0 4.5rem;
    overflow: hidden;
    border-top: 1px solid var(--c-border2);
    border-bottom: 1px solid var(--c-border2);
    text-align: center;
}
/* Ambient glow blobs */
.sp-stats-section::before,
.sp-stats-section::after {
    content: '';
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(80px); opacity: .08;
}
.sp-stats-section::before {
    width: 500px; height: 500px;
    background: var(--sp-color, #635bff);
    top: -180px; right: -120px;
}
.sp-stats-section::after {
    width: 400px; height: 400px;
    background: #ec4899;
    bottom: -160px; left: -100px;
}

.sp-stats-eyebrow {
    font-size: .75rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-text3);
    margin-bottom: 1rem;
}
.sp-stats-headline {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 900; color: var(--c-text);
    letter-spacing: -.03em; margin: 0 0 3.5rem;
}
.sp-stats-headline span {
    background: linear-gradient(135deg, var(--sp-color, #635bff) 0%, #ec4899 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative; z-index: 1;
}
.sp-stat-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border2);
    border-radius: 20px;
    padding: 2.2rem 1.5rem 2rem;
    display: flex; flex-direction: column; align-items: center; gap: .55rem;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.sp-stat-card:hover {
    background: var(--c-surface);
    border-color: rgba(99,91,255,.25);
    transform: translateY(-3px);
    box-shadow: var(--sh-lg);
}
.sp-stat-icon-wrap {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--sp-color, #635bff) 12%, transparent);
    margin-bottom: .4rem;
    color: var(--sp-color, #635bff);
}
.sp-stat-value {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900; line-height: 1; letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--sp-color, #635bff) 0%, #ec4899 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex; align-items: baseline; gap: .1em;
}
.sp-stat-value sup {
    font-size: .55em; font-weight: 700; margin-right: .05em;
}
.sp-stat-label {
    font-size: .9rem; color: var(--c-text2);
    font-weight: 500; line-height: 1.4;
}

.sp-stats-footer {
    margin-top: 3rem;
    display: flex; align-items: center; justify-content: center; gap: 1.25rem;
    position: relative; z-index: 1;
}
.sp-stats-footer-text {
    font-size: .88rem; color: var(--c-text3);
}

/* Responsive */
@media (max-width: 900px) {
    .sp-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .sp-stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .sp-stat-card { padding: 1.5rem 1rem; }
}

/* ── CTA Banner ──────────────────────────────────────────────────── */
.sp-cta-section {
    position: relative;
    background: var(--c-bg2);
    padding: 5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--c-border2);
}
.sp-cta-glow {
    position: absolute; width: 500px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sp-color, #6366f1) 0%, transparent 70%);
    filter: blur(110px); opacity: .12;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.sp-cta-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center;
    justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.sp-cta-title {
    font-size: 1.75rem; font-weight: 800; color: var(--c-text); margin: 0 0 .4rem;
}
.sp-cta-desc { color: var(--c-text2); margin: 0; font-size: .95rem; }
.sp-cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.sp-cta-link {
    font-size: .8rem; color: var(--c-text3); text-decoration: none;
    transition: color .25s;
}
.sp-cta-link:hover { color: var(--c-accent); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sp-features-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-features-grid--wide { grid-template-columns: repeat(3, 1fr); }
    .sp-process { grid-template-columns: repeat(2, 1fr); }
    .sp-ps { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
    .sp-ps:nth-child(4n) { border-bottom: none; }
}
@media (max-width: 768px) {
    .sp-hero { padding: 5rem 0 3.5rem; }
    .sp-hero-inner { max-width: 100%; }
    .sp-features-grid,
    .sp-features-grid--wide { grid-template-columns: 1fr 1fr; }
    .sp-process { grid-template-columns: 1fr; }
    .sp-ps { border-bottom: 1px solid rgba(255,255,255,.07); border-right: none; }
    .sp-ps:last-child { border-bottom: none; }
    .sp-portfolio-inner { flex-direction: column; align-items: flex-start; }
    .sp-cta-inner { flex-direction: column; align-items: flex-start; }
    .sp-cta-actions { align-items: flex-start; }
}
@media (max-width: 480px) {
    .sp-features-grid,
    .sp-features-grid--wide { grid-template-columns: 1fr; }
    .sp-hero-cta { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ PAGE  (page-templates/faq.php)
   ═══════════════════════════════════════════════════════════════════*/

.fq-page { overflow-x: hidden; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.fq-hero {
    position: relative;
    background: #03030d;
    padding: 7rem 0 4.5rem;
    overflow: hidden;
    text-align: center;
}
.fq-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.fq-hero-glow {
    position: absolute;
    width: 500px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, #6366f1 0%, transparent 65%);
    filter: blur(100px); opacity: .25;
    left: 50%; top: -60px; transform: translateX(-50%);
}
.fq-hero-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    align-items: center; gap: 1.25rem;
}
.fq-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.3);
    color: #a5b4fc; font-size: .78rem; font-weight: 600;
    padding: .4rem .9rem; border-radius: 20px;
}
.fq-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #818cf8; box-shadow: 0 0 8px #818cf8;
    animation: wdf-pulse 2s ease infinite;
}
.fq-hero-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800; color: #f1f5f9;
    line-height: 1.25; margin: 0;
}
.fq-g-text {
    background: linear-gradient(135deg, #818cf8, #38bdf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fq-hero-desc { font-size: .95rem; color: #94a3b8; margin: 0; max-width: 480px; }

/* ── Body layout ─────────────────────────────────────────────────── */
.fq-body {
    padding: 5rem 0 6rem;
    background: #07070f;
    border-top: 1px solid rgba(255,255,255,.06);
}
.fq-body-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.fq-sidebar {
    display: flex; flex-direction: column; gap: .4rem;
    position: sticky; top: 90px;
}
.fq-cat-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.07);
    color: #64748b; font-size: .82rem; font-weight: 600;
    padding: .6rem 1rem; border-radius: 10px;
    cursor: pointer; text-align: right;
    font-family: inherit;
    transition: all .25s;
}
.fq-cat-btn:hover { border-color: rgba(99,102,241,.3); color: #a5b4fc; }
.fq-cat-btn--active {
    background: rgba(99,102,241,.12);
    border-color: rgba(99,102,241,.35);
    color: #c7d2fe;
}

/* ── Accordion ───────────────────────────────────────────────────── */
.fq-accordion { display: flex; flex-direction: column; gap: .75rem; }
.fq-item {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .25s;
}
.fq-item:has(.fq-q[aria-expanded="true"]),
.fq-item:hover { border-color: rgba(99,102,241,.3); }
.fq-q {
    width: 100%; background: none; border: none;
    color: inherit; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-align: right;
    transition: background .2s;
}
.fq-q:hover { background: rgba(255,255,255,.02); }
.fq-q[aria-expanded="true"] { background: rgba(99,102,241,.06); }
.fq-q-num {
    font-size: .7rem; font-weight: 800; color: #4f46e5;
    background: rgba(99,102,241,.15); border-radius: 6px;
    padding: .2rem .45rem; flex-shrink: 0;
    font-variant-numeric: tabular-nums; font-family: sans-serif;
}
.fq-q-text {
    flex: 1; font-size: .95rem; font-weight: 600; color: #e2e8f0;
    line-height: 1.5;
}
.fq-q-icon {
    flex-shrink: 0; stroke: #64748b;
    transition: transform .3s;
}
.fq-q[aria-expanded="true"] .fq-q-icon { transform: rotate(180deg); stroke: #818cf8; }

.fq-a {
    padding: 0 1.5rem 1.25rem calc(1.5rem + 2.5rem);
    border-top: 1px solid rgba(255,255,255,.06);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .25s;
}
.fq-a--open { max-height: 600px; }
.fq-a[hidden] { display: block !important; max-height: 0; padding-top: 0; padding-bottom: 0; border-top: none; }
.fq-a-text {
    font-size: .88rem; color: #94a3b8; line-height: 1.85;
    margin: 1rem 0 .75rem;
}
.fq-cat-tag {
    display: inline-block;
    font-size: .7rem; font-weight: 700; color: #4f46e5;
    background: rgba(99,102,241,.12);
    padding: .2rem .6rem; border-radius: 6px;
}

/* ── CTA ─────────────────────────────────────────────────────────── */
.fq-cta {
    background: linear-gradient(135deg, #06060f 0%, #0a0a1a 100%);
    padding: 4.5rem 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.fq-cta-inner {
    display: flex; align-items: center;
    gap: 2rem; flex-wrap: wrap;
}
.fq-cta-icon {
    width: 64px; height: 64px; flex-shrink: 0;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: #818cf8;
}
.fq-cta-title {
    font-size: 1.5rem; font-weight: 800; color: #f1f5f9; margin: 0 0 .3rem;
}
.fq-cta-desc { color: #64748b; margin: 0; font-size: .88rem; }
.fq-cta-btns {
    display: flex; align-items: center; gap: .75rem;
    flex-wrap: wrap; margin-right: auto;
}

/* ── FAQ responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .fq-body-inner { grid-template-columns: 1fr; }
    .fq-sidebar { flex-direction: row; flex-wrap: wrap; position: static; }
    .fq-cat-btn { flex: 0 0 auto; }
}
@media (max-width: 640px) {
    .fq-hero { padding: 5rem 0 3rem; }
    .fq-q { padding: 1rem 1rem; }
    .fq-a { padding-right: 1rem; padding-left: 1rem; }
    .fq-cta-inner { flex-direction: column; align-items: flex-start; }
    .fq-cta-btns { margin-right: 0; }
}

.display_none {
    display: none!important;
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   Sections with hardcoded dark colors — forced to light when
   [data-theme="light"] is active on <html>
   ═══════════════════════════════════════════════════════════════════ */

/* ── Archive hero ────────────────────────────────────────────────── */
[data-theme="light"] .archive-hero {
    background: var(--c-bg3);
    border-bottom: 1px solid var(--c-border2);
}
[data-theme="light"] .archive-hero .nb-breadcrumb,
[data-theme="light"] .archive-hero .nb-breadcrumb a,
[data-theme="light"] .archive-hero .nb-breadcrumb .sep { color: var(--c-text3); }
[data-theme="light"] .archive-hero .nb-breadcrumb a:hover { color: var(--c-text); }
[data-theme="light"] .arch-eyebrow-badge {
    background: var(--c-tag-bg);
    color: var(--c-accent);
    border-color: var(--c-border);
}
[data-theme="light"] .archive-hero-title { color: var(--c-text); }
[data-theme="light"] .archive-hero-desc  { color: var(--c-text2); }
[data-theme="light"] .arch-meta-count    { color: var(--c-text3); }

/* ── Single post hero ───────────────────────────────────────────── */
[data-theme="light"] .single-hero {
    background: var(--c-bg3);
}
[data-theme="light"] .single-hero .nb-breadcrumb,
[data-theme="light"] .single-hero .nb-breadcrumb a,
[data-theme="light"] .single-hero .nb-breadcrumb .sep { color: var(--c-text3); }
[data-theme="light"] .single-hero .nb-breadcrumb a:hover { color: var(--c-text); }
[data-theme="light"] .single-hero .nb-tag {
    background: var(--c-tag-bg);
    color: var(--c-tag);
    border-color: var(--c-border);
}
[data-theme="light"] .single-title { color: var(--c-text); }
[data-theme="light"] .single-meta  { color: var(--c-text2); }
[data-theme="light"] .single-meta-sep { background: var(--c-border2); }

/* ── Page hero ──────────────────────────────────────────────────── */
[data-theme="light"] .page-hero { background: var(--c-bg3); }

/* ── About page hero ────────────────────────────────────────────── */
[data-theme="light"] .about-hero {
    background: var(--c-bg3);
}
[data-theme="light"] .about-hero-eyebrow { color: var(--c-text3); }
[data-theme="light"] .about-hero-title   { color: var(--c-text); }
[data-theme="light"] .about-hero-desc    { color: var(--c-text2); }
[data-theme="light"] .about-hero-code-block {
    background: var(--c-bg);
    border-color: var(--c-border2);
    box-shadow: var(--sh-lg);
}
[data-theme="light"] .ahcb-code { color: var(--c-text2); }

/* ── About CTA section ──────────────────────────────────────────── */
[data-theme="light"] .about-cta-section {
    background: var(--grad-soft);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}
[data-theme="light"] .acta-eyebrow {
    color: var(--c-text3);
    border-color: var(--c-border);
    background: var(--c-surface);
}
[data-theme="light"] .acta-title { color: var(--c-text); }
[data-theme="light"] .acta-desc  { color: var(--c-text2); }
[data-theme="light"] .acta-tel-link       { color: var(--c-text3); }
[data-theme="light"] .acta-tel-link:hover { color: var(--c-text); }
[data-theme="light"] .acta-card {
    background: var(--c-surface);
    border-color: var(--c-border2);
    box-shadow: var(--sh-sm);
    backdrop-filter: none;
}
[data-theme="light"] .acta-card:hover {
    background: var(--c-bg3);
    border-color: var(--c-accent);
}
[data-theme="light"] .acta-card-title { color: var(--c-text); }
[data-theme="light"] .acta-card-desc  { color: var(--c-text2); }

/* ── Contact hero ───────────────────────────────────────────────── */
[data-theme="light"] .contact-hero {
    background: var(--c-bg3);
}
[data-theme="light"] .contact-hero-title { color: var(--c-text); }
[data-theme="light"] .contact-hero-desc  { color: var(--c-text2); }

/* ── Portfolio hero ─────────────────────────────────────────────── */
[data-theme="light"] .pf-hero { background: var(--c-bg3); }
[data-theme="light"] .pf-hero-eyebrow { color: var(--c-text3); }
[data-theme="light"] .pf-hero-title   { color: var(--c-text); }
[data-theme="light"] .pf-hero-sub     { color: var(--c-text2); }
[data-theme="light"] .pf-stats-bar {
    background: var(--c-surface);
    border-color: var(--c-border2);
    backdrop-filter: none;
}
[data-theme="light"] .pf-stat { border-right-color: var(--c-border2); }
[data-theme="light"] .pf-stat-num   { color: var(--c-text); }
[data-theme="light"] .pf-stat-label { color: var(--c-text3); }

/* ── Portfolio CTA ──────────────────────────────────────────────── */
[data-theme="light"] .pf-cta-section {
    background: var(--grad-soft);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}
[data-theme="light"] .pf-cta-inner { color: var(--c-text); }
[data-theme="light"] .pf-cta-badge {
    color: var(--c-text3);
    border-color: var(--c-border);
    background: var(--c-surface);
}
[data-theme="light"] .pf-cta-title { color: var(--c-text); }
[data-theme="light"] .pf-cta-sub   { color: var(--c-text2); }
[data-theme="light"] .pf-cta-trust { border-top-color: var(--c-border2); }
[data-theme="light"] .pf-trust-item { color: var(--c-text3); }
[data-theme="light"] .pf-trust-sep  { background: var(--c-border2); }

/* ── WDF hero ───────────────────────────────────────────────────── */
[data-theme="light"] .wdf-hero { background: var(--c-bg3); }
[data-theme="light"] .wdf-hero-title { color: var(--c-text); }
[data-theme="light"] .wdf-hero-desc  { color: var(--c-text2); }
[data-theme="light"] .wdf-hero-desc strong { color: var(--c-text); }
[data-theme="light"] .wdf-eyebrow {
    color: var(--c-accent);
    background: var(--c-tag-bg);
    border-color: var(--c-border);
}
[data-theme="light"] .wdf-badge {
    color: var(--c-accent);
    background: var(--c-tag-bg);
    border-color: var(--c-border);
}
[data-theme="light"] .wdf-hero-stats {
    background: var(--c-surface);
    border-color: var(--c-border2);
    box-shadow: var(--sh-sm);
}
[data-theme="light"] .wdf-mini-num     { color: var(--c-text); }
[data-theme="light"] .wdf-mini-divider { background: var(--c-border2); }

/* ── WDF steps section ──────────────────────────────────────────── */
[data-theme="light"] .wdf-steps-section {
    background: var(--c-bg2);
    border-top-color: var(--c-border2);
    border-bottom-color: var(--c-border2);
}
[data-theme="light"] .wdf-step {
    background: var(--c-surface);
    border-color: var(--c-border2);
}
[data-theme="light"] .wdf-step:hover {
    border-color: var(--c-accent);
    background: var(--c-bg3);
}
[data-theme="light"] .wdf-step-title { color: var(--c-text); }

/* ── WDF form section ───────────────────────────────────────────── */
[data-theme="light"] .wdf-form-section { background: var(--c-bg2); }
[data-theme="light"] .wdf-sidebar-card {
    background: var(--c-surface);
    border-color: var(--c-border2);
    box-shadow: var(--sh-sm);
}
[data-theme="light"] .wdf-sidebar-card--highlight {
    background: var(--grad-soft);
    border-color: var(--c-border);
}
[data-theme="light"] .wdf-sidebar-card--testimonial { background: var(--c-bg2); }
[data-theme="light"] .wdf-sc-title { color: var(--c-text); }
[data-theme="light"] .wdf-sc-desc  { color: var(--c-text2); }
[data-theme="light"] .wdf-sc-list li { color: var(--c-text2); }
[data-theme="light"] .wdf-testimonial-text   { color: var(--c-text2); border-right-color: var(--c-border); }
[data-theme="light"] .wdf-testimonial-author { color: var(--c-text3); }
[data-theme="light"] .wdf-form-card {
    background: var(--c-surface);
    border-color: var(--c-border2);
    box-shadow: var(--sh-lg);
}
[data-theme="light"] .wdf-form-card-header {
    background: var(--c-bg2);
    border-bottom-color: var(--c-border2);
}
[data-theme="light"] .wdf-form-card-title { color: var(--c-text); }
[data-theme="light"] .wdf-form-body .nbf-label { color: var(--c-text2); }
[data-theme="light"] .wdf-form-body .nbf-input,
[data-theme="light"] .wdf-form-body .nbf-select {
    background: var(--c-bg);
    border-color: var(--c-border2);
    color: var(--c-text);
}
[data-theme="light"] .wdf-form-body .nbf-input::placeholder { color: var(--c-text3); }
[data-theme="light"] .wdf-form-body .nbf-input:hover:not(:focus),
[data-theme="light"] .wdf-form-body .nbf-select:hover:not(:focus) { border-color: var(--c-border); }
[data-theme="light"] .wdf-form-body .nbf-select option { background: #fff; color: #0a0514; }
[data-theme="light"] .wdf-form-body .nbf-captcha-wrap {
    background: var(--c-bg2);
    border-color: var(--c-border2);
}
[data-theme="light"] .wdf-form-body input[type="file"] {
    background: var(--c-bg2);
    border-color: var(--c-border);
    color: var(--c-text2);
}

/* ── WDF types section ──────────────────────────────────────────── */
[data-theme="light"] .wdf-types-section {
    background: var(--c-bg);
    border-top-color: var(--c-border2);
}
[data-theme="light"] .wdf-types-title { color: var(--c-text); }
[data-theme="light"] .wdf-type-card {
    background: var(--c-surface);
    border-color: var(--c-border2);
}
[data-theme="light"] .wdf-type-card:hover {
    background: var(--c-bg2);
    border-color: var(--c-accent);
}
[data-theme="light"] .wdf-type-title { color: var(--c-text); }

/* ── Service page hero ──────────────────────────────────────────── */
[data-theme="light"] .sp-hero { background: var(--c-bg3); }
[data-theme="light"] .sp-hero-title { color: var(--c-text); }
[data-theme="light"] .sp-hero-desc  { color: var(--c-text2); }
[data-theme="light"] .sp-eyebrow {
    color: var(--c-accent);
    background: var(--c-tag-bg);
    border-color: var(--c-border);
}
[data-theme="light"] .sp-badge {
    color: var(--c-accent);
    background: var(--c-tag-bg);
    border-color: var(--c-border);
}

/* ── FAQ hero ───────────────────────────────────────────────────── */
[data-theme="light"] .fq-hero { background: var(--c-bg3); }
[data-theme="light"] .fq-hero-title { color: var(--c-text); }
[data-theme="light"] .fq-hero-desc  { color: var(--c-text2); }
[data-theme="light"] .fq-eyebrow {
    color: var(--c-accent);
    background: var(--c-tag-bg);
    border-color: var(--c-border);
}

/* ── FAQ body ───────────────────────────────────────────────────── */
[data-theme="light"] .fq-body {
    background: var(--c-bg2);
    border-top-color: var(--c-border2);
}
[data-theme="light"] .fq-cat-btn {
    border-color: var(--c-border2);
    color: var(--c-text3);
}
[data-theme="light"] .fq-cat-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
[data-theme="light"] .fq-cat-btn--active {
    background: var(--c-tag-bg);
    border-color: var(--c-border);
    color: var(--c-accent);
}
[data-theme="light"] .fq-item {
    background: var(--c-surface);
    border-color: var(--c-border2);
}
[data-theme="light"] .fq-item:has(.fq-q[aria-expanded="true"]),
[data-theme="light"] .fq-item:hover { border-color: var(--c-accent); }
[data-theme="light"] .fq-q:hover { background: var(--c-bg2); }
[data-theme="light"] .fq-q[aria-expanded="true"] { background: var(--c-tag-bg); }
[data-theme="light"] .fq-q-text { color: var(--c-text); }
[data-theme="light"] .fq-a { border-top-color: var(--c-border2); }
[data-theme="light"] .fq-a-text { color: var(--c-text2); }

/* ── FAQ CTA ─────────────────────────────────────────────────────── */
[data-theme="light"] .fq-cta {
    background: var(--grad-soft);
    border-top-color: var(--c-border2);
}
[data-theme="light"] .fq-cta-icon {
    background: var(--c-tag-bg);
    border-color: var(--c-border);
    color: var(--c-accent);
}
[data-theme="light"] .fq-cta-title { color: var(--c-text); }
[data-theme="light"] .fq-cta-desc  { color: var(--c-text2); }