/* =========================================================
   OMRANEX — Cognitive Business Intelligence
   Professional · Intelligent · Futuristic · Animated
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Dark surfaces */
    --bg: #07080a;
    --bg-2: #0c0e11;
    --surface: #121419;
    --surface-2: #171a20;
    --surface-3: #1d2028;

    /* Lines */
    --border: #22252c;
    --border-2: #2c3038;
    --border-glow: rgba(225, 29, 46, 0.35);

    /* Text */
    --text: #f2f3f7;
    --text-2: #a6abb5;
    --text-3: #6b7078;

    /* OMRANEX Red */
    --accent: #e11d2e;
    --accent-2: #ff3b4c;
    --accent-3: #ff7a8f;
    --accent-dim: rgba(225, 29, 46, 0.12);
    --accent-dim-2: rgba(225, 29, 46, 0.22);
    --accent-glow: rgba(225, 29, 46, 0.35);
    --accent-glow-soft: rgba(225, 29, 46, 0.08);

    --gradient: linear-gradient(135deg, #e11d2e 0%, #ff3b4c 55%, #ff7a8f 100%);
    --gradient-soft: linear-gradient(135deg, rgba(225, 29, 46, 0.16) 0%, rgba(255, 122, 143, 0.06) 100%);
    --gradient-dark: linear-gradient(180deg, #0c0e11 0%, #121419 100%);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 100px;

    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);
    --shadow-red: 0 20px 52px rgba(225, 29, 46, 0.28);

    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.22s ease;

    --pad: clamp(20px, 4vw, 40px);
    --max: 1280px;

    --font-latin: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-fa: 'Vazirmatn', 'IRANSans', Tahoma, system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-latin);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(225, 29, 46, 0.06), transparent 55%),
        radial-gradient(ellipse at 0% 60%, rgba(225, 29, 46, 0.04), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

html[lang="fa"] body {
    font-family: var(--font-fa);
    font-size: 15.5px;
    line-height: 1.85;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
    position: relative;
    z-index: 1;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), #6b0d18);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}

/* =========================================================
   CURSOR GLOW
   ========================================================= */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .cursor-glow {
        opacity: 1;
    }
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 12.5px;
    color: var(--text-2);
    letter-spacing: 0.04em;
    position: relative;
    z-index: 90;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

.topbar-pill {
    background: var(--accent-dim);
    padding: 3px 16px;
    border-radius: var(--radius-pill);
    color: var(--accent-2);
    font-weight: 500;
    font-size: 12px;
    border: 1px solid rgba(225, 29, 46, 0.22);
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 8, 10, 0.72);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(7, 8, 10, 0.94);
    border-bottom-color: var(--border-2);
}

.site-header.is-light {
    background: rgba(255, 255, 255, 0.78);
    border-bottom-color: #e5e7eb;
}

.site-header.is-light.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: #d1d5db;
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px var(--pad);
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #fff;
    transition: color 0.3s ease;
}

.brand span {
    color: var(--accent);
}

.site-header.is-light .brand {
    color: #171717;
}

.main-nav {
    display: flex;
    gap: 2px;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nav-link {
    padding: 7px 11px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
    background: rgba(225, 29, 46, 0.1);
}

.nav-link.is-active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 20px rgba(225, 29, 46, 0.3);
}

.site-header.is-light .nav-link {
    color: #4b5563;
}

.site-header.is-light .nav-link:hover {
    color: #171717;
    background: rgba(225, 29, 46, 0.08);
}

.site-header.is-light .nav-link.is-active {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 20px rgba(225, 29, 46, 0.35);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-inline-start: auto;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    letter-spacing: 0.04em;
}

.lang-btn {
    color: var(--text-3);
    font-weight: 500;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.is-active {
    color: var(--accent-2);
    font-weight: 700;
}

.lang-divider {
    color: var(--border-2);
}

.site-header.is-light .lang-btn {
    color: #9ca3af;
}

.site-header.is-light .lang-btn:hover {
    color: #171717;
}

.site-header.is-light .lang-btn.is-active {
    color: var(--accent);
}

.site-header.is-light .lang-divider {
    color: #d1d5db;
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.site-header.is-light .menu-toggle span {
    background: #171717;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 16px var(--pad) 24px;
}

.site-header.is-light .mobile-nav {
    background: #ffffff;
    border-top-color: #e5e7eb;
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
}

.mobile-link {
    padding: 13px 0;
    font-size: 15px;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease, padding 0.2s ease;
}

.mobile-link:hover {
    color: #fff;
    padding-inline-start: 8px;
}

.mobile-link.is-active {
    color: var(--accent-2);
    font-weight: 600;
}

.site-header.is-light .mobile-link {
    color: #4b5563;
    border-bottom-color: #e5e7eb;
}

.site-header.is-light .mobile-link:hover {
    color: #171717;
}

.site-header.is-light .mobile-link.is-active {
    color: var(--accent);
}

.mobile-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    font-size: 13px;
}

@media (max-width: 1200px) {
    .nav-link {
        padding: 6px 9px;
        font-size: 12px;
    }

    .main-nav {
        gap: 1px;
    }

    .brand {
        font-size: 18px;
    }
}

@media (max-width: 1050px) {
    .nav-link {
        padding: 5px 8px;
        font-size: 11.5px;
    }

    .lang-switch {
        font-size: 11.5px;
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.eyebrow,
.section-tag {
    display: inline-block;
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
    font-weight: 600;
    padding: 5px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(225, 29, 46, 0.22);
    background: var(--accent-dim);
    margin-bottom: 18px;
}

html[lang="fa"] .eyebrow,
html[lang="fa"] .section-tag {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 12.5px;
}

.glow-line {
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 10px;
    margin: 12px 0 20px;
    box-shadow: 0 0 24px var(--accent-glow);
}

.text-center .glow-line {
    margin-inline: auto;
}

.hero-title,
.page-title {
    font-size: clamp(2.2rem, 5.2vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

html[lang="fa"] .hero-title,
html[lang="fa"] .page-title {
    line-height: 1.28;
    letter-spacing: 0;
}

.hero-title .grad,
.page-title .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-body,
.page-lead {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--text-2);
    line-height: 1.75;
    max-width: 56ch;
    margin-top: 22px;
}

.section-title {
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 26ch;
}

html[lang="fa"] .section-title {
    letter-spacing: 0;
    line-height: 1.4;
}

.section-lead {
    margin-top: 16px;
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 62ch;
}

.prose p {
    color: var(--text-2);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 14px;
    max-width: 68ch;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14.5px;
    background: var(--gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 32px var(--accent-glow);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 56px var(--accent-glow);
}

.btn-secondary {
    background: var(--surface-2);
    box-shadow: none;
    border: 1px solid var(--border-2);
    color: var(--text);
}

.btn-secondary::after {
    display: none;
}

.btn-secondary:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 32px var(--accent-glow);
}

.btn-arrow::before {
    content: "→";
    font-size: 15px;
    transition: transform 0.3s ease;
}

html[dir="rtl"] .btn-arrow::before {
    content: "←";
}

.btn-arrow:hover::before {
    transform: translateX(3px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 6vw, 80px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 25%, rgba(225, 29, 46, 0.14), transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 122, 143, 0.06), transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-orb {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 122, 143, 0.28), transparent 55%),
        radial-gradient(circle at 70% 75%, rgba(225, 29, 46, 0.16), transparent 55%),
        radial-gradient(circle at 50% 50%, var(--surface), var(--bg) 75%);
    border: 1px solid rgba(225, 29, 46, 0.22);
    box-shadow:
        0 0 100px rgba(225, 29, 46, 0.15),
        inset 0 0 100px rgba(225, 29, 46, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    animation: orbFloat 7s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.orb-core::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, transparent 0%, var(--accent) 20%, transparent 40%, transparent 60%, var(--accent-3) 80%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.55;
    animation: orbSpin 18s linear infinite;
}

@keyframes orbSpin {
    to {
        transform: rotate(360deg);
    }
}

.orb-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.orb-sub {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 0.28em;
    color: var(--text-2);
    text-transform: uppercase;
}

.orb-flow {
    margin-top: 22px;
    font-size: 12.5px;
    color: var(--text-2);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    background: var(--accent-dim);
    border: 1px solid rgba(225, 29, 46, 0.15);
    letter-spacing: 0.04em;
}

.orb-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    opacity: 0.6;
}

.orb-particle:nth-child(2) {
    top: 12%;
    left: 18%;
    animation: floatP 6s ease-in-out infinite;
}

.orb-particle:nth-child(3) {
    top: 25%;
    right: 8%;
    animation: floatP 7.5s ease-in-out infinite 0.5s;
}

.orb-particle:nth-child(4) {
    bottom: 18%;
    left: 8%;
    animation: floatP 8s ease-in-out infinite 1s;
}

.orb-particle:nth-child(5) {
    bottom: 10%;
    right: 22%;
    animation: floatP 6.5s ease-in-out infinite 1.5s;
}

.orb-particle:nth-child(6) {
    top: 50%;
    left: -4%;
    animation: floatP 7s ease-in-out infinite 0.3s;
}

.orb-particle:nth-child(7) {
    top: 50%;
    right: -4%;
    animation: floatP 7.2s ease-in-out infinite 0.8s;
}

@keyframes floatP {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(8px, -12px) scale(1.4);
        opacity: 1;
    }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
    padding: clamp(70px, 9vw, 120px) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    margin-bottom: 56px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 56px;
}

.section-header-center .section-title {
    margin-inline: auto;
}

.section-header-center .section-lead {
    margin-inline: auto;
}

/* =========================================================
   CARD GRID
   ========================================================= */
.card-grid {
    display: grid;
    gap: 22px;
}

.card-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    transition: var(--transition);
    overflow: hidden;
    display: block;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.card.is-link:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(225, 29, 46, 0.15);
}

.card.is-link:hover::before {
    opacity: 1;
}

.card-icon {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid rgba(225, 29, 46, 0.2);
    border-radius: 12px;
    margin-bottom: 22px;
    color: var(--accent-2);
    transition: var(--transition);
}

.card.is-link:hover .card-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 0 30px var(--accent-glow);
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.card-meta {
    position: relative;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-2);
    font-weight: 700;
    margin-bottom: 12px;
}

