/* ------------------------------------
                all theme
--------------------------------------*/

:root {
    --bg: #ffffff;
    --bg-2: #f7f8f5;
    --bg-3: #eef0eb;
    --bg-soft: #fbfbf9;
    --bg-dark: #0f1108;
    --text: #0a0a0a;
    --text-soft: #2a2a2a;
    --text-muted: #6a6a6a;
    --text-faint: #a0a0a0;
    --accent: #8BC852;
    --accent-dark: #5a9a2a;
    --accent-light: #b8e088;
    --accent-soft: rgba(139, 200, 82, 0.18);
    --accent-dim: rgba(139, 200, 82, 0.06);
    --line: rgba(0, 0, 0, 0.08);
    --line-soft: rgba(0, 0, 0, 0.04);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-pill: 999px;

    --shadow-xs: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 12px -4px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 30px 80px -20px rgba(0, 0, 0, 0.18), 0 12px 24px -6px rgba(0, 0, 0, 0.06);
    --shadow-accent: 0 20px 50px -15px rgba(139, 200, 82, 0.4), 0 8px 20px -8px rgba(139, 200, 82, 0.2);

    --ease-quiet: cubic-bezier(.22, 1, .36, 1);
    --ease-precise: cubic-bezier(.4, 0, .2, 1);
    --ease-emphasis: cubic-bezier(.16, 1, .3, 1);
    --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Arad', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

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

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

button {
    font-family: inherit;
}

.container, .container-fluid {
    padding-right: 2rem;
    padding-left: 2rem;
}

/* TYPOGRAPHY */
.label-en {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: inline-block;
}

.headline-xl {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
}

.headline-lg {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.015em;
}

.headline-md {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    line-height: 1.15;
}

.text-accent {
    color: var(--accent-dark);
}

/* FADE-IN */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1100ms var(--ease-quiet), transform 1100ms var(--ease-quiet);
    will-change: transform, opacity;
}

.fade-in.is-in {
    opacity: 1;
    transform: none;
}

.fade-in.delay-1 {
    transition-delay: 100ms;
}

.fade-in.delay-2 {
    transition-delay: 200ms;
}

.fade-in.delay-3 {
    transition-delay: 300ms;
}

.fade-in.delay-4 {
    transition-delay: 400ms;
}

.fade-in.delay-5 {
    transition-delay: 500ms;
}

/* NAV */
.nav-bar {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 100;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    transition: all 400ms var(--ease-quiet);
}

.nav-bar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}


.nav-brand .brand-logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.nav-brand .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: 0 4px 12px -2px rgba(139, 200, 82, 0.5);
}

.nav-brand .logo-mark::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
}

.nav-brand .brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-brand .brand-sub {
    font-family: 'Arad', sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-right: 1px solid var(--line);
    padding-right: 0.7rem;
    margin-right: 0.3rem;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    font-size: 0.9rem;
    color: var(--text-soft);
    position: relative;
    transition: color 300ms var(--ease-quiet);
    padding: 0.5rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    border-radius: var(--radius-pill);
}

.nav-links > li > a:hover {
    color: var(--accent-dark);
    background: var(--accent-dim);
}

.nav-links .has-mega > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-right: 0.3rem;
    margin-bottom: 2px;
    transition: transform 300ms var(--ease-quiet);
}

.nav-links .has-mega:hover > a::after {
    transform: rotate(225deg);
}

/* MEGA PANEL */
.mega-panel {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: 880px;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 350ms var(--ease-quiet), transform 350ms var(--ease-quiet), visibility 350ms;
    pointer-events: none;
}

.mega-panel::before {
    content: '';
    position: absolute;
    top: -1rem;
    right: 0;
    left: 0;
    height: 1rem;
    background: transparent;
}

.mega-panel::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 30px;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
    transform: rotate(45deg);
}

.has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-col h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.mega-col ul {
    list-style: none;
    padding: 0;
}

.mega-col ul li {
    margin-bottom: 0.3rem;
}

.mega-col ul li a {
    font-size: 0.88rem;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    transition: all 300ms var(--ease-quiet);
}

.mega-col ul li a:hover {
    color: var(--accent-dark);
    background: var(--accent-dim);
    padding-right: 1rem;
}

.mega-col ul li a .arrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 300ms var(--ease-quiet);
}

.mega-col ul li a:hover .arrow {
    opacity: 1;
}

.mega-feature {
    background: linear-gradient(135deg, var(--accent-dim), var(--bg-2));
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line-soft);
}

.mega-feature .feature-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
}

.mega-feature .feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms var(--ease-quiet);
}

.mega-feature:hover .feature-img img {
    transform: scale(1.05);
}

.mega-feature h5 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.mega-feature p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.mega-feature .mega-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-top: 1px solid var(--line);
    padding-top: 0.8rem;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-phone {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    color: var(--text-soft);
    direction: ltr;
}

.nav-phone .lbl {
    color: var(--text-muted);
    margin-left: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.btn-contact {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-size: 0.86rem;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: all 300ms var(--ease-quiet);
    box-shadow: 0 6px 16px -4px rgba(139, 200, 82, 0.5);
}

.btn-contact:hover {
    background: var(--bg-dark);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(10, 10, 10, 0.3);
}

.nav-icon-btn {
    width: 42px;
    height: 42px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 50%;
    display: none;
    place-items: center;
    cursor: pointer;
    position: relative;
    transition: all 300ms var(--ease-quiet);
    color: var(--accent-dark);
}

.nav-icon-btn:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.nav-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.nav-toggle {
    display: none;
    background: var(--bg);
    border: 1px solid var(--line);
    width: 42px;
    height: 42px;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
}

.nav-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1.5px;
    background: var(--text);
    transition: all 300ms var(--ease-quiet);
    border-radius: 2px;
}

.nav-toggle span:nth-child(1) {
    top: 15px;
}

.nav-toggle span:nth-child(2) {
    top: 20px;
}

.nav-toggle span:nth-child(3) {
    top: 25px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 20px;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 20px;
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--line);
    z-index: 200;
    padding: 4rem 2rem 2rem;
    overflow-y: auto;
    transition: right 400ms var(--ease-quiet);
    box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.15);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms var(--ease-quiet);
    backdrop-filter: blur(4px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 300ms var(--ease-quiet);
}

.mobile-nav-close:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    transform: rotate(90deg);
}

.mobile-nav-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.mobile-nav .mobile-section {
    margin-bottom: 2rem;
}

.mobile-nav .mobile-section h5 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.mobile-nav .mobile-section ul {
    list-style: none;
    padding: 0;
}

.mobile-nav .mobile-section ul li {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    transition: background 300ms var(--ease-quiet);
}

.mobile-nav .mobile-section ul li:hover {
    background: var(--accent-dim);
}

.mobile-nav .mobile-section ul li a {
    font-size: 0.95rem;
    color: var(--text);
}

/* HERO SLIDER (Mobile First Vertical Card) */
.hero-slider {
    position: relative;
    margin: 6rem 1rem 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-dark);
    box-shadow: var(--shadow-lg);
    height: 80vh;
    min-height: 520px;
    max-height: 680px;
}

.slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 8000ms linear;
}

.slide.active .slide-image img {
    transform: scale(1.08);
}

.slide-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.grid-cell {
    position: absolute;
    background-size: cover;
    background-position: center;
    transform-origin: center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    background-color: var(--bg-dark);
}

.grid-cell.is-accent {
    background: var(--accent);
}

.grid-cell.is-dark {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 30%, rgba(15, 17, 8, 0.85) 100%);
    pointer-events: none;
    z-index: 5;
}

.slide-meta {
    display: none;
}

.slide-meta-left {
    display: none;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem 4.5rem; /* Extra padding for controls */
    background: transparent;
}

.slide-headline {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 0.8rem;
}

.slide-headline .accent {
    color: var(--accent);
}