.card-title {
    position: relative;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 8px;
}

.card-body {
    position: relative;
    font-size: 0.94rem;
    color: var(--text-2);
    line-height: 1.7;
}

.card.is-link::after {
    content: "→";
    position: absolute;
    bottom: 22px;
    right: 26px;
    color: var(--accent-2);
    font-size: 18px;
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
}

html[dir="rtl"] .card.is-link::after {
    content: "←";
    right: auto;
    left: 26px;
    transform: translateX(6px);
}

.card.is-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   BEYOND AUTOMATION — 3 pillars
   ========================================================= */
.pillars-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pillar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.pillar:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.pillar-num {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.18;
    line-height: 1;
}

html[dir="rtl"] .pillar-num {
    right: auto;
    left: 24px;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid rgba(225, 29, 46, 0.2);
    border-radius: 12px;
    color: var(--accent-2);
    margin-bottom: 20px;
    transition: var(--transition);
}

.pillar:hover .pillar-icon {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.08);
}

.pillar-icon svg {
    width: 24px;
    height: 24px;
}

.pillar h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pillar p {
    color: var(--text-2);
    font-size: 0.94rem;
}

/* =========================================================
   FLOW
   ========================================================= */
.flow-wrap {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.flow-item {
    position: relative;
    padding: 34px 16px 34px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-inline-end: 0;
    transition: var(--transition);
    cursor: default;
}

.flow-item:first-child {
    border-start-start-radius: var(--radius);
    border-end-start-radius: var(--radius);
}

.flow-item:last-child {
    border-start-end-radius: var(--radius);
    border-end-end-radius: var(--radius);
    border-inline-end: 1px solid var(--border);
}

.flow-item:hover {
    background: var(--surface-2);
    border-color: var(--accent);
    z-index: 2;
    transform: translateY(-4px);
}

.flow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0 auto 14px;
    box-shadow: 0 0 20px var(--accent-glow);
    position: relative;
}

.flow-dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--accent-dim-2);
    animation: flowRipple 2.4s ease-out infinite;
}

.flow-item:nth-child(2) .flow-dot::after {
    animation-delay: 0.3s;
}

.flow-item:nth-child(3) .flow-dot::after {
    animation-delay: 0.6s;
}

.flow-item:nth-child(4) .flow-dot::after {
    animation-delay: 0.9s;
}

.flow-item:nth-child(5) .flow-dot::after {
    animation-delay: 1.2s;
}

.flow-item:nth-child(6) .flow-dot::after {
    animation-delay: 1.5s;
}

@keyframes flowRipple {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.flow-num {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--accent-2);
    margin-bottom: 8px;
}

.flow-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

html[lang="fa"] .flow-label {
    letter-spacing: 0;
    text-transform: none;
    font-size: 13.5px;
}

/* =========================================================
   AGENTS — LIVE NETWORK
   ========================================================= */
.agents-section {
    position: relative;
    overflow: hidden;
}

.agents-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(225, 29, 46, 0.09), transparent 60%);
    pointer-events: none;
}

.agents-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.agents-copy .section-title {
    max-width: 18ch;
}

.agent-network {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin: 0 auto;
}

.agent-network svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.agent-link {
    stroke: rgba(225, 29, 46, 0.35);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 4 6;
    animation: linkDash 8s linear infinite;
}

.agent-link.glow {
    stroke: rgba(255, 122, 143, 0.5);
    stroke-width: 1.4;
}

@keyframes linkDash {
    to {
        stroke-dashoffset: -100;
    }
}

.agent-node circle {
    transition: var(--transition);
}

.agent-node .node-ring {
    fill: none;
    stroke: rgba(225, 29, 46, 0.4);
    stroke-width: 1;
    opacity: 0;
    transform-origin: center;
}

.agent-node .node-core {
    fill: var(--bg-2);
    stroke: rgba(225, 29, 46, 0.55);
    stroke-width: 1.4;
}

.agent-node .node-glow {
    fill: var(--accent);
    opacity: 0.15;
}

.agent-node .node-dot {
    fill: var(--accent);
}

.agent-node.is-pulsing .node-ring {
    animation: nodeRing 2.6s ease-out infinite;
}

@keyframes nodeRing {
    0% {
        transform: scale(0.8);
        opacity: 0.85;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.agent-node:hover .node-core {
    fill: var(--accent);
    stroke: var(--accent-2);
    filter: drop-shadow(0 0 12px var(--accent));
}

.agent-node:hover .node-dot {
    fill: #fff;
}

.agent-node:hover .node-glow {
    opacity: 0.4;
}

.agent-core circle {
    fill: url(#coreGrad);
    stroke: var(--accent-2);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 24px rgba(225, 29, 46, 0.6));
}

.agent-core-pulse {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
    transform-origin: center;
    animation: corePulse 3s ease-out infinite;
}

@keyframes corePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

.agent-label {
    font-family: var(--font-latin);
    font-size: 9.5px;
    font-weight: 600;
    fill: var(--text-2);
    text-anchor: middle;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html[lang="fa"] .agent-label {
    font-family: var(--font-fa);
    font-size: 10.5px;
    letter-spacing: 0;
    text-transform: none;
}

.agent-node:hover+.agent-label,
.agent-label.highlight {
    fill: #fff;
}

.packet {
    fill: var(--accent-2);
    filter: drop-shadow(0 0 6px var(--accent));
    opacity: 0.9;
}

/* =========================================================
   PHILOSOPHY
   ========================================================= */
.philosophy {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.philosophy-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.philosophy-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

html[dir="rtl"] .philosophy-item::before {
    transform-origin: right;
}

.philosophy-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.philosophy-item:hover::before {
    transform: scaleX(1);
}

.philosophy-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--accent-2);
    margin-bottom: 18px;
    display: block;
}

.philosophy-text {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.55;
    color: #fff;
}

html[lang="fa"] .philosophy-text {
    line-height: 1.75;
    font-size: 1rem;
}

/* =========================================================
   PROJECTS
   ========================================================= */
.project-card {
    padding: 34px 30px;
}

.project-card .card-meta {
    margin-bottom: 14px;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
    position: relative;
    padding: clamp(90px, 11vw, 150px) 0;
    text-align: center;
    overflow: hidden;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(225, 29, 46, 0.22), transparent 60%),
        radial-gradient(ellipse at 20% 20%, rgba(255, 122, 143, 0.08), transparent 50%);
    pointer-events: none;
}

.final-cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.final-cta .cta-line {
    font-size: clamp(1.7rem, 3.8vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 22ch;
    margin-inline: auto;
}

html[lang="fa"] .final-cta .cta-line {
    line-height: 1.4;
    letter-spacing: 0;
}

.final-cta .cta-line.is-accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 8px;
}

.final-cta .btn {
    margin-top: 48px;
}

/* =========================================================
   PAGE HERO (inner pages — unified)
   ========================================================= */
.page-hero {
    position: relative;
    padding: clamp(120px, 14vw, 180px) 0 clamp(60px, 7vw, 100px);
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.16) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.page-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 122, 143, 0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .eyebrow {
    margin-bottom: 18px;
}

.page-hero .page-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #fff;
    max-width: 22ch;
}

html[lang="fa"] .page-hero .page-title {
    line-height: 1.3;
    letter-spacing: 0;
}

.page-hero .page-lead {
    margin-top: 22px;
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    color: var(--text-2);
    line-height: 1.7;
    max-width: 62ch;
}

.page-hero-deco {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(225, 29, 46, 0.08) 0, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 122, 143, 0.05) 0, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* =========================================================
   BULLETS
   ========================================================= */
.bullets {
    display: grid;
    gap: 10px;
    max-width: 780px;
}

.bullets li {
    position: relative;
    padding: 18px 24px 18px 54px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-2);
    transition: var(--transition-fast);
}

html[dir="rtl"] .bullets li {
    padding: 18px 54px 18px 24px;
}

.bullets li::before {
    content: "→";
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-2);
    font-weight: 700;
    font-size: 16px;
}

html[dir="rtl"] .bullets li::before {
    content: "←";
    left: auto;
    right: 22px;
}

.bullets li:hover {
    border-color: var(--accent);
    background: var(--surface-2);
    color: #fff;
    transform: translateX(4px);
}

html[dir="rtl"] .bullets li:hover {
    transform: translateX(-4px);
}

/* =========================================================
   BLOCKS
   ========================================================= */
.block {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    max-width: 820px;
}

.block:first-child {
    padding-top: 0;
}

.block:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.block-heading {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 14px;
}

html[lang="fa"] .block-heading {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 13.5px;
}

.block-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-2);
    max-width: 68ch;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-form {
    max-width: 780px;
    margin-top: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-fast);
}

html[lang="fa"] .form-field input,
html[lang="fa"] .form-field textarea {
    font-family: var(--font-fa);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-dim);
    background: var(--surface-2);
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.form-note {
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-2);
}

.form-note.is-success {
    color: #22c55e;
}

.form-note.is-error {
    color: var(--accent-2);
}

/* =========================================================
   FOOTER — Compact horizontal layout
   ========================================================= */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 40px 0 0;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.footer-mark {
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.footer-tagline {
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.4;
    border-inline-start: 1px solid var(--border);
    padding-inline-start: 16px;
    max-width: 220px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    align-items: center;
    justify-content: center;
}

.footer-link {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-link:hover {
    color: var(--accent-2);
}

.footer-statement {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    text-align: end;
    flex-shrink: 0;
}

.footer-statement p {
    color: var(--text-3);
    font-size: 11.5px;
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 11.5px;
    color: var(--text-3);
    letter-spacing: 0.06em;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom span {
    white-space: nowrap;
}

.footer-bottom::after {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: dotPulse 2s ease-in-out infinite;
}

@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding-bottom: 24px;
    }

    .footer-brand {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }

    .footer-tagline {
        border-inline-start: 0;
        padding-inline-start: 0;
        max-width: 100%;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-statement {
        align-items: center;
        text-align: center;
    }

    .footer-statement p {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 28px 0 0;
    }

    .footer-nav {
        gap: 4px 14px;
        font-size: 12px;
    }

    .footer-link {
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 14px 0;
    }

    .footer-bottom::after {
        display: none;
    }
}

/* =========================================================
   FOOTER CONTACT STRIP — Horizontal
   ========================================================= */
.footer-contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 0;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 4px 24px;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}

.footer-contact-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-end: 0;
    width: 1px;
    height: 16px;
    background: var(--border-2);
    transform: translateY(-50%);
}

.footer-contact-item:hover {
    color: var(--accent-2);
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(225, 29, 46, 0.1);
    color: var(--accent-2);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .footer-contact {
        flex-direction: column;
        gap: 10px;
        padding: 14px 0;
    }

    .footer-contact-item {
        padding: 4px 0;
    }

    .footer-contact-item:not(:last-child)::after {
        display: none;
    }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 {
    transition-delay: 0.08s;
}

.reveal-d2 {
    transition-delay: 0.16s;
}

.reveal-d3 {
    transition-delay: 0.24s;
}

.reveal-d4 {
    transition-delay: 0.32s;
}

.reveal-d5 {
    transition-delay: 0.4s;
}

/* =========================================================
   HELPERS
   ========================================================= */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* =========================================================
   RESPONSIVE (main)
   ========================================================= */
@media (max-width: 1100px) {
    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-orb {
        max-width: 380px;
    }

    .agents-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .card-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .card-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillars-row {
        grid-template-columns: 1fr;
    }

    .flow-wrap {
        grid-template-columns: repeat(3, 1fr);
    }

    .flow-item {
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
    }

    .philosophy {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .card-grid.cols-2,
    .card-grid.cols-3,
    .card-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .flow-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-orb {
        max-width: 300px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .brand {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   HERO — Living Intelligence Cycle
   ========================================================= */
.hero-cycle {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-cycle svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(225, 29, 46, 0.2));
    animation: hcFloat 9s ease-in-out infinite;
}

@keyframes hcFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.cycle-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    max-width: 500px;
}

.cycle-chip {
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(225, 29, 46, 0.1);
    border: 1px solid rgba(225, 29, 46, 0.25);
    color: #ff9fb0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html[lang="fa"] .cycle-chip {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 12px;
}

.cycle-arrow {
    color: #ff7a8f;
    font-size: 13px;
    opacity: 0.7;
}

.cycle-loop {
    color: #e11d2e;
    font-size: 16px;
    margin-inline-start: 4px;
}

/* =========================================================
   BEYOND AUTOMATION — ORA cycle layout
   ========================================================= */
.ora-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
    margin-top: 20px;
}

.ora-cycle {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.ora-cycle svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(225, 29, 46, 0.18));
    animation: oraFloat 10s ease-in-out infinite;
}

@keyframes oraFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

.ora-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ora-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px 26px 88px;
    transition: var(--transition);
    overflow: hidden;
}

html[dir="rtl"] .ora-card {
    padding: 26px 88px 26px 28px;
}

.ora-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(225, 29, 46, 0.12);
}

.ora-card-icon {
    position: absolute;
    top: 26px;
    left: 26px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid rgba(225, 29, 46, 0.2);
    border-radius: 10px;
    color: var(--accent-2);
    transition: var(--transition);
}

html[dir="rtl"] .ora-card-icon {
    left: auto;
    right: 26px;
}

.ora-card-icon svg {
    width: 22px;
    height: 22px;
}

.ora-card:hover .ora-card-icon {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 24px var(--accent-glow);
}

.ora-card-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--accent-2);
    margin-bottom: 6px;
}

.ora-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.ora-card-body {
    font-size: 0.94rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* =========================================================
   INTELLIGENCE PIPELINE
   ========================================================= */
.pipeline {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 0;
}

.pipeline svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .ora-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ora-cycle {
        max-width: 380px;
    }

    .hero-cycle {
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .hero-cycle {
        max-width: 320px;
    }

    .ora-cycle {
        max-width: 300px;
    }

    .cycle-chip {
        font-size: 10px;
        padding: 4px 10px;
    }

    .pipeline svg {
        min-height: 200px;
    }
}

/* =========================================================
   INNER PAGES — Shared design language
   ========================================================= */

.link-card {
    position: relative;
    display: block;
    padding: 30px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
}

.link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.link-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(225, 29, 46, 0.15);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card .card-num {
    position: relative;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--accent-2);
    margin-bottom: 12px;
}

.link-card .card-name {
    position: relative;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    line-height: 1.35;
}

.link-card .card-text {
    position: relative;
    font-size: 0.94rem;
    color: var(--text-2);
    line-height: 1.7;
}

.link-card .card-arrow {
    position: absolute;
    bottom: 22px;
    right: 26px;
    color: var(--accent-2);
    font-size: 18px;
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
}

html[dir="rtl"] .link-card .card-arrow {
    right: auto;
    left: 26px;
    transform: translateX(6px);
}

.link-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border: 1px solid rgba(225, 29, 46, 0.22);
    border-radius: 12px;
    color: var(--accent-2);
    margin-bottom: 20px;
    transition: var(--transition);
}

.icon-badge svg {
    width: 24px;
    height: 24px;
}

.link-card:hover .icon-badge {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 28px var(--accent-glow);
    transform: scale(1.06);
}

.detail-body {
    padding: clamp(60px, 8vw, 100px) 0;
}