.slide-sub {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.slide-cta-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary-fa {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: var(--radius-pill);
    transition: all 350ms var(--ease-quiet);
    box-shadow: 0 6px 16px -4px rgba(139, 200, 82, 0.6);
}

.btn-primary-fa:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.btn-primary-fa svg {
    width: 14px;
    height: 14px;
    transition: transform 350ms var(--ease-quiet);
}

.btn-primary-fa:hover svg {
    transform: translateX(-4px);
}

.btn-ghost-fa {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.7rem 1.2rem;
    font-weight: 500;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: var(--radius-pill);
    transition: all 350ms var(--ease-quiet);
}

.btn-ghost-fa:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* SLIDER CONTROLS */
.slider-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    top: auto;
    right: auto;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-arrows {
    display: flex;
    gap: 0.2rem;
}

.slider-arrows button {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: all 300ms var(--ease-quiet);
}

.slider-arrows button:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.slider-arrows svg {
    width: 14px;
    height: 14px;
}

.slider-dots {
    display: none;
    gap: 0.3rem;
    align-items: center;
    padding: 0 0.3rem;
}

.slider-dots .dot {
    width: 16px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-pill);
    transition: all 300ms var(--ease-quiet);
}

.slider-dots .dot.active {
    background: var(--accent);
    width: 24px;
}

.slider-counter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    direction: ltr;
    padding: 0 0.4rem;
    display: none;
}

/* ---------- Mobile / Desktop text switch ---------- */
.slide-headline-mobile,
.slide-sub-mobile,
.btn-text-mobile {
    display: none;
}

.slide-image-mobile {
    display: none;
}

.hero-marquee {
    display: none;
}

/* Desktop Slider Layout */
@media (min-width: 992px) {
    .hero-slider {
        height: 100vh;
        height: 100svh;
        min-height: 770px;
        margin:0;
        border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
        box-shadow: none;
    }

    .slide-overlay {
        padding: 6rem 2rem 7rem;
    }

    .slide-headline {
        font-size: clamp(2.2rem, 6vw, 5.5rem);
        margin-bottom: 1.2rem;
    }

    .slide-sub {
        max-width: 580px;
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.85;
    }

    .btn-primary-fa {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        gap: 0.6rem;
    }

    .btn-primary-fa svg {
        width: 16px;
        height: 16px;
    }

    .btn-ghost-fa {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        gap: 0.6rem;
    }

    .slider-controls {
        bottom: 3rem;
        left: 2rem;
        top: auto;
        right: auto;
        gap: 1.5rem;
        padding: 0.6rem 0.8rem;
    }

    .slider-arrows {
        gap: 0.3rem;
    }

    .slider-arrows button {
        width: 40px;
        height: 40px;
    }

    .slider-arrows svg {
        width: 16px;
        height: 16px;
    }

    .slider-dots {
        display: flex;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .slider-dots .dot {
        width: 24px;
        height: 4px;
    }

    .slider-dots .dot.active {
        width: 36px;
    }

    .slider-counter {
        display: block;
        font-size: 0.78rem;
        padding: 0 0.8rem;
    }

    .slide-meta, .slide-meta-left {
        display: block;
        top: 6.5rem;
    }

    .slide-meta {
        right: 2rem;
    }

    .slide-meta-left {
        left: 2rem;
    }

    .hero-marquee {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 12;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(10, 10, 10, 0.7);
        backdrop-filter: blur(10px);
        overflow: hidden;
        padding: 0.9rem 0;
        border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    }
}



.marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee 50s linear infinite;
    width: max-content;
}

.marquee-track .item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.marquee-track .item .dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* SECTION base */
section {
    padding: 8rem 0;
    position: relative;
}

.section-head {
    margin-bottom: 5rem;
}

.section-head .label-en {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--accent-dark);
}

.section-head .desc {
    max-width: 620px;
    color: var(--text-soft);
    margin-top: 1.5rem;
    line-height: 1.85;
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.section-head-row .link-all {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--line);
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-pill);
    background: var(--bg);
    transition: all 300ms var(--ease-quiet);
}

.section-head-row .link-all:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    gap: 1rem;
}

/* CATEGORIES SECTION */
.categories-section {
    background: var(--bg);
    padding: 5rem 0 6rem;
    position: relative;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    display: flex;
    transition: all 400ms var(--ease-quiet);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-direction: column; /* آیکون بالا، متن پایین */
    align-items: flex-start;
    gap: 1.25rem; /* فاصله‌ی بین آیکون و متن */
    padding: 2rem 1.75rem;
    min-height: 260px;
}

.category-card::after {
    content: '←';
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(10px);
    transition: all 400ms var(--ease-quiet);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    background: var(--bg-soft);
}

.category-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.category-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: var(--accent-dim);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    transition: all 400ms var(--ease-quiet);
}

.category-card:hover .category-icon {
    background: var(--accent);
    transform: scale(1.05) rotate(-5deg);
}

.category-icon svg {
    width: 64px;
    height: 64px;
    stroke: var(--accent-dark);
    fill: none;
    stroke-width: 1.5;
    transition: stroke 400ms var(--ease-quiet);
}

.category-card:hover .category-icon svg {
    stroke: var(--bg-dark);
}

.category-content {
    flex-grow: 1;
}

.category-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.category-title {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    transition: color 300ms var(--ease-quiet);
}

.category-card:hover .category-title {
    color: var(--accent-dark);
}

.category-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* INTRO / MANIFESTO */
.intro {
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.intro-content {
    padding: 0;
}

.intro-content .label-en {
    margin-bottom: 2rem;
    display: block;
}

.intro-content h2 {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
}

.intro-quote {
    font-family: 'Arad', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.7;
    color: var(--text);
    position: relative;
    padding: 2.5rem;
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-soft);
}

.intro-quote::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--accent);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.intro-quote .accent {
    color: var(--accent-dark);
    font-weight: 700;
}

.intro-image {
    height: 100%;
    min-height: 450px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1500ms var(--ease-quiet);
}

.intro-image:hover img {
    transform: scale(1.05);
}

.intro-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.6), transparent);
    pointer-events: none;
}

.intro-image .img-tag {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--accent-dark);
    padding: 0.5rem 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-cell {
    background: var(--bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: right;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-soft);
    transition: all 400ms var(--ease-quiet);
}

.stat-cell:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.stat-cell .stat-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.2rem;
}

.stat-cell .num {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1;
    color: var(--accent-dark);
    margin-bottom: 0.6rem;
}

.stat-cell .num-suffix {
    font-size: 1rem;
    color: var(--text);
    margin-right: 0.4rem;
    font-weight: 500;
}

.stat-cell .label {
    font-size: 0.92rem;
    color: var(--text-soft);
}

/* PRODUCT CARDS */
.product-cards-section {
    background: var(--bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* PRODUCT CARD */
.product-card {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 500ms var(--ease-quiet);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1200ms var(--ease-quiet);
    filter: brightness(0.95);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
    filter: brightness(1);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: var(--bg-dark);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    z-index: 2;
    box-shadow: 0 4px 12px -2px rgba(139, 200, 82, 0.5);
}

.product-badge.dark {
    background: var(--bg-dark);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(10, 10, 10, 0.4);
}

.product-quick {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text);
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    transition: all 400ms var(--ease-quiet);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-pill);
}

.product-card:hover .product-quick {
    opacity: 1;
    transform: translateY(0);
}

.product-quick svg {
    width: 14px;
    height: 14px;
}

.product-info {
    padding: 1.5rem 1.5rem 1.2rem;
}

.product-cat {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text);
    transition: color 300ms var(--ease-quiet);
}

.product-card:hover .product-title {
    color: var(--accent-dark);
}

.product-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.product-features li {
    font-size: 0.78rem;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.product-features li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
}

.product-code-small {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.product-view {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--bg);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 300ms var(--ease-quiet);
    border-radius: 50%;
}

.product-view:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: rotate(-45deg);
}

.product-view svg {
    width: 14px;
    height: 14px;
}


/* FEATURES */
.features {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-cell {
    background: var(--bg);
    padding: 2.5rem 2rem;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 400ms var(--ease-quiet);
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
}

.feature-cell:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-cell .num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-dark);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.feature-cell .icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: grid;
    place-items: center;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px -6px rgba(139, 200, 82, 0.5);
    transition: all 400ms var(--ease-quiet);
}

.feature-cell:hover .icon {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 12px 28px -6px rgba(139, 200, 82, 0.6);
}

.feature-cell .icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--bg-dark);
    fill: none;
    stroke-width: 1.8;
}