.detail-body .stack>*+* {
    margin-top: 40px;
}

.detail-block {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    max-width: 820px;
}

.detail-block:first-child {
    padding-top: 0;
}

.detail-block:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-2);
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--accent-dim);
    border: 1px solid rgba(225, 29, 46, 0.2);
    margin-bottom: 18px;
}

html[lang="fa"] .detail-label {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 13px;
}

.detail-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-2);
    max-width: 68ch;
}

.bullet-list {
    display: grid;
    gap: 10px;
    max-width: 780px;
}

.bullet-list li {
    position: relative;
    padding: 18px 24px 18px 54px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-2);
    transition: var(--transition-fast);
}

html[dir="rtl"] .bullet-list li {
    padding: 18px 54px 18px 24px;
}

.bullet-list li::before {
    content: "→";
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-2);
    font-weight: 700;
    font-size: 16px;
}

html[dir="rtl"] .bullet-list li::before {
    content: "←";
    left: auto;
    right: 22px;
}

.bullet-list li:hover {
    border-color: var(--accent);
    background: var(--surface-2);
    color: #fff;
    transform: translateX(4px);
}

html[dir="rtl"] .bullet-list li:hover {
    transform: translateX(-4px);
}

.cta-strip {
    position: relative;
    padding: clamp(60px, 8vw, 100px) 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    text-align: center;
    overflow: hidden;
}

.cta-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(225, 29, 46, 0.14), transparent 60%);
    pointer-events: none;
}

.cta-strip .container {
    position: relative;
    z-index: 1;
}

.cta-strip .strip-title {
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    max-width: 26ch;
    margin: 0 auto 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

html[lang="fa"] .cta-strip .strip-title {
    letter-spacing: 0;
    line-height: 1.4;
}

.inner-section {
    padding: clamp(60px, 8vw, 100px) 0;
    border-bottom: 1px solid var(--border);
}

.inner-section.alt {
    background: var(--bg-2);
}

.inner-section:last-of-type {
    border-bottom: 0;
}

.inner-head {
    margin-bottom: 44px;
    max-width: 720px;
}

.inner-head .section-title {
    margin-top: 16px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-box {
    padding: 26px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.stat-num {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-2);
}

html[lang="fa"] .stat-label {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 13px;
}

@media (max-width: 800px) {
    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stat-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CONTACT PAGE LAYOUT
   ========================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-direct-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 12px;
}

.contact-direct-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.contact-direct-item:hover {
    border-color: var(--accent);
    background: var(--surface-2);
    transform: translateX(3px);
}

html[dir="rtl"] .contact-direct-item:hover {
    transform: translateX(-3px);
}

.contact-direct-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(225, 29, 46, 0.1);
    border: 1px solid rgba(225, 29, 46, 0.2);
    color: var(--accent-2);
    flex-shrink: 0;
}

.contact-direct-icon svg {
    width: 18px;
    height: 18px;
}

.contact-direct-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 3px;
}

.contact-direct-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.contact-form-wrap .contact-form {
    margin-top: 0;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FOUNDER PAGE — Editorial & Professional Intelligence
   ========================================================= */
.founder-page {
    --f-bg: #ffffff;
    --f-bg-alt: #f5f6f7;
    --f-ink: #171717;
    --f-ink-2: #4b5563;
    --f-muted: #666666;
    --f-line: #e5e7eb;
    --f-line-2: #d1d5db;
    --f-red: #e11d2e;
    --f-red-d: #8f101c;
    --f-dark: #111111;
}

/* ---------- HERO ---------- */
.founder-hero {
    position: relative;
    padding: clamp(120px, 13vw, 170px) 0 clamp(70px, 8vw, 110px);
    background: var(--f-bg);
    color: var(--f-ink);
    overflow: hidden;
    border-bottom: 1px solid var(--f-line);
}

.founder-hero-grid {
    display: grid;
    grid-template-columns: 52fr 48fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.founder-hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--f-red);
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(225, 29, 46, 0.08);
    border: 1px solid rgba(225, 29, 46, 0.18);
    margin-bottom: 22px;
}

html[lang="fa"] .founder-hero-eyebrow {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 12px;
}

.founder-hero-name {
    font-size: clamp(2.4rem, 5.6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--f-ink);
    margin: 0 0 14px;
}

html[lang="fa"] .founder-hero-name {
    line-height: 1.25;
    letter-spacing: 0;
}

.founder-hero-role {
    display: inline-block;
    position: relative;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 600;
    color: var(--f-red);
    letter-spacing: 0.02em;
    padding-inline-start: 22px;
    margin-bottom: 26px;
}

.founder-hero-role::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 14px;
    height: 2px;
    background: var(--f-red);
    transform: translateY(-50%);
}

.founder-hero-desc {
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.7;
    color: var(--f-muted);
    max-width: 52ch;
    margin-bottom: 36px;
}

.founder-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.founder-hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--f-line);
}

.founder-hero-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--f-ink-2);
    transition: color 0.2s ease;
}

.founder-hero-contact-item:hover {
    color: var(--f-red);
}

/* ---------- PORTRAIT ---------- */
.founder-portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.founder-portrait-frame {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--f-bg-alt);
    border: 1px solid var(--f-line);
    z-index: 2;
}

.founder-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s ease, transform 1s ease;
}

.founder-page.is-loaded .founder-portrait-frame img {
    opacity: 1;
    transform: translateY(0);
}

.founder-portrait-label {
    position: absolute;
    bottom: 20px;
    inset-inline-start: 20px;
    background: rgba(17, 17, 17, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

html[lang="fa"] .founder-portrait-label {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 11px;
}

.founder-portrait-accent {
    position: absolute;
    inset-inline-end: -14px;
    top: 12%;
    width: 2px;
    height: 76%;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--f-red) 25%,
            var(--f-red) 75%,
            transparent 100%);
    opacity: 0.5;
    z-index: 3;
}

.founder-portrait-node {
    position: absolute;
    inset-inline-end: -7px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--f-red);
    transform: translateY(-50%);
    box-shadow: 0 0 24px rgba(225, 29, 46, 0.6);
    z-index: 3;
}

.founder-portrait-node::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(225, 29, 46, 0.45);
    animation: fNodePulse 2.4s ease-out infinite;
}

@keyframes fNodePulse {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.founder-portrait-deco {
    position: absolute;
    inset-inline-start: -80px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.14) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.founder-portrait-net {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* ---------- SECTION WRAPPER ---------- */
.founder-section {
    padding: clamp(60px, 8vw, 110px) 0;
    background: var(--f-bg);
    color: var(--f-ink);
    border-bottom: 1px solid var(--f-line);
}

.founder-section.alt {
    background: var(--f-bg-alt);
}

.founder-section.dark {
    background: var(--f-dark);
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.founder-section:last-of-type {
    border-bottom: 0;
}

.founder-section-head {
    max-width: 760px;
    margin-bottom: 48px;
}

.founder-section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--f-red);
    margin-bottom: 14px;
}

html[lang="fa"] .founder-section-label {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 12px;
}

.founder-section-title {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: inherit;
    max-width: 24ch;
}

html[lang="fa"] .founder-section-title {
    letter-spacing: 0;
    line-height: 1.35;
}

.founder-section-head::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--f-red);
    border-radius: 3px;
    margin-top: 22px;
}

.founder-intro-text {
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.75;
    color: var(--f-ink-2);
    max-width: 78ch;
    margin-bottom: 40px;
}

.founder-intro-text-inv {
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- TWO COLUMN ---------- */
.founder-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.founder-col-text {
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    line-height: 1.75;
    color: var(--f-ink-2);
}

@media (max-width: 900px) {
    .founder-two-col {
        grid-template-columns: 1fr;
    }
}

/* ---------- PROFILE VISUAL ---------- */
.founder-profile-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    background: var(--f-bg-alt);
    border: 1px solid var(--f-line);
    border-radius: 20px;
}

.founder-section.alt .founder-profile-visual {
    background: #fff;
}

.profile-layer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.profile-chip {
    padding: 8px 18px;
    background: #fff;
    border: 1px solid var(--f-line);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--f-ink);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

html[lang="fa"] .profile-chip {
    letter-spacing: 0;
    font-size: 13.5px;
}

.profile-chip:hover {
    border-color: var(--f-red);
    color: var(--f-red);
}

.profile-chip-lg {
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 22px;
    background: rgba(225, 29, 46, 0.05);
    border-color: rgba(225, 29, 46, 0.2);
    color: var(--f-red);
}

html[lang="fa"] .profile-chip-lg {
    font-size: 14.5px;
}

.profile-flow-arrow {
    font-size: 20px;
    color: var(--f-line-2);
    line-height: 1;
    margin: 6px 0;
}

.profile-arrow-strong {
    color: var(--f-red);
    font-size: 24px;
    font-weight: 700;
}

.profile-center {
    margin: 16px 0;
}

.profile-center-core {
    padding: 22px 40px;
    background: var(--f-dark);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.profile-center-core::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--f-red), transparent 60%);
    opacity: 0.25;
    z-index: -1;
}

.profile-center-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html[lang="fa"] .profile-center-name {
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 17px;
}

.profile-target {
    margin-top: 12px;
    padding: 16px 48px;
    background: var(--f-red);
    color: #fff;
    border-radius: 100px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 0 20px 50px rgba(225, 29, 46, 0.28);
    animation: profilePulse 3s ease-in-out infinite;
}

html[lang="fa"] .profile-target {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 16px;
}

@keyframes profilePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* ---------- TIMELINE ---------- */
.founder-timeline {
    position: relative;
    padding: 20px 0 40px;
}

.founder-timeline-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    padding-top: 40px;
}

.founder-timeline-line {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--f-line-2);
    overflow: hidden;
}

.founder-timeline-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--f-red);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

html[dir="rtl"] .founder-timeline-line::after {
    transform-origin: right;
}

.founder-page.is-timeline-visible .founder-timeline-line::after {
    transform: scaleX(1);
}

.founder-stage {
    position: relative;
    text-align: center;
    padding: 0 6px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.founder-page.is-timeline-visible .founder-stage {
    opacity: 1;
    transform: translateY(0);
}

.founder-page.is-timeline-visible .founder-stage:nth-child(2) {
    transition-delay: 0.1s;
}

.founder-page.is-timeline-visible .founder-stage:nth-child(3) {
    transition-delay: 0.2s;
}

.founder-page.is-timeline-visible .founder-stage:nth-child(4) {
    transition-delay: 0.3s;
}

.founder-page.is-timeline-visible .founder-stage:nth-child(5) {
    transition-delay: 0.4s;
}

.founder-page.is-timeline-visible .founder-stage:nth-child(6) {
    transition-delay: 0.5s;
}

.founder-page.is-timeline-visible .founder-stage:nth-child(7) {
    transition-delay: 0.6s;
}

.founder-page.is-timeline-visible .founder-stage:nth-child(8) {
    transition-delay: 0.7s;
}

.founder-page.is-timeline-visible .founder-stage:nth-child(9) {
    transition-delay: 0.8s;
}

.founder-stage-dot {
    position: relative;
    width: 14px;
    height: 14px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--f-red);
    z-index: 1;
    transition: transform 0.4s ease, background 0.4s ease;
}

.founder-stage:hover .founder-stage-dot {
    transform: scale(1.25);
    background: var(--f-red);
}

.founder-stage-dot::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(225, 29, 46, 0.25);
}

.founder-stage-year {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--f-red);
    margin-bottom: 6px;
    min-height: 16px;
}

.founder-stage-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--f-ink-2);
    line-height: 1.5;
}

.founder-stage.is-final .founder-stage-dot {
    background: var(--f-red);
    box-shadow: 0 0 24px rgba(225, 29, 46, 0.55);
    transform: scale(1.15);
}

.founder-stage.is-final .founder-stage-title {
    color: var(--f-ink);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .founder-timeline-track {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 40px;
    }

    .founder-timeline-line {
        display: none;
    }

    .founder-stage {
        border-top: 1px solid var(--f-line);
        padding-top: 20px;
    }

    .founder-stage-dot {
        margin-top: -27px;
    }
}

@media (max-width: 640px) {
    .founder-timeline-track {
        grid-template-columns: 1fr;
        row-gap: 0;
        padding-top: 0;
    }

    .founder-stage {
        border-top: 0;
        padding: 14px 0 14px 34px;
        text-align: start;
        border-inline-start: 2px solid var(--f-line-2);
        position: relative;
        margin-inline-start: 6px;
    }

    html[dir="rtl"] .founder-stage {
        padding: 14px 34px 14px 0;
    }

    .founder-stage-dot {
        position: absolute;
        inset-inline-start: -8px;
        top: 18px;
        margin: 0;
    }

    html[dir="rtl"] .founder-stage-dot {
        inset-inline-start: auto;
        inset-inline-end: -8px;
    }

    .founder-stage.is-final {
        border-inline-start-color: var(--f-red);
    }
}

/* ---------- CHIP GRID ---------- */
.founder-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.founder-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--f-line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--f-ink);
    transition: all 0.3s ease;
}

.founder-section.alt .founder-chip {
    background: var(--f-bg-alt);
}

.founder-chip:hover {
    border-color: var(--f-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(225, 29, 46, 0.08);
}

.founder-chip-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 29, 46, 0.08);
    border-radius: 8px;
    color: var(--f-red);
    flex-shrink: 0;
}

.founder-chip-icon svg {
    width: 16px;
    height: 16px;
}

/* ---------- CAPABILITY GRID ---------- */
.founder-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.founder-capability {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--f-line);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--f-ink);
    transition: all 0.3s ease;
}

.founder-section.alt .founder-capability {
    background: #fff;
}

.founder-capability:hover {
    border-color: var(--f-red);
    transform: translateY(-2px);
}

.founder-capability-lg {
    padding: 18px 20px;
    font-size: 14.5px;
}

.founder-capability-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 29, 46, 0.08);
    border-radius: 7px;
    color: var(--f-red);
    flex-shrink: 0;
}

.founder-capability-icon svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 900px) {
    .founder-capability-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .founder-capability-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- FLOW ---------- */
.founder-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid var(--f-line);
    border-radius: 16px;
    max-width: 520px;
    margin-inline: auto;
}

.founder-section.alt .founder-flow {
    background: #fff;
}

.founder-section:not(.alt) .founder-flow {
    background: var(--f-bg-alt);
}

.founder-flow-step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.founder-flow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--f-red);
    box-shadow: 0 0 12px rgba(225, 29, 46, 0.45);
    animation: flowDotPulse 2.4s ease-in-out infinite;
}

.founder-flow-step:nth-child(3) .founder-flow-dot {
    animation-delay: 0.3s;
}

.founder-flow-step:nth-child(5) .founder-flow-dot {
    animation-delay: 0.6s;
}

.founder-flow-step:nth-child(7) .founder-flow-dot {
    animation-delay: 0.9s;
}

@keyframes flowDotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.35);
        opacity: 1;
    }
}

.founder-flow-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--f-ink);
}

html[lang="fa"] .founder-flow-label {
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 14px;
}

.founder-flow-arrow {
    color: var(--f-red);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.6;
    animation: flowArrowMove 2s ease-in-out infinite;
}

@keyframes flowArrowMove {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(3px);
        opacity: 1;
    }
}

.founder-flow-horiz {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 12px;
}

.founder-flow-horiz .founder-flow-step {
    background: #fff;
    border: 1px solid var(--f-line);
    border-radius: 100px;
    padding: 10px 18px;
}

.founder-flow-arrow-h {
    color: var(--f-red);
    font-size: 18px;
    font-weight: 700;
    opacity: 0.7;
}

/* ---------- LANGUAGE CHIPS ---------- */
.founder-lang-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
}

.founder-lang-chip {
    padding: 9px 20px;
    background: var(--f-dark);
    color: #fff;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-lang-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* ---------- AGENT ARCHITECTURE ---------- */
.founder-agent-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 20px;
}

.founder-agent-arch {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 30px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.founder-arch-node {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    position: relative;
}

.founder-arch-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--f-red);
    box-shadow: 0 0 14px rgba(225, 29, 46, 0.5);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.founder-arch-node:not(:last-child)::before {
    content: "";
    position: absolute;
    inset-inline-start: 4px;
    top: calc(50% + 8px);
    width: 2px;
    height: calc(100% - 4px);
    background: linear-gradient(180deg, rgba(225, 29, 46, 0.5), rgba(225, 29, 46, 0.05));
}

.founder-arch-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

html[lang="fa"] .founder-arch-label {
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 13.5px;
}

.founder-agent-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.founder-agent-support {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.founder-support-chip {
    padding: 8px 16px;
    background: rgba(225, 29, 46, 0.15);
    border: 1px solid rgba(225, 29, 46, 0.35);
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff9fb0;
}

html[lang="fa"] .founder-support-chip {
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 12.5px;
}

.founder-agent-layers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.founder-layer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

html[dir="rtl"] .founder-layer {
    transform: translateX(10px);
}

.founder-page.is-agents-visible .founder-layer {
    opacity: 1;
    transform: translateX(0);
}

.founder-layer-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--f-red);
}