.feature-cell .title {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.feature-cell .body {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* PROCESS */
.process-section {
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.process-step {
    background: var(--bg);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 400ms var(--ease-quiet);
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 500ms var(--ease-quiet);
}

.process-step:hover::before {
    transform: scaleX(1);
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.process-step .step-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.3;
    transition: opacity 400ms var(--ease-quiet);
}

.process-step:hover .step-num {
    opacity: 1;
}

.process-step .step-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.process-step .step-title {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.process-step .step-body {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.8;
}

.process-step .step-duration {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-dark);
    letter-spacing: 0.1em;
    background: var(--accent-dim);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
}

.process-step .step-duration::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* PROJECTS MARQUEE (GSAP PERFECT INFINITE) */
.projects {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding: 8rem 0;
    overflow: hidden;
}

.projects-marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.projects-marquee {
    display: flex;
    width: max-content;
    direction: ltr; /* Forced LTR for perfect mathematical loop */
}

.project-card {
    width: 360px;
    flex-shrink: 0;
    margin-right: 1.5rem; /* Replaced gap with margin for perfect -50% calculation */
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
    transition: all 400ms var(--ease-quiet);
    text-align: right; /* Reset RTL for content inside cards */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.project-card .project-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-card .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1000ms var(--ease-quiet);
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    z-index: 2;
}

.project-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
}

.project-title {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.3;
}

/* BLOG */
.blog-section {
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    transition: all 500ms var(--ease-quiet);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.blog-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1200ms var(--ease-quiet);
}

.blog-card:hover .blog-image img {
    transform: scale(1.06);
}

.blog-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card .overlay img {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.blog-card .blog-image:hover .overlay {
    opacity: 1;
}

.blog-card .blog-image:hover img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg);
    padding: 0.5rem 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.blog-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-cat {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    background: var(--accent-dim);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    width: fit-content;
}

.blog-title {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 0.9rem;
    color: var(--text);
    transition: color 300ms var(--ease-quiet);
}

.blog-card:hover .blog-title {
    color: var(--accent-dark);
}

.blog-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-dark);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
    transition: gap 300ms var(--ease-quiet);
}

.blog-link:hover {
    gap: 1rem;
}

/* CONTACT */
.cta-contact {
    border-top: 1px solid var(--line);
    overflow: hidden;
    background: var(--bg-2);
}

.cta-contact .row {
    --bs-gutter-x: 0;
}

.cta-left {
    padding: 6rem 3rem 6rem 2rem;
}

.cta-right {
    padding: 6rem 2rem 6rem 3rem;
}

.cta-headline {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
}

.cta-body {
    color: var(--text-soft);
    margin-bottom: 3rem;
    max-width: 420px;
    line-height: 1.85;
}

.cta-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
}

.cta-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--line-soft);
    transition: background 300ms var(--ease-quiet);
}

.cta-contact-list li:last-child {
    border-bottom: none;
}

.cta-contact-list li:hover {
    background: var(--accent-dim);
}

.cta-contact-list .lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    width: 80px;
    flex-shrink: 0;
    padding-top: 4px;
}

.cta-contact-list .val {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.cta-contact-list .val .sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.2rem;
}

.contact-form-wrap {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
}

.form-control, .form-select {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    padding: 0.9rem 1.2rem;
    font-family: 'Arad', sans-serif;
    font-size: 0.95rem;
    transition: all 400ms var(--ease-quiet);
    box-shadow: none !important;
}

.form-control:focus, .form-select:focus {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 4px rgba(139, 200, 82, 0.12) !important;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.form-select option {
    background: var(--bg);
    color: var(--text);
}

.cta-form .btn-primary-fa {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* OUTRO */
.outro {
    padding: 6rem 0 4rem;
    text-align: center;
    border-top: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.outro .label-en {
    display: block;
    margin-bottom: 2rem;
    color: var(--accent-dark);
}

.outro h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 16vw, 16rem);
    line-height: 0.85;
    letter-spacing: -0.045em;
    margin: 0;
    color: var(--text);
}

.outro .persian {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--accent-dark);
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
}

.outro .outro-line {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 3rem auto 0;
    border-radius: var(--radius-pill);
}

/* FLOATING ACTION BUTTON */
.fab-container {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 400ms var(--ease-quiet);
}

.fab-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.fab-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--accent-dark);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 400ms var(--ease-quiet);
    transition-delay: 0s;
}

.fab-container.open .fab-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fab-container.open .fab-item:nth-child(1) {
    transition-delay: 0.05s;
}

.fab-container.open .fab-item:nth-child(2) {
    transition-delay: 0.1s;
}

.fab-container.open .fab-item:nth-child(3) {
    transition-delay: 0.15s;
}

.fab-item:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: scale(1.1) !important;
}

.fab-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.fab-main {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px -5px rgba(139, 200, 82, 0.6);
    position: relative;
    z-index: 2;
    transition: all 300ms var(--ease-quiet);
}

.fab-main:hover {
    transform: scale(1.05);
}

.fab-main svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform 300ms var(--ease-quiet);
}

.fab-container.open .fab-main {
    background: var(--bg-dark);
    color: #fff;
}

.fab-container.open .fab-main svg {
    transform: rotate(45deg);
}

/* FOOTER */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 6rem 0 2rem;
    position: relative;
    border-top-left-radius: var(--radius-2xl);
    border-top-right-radius: var(--radius-2xl);
    margin-top: -2rem;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 0 0 var(--radius-pill) var(--radius-pill);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-name-big {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.3rem;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-brand .brand-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    line-height: 1.85;
    max-width: 340px;
    margin-bottom: 2rem;
}

.footer-brand .iso-list {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-brand .iso-list .iso {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    transition: all 300ms var(--ease-quiet);
}

.footer-brand .iso-list .iso:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.footer-col h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 300ms var(--ease-quiet);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
}

.footer-col ul li a:hover {
    color: var(--accent);
    background: rgba(139, 200, 82, 0.1);
}

.footer-col ul li a::before {
    content: '←';
    opacity: 0;
    margin-left: -1rem;
    transition: opacity 300ms var(--ease-quiet), margin-left 300ms var(--ease-quiet);
}

.footer-col ul li a:hover::before {
    opacity: 1;
    margin-left: 0;
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom .copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 300ms var(--ease-quiet);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(139, 200, 82, 0.1);
    transform: translateY(-2px);
}


/* MOBILE */
@media (max-width: 1199px) {
    .mega-panel {
        width: 700px;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .mega-panel .mega-feature {
        display: none;
    }
}

@media (max-width: 991px) {
    .nav-brand .brand-logo-img {
        height: 50px;
        max-width: 160px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta .nav-phone {
        display: none;
    }

    .nav-brand .brand-sub {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .nav-icon-btn {
        display: grid;
    }

    .btn-contact {
        display: none;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .intro-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .cta-left, .cta-right {
        padding: 4rem 2rem;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 575px) {
    .container, .container-fluid {
        padding-right: 1.2rem;
        padding-left: 1.2rem;
    }

    section {
        padding: 5rem 0;
    }

    .nav-bar {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.8rem 1rem;
    }

    .nav-brand .brand-logo-img {
        height: 40px;
        max-width: 140px;
    }


    .btn-primary-fa, .btn-ghost-fa {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .slide-image > img:not(.slide-image-mobile) {
        display: none !important;
    }

    .slide-image-mobile {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .intro-stats {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .intro-quote {
        font-size: 1.1rem;
        padding: 1.5rem;
    }

    .feature-cell {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .process-step {
        padding: 2rem 1.5rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .contact-form-wrap {
        padding: 1.5rem;
    }

    .catalog-section {
        margin: 0;
        border-radius: var(--radius-xl);
    }

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

    .category-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.25rem;
        min-height: auto;
    }

    .fab-container {
        bottom: 1rem;
        left: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .marquee-track {
        animation: none;
    }

    .projects-marquee {
        animation: none;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}


/* ============================================================
   SINGLE POST — Page-specific styles
   Extracted from static template (header/footer excluded)
   ============================================================ */

/* ---------- BREADCRUMB ---------- */
.breadcrumb-section {
    padding: 7rem 0 1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb li a {
    color: var(--text-muted);
    transition: color 300ms var(--ease-quiet);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.breadcrumb li a:hover {
    color: var(--accent-dark);
    background: var(--accent-dim);
}

.breadcrumb li.active {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb li::after {
    content: '←';
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-right: 0.3rem;
}

.breadcrumb li:last-child::after {
    display: none;
}

/* ---------- ARTICLE HERO ---------- */
.article-hero {
    padding: 1rem 0 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-dim);
    color: var(--accent-dark);
    font-family: 'Arad', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.article-title {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
}

.article-excerpt {
    font-family: 'Arad', sans-serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.7;
    color: var(--text-soft);
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.meta-item .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: grid;
    place-items: center;
    color: var(--bg-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px -3px rgba(139, 200, 82, 0.4);
}

.meta-item .meta-text {
    text-align: right;
}

.meta-item .meta-text .name {
    font-weight: 700;
    color: var(--text);
    font-size: 0.88rem;
}

.meta-item .meta-text .role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.meta-divider {
    width: 1px;
    height: 24px;
    background: var(--line);
}

.meta-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
}

/* ---------- FEATURED IMAGE ---------- */
.article-featured {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.featured-image-wrap {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 21/9;
    box-shadow: var(--shadow-lg);
}

.featured-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1500ms var(--ease-quiet);
}

.featured-image-wrap:hover img {
    transform: scale(1.03);
}

.featured-caption {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ---------- ARTICLE BODY GRID ---------- */
.article-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
}

/* ---------- ARTICLE CONTENT ---------- */
.article-content {
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-soft);
}

.article-content > * {
    margin-bottom: 1.8rem;
}

.article-content p {
    font-weight: 300;
}

.article-content p.lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.8;
}

.article-content h2 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    line-height: 1.2;
    color: var(--text);
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    padding-right: 1rem;
    border-right: 4px solid var(--accent);
    scroll-margin-top: 100px;
}

.article-content h3 {
    font-family: 'Arad', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

.article-content ul, .article-content ol {
    padding-right: 0;
    list-style: none;
    margin: 1.5rem 0;
}

.article-content ul li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    font-weight: 300;
    color: var(--text-soft);
}

.article-content ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.article-content ol {
    counter-reset: item;
}

.article-content ol li {
    padding: 0.8rem 0;
    padding-right: 3rem;
    position: relative;
    font-weight: 300;
    color: var(--text-soft);
    counter-increment: item;
}

.article-content ol li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    right: 0;
    top: 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-dark);
    background: var(--accent-dim);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.article-content strong {
    color: var(--text);
    font-weight: 700;
}

.article-content a {
    color: var(--accent-dark);
    border-bottom: 1px solid var(--accent-soft);
    transition: border-color 300ms var(--ease-quiet);
}

.article-content a:hover {
    border-color: var(--accent);
}

/* Blockquote */
.article-blockquote {
    background: var(--bg-2);
    border: none;
    border-right: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.article-blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 8rem;
    color: var(--accent-soft);
    line-height: 1;
    pointer-events: none;
}

.article-blockquote p {
    font-family: 'Arad', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.article-blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
}

.article-blockquote cite::before {
    content: '— ';
}

/* Callout */
.article-callout {
    background: linear-gradient(135deg, var(--accent-dim), var(--bg-2));
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2.5rem 0;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.callout-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -4px rgba(139, 200, 82, 0.4);
}

.callout-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--bg-dark);
    fill: none;
    stroke-width: 1.8;
}

.callout-content h4 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.callout-content p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin: 0;
}

/* Inline image */
.article-image {
    margin: 2.5rem 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-image figcaption {
    padding: 1rem 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg-2);
    text-align: center;
}

/* Comparison table */
.article-table-wrap {
    margin: 2.5rem 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
}

.article-table thead {
    background: var(--bg-dark);
    color: #fff;
}

.article-table thead th {
    padding: 1.2rem 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right;
    font-weight: 500;
}

.article-table thead th:first-child {
    color: var(--accent);
}

.article-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.92rem;
    color: var(--text-soft);
}

.article-table tbody tr:last-child td {
    border-bottom: none;
}

.article-table tbody tr:hover {
    background: var(--accent-dim);
}

.article-table .wood-name {
    font-weight: 700;
    color: var(--text);
}

.article-table .rating {
    color: var(--accent-dark);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
}

/* Tags & Share */
.article-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-chip {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    transition: all 300ms var(--ease-quiet);
}

.tag-chip:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.share-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 300ms var(--ease-quiet);
    color: var(--text-soft);
}

.share-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* TOC Sidebar */
.toc-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.toc-card {
    background: var(--bg-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.toc-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-dark);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-label svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-dark);
    fill: none;
    stroke-width: 1.8;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.3rem;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border-right: 2px solid transparent;
    transition: all 300ms var(--ease-quiet);
    line-height: 1.5;
}

.toc-list a:hover {
    color: var(--accent-dark);
    background: var(--accent-dim);
    border-right-color: var(--accent-light);
}

.toc-list a.active {
    color: var(--accent-dark);
    background: var(--accent-dim);
    border-right-color: var(--accent);
    font-weight: 500;
}

.toc-list .toc-sub a {
    padding-right: 1.8rem;
    font-size: 0.82rem;
}

.toc-cta {
    margin-top: 1.5rem;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.toc-cta .cta-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
}

.toc-cta .cta-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--bg-dark);
    fill: none;
    stroke-width: 1.8;
}

.toc-cta h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.toc-cta p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.toc-cta .btn-cta {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 300ms var(--ease-quiet);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.toc-cta .btn-cta:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* Author Bio */
.author-bio-section {
    background: var(--bg-2);
    padding: 5rem 0;
}

.author-bio {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--bg);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line-soft);
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: grid;
    place-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: var(--bg-dark);
    box-shadow: 0 12px 30px -8px rgba(139, 200, 82, 0.4);
}

.author-info .author-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-dark);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.author-info h3 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.author-info .author-role {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.author-info p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.author-social {
    display: flex;
    gap: 0.6rem;
}

.author-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: all 300ms var(--ease-quiet);
}

.author-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.author-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Comments */
.comments-section {
    padding: 5rem 0;
    max-width: 900px;
    margin: 0 auto;
    padding-right: 2rem;
    padding-left: 2rem;
}

.comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.comments-head h2 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
}

.comments-head .count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-dark);
    background: var(--accent-dim);
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-pill);
}

.comment-form-wrap {
    background: var(--bg-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.comment-form-wrap h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-form .form-control {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    padding: 0.9rem 1.2rem;
    font-family: 'Arad', sans-serif;
    font-size: 0.92rem;
    transition: all 400ms var(--ease-quiet);
    box-shadow: none !important;
    width: 100%;
    margin-bottom: 1rem;
}

.comment-form .form-control:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(139, 200, 82, 0.12) !important;
}

.comment-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.comment-form .btn-submit {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 300ms var(--ease-quiet);
    box-shadow: 0 6px 16px -4px rgba(139, 200, 82, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form .btn-submit:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.comment-form .btn-submit svg {
    width: 16px;
    height: 16px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-card {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    box-shadow: var(--shadow-xs);
    transition: all 400ms var(--ease-quiet);
}

.comment-card:hover {
    box-shadow: var(--shadow-sm);
}

.comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: grid;
    place-items: center;
    color: var(--bg-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px -3px rgba(139, 200, 82, 0.4);
}

.comment-author .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author .info .name {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.comment-author .info .date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'IBM Plex Mono', monospace;
}

.comment-badge {
    font-size: 0.7rem;
    color: var(--accent-dark);
    background: var(--accent-dim);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.comment-badge svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.comment-body {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.85;
    margin-bottom: 0.8rem;
}

.comment-actions {
    display: flex;
    gap: 1.2rem;
    font-size: 0.78rem;
}

.comment-actions a {
    color: var(--text-muted);
    transition: color 300ms var(--ease-quiet);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.comment-actions a:hover {
    color: var(--accent-dark);
}

.comment-actions svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.comment-reply {
    margin-right: 3rem;
    margin-top: 1.5rem;
    padding-right: 1.5rem;
    border-right: 2px solid var(--accent-soft);
}

/* Related */
.related-section {
    padding: 5rem 0;
    background: var(--bg-2);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Newsletter */
.newsletter-section {
    padding: 5rem 0;
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius-2xl);
    margin: 0 1rem 5rem;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 200, 82, 0.15), transparent 70%);
    border-radius: 50%;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 200, 82, 0.1), transparent 70%);
    border-radius: 50%;
}

.newsletter-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

.newsletter-title {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.newsletter-title .accent {
    color: var(--accent);
}

.newsletter-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
}

.newsletter-form {
    display: flex;
    gap: 0.8rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.9rem 1.3rem;
    border-radius: var(--radius-pill);
    font-family: 'Arad', sans-serif;
    font-size: 0.92rem;
    transition: all 400ms var(--ease-quiet);
    box-shadow: none !important;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(139, 200, 82, 0.15) !important;
}

.newsletter-form .btn-sub {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 300ms var(--ease-quiet);
    box-shadow: 0 8px 20px -6px rgba(139, 200, 82, 0.5);
    white-space: nowrap;
}

.newsletter-form .btn-sub:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* Section head (shared with related section) */
.section-head {
    margin-bottom: 4rem;
}

.section-head .label-en {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--accent-dark);
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.section-head-row .link-all {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--line);
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-pill);
    background: var(--bg);
    transition: all 300ms var(--ease-quiet);
}