.founder-layer-name {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
    .founder-agent-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ---------- ACADEMIC ---------- */
.founder-academic-list {
    display: grid;
    gap: 12px;
    max-width: 820px;
}

.founder-academic-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 22px;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid var(--f-line);
    border-radius: 12px;
    align-items: center;
    transition: border-color 0.3s ease;
}

.founder-academic-item:hover {
    border-color: var(--f-red);
}

.founder-academic-num {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 29, 46, 0.08);
    border: 1px solid rgba(225, 29, 46, 0.2);
    border-radius: 10px;
    color: var(--f-red);
}

.founder-academic-icon svg {
    width: 20px;
    height: 20px;
}

.founder-academic-degree {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--f-ink);
    margin-bottom: 4px;
}

.founder-academic-school {
    font-size: 0.9rem;
    color: var(--f-muted);
}

.founder-teaching {
    margin-top: 22px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--f-line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    max-width: 820px;
}

.founder-teaching-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--f-red);
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(225, 29, 46, 0.08);
    border: 1px solid rgba(225, 29, 46, 0.18);
}

html[lang="fa"] .founder-teaching-label {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 12px;
}

.founder-teaching-text {
    font-size: 0.95rem;
    color: var(--f-ink-2);
}

.founder-teaching-since {
    margin-inline-start: auto;
    font-size: 12.5px;
    color: var(--f-muted);
    font-weight: 600;
}

/* ---------- WORK ---------- */
.founder-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.founder-work-card {
    position: relative;
    display: block;
    padding: 32px 30px 30px;
    background: #fff;
    border: 1px solid var(--f-line);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.founder-work-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 0;
    height: 3px;
    background: var(--f-red);
    transition: width 0.5s ease;
}

.founder-work-card:hover {
    border-color: var(--f-red);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.founder-work-card:hover::before {
    width: 100%;
}

.founder-work-num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: var(--f-red);
    margin-bottom: 12px;
}

.founder-work-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--f-ink);
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin-bottom: 10px;
}

.founder-work-desc {
    font-size: 0.94rem;
    color: var(--f-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.founder-work-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--f-ink);
    letter-spacing: 0.02em;
}

.founder-work-cta::after {
    content: "→";
    color: var(--f-red);
    transition: transform 0.3s ease;
}

html[dir="rtl"] .founder-work-cta::after {
    content: "←";
}

.founder-work-card:hover .founder-work-cta::after {
    transform: translateX(4px);
}

html[dir="rtl"] .founder-work-card:hover .founder-work-cta::after {
    transform: translateX(-4px);
}

@media (max-width: 640px) {
    .founder-work-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- IDEA ---------- */
.founder-idea {
    position: relative;
    overflow: hidden;
}

.founder-idea::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.founder-idea-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    position: relative;
    z-index: 1;
}

.founder-idea-text p {
    font-size: clamp(1.05rem, 1.45vw, 1.22rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 18px;
}

.founder-idea-flow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.founder-idea-flow-item {
    position: relative;
    padding: 12px 0 12px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

html[lang="fa"] .founder-idea-flow-item {
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 14px;
    padding-inline-start: 0;
    padding-inline-end: 28px;
}

.founder-idea-flow-item::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--f-red);
    transform: translateY(-50%);
    box-shadow: 0 0 14px rgba(225, 29, 46, 0.55);
}

html[lang="fa"] .founder-idea-flow-item::before {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.founder-idea-flow-item::after {
    content: "";
    position: absolute;
    inset-inline-start: 3px;
    top: calc(50% + 6px);
    width: 2px;
    height: calc(100% - 8px);
    background: linear-gradient(180deg, rgba(225, 29, 46, 0.5), rgba(225, 29, 46, 0.05));
}

html[lang="fa"] .founder-idea-flow-item::after {
    inset-inline-start: auto;
    inset-inline-end: 3px;
}

.founder-idea-flow-item:last-child::after {
    display: none;
}

.founder-idea-flow-item.is-loop::before {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.founder-idea-around {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.founder-around-chip {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

html[lang="fa"] .founder-around-chip {
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 12.5px;
}

@media (max-width: 900px) {
    .founder-idea-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- PERSPECTIVE ---------- */
.founder-perspective {
    text-align: center;
}

.founder-perspective-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--f-red);
    margin-bottom: 32px;
}

html[lang="fa"] .founder-perspective-label {
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 12px;
}

.founder-perspective-quote {
    max-width: 850px;
    margin: 0 auto;
    font-size: clamp(1.5rem, 3.6vw, 3rem);
    line-height: 1.32;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--f-ink);
}

html[lang="fa"] .founder-perspective-quote {
    letter-spacing: 0;
    line-height: 1.55;
    font-size: clamp(1.3rem, 3vw, 2.4rem);
}

.founder-perspective-quote .accent {
    color: var(--f-red);
}

.founder-perspective-divider {
    width: 40px;
    height: 2px;
    background: var(--f-red);
    border-radius: 2px;
    margin: 40px auto 0;
}

/* ---------- CTA ---------- */
.founder-cta {
    position: relative;
    padding: clamp(80px, 10vw, 140px) 0;
    text-align: center;
    overflow: hidden;
}

.founder-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(225, 29, 46, 0.22), transparent 60%);
    pointer-events: none;
}

.founder-cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.founder-cta-title {
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

html[lang="fa"] .founder-cta-title {
    letter-spacing: 0;
    line-height: 1.4;
}

.founder-cta-text {
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 52ch;
    margin: 0 auto 40px;
}

/* ---------- BUTTONS ---------- */
.founder-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.founder-btn-primary {
    background: var(--f-red);
    color: #fff;
    box-shadow: 0 10px 30px rgba(225, 29, 46, 0.28);
}

.founder-btn-primary:hover {
    background: var(--f-red-d);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(225, 29, 46, 0.38);
}

.founder-btn-primary::after {
    content: "→";
    transition: transform 0.3s ease;
}

html[dir="rtl"] .founder-btn-primary::after {
    content: "←";
}

.founder-btn-primary:hover::after {
    transform: translateX(4px);
}

html[dir="rtl"] .founder-btn-primary:hover::after {
    transform: translateX(-4px);
}

.founder-btn-ghost {
    background: transparent;
    color: var(--f-ink);
    border-color: var(--f-line-2);
}

zz .founder-btn-ghost:hover {
    border-color: var(--f-ink);
    background: #f5f6f7;
}

/* ---------- REVEAL ---------- */
.founder-page .fx-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.founder-page .fx-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .founder-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .founder-portrait {
        order: -1;
        max-width: 340px;
    }

    .founder-portrait-accent,
    .founder-portrait-node,
    .founder-portrait-deco,
    .founder-portrait-net {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .founder-portrait-node::after,
    .profile-target {
        animation: none;
    }

    .founder-portrait-frame img {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .founder-page .fx-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .founder-timeline-line::after {
        transform: scaleX(1);
        transition: none;
    }

    .founder-stage,
    .founder-layer {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .founder-flow-dot,
    .founder-flow-arrow {
        animation: none;
    }
}

/* =========================================================
   NEWS PAGE
   ========================================================= */

/* =========================================================
   NEWS PAGE
   ========================================================= */

/* ---------- HERO ---------- */
.news-hero {
    position: relative;
    padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.news-hero::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.news-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    flex-wrap: wrap;
}

.news-hero-left {
    max-width: 720px;
}

.news-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 14px;
}

.news-title .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-2);
    line-height: 1.7;
    max-width: 62ch;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 100px;
    font-size: 12.5px;
    color: var(--text-2);
    flex-shrink: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ---------- STATS ---------- */
.stats-bar {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
    background: var(--bg-2);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ---------- FILTERS ---------- */
.filters-bar {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.filters-inner {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    padding: 7px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.filter-chip:hover {
    border-color: var(--accent);
    color: #fff;
}

.filter-chip.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ---------- FEATURED ---------- */
.featured-section {
    padding: clamp(40px, 6vw, 70px) 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 22px;
}

.featured-label::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    color: inherit;
}

.featured-card:hover {
    border-color: var(--accent);
    box-shadow: 0 30px 80px rgba(225, 29, 46, 0.18);
}

/* ----- FEATURED IMAGE — padding-bottom fallback ----- */
.featured-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    /* نسبت 4:3 برای موبایل‌پسند */
    height: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 40%, rgba(255, 122, 143, 0.4) 0%, transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(225, 29, 46, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, #1a1d24 0%, #0c0e11 100%);
}

.featured-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(225, 29, 46, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 29, 46, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
    pointer-events: none;
}

.featured-image>svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    color: var(--text-3);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.featured-image-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    padding: 6px 14px;
    background: rgba(12, 14, 17, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.featured-body {
    padding: 44px 42px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-source-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 12px;
}

.source-name {
    color: var(--accent-2);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.source-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-3);
}

.source-time {
    color: var(--text-3);
}

.featured-cat {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 122, 143, 0.1);
    border: 1px solid rgba(255, 122, 143, 0.25);
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-3);
    margin-bottom: 16px;
    align-self: flex-start;
}

.featured-title {
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
}

.featured-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 26px;
}