.section-head-row .link-all:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    gap: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .article-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc-sidebar {
        position: static;
        order: -1;
    }

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

    .author-bio {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .author-social {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .article-table-wrap {
        overflow-x: auto;
    }

    .article-table {
        min-width: 600px;
    }
}

@media (max-width: 575px) {
    .breadcrumb-section {
        padding: 6rem 0 0.5rem;
    }

    .article-hero {
        padding: 0.5rem 0 2rem;
    }

    .article-featured {
        padding: 0 1.2rem;
    }

    .article-body {
        padding: 0 1.2rem 3rem;
    }

    .article-content {
        font-size: 0.98rem;
    }

    .article-content h2 {
        font-size: 1.4rem;
    }

    .article-blockquote {
        padding: 1.5rem;
    }

    .article-blockquote p {
        font-size: 1rem;
    }

    .article-callout {
        padding: 1.5rem;
        flex-direction: column;
    }

    .comments-section {
        padding-right: 1.2rem;
        padding-left: 1.2rem;
    }

    .comment-reply {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }

    .author-bio {
        padding: 1.5rem;
    }

    .article-meta {
        gap: 1rem;
    }

    .meta-divider {
        display: none;
    }

    .article-footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ============================================================
   404 PAGE — Scoped styles
   ============================================================ */
.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

/* Background decorations */
.error-404::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.error-404::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-dim), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.error-404-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 404 mega number */
.error-code {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(8rem, 22vw, 18rem);
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.error-code .zero {
    display: inline-grid;
    place-items: center;
    width: 0.85em;
    height: 0.85em;
    background: var(--accent);
    border-radius: 10%;
    color: var(--bg);
    font-size: 0.72em;
    box-shadow: var(--shadow-accent);
    position: relative;
    animation: pulse-zero 3s ease-in-out infinite;
}

.error-code .zero::before {
    content: '';
    width: 0.35em;
    height: 0.35em;
    border-radius: 10%;
    background: var(--bg-dark);
    opacity: 0.85;
}

@keyframes pulse-zero {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-accent);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 30px 70px -15px rgba(139, 200, 82, 0.6), 0 12px 30px -8px rgba(139, 200, 82, 0.35);
    }
}

.error-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent-dark);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: var(--accent-dim);
    border-radius: var(--radius-pill);
}

.error-label .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.error-title {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.error-title .accent {
    color: var(--accent-dark);
}

.error-desc {
    font-family: 'Arad', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.85;
    color: var(--text-soft);
    max-width: 540px;
    margin: 0 auto 3rem;
}

/* Actions */
.error-actions {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn-error-home {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: var(--radius-pill);
    transition: all 350ms var(--ease-quiet);
    box-shadow: 0 10px 30px -8px rgba(139, 200, 82, 0.6);
    text-decoration: none;
}

.btn-error-home:hover {
    background: var(--bg-dark);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -10px rgba(10, 10, 10, 0.35);
}

.btn-error-home svg {
    width: 16px;
    height: 16px;
}

.btn-error-back {
    background: var(--bg);
    color: var(--text-soft);
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--line);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: var(--radius-pill);
    transition: all 350ms var(--ease-quiet);
    text-decoration: none;
}

.btn-error-back:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

/* Helpful links */
.error-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.error-link-card {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.25rem;
    text-align: right;
    text-decoration: none;
    transition: all 400ms var(--ease-quiet);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.error-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    background: var(--bg-soft);
}

.error-link-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--accent-dim);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    transition: all 400ms var(--ease-quiet);
}

.error-link-card:hover .error-link-icon {
    background: var(--accent);
}

.error-link-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-dark);
    fill: none;
    stroke-width: 1.6;
    transition: stroke 400ms var(--ease-quiet);
}

.error-link-card:hover .error-link-icon svg {
    stroke: var(--bg-dark);
}

.error-link-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.error-link-text .t {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.error-link-text .s {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Search */
.error-search {
    max-width: 480px;
    margin: 0 auto 4rem;
    position: relative;
}

.error-search form {
    display: flex;
    gap: 0.5rem;
}

.error-search .search-input {
    flex: 1;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.95rem 1.4rem;
    font-family: 'Arad', sans-serif;
    font-size: 0.92rem;
    color: var(--text);
    transition: all 400ms var(--ease-quiet);
    box-shadow: none;
    outline: none;
}

.error-search .search-input::placeholder {
    color: var(--text-muted);
}

.error-search .search-input:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(139, 200, 82, 0.12);
}

.error-search .search-btn {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 300ms var(--ease-quiet);
    box-shadow: 0 8px 20px -6px rgba(139, 200, 82, 0.5);
}

.error-search .search-btn:hover {
    background: var(--bg-dark);
    color: var(--bg);
    transform: scale(1.05);
}

.error-search .search-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

/* Responsive */
@media (max-width: 767px) {
    .error-404 {
        padding: 8rem 1.2rem 4rem;
    }

    .error-links {
        grid-template-columns: 1fr;
    }

    .error-link-card {
        flex-direction: row;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-error-home, .btn-error-back {
        justify-content: center;
        width: 100%;
    }
}

/* ============================================================
   BLOG ARCHIVE — Scoped styles
   ============================================================ */

/* Hero */
.blog-hero {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-hero .label-en {
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: var(--accent-dim);
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.blog-hero .label-en .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blog-blink 1.6s ease-in-out infinite;
}

@keyframes blog-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.blog-hero h1 {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.blog-hero h1 .accent {
    color: var(--accent-dark);
}

.blog-hero p {
    font-family: 'Arad', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto;
}

/* Filters bar */
.blog-filters {
    padding: 0 0 4rem;
}

.filters-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.filter-cats {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-cats a {
    font-family: 'Arad', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-soft);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-cats a:hover {
    color: var(--accent-dark);
    background: var(--accent-dim);
}

.filter-cats a.active {
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 6px 16px -4px rgba(139, 200, 82, 0.5);
}

.filter-cats a .count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Search form in filters */
.filter-search {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.filter-search input {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.2rem 0.65rem 3rem;
    font-family: 'Arad', sans-serif;
    font-size: 0.88rem;
    color: var(--text);
    width: 260px;
    transition: all 400ms var(--ease-quiet);
    outline: none;
}

.filter-search input::placeholder {
    color: var(--text-muted);
}

.filter-search input:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(139, 200, 82, 0.12);
    width: 320px;
}

.filter-search button {
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 38px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 300ms var(--ease-quiet);
}

.filter-search button:hover {
    background: var(--bg-dark);
    color: var(--bg);
}

.filter-search button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Posts grid */
.blog-archive-section {
    padding: 0 0 6rem;
    background: var(--bg);
}

.blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Featured post (اولین پست کل صفحه‌ی اول) */
.featured-post-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 500ms var(--ease-quiet);
    text-decoration: none;
}

.featured-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.featured-post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    min-height: 100%;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1500ms var(--ease-quiet);
}

.featured-post-card:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-post-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 16px -4px rgba(139, 200, 82, 0.5);
    z-index: 2;
}

.featured-post-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-content .post-cat {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--accent-dim);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    width: fit-content;
}

.featured-post-content h2 {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 1rem;
    transition: color 300ms var(--ease-quiet);
}

.featured-post-card:hover .featured-post-content h2 {
    color: var(--accent-dark);
}

.featured-post-content .post-excerpt {
    font-family: 'Arad', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.featured-post-content .post-meta-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
}

.featured-post-content .post-meta-row .meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.featured-post-content .post-meta-row .meta svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.6;
}