.featured-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient);
    color: #fff;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(225, 29, 46, 0.28);
}

.btn-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 100px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-source:hover {
    border-color: var(--accent);
    color: var(--accent-2);
}

/* ---------- FEED ---------- */
.feed-section {
    padding: clamp(40px, 6vw, 70px) 0;
    position: relative;
    z-index: 1;
}

.feed-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 34px;
    flex-wrap: wrap;
    gap: 16px;
}

.feed-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-title::before {
    content: "";
    width: 32px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.feed-meta {
    font-size: 13px;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

/* ----- GRID ----- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(225, 29, 46, 0.15);
}

/* ----- CARD THUMB — padding-bottom fallback (fixes mobile) ----- */
.news-card-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 62.5%;
    /* نسبت 16:10 */
    height: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 40% 40%, rgba(255, 122, 143, 0.28) 0%, transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(225, 29, 46, 0.22) 0%, transparent 55%),
        linear-gradient(135deg, #1a1d24 0%, #0c0e11 100%);
}

.news-card-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(225, 29, 46, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 29, 46, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.news-card-thumb>svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    color: var(--text-3);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.news-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 5px 12px;
    background: rgba(12, 14, 17, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 29, 46, 0.35);
    border-radius: 100px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-3);
}

.news-card-source-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 5px 12px;
    background: rgba(12, 14, 17, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-2);
    border-radius: 100px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-2);
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card-body {
    padding: 22px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 18px;
    flex: 1;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.news-card-time {
    font-size: 11.5px;
    color: var(--text-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-card-time::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-2);
    transition: gap 0.25s;
    letter-spacing: 0.02em;
}

.news-card-link svg {
    width: 12px;
    height: 12px;
}

.news-card:hover .news-card-link {
    gap: 10px;
}

/* ---------- LOAD MORE ---------- */
.load-more-wrap {
    text-align: center;
    padding: 50px 0 0;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 100px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-load-more:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

/* ---------- EMPTY STATE ---------- */
.empty-news {
    text-align: center;
    padding: 80px 20px;
}

.empty-news-icon {
    font-size: 52px;
    margin-bottom: 18px;
    opacity: 0.5;
}

.empty-news h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.empty-news p {
    color: var(--text-3);
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        padding-bottom: 62.5%;
    }

    .featured-body {
        padding: 30px 26px;
    }

    .news-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card-title {
        font-size: 1rem;
    }

    .featured-title {
        font-size: 1.2rem;
    }

    .featured-body {
        padding: 26px 22px;
    }
}

@media (max-width: 480px) {
    .news-card-thumb {
        padding-bottom: 66%;
    }

    .featured-image {
        padding-bottom: 70%;
    }
}

/* =========================================================
   NEWS DETAIL PAGE — Scoped Styles (nd-*)
   ========================================================= */

.nd-page {
    padding-bottom: 60px;
}

/* =========================================================
   HERO
   ========================================================= */
.nd-hero {
    position: relative;
    padding: clamp(80px, 10vw, 130px) 0 clamp(50px, 6vw, 80px);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.nd-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(225, 29, 46, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 29, 46, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.nd-hero-glow {
    position: absolute;
    top: -30%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.nd-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

/* Breadcrumb */
.nd-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    margin-bottom: 34px;
    font-weight: 500;
    color: var(--text-3);
}

.nd-crumbs a {
    color: var(--text-3);
    transition: color 0.2s;
}

.nd-crumbs a:hover {
    color: var(--accent-2);
}

.nd-crumb-sep {
    color: var(--border-2);
}

.nd-crumb-cur {
    color: var(--text-2);
}

/* Meta row */
.nd-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
    font-size: 13px;
    color: var(--text-3);
}

.nd-src-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 10px;
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.14), rgba(225, 29, 46, 0.04));
    border: 1px solid rgba(225, 29, 46, 0.28);
    border-radius: 100px;
    color: var(--accent-2);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nd-src-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: ndDotPulse 2s ease-in-out infinite;
}

@keyframes ndDotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.35);
    }
}

.nd-meta-sep {
    color: var(--border-2);
}

.nd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-3);
}

.nd-meta-item svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* Title */
.nd-title {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.028em;
    color: #fff;
    margin-bottom: 24px;
}

html[lang="fa"] .nd-title {
    line-height: 1.4;
    letter-spacing: 0;
}

/* Lead */
.nd-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.18rem);
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 40px;
    max-width: 62ch;
}

/* Action bar */
.nd-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.nd-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nd-share-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-right: 6px;
}

.nd-share-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-2);
    transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    cursor: pointer;
}

.nd-share-btn svg {
    display: block;
}

.nd-share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.nd-share-li:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 10px 28px rgba(0, 119, 181, 0.35);
}

.nd-share-tw:hover {
    background: #000;
    border-color: #1a1a1a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.nd-share-cp:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 28px var(--accent-glow);
}

.nd-share-cp.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.nd-share-cp.copied svg {
    opacity: 0;
}

.nd-share-cp.copied::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
}

/* CTA button */
.nd-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: var(--gradient);
    color: #fff;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 30px rgba(225, 29, 46, 0.28);
    position: relative;
    overflow: hidden;
}

.nd-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

.nd-cta:hover::before {
    transform: translateX(100%);
}

.nd-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(225, 29, 46, 0.42);
}

.nd-cta svg,
.nd-cta span {
    position: relative;
}

/* =========================================================
   FEATURE VISUAL
   ========================================================= */
.nd-feature {
    max-width: 1000px;
    margin: 0 auto clamp(50px, 6vw, 70px);
}

.nd-feature-img {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-2);
    background-size: cover;
    background-position: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.nd-feature-visual {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-2);
    background: linear-gradient(135deg, #1a1d24 0%, #0c0e11 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.nd-feature-visual-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 122, 143, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 75% 65%, rgba(225, 29, 46, 0.3) 0%, transparent 55%);
}

.nd-feature-visual-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(225, 29, 46, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 29, 46, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}

.nd-feature-visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.nd-feature-badge {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(12, 14, 17, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 29, 46, 0.3);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 16px;
}

.nd-feature-cat {
    display: block;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* =========================================================
   CONTENT
   ========================================================= */
.nd-content {
    max-width: 700px;
    margin: 0 auto;
    padding: clamp(50px, 7vw, 80px) 0 clamp(40px, 5vw, 60px);
}

.nd-content p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--text-2);
    margin-bottom: 26px;
}

.nd-content p:first-of-type {
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--text);
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.nd-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 44px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-2);
}

.nd-note svg {
    flex-shrink: 0;
    color: var(--accent-2);
    margin-top: 2px;
}

.nd-note p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    color: var(--text-2);
}

/* =========================================================
   SOURCE BOX
   ========================================================= */
.nd-src {
    max-width: 700px;
    margin: 0 auto;
    padding: 26px 30px;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border-2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.nd-src::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.nd-src-info {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.nd-src-avatar {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(225, 29, 46, 0.32);
    flex-shrink: 0;
}

.nd-src-label {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 700;
    margin-bottom: 4px;
}

.nd-src-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.nd-src-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    border: 1px solid var(--border-2);
    border-radius: 100px;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.nd-src-link:hover {
    border-color: var(--accent);
    color: var(--accent-2);
    background: var(--accent-dim);
}

.nd-src-link svg {
    flex-shrink: 0;
}

/* =========================================================
   RELATED
   ========================================================= */
.nd-related {
    padding: clamp(70px, 9vw, 110px) 0 0;
    margin-top: clamp(60px, 8vw, 90px);
    border-top: 1px solid var(--border);
}

.nd-related-head {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 16px;
}

.nd-related-label {
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 4px;
}

.nd-related-head h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.022em;
    line-height: 1.15;
    flex: 1;
}

.nd-related-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-2);
    border: 1px solid rgba(225, 29, 46, 0.28);
    border-radius: 100px;
    transition: all 0.25s ease;
}

.nd-related-all:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.nd-related-all svg {
    flex-shrink: 0;
}

.nd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nd-card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.nd-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

html[dir="rtl"] .nd-card::before {
    transform-origin: right;
}

.nd-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(225, 29, 46, 0.15);
}

.nd-card:hover::before {
    transform: scaleX(1);
}

.nd-card-top {
    margin-bottom: 14px;
}

.nd-card-src {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.nd-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nd-card-exc {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-2);
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.nd-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.nd-card-time {
    font-size: 11.5px;
    color: var(--text-3);
}

.nd-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-dim);
    color: var(--accent-2);
    transition: all 0.25s ease;
}

.nd-card:hover .nd-card-arrow {
    background: var(--accent);
    color: #fff;
    transform: translateX(4px);
}

html[dir="rtl"] .nd-card:hover .nd-card-arrow {
    transform: translateX(-4px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .nd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nd-related-head h2 {
        flex: 1 1 100%;
    }

    .nd-related-all {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .nd-hero {
        padding: 70px 0 50px;
    }

    .nd-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .nd-share {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .nd-cta {
        justify-content: center;
    }

    .nd-src {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 24px;
    }

    .nd-src-link {
        width: 100%;
        justify-content: center;
    }

    .nd-related-grid {
        grid-template-columns: 1fr;
    }

    .nd-content p:first-of-type {
        padding-bottom: 20px;
        margin-bottom: 26px;
    }
}

/* =========================================================
   NEWS DETAIL — Professional Layout
   All selectors use .nd- prefix (scoped)
   ========================================================= */

.nd-page {
    padding-bottom: 60px;
}

/* ---------- Breadcrumb Bar ---------- */
.nd-topbar {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}

.nd-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-3);
    font-weight: 500;
}

.nd-crumbs a {
    color: var(--text-3);
    transition: color 0.2s;
}

.nd-crumbs a:hover {
    color: var(--accent-2);
}

.nd-crumb-cur {
    color: var(--text-2);
}

.nd-sep {
    color: var(--border-2);
}

/* ---------- HERO — 2 columns ---------- */
.nd-hero {
    position: relative;
    padding: clamp(50px, 7vw, 80px) 0 clamp(30px, 4vw, 50px);
    overflow: hidden;
}

.nd-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(225, 29, 46, 0.12) 0%, transparent 62%);
    pointer-events: none;
}

.nd-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.nd-hero-main {
    min-width: 0;
}

/* Category */
.nd-cat {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
    padding: 5px 14px;
    background: rgba(225, 29, 46, 0.10);
    border: 1px solid rgba(225, 29, 46, 0.22);
    border-radius: 100px;
    margin-bottom: 22px;
}

/* Title */
.nd-title {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.028em;
    color: #fff;
    margin-bottom: 22px;
}

html[lang="fa"] .nd-title {
    line-height: 1.4;
    letter-spacing: 0;
}

/* Lead */
.nd-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-2);
    max-width: 62ch;
    margin-bottom: 0;
}

/* Sidebar meta */
.nd-hero-side {
    padding: 24px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.nd-hero-side::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.nd-side-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nd-side-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
}

.nd-side-value {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.005em;
}

.nd-side-source {
    color: var(--accent-2);
}

/* Action bar (full width under hero grid) */
.nd-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.nd-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: var(--gradient);
    color: #fff;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 30px rgba(225, 29, 46, 0.28);
    position: relative;
    overflow: hidden;
}

.nd-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

.nd-cta:hover::before {
    transform: translateX(100%);
}

.nd-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(225, 29, 46, 0.42);
}

.nd-cta svg,
.nd-cta span {
    position: relative;
}

.nd-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nd-share-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-right: 6px;
}

.nd-share-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-2);
    transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    position: relative;
}

.nd-share-btn svg {
    display: block;
}

.nd-share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.nd-share-li:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 10px 28px rgba(0, 119, 181, 0.35);
}

.nd-share-tw:hover {
    background: #000;
    border-color: #1a1a1a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.nd-share-cp:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 28px var(--accent-glow);
}

.nd-share-cp.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.nd-share-cp.copied svg {
    opacity: 0;
}

.nd-share-cp.copied::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

/* ---------- FEATURE VISUAL ---------- */
.nd-feature {
    max-width: 1080px;
    margin: 0 auto clamp(50px, 6vw, 70px);
}

.nd-feature-img {
    aspect-ratio: 21 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-2);
    background-size: cover;
    background-position: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.nd-feature-visual {
    position: relative;
    aspect-ratio: 21 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-2);
    background: linear-gradient(135deg, #1a1d24 0%, #0c0e11 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.nd-feature-bg {
    position: absolute;
    inset: 0;
}

.nd-feature-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 122, 143, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 75% 65%, rgba(225, 29, 46, 0.3) 0%, transparent 55%);
}

.nd-feature-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(225, 29, 46, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 29, 46, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
}

.nd-feature-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.nd-feature-avatar {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
    font-size: 30px;
    box-shadow: 0 16px 40px rgba(225, 29, 46, 0.4);
}

.nd-feature-badge {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(12, 14, 17, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(225, 29, 46, 0.3);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.nd-feature-cat {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* ---------- LAYOUT (article + sidebar) ---------- */
.nd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 70px;
    align-items: start;
    padding: clamp(40px, 5vw, 60px) 0;
}

/* Article body */
.nd-article {
    max-width: 700px;
    min-width: 0;
}

.nd-article p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--text-2);
    margin-bottom: 26px;
}

.nd-article p:first-of-type {
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--text);
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

/* Sticky sidebar */
.nd-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nd-sidebar-box {
    padding: 30px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
}

.nd-sidebar-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    font-size: 26px;
    box-shadow: 0 12px 32px rgba(225, 29, 46, 0.35);
}

.nd-sidebar-label {
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 700;
    margin-bottom: 6px;
}

.nd-sidebar-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.nd-sidebar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 100px;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.25s;
}

.nd-sidebar-btn:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent-2);
}

.nd-sidebar-info {
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.nd-sidebar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 12.5px;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
}

.nd-sidebar-row:last-child {
    border-bottom: 0;
}

.nd-sidebar-row strong {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

/* ---------- RELATED ---------- */
.nd-related {
    padding: clamp(50px, 7vw, 80px) 0 0;
    margin-top: clamp(30px, 4vw, 50px);
    border-top: 1px solid var(--border);
}

.nd-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.nd-related-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 6px;
}

.nd-related-head h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.022em;
    line-height: 1.15;
}

.nd-related-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-2);
    border: 1px solid rgba(225, 29, 46, 0.28);
    border-radius: 100px;
    transition: all 0.25s ease;
}

.nd-related-all:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.nd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nd-card {
    display: flex;
    flex-direction: column;
    padding: 24px 22px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.nd-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

html[dir="rtl"] .nd-card::before {
    transform-origin: right;
}

.nd-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(225, 29, 46, 0.15);
}

.nd-card:hover::before {
    transform: scaleX(1);
}

.nd-card-src {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 14px;
}

.nd-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nd-card-exc {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-2);
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.nd-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.nd-card-time {
    font-size: 11.5px;
    color: var(--text-3);
}

.nd-card-arrow {
    color: var(--accent-2);
    font-weight: 700;
    transition: transform 0.25s ease;
}

.nd-card:hover .nd-card-arrow {
    transform: translateX(4px);
}

html[dir="rtl"] .nd-card:hover .nd-card-arrow {
    transform: translateX(-4px) scaleX(-1);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
    .nd-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nd-hero-side {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 32px;
    }

    .nd-hero-side::before {
        display: none;
    }

    .nd-side-block {
        flex: 1 1 140px;
    }

    .nd-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nd-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 800px) {
    .nd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nd-bar {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 14px;
    }

    .nd-share {
        justify-content: center;
    }

    .nd-cta {
        justify-content: center;
        width: 100%;
    }

    .nd-sidebar {
        grid-template-columns: 1fr;
    }

    .nd-related-grid {
        grid-template-columns: 1fr;
    }

    .nd-related-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .nd-feature-visual,
    .nd-feature-img {
        aspect-ratio: 16 / 10;
    }

    .nd-article p:first-of-type {
        padding-bottom: 20px;
        margin-bottom: 26px;
    }
}

/* ---------- RTL tweaks ---------- */
html[dir="rtl"] .news-hero::before {
    right: auto;
    left: -10%;
}

html[dir="rtl"] .featured-image-badge {
    left: auto;
    right: 20px;
}