.featured-post-content .read-more-btn {
    margin-top: 1.5rem;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius-pill);
    transition: all 300ms var(--ease-quiet);
    background: var(--bg);
}

.featured-post-card:hover .read-more-btn {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    gap: 1rem;
}

/* Regular blog card — same as static */
.blog-card {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    transition: all 500ms var(--ease-quiet);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.blog-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1200ms var(--ease-quiet);
}

.blog-card:hover .blog-image img {
    transform: scale(1.06);
}

.blog-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg);
    padding: 0.5rem 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.blog-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-cat {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    background: var(--accent-dim);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    width: fit-content;
}

.blog-title {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: var(--text);
    transition: color 300ms var(--ease-quiet);
}

.blog-card:hover .blog-title {
    color: var(--accent-dark);
}

.blog-excerpt {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
    gap: 0.6rem;
}

.blog-meta-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-meta-info .dot-sep {
    width: 3px;
    height: 3px;
    background: var(--text-faint);
    border-radius: 50%;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-dark);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: gap 300ms var(--ease-quiet);
}

.blog-card:hover .blog-link {
    gap: 0.9rem;
}

/* Empty state */
.blog-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-2);
    border-radius: var(--radius-2xl);
    border: 1px dashed var(--line);
}

.blog-empty svg {
    width: 64px;
    height: 64px;
    stroke: var(--text-faint);
    fill: none;
    stroke-width: 1.2;
    margin: 0 auto 1.5rem;
}

.blog-empty h3 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.blog-empty p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    min-width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    padding: 0 0.8rem;
}

.blog-pagination a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(139, 200, 82, 0.4);
}

.blog-pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 8px 16px -4px rgba(139, 200, 82, 0.5);
}

.blog-pagination .dots {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

.blog-pagination .prev,
.blog-pagination .next {
    width: auto;
    border-radius: var(--radius-pill);
    padding: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-pagination .prev svg,
.blog-pagination .next svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .featured-post-content {
        padding: 2rem 1.8rem;
    }

    .filter-search input {
        width: 200px;
    }

    .filter-search input:focus {
        width: 240px;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        padding: 8rem 0 3rem;
    }

    .blog-archive-grid {
        grid-template-columns: 1fr;
    }

    .filters-inner {
        padding: 1rem;
    }

    .filter-search {
        width: 100%;
    }

    .filter-search input,
    .filter-search input:focus {
        width: 100%;
    }
}

/* ============================================================
    SINGLE PRODUCT
    ============================================================ */

/* BREADCRUMB */
.breadcrumb-section {
    padding: 7rem 0 1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb li a {
    color: var(--text-muted);
    transition: color 300ms var(--ease-quiet);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.breadcrumb li a:hover {
    color: var(--accent-dark);
    background: var(--accent-dim);
}

.breadcrumb li.active {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb li::after {
    content: '←';
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-right: 0.3rem;
}

.breadcrumb li:last-child::after {
    display: none;
}

/* PRODUCT MAIN */
.product-main {
    padding: 1rem 0 6rem;
}

.product-main .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* PRODUCT GALLERY */
.product-main .product-gallery {
    position: sticky;
    top: 100px;
}

.product-main .gallery-main {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.2rem;
}

.product-main .gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1200ms var(--ease-quiet);
}

.product-main .gallery-main:hover img {
    transform: scale(1.04);
}

.product-main .gallery-badges {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.product-main .gallery-badge {
    background: var(--accent);
    color: var(--bg-dark);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px -2px rgba(139, 200, 82, 0.5);
}

.product-main .gallery-badge.dark {
    background: var(--bg-dark);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(10, 10, 10, 0.4);
}

.product-main .gallery-meta-card {
    background: var(--bg-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.5rem;
}

.product-main .gallery-meta-card .gmc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.product-main .gallery-meta-card .gmc-row:last-child {
    border-bottom: none;
}

.product-main .gallery-meta-card .gmc-lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-main .gallery-meta-card .gmc-val {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
}

/* PRODUCT INFO */
.product-main .product-info {
    padding-top: 0.5rem;
}

.product-main .product-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.product-main .product-cat-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-dark);
    background: var(--accent-dim);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-main .product-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.product-main .product-title {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.product-main .product-short-desc {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--line);
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-top: 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}

.trust-badge {
    text-align: center;
    padding: 0.8rem 0.3rem;
    background: var(--bg-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
}

.trust-badge .tb-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-dim);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 0.5rem;
    transition: all 300ms var(--ease-quiet);
}

.trust-badge:hover .tb-icon {
    background: var(--accent);
    transform: translateY(-3px);
}

.trust-badge .tb-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-dark);
    fill: none;
    stroke-width: 1.5;
}

.trust-badge:hover .tb-icon svg {
    stroke: var(--bg-dark);
}

.trust-badge .tb-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.trust-badge .tb-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* CTA Buttons */
.cta-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-consult {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: var(--radius-pill);
    transition: all 350ms var(--ease-quiet);
    box-shadow: 0 10px 30px -8px rgba(139, 200, 82, 0.6);
    flex: 1;
    justify-content: center;
    min-width: 240px;
}

.btn-consult:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-3px);
}

.btn-consult svg {
    width: 18px;
    height: 18px;
    transition: transform 350ms var(--ease-quiet);
}

.btn-consult:hover svg {
    transform: translateX(-4px);
}

.btn-download {
    background: var(--bg-dark);
    color: #fff;
    padding: 1rem 1.8rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-pill);
    transition: all 350ms var(--ease-quiet);
}

.btn-download:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

/* TABS */
.product-tabs {
    padding: 5rem 0;
    background: var(--bg-2);
}

.tabs-head {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-family: 'Arad', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 300ms var(--ease-quiet);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 400ms var(--ease-quiet);
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--accent-dark);
    font-weight: 700;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 600ms var(--ease-quiet);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Description Tab */
.desc-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.desc-text h3 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.desc-text p {
    color: var(--text-soft);
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.desc-text ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.desc-text ul li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    font-weight: 300;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.desc-text ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.desc-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
}

.desc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1200ms var(--ease-quiet);
}

.desc-image:hover img {
    transform: scale(1.05);
}

/* Blockquote */
.article-blockquote {
    background: var(--bg);
    border-right: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    position: relative;
}

.article-blockquote p {
    font-family: 'Arad', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
}

.article-blockquote cite {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: normal;
}

.article-blockquote cite::before {
    content: '— ';
}

/* Callout */
.article-callout {
    background: linear-gradient(135deg, var(--accent-dim), var(--bg-2));
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.callout-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -4px rgba(139, 200, 82, 0.4);
}

.callout-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--bg-dark);
    fill: none;
    stroke-width: 1.8;
}

.callout-content h4 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.callout-content p {
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.7;
    margin: 0;
}

/* Specifications Tab */
.spec-table {
    background: var(--bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.spec-group-header {
    background: var(--bg-2);
    padding: 1rem 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
}

.spec-group:first-child .spec-group-header {
    border-top: none;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.92rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-key {
    color: var(--text-muted);
    font-weight: 500;
}

.spec-val {
    color: var(--text);
    font-weight: 500;
}

/* FAQ Tab */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 300ms var(--ease-quiet);
}

.faq-item:hover {
    border-color: var(--accent-light);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 500;
    font-size: 0.98rem;
    transition: color 300ms var(--ease-quiet);
}

.faq-item.active .faq-question {
    color: var(--accent-dark);
}

.faq-icon {
    width: 28px;
    height: 28px;
    background: var(--accent-dim);
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: all 300ms var(--ease-quiet);
    position: relative;
}

.faq-item.active .faq-icon {
    background: var(--accent);
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--accent-dark);
    transition: all 300ms var(--ease-quiet);
}

.faq-icon::before {
    width: 10px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 10px;
}

.faq-item.active .faq-icon::before, .faq-item.active .faq-icon::after {
    background: var(--bg-dark);
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms var(--ease-quiet);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.85;
}

/* CTA CONTACT */
.cta-contact {
    border-top: 1px solid var(--line);
    overflow: hidden;
    background: var(--bg-2);
}

.cta-contact .row {
    --bs-gutter-x: 0;
}

.cta-left {
    padding: 5rem 3rem 5rem 2rem;
}

.cta-right {
    padding: 5rem 2rem 5rem 3rem;
}

.cta-headline {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.cta-body {
    color: var(--text-soft);
    margin-bottom: 2.5rem;
    max-width: 420px;
    line-height: 1.85;
}

.cta-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
}

.cta-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line-soft);
    transition: background 300ms var(--ease-quiet);
}

.cta-contact-list li:last-child {
    border-bottom: none;
}

.cta-contact-list li:hover {
    background: var(--accent-dim);
}

.cta-contact-list .lbl {
    font-family: 'Font Awesome 6 Pro', monospace;
    font-size: 2.0rem;
    color: var(--text-muted);
    width: 80px;
    flex-shrink: 0;
}

.cta-contact-list .val {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.7;
}

.cta-contact-list .val .sub {
    color: var(--text-muted);
    font-size: 0.82rem;
    display: block;
    margin-top: 0.2rem;
}

.catalog-download-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-md);
    transition: all 400ms var(--ease-quiet);
}

.catalog-download-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.catalog-download-card .catalog-mockup {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3/4;
    background: var(--accent);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px -15px rgba(139, 200, 82, 0.5), 0 0 0 1px rgba(139, 200, 82, 0.3);
    margin: 0 auto;
    transition: transform 600ms var(--ease-quiet);
}

.catalog-download-card:hover .catalog-mockup {
    transform: rotate(0deg) scale(1.02) !important;
}

@media (max-width: 991px) {
    .product-main .product-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-main .product-gallery {
        position: static;
    }

    .desc-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-left, .cta-right {
        padding: 4rem 2rem;
    }

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

    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .breadcrumb-section {
        padding: 6rem 0 0.5rem;
    }

    .trust-badges {
        grid-template-columns: 1fr 1fr;
    }

    .tabs-head {
        gap: 0;
    }

    .tab-btn {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
    }

    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        padding: 1rem;
    }

    .cta-row {
        flex-direction: column;
    }

    .btn-consult {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .catalog-download-card {
        padding: 1.5rem;
    }

    .catalog-download-card .catalog-mockup {
        max-width: 280px;
    }
}

/* ============================================================
   PRODUCTS ARCHIVE — Scoped styles
   ============================================================ */

/* Hero */
.archive-hero {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.archive-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.archive-hero .label-en {
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: var(--accent-dim);
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.archive-hero .label-en .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: archive-blink 1.6s ease-in-out infinite;
}

@keyframes archive-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.archive-hero h1 {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.archive-hero h1 .accent {
    color: var(--accent-dark);
}

.archive-hero p {
    font-family: 'Arad', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto;
}

/* Filters bar */
.archive-filters {
    padding: 0 0 4rem;
}

.filters-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.filter-cats {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-cats a {
    font-family: 'Arad', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-soft);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-cats a:hover {
    color: var(--accent-dark);
    background: var(--accent-dim);
}

.filter-cats a.active {
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 6px 16px -4px rgba(139, 200, 82, 0.5);
}

.filter-cats a .count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    opacity: 0.7;
}

.filter-search {
    display: flex;
    position: relative;
}

.filter-search input {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.2rem 0.65rem 3rem;
    font-family: 'Arad', sans-serif;
    font-size: 0.88rem;
    color: var(--text);
    width: 260px;
    transition: all 400ms var(--ease-quiet);
    outline: none;
}

.filter-search input::placeholder {
    color: var(--text-muted);
}

.filter-search input:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(139, 200, 82, 0.12);
    width: 320px;
}

.filter-search button {
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 38px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 300ms var(--ease-quiet);
}

.filter-search button:hover {
    background: var(--bg-dark);
    color: var(--bg);
}

.filter-search button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Archive section */
.archive-section {
    padding: 0 0 6rem;
    background: var(--bg);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.archive-result-count {
    font-family: 'Arad', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

/* Empty state */
.archive-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-2);
    border-radius: var(--radius-2xl);
    border: 1px dashed var(--line);
}

.archive-empty svg {
    width: 64px;
    height: 64px;
    stroke: var(--text-faint);
    fill: none;
    stroke-width: 1.2;
    margin: 0 auto 1.5rem;
}

.archive-empty h3 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.archive-empty p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.archive-empty .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    box-shadow: 0 8px 20px -6px rgba(139, 200, 82, 0.5);
}

.archive-empty .btn-back:hover {
    background: var(--bg-dark);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    min-width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    padding: 0 0.8rem;
}

.archive-pagination a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(139, 200, 82, 0.4);
}

.archive-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 8px 16px -4px rgba(139, 200, 82, 0.5);
}

.archive-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
    width: auto;
    border-radius: var(--radius-pill);
    padding: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-search input {
        width: 200px;
    }

    .filter-search input:focus {
        width: 240px;
    }
}

@media (max-width: 767px) {
    .archive-hero {
        padding: 8rem 0 3rem;
    }

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

    .filters-inner {
        padding: 1rem;
    }

    .filter-search {
        width: 100%;
    }

    .filter-search input,
    .filter-search input:focus {
        width: 100%;
    }
}

/* ============================================================
   TAXONOMY PRODUCT CATEGORY — Scoped styles
   ============================================================ */

.product-cat-hero {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.product-cat-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.product-cat-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.product-cat-hero .label-en {
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: var(--accent-dim);
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.product-cat-hero .label-en .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: cat-blink 1.6s ease-in-out infinite;
}

@keyframes cat-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.product-cat-hero h1 {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.product-cat-hero h1 .accent {
    color: var(--accent-dark);
}

.product-cat-hero p {
    font-family: 'Arad', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto;
}

/* Filters */
.product-cat-filters {
    padding: 0 0 4rem;
}

.filters-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.filter-cats {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-cats a {
    font-family: 'Arad', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-soft);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-cats a:hover {
    color: var(--accent-dark);
    background: var(--accent-dim);
}

.filter-cats a.active {
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 6px 16px -4px rgba(139, 200, 82, 0.5);
}

.filter-cats a .count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    opacity: 0.7;
}

.filter-search {
    display: flex;
    position: relative;
}

.filter-search input {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.2rem 0.65rem 3rem;
    font-family: 'Arad', sans-serif;
    font-size: 0.88rem;
    color: var(--text);
    width: 260px;
    transition: all 400ms var(--ease-quiet);
    outline: none;
}

.filter-search input::placeholder {
    color: var(--text-muted);
}

.filter-search input:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(139, 200, 82, 0.12);
    width: 320px;
}

.filter-search button {
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 38px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 300ms var(--ease-quiet);
}

.filter-search button:hover {
    background: var(--bg-dark);
    color: var(--bg);
}

.filter-search button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Sub-categories chips */
.subcats-row {
    margin-bottom: 3rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.subcat-chip {
    font-family: 'Arad', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-soft);
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.subcat-chip:hover {
    color: var(--accent-dark);
    border-color: var(--accent);
    background: var(--accent-dim);
}

.subcat-chip .count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Section */
.product-cat-section {
    padding: 0 0 6rem;
    background: var(--bg);
}

.product-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-cat-result-count {
    font-family: 'Arad', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

/* Empty */
.product-cat-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-2);
    border-radius: var(--radius-2xl);
    border: 1px dashed var(--line);
}

.product-cat-empty svg {
    width: 64px;
    height: 64px;
    stroke: var(--text-faint);
    fill: none;
    stroke-width: 1.2;
    margin: 0 auto 1.5rem;
}

.product-cat-empty h3 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.product-cat-empty p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.product-cat-empty .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    box-shadow: 0 8px 20px -6px rgba(139, 200, 82, 0.5);
}

.product-cat-empty .btn-back:hover {
    background: var(--bg-dark);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Pagination */
.product-cat-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.product-cat-pagination .page-numbers {
    min-width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    padding: 0 0.8rem;
}

.product-cat-pagination a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(139, 200, 82, 0.4);
}

.product-cat-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 8px 16px -4px rgba(139, 200, 82, 0.5);
}

.product-cat-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

.product-cat-pagination .page-numbers.prev,
.product-cat-pagination .page-numbers.next {
    width: auto;
    border-radius: var(--radius-pill);
    padding: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .product-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-search input {
        width: 200px;
    }

    .filter-search input:focus {
        width: 240px;
    }
}

@media (max-width: 767px) {
    .product-cat-hero {
        padding: 8rem 0 3rem;
    }

    .product-cat-grid {
        grid-template-columns: 1fr;
    }

    .filters-inner {
        padding: 1rem;
    }

    .filter-search {
        width: 100%;
    }

    .filter-search input,
    .filter-search input:focus {
        width: 100%;
    }
}

/* ============================================================
   CATEGORY DESCRIPTION (Bottom)
   ============================================================ */
.product-cat-description-section {
    background: var(--bg);
    border-top: 1px dashed var(--line-soft);
}

.product-cat-description-wrap {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    opacity: 0.55; /* کمرنگ کردن کل بخش */
    transition: opacity 400ms ease;
}

.product-cat-description-wrap:hover {
    opacity: 1; /* روی هاور پررنگ شود */
}

.product-cat-desc-title {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-cat-desc-title::before,
.product-cat-desc-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-soft);
}

.product-cat-desc-content {
    font-family: 'Arad', sans-serif;
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-soft);
}

.product-cat-desc-content p {
    margin-bottom: 1rem;
}

.product-cat-desc-content h2,
.product-cat-desc-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
}

.product-cat-desc-content ul,
.product-cat-desc-content ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.product-cat-desc-content li {
    margin-bottom: 0.5rem;
}

/* ============================================================
   GENERIC ARCHIVE — Scoped styles
   ============================================================ */

.archive-generic-hero {
    padding: 10rem 0 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.archive-generic-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.archive-generic-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.archive-generic-hero .label-en {
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: var(--accent-dim);
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.archive-generic-hero .label-en .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: arcg-blink 1.6s ease-in-out infinite;
}

@keyframes arcg-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.archive-generic-hero h1 {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.archive-generic-hero h1 .accent {
    color: var(--accent-dark);
}

.archive-generic-hero p {
    font-family: 'Arad', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    color: var(--text-soft);
    max-width: 620px;
    margin: 0 auto 2rem;
}

.archive-generic-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--bg);
    transition: all 300ms var(--ease-quiet);
    text-decoration: none;
}

.archive-generic-hero .back-link:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    gap: 1rem;
}

/* Section */
.archive-generic-section {
    padding: 0 0 6rem;
    background: var(--bg);
}

.archive-generic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.archive-generic-count {
    font-family: 'Arad', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

/* Empty */
.archive-generic-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-2);
    border-radius: var(--radius-2xl);
    border: 1px dashed var(--line);
}

.archive-generic-empty svg {
    width: 64px;
    height: 64px;
    stroke: var(--text-faint);
    fill: none;
    stroke-width: 1.2;
    margin: 0 auto 1.5rem;
}

.archive-generic-empty h3 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.archive-generic-empty p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.archive-generic-empty .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    box-shadow: 0 8px 20px -6px rgba(139, 200, 82, 0.5);
}

.archive-generic-empty .btn-back:hover {
    background: var(--bg-dark);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Pagination */
.archive-generic-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.archive-generic-pagination .page-numbers {
    min-width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 300ms var(--ease-quiet);
    padding: 0 0.8rem;
}

.archive-generic-pagination a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(139, 200, 82, 0.4);
}

.archive-generic-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 8px 16px -4px rgba(139, 200, 82, 0.5);
}

.archive-generic-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

.archive-generic-pagination .page-numbers.prev,
.archive-generic-pagination .page-numbers.next {
    width: auto;
    border-radius: var(--radius-pill);
    padding: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .archive-generic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .archive-generic-hero {
        padding: 8rem 0 3rem;
    }

    .archive-generic-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   DEFAULT PAGE — Scoped styles
   ============================================================ */

/* Page Hero */
.page-hero {
    padding: 1rem 0 3rem;
    position: relative;
    text-align: center;
}
.page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
.page-hero .label-en {
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: var(--accent-dim);
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}
.page-title {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.5rem;
}
.page-excerpt {
    font-family: 'Arad', sans-serif;
    font-weight: 300;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.8;
    color: var(--text-soft);
    max-width: 680px;
    margin: 0 auto;
}

/* Featured Image */
.page-featured {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}
.page-featured-wrap {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 21/9;
    box-shadow: var(--shadow-lg);
}
.page-featured-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1500ms var(--ease-quiet);
}
.page-featured-wrap:hover img { transform: scale(1.03); }
.page-featured-caption {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Content */
.page-content-section {
    padding: 0 0 6rem;
    background: var(--bg);
}
.page-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-soft);
}
.page-content > * { margin-bottom: 1.8rem; }
.page-content p { font-weight: 300; }
.page-content h2 {
    font-family: 'Arad', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    line-height: 1.2;
    color: var(--text);
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    padding-right: 1rem;
    border-right: 4px solid var(--accent);
    scroll-margin-top: 100px;
}
.page-content h3 {
    font-family: 'Arad', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.page-content ul, .page-content ol {
    padding-right: 0;
    list-style: none;
    margin: 1.5rem 0;
}
.page-content ul li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    font-weight: 300;
}
.page-content ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 1rem;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}
.page-content ol {
    counter-reset: item;
}
.page-content ol li {
    padding: 0.8rem 0;
    padding-right: 3rem;
    position: relative;
    counter-increment: item;
}
.page-content ol li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    right: 0;
    top: 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-dark);
    background: var(--accent-dim);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
}
.page-content strong { color: var(--text); font-weight: 700; }
.page-content a {
    color: var(--accent-dark);
    border-bottom: 1px solid var(--accent-soft);
    transition: border-color 300ms var(--ease-quiet);
}
.page-content a:hover { border-color: var(--accent); }
.page-content blockquote {
    background: var(--bg-2);
    border-right: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    font-family: 'Arad', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text);
    font-style: normal;
    position: relative;
}
.page-content blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 8rem;
    color: var(--accent-soft);
    line-height: 1;
    pointer-events: none;
}
.page-content blockquote p { position: relative; z-index: 1; }
.page-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
}
.page-content blockquote cite::before { content: '— '; }
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
}
.page-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-md);
}
.page-content table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin: 2rem 0;
}
.page-content table th {
    background: var(--bg-dark);
    color: #fff;
    padding: 1rem 1.2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right;
}
.page-content table th:first-child { color: var(--accent); }
.page-content table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.92rem;
}
.page-content table tr:last-child td { border-bottom: none; }
.page-content table tr:hover { background: var(--accent-dim); }

/* Edit link */
.page-edit-link {
    max-width: 900px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
}
.page-edit-link a {
    color: var(--text-muted);
    transition: color 300ms var(--ease-quiet);
}
.page-edit-link a:hover { color: var(--accent-dark); }

/* Optional CTA */
.page-cta-section {
    padding: 5rem 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}
.page-cta {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-2xl);
    padding: 4rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.page-cta::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-cta .label-en {
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
    display: inline-block;
}
.page-cta-title {
    font-family: 'Arad', sans-serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
    color: var(--text);
}
.page-cta-body {
    color: var(--text-soft);
    line-height: 1.85;
    max-width: 540px;
    margin: 0 auto 2rem;
    font-weight: 300;
}
.page-cta .btn-primary-fa {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: all 350ms var(--ease-quiet);
    box-shadow: 0 10px 30px -8px rgba(139, 200, 82, 0.6);
    text-decoration: none;
}
.page-cta .btn-primary-fa:hover {
    background: var(--bg-dark);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -10px rgba(10, 10, 10, 0.35);
}

.page-content.article-content > * {
    animation: pageFadeIn 800ms cubic-bezier(.22, 1, .36, 1) both;
}
.page-content.article-content > *:nth-child(1) { animation-delay: 0ms; }
.page-content.article-content > *:nth-child(2) { animation-delay: 80ms; }
.page-content.article-content > *:nth-child(3) { animation-delay: 160ms; }
.page-content.article-content > *:nth-child(4) { animation-delay: 240ms; }
.page-content.article-content > *:nth-child(n+5) { animation-delay: 300ms; }

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 991px) {
    .page-featured { padding: 0 1.2rem; }
}
@media (max-width: 767px) {
    .page-hero { padding: 0.5rem 0 2rem; }
    .page-featured-wrap { aspect-ratio: 16/9; border-radius: var(--radius-xl); }
    .page-content { font-size: 1rem; }
    .page-content h2 { font-size: 1.4rem; }
    .page-content blockquote { padding: 1.5rem; }
    .page-cta { padding: 2.5rem 1.5rem; }
}