﻿/* ============================================
   UnicornAiCoV2 - v3
   Dark + Purple + Gold & Cyan Accents
============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0b0714;
    --bg-2: #120b20;
    --bg-3: #1a0f2e;
    --card-bg: #150d24;
    --card-border: #2a1a4a;
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;
    --accent: #c084fc;
    /* رنگ‌های مکمل جدید */
    --gold: #f5b301;
    --gold-light: #fcd34d;
    --gold-dark: #d97706;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --text: #e9e4f5;
    --text-muted: #9d93b8;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 22px;
    --shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
    --shadow-gold: 0 15px 40px rgba(245, 179, 1, 0.18);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Vazirmatn', 'IranSans', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 14px;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 10% 0%, rgba(139,92,246,0.10) 0%, transparent 45%), radial-gradient(circle at 90% 20%, rgba(192,132,252,0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: .2s;
}

    a:hover {
        color: var(--accent);
    }

.container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Icons filter ---- */
.icon-inline {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 6px;
    filter: invert(84%) sepia(15%) saturate(600%) hue-rotate(220deg) brightness(95%);
}

.mini-icon, .card-icon, .audience-icon img, .source-icon img, .footer-icon, .service-icon, .stat-icon-wrap img, .source-mini-icon img {
    filter: invert(76%) sepia(30%) saturate(1000%) hue-rotate(220deg) brightness(100%) drop-shadow(0 4px 8px rgba(139,92,246,0.3));
}

.footer-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 6px;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

    .btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        transition: left .6s;
    }

    .btn:hover::after {
        left: 100%;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 6px 18px rgba(139,92,246,0.35);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(139,92,246,0.5);
        color: #fff;
    }

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 1.5px solid var(--card-border);
}

    .btn-outline:hover {
        background: rgba(139,92,246,0.08);
        border-color: var(--primary);
        color: var(--primary-light);
    }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a0f2e;
    box-shadow: 0 6px 18px rgba(245,179,1,0.35);
    font-weight: 700;
}

    .btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(245,179,1,0.5);
        color: #1a0f2e;
    }

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 26px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   HEADER
============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 7, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(139,92,246,0.4));
    transition: transform .3s ease;
}

.logo-area:hover .logo-img {
    transform: rotate(-8deg) scale(1.08);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-name {
    font-weight: 800;
    font-size: 14px;
    color: #fff;
}

.brand-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: .2s;
    position: relative;
    padding: 4px 0;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        right: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--gold));
        transition: .3s;
        border-radius: 2px;
    }

    .nav-link:hover {
        color: var(--primary-light);
    }

        .nav-link:hover::after {
            width: 100%;
        }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

    .mobile-toggle span {
        width: 22px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: .2s;
    }

/* ============================================
   HERO - Company Name Box
============================================ */
.hero {
    position: relative;
    padding: 60px 0 60px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -180px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
    position: absolute;
    bottom: -200px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,179,1,0.10), transparent 60%);
    filter: blur(100px);
    pointer-events: none;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

.hero-glow-3 {
    position: absolute;
    top: 30%;
    left: 40%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(34,211,238,0.10), transparent 60%);
    filter: blur(100px);
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(-30px, 40px) scale(1.1);
    }
}

/* Hero: محتوا در مرکز، آمار زیر آن در موبایل */
.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-content-box {
    max-width: 780px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.hero-logo-wrap {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: linear-gradient(160deg, rgba(139,92,246,0.15), rgba(245,179,1,0.08));
    border: 1px solid rgba(139,92,246,0.35);
    border-radius: 22px;
    padding: 16px;
    animation: logoFloat 4s ease-in-out infinite;
    box-shadow: 0 12px 40px rgba(139,92,246,0.25);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(139,92,246,0.5));
}

.hero-company-name {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff, #cbb6ff 70%, #f5b301 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-slogan {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--gold), transparent);
    border-radius: 2px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 26px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Stats Box */
.hero-stats-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 720px;
    width: 100%;
}

.stat-card {
    background: linear-gradient(160deg, var(--card-bg), var(--bg-2));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    transition: .3s;
    animation: statFloat 5s ease-in-out infinite;
}

    .stat-card:nth-child(2) {
        animation-delay: -1.5s;
    }

    .stat-card:nth-child(3) {
        animation-delay: -3s;
    }

@keyframes statFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-gold);
}

.stat-icon-wrap {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .stat-icon-wrap img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ============================================
   SECTION COMMON
============================================ */
.section {
    padding: 70px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 44px;
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 100px;
    font-size: 11px;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 13px;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   ABOUT - Image + Content
============================================ */
.about-section {
    background: var(--bg-2);
    position: relative;
}

    .about-section::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40%;
        height: 100%;
        background: radial-gradient(circle at 100% 50%, rgba(34,211,238,0.06), transparent 70%);
        pointer-events: none;
    }

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image-wrap {
    position: relative;
}

.about-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform .5s ease;
}

.about-image-wrap:hover .about-image {
    transform: scale(1.02);
}

.about-image-wrap::before {
    content: '';
    position: absolute;
    inset: -10px;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border-radius: var(--radius-lg);
    opacity: 0.15;
    filter: blur(20px);
}

.about-image-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(11,7,20,0.9);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245,179,1,0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(245,179,1,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245,179,1,0);
    }
}

.about-content .section-tag {
    margin-bottom: 10px;
}

.about-content .section-title {
    text-align: right;
    margin-bottom: 18px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 13.5px;
    line-height: 1.95;
}

.about-content .btn {
    margin-top: 8px;
}

/* ============================================
   SERVICES - Horizontal List
============================================ */
.services-section {
    position: relative;
    background: var(--bg);
}

.services-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 40px;
}

    .services-head .section-title {
        text-align: right;
        margin: 0;
    }

.services-lead {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.9;
    padding-right: 20px;
    border-right: 2px solid var(--gold);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--card-border);
}

.service-item {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    gap: 20px;
    align-items: center;
    padding: 22px 12px;
    border-bottom: 1px solid var(--card-border);
    transition: .3s;
    position: relative;
    cursor: default;
}

    .service-item::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: linear-gradient(90deg, transparent, rgba(139,92,246,0.08));
        transition: width .3s ease;
        z-index: 0;
    }

    .service-item:hover::before {
        width: 100%;
    }

    .service-item:hover {
        padding-right: 24px;
    }

.service-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
    z-index: 1;
    transition: .3s;
    letter-spacing: 1px;
}

.service-item:hover .service-num {
    color: var(--gold);
    transform: scale(1.15);
}

.service-body {
    position: relative;
    z-index: 1;
}

    .service-body h3 {
        font-size: 15px;
        color: #fff;
        margin-bottom: 4px;
        font-weight: 700;
        transition: .3s;
    }

    .service-body p {
        font-size: 12.5px;
        color: var(--text-muted);
        line-height: 1.8;
    }

.service-item:hover .service-body h3 {
    color: var(--gold-light);
}

.service-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform .3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.2) rotate(-8deg);
}

.services-cta {
    text-align: center;
    margin-top: 30px;
}

/* ============================================
   SOURCES - Big Image + Mini List
============================================ */
.sources-section {
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}

.sources-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.source-big {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    min-height: 380px;
    transition: transform .4s ease;
}

    .source-big:hover {
        transform: translateY(-4px);
    }

.source-big-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
    filter: brightness(0.55) saturate(0.9);
}

.source-big:hover .source-big-img {
    transform: scale(1.08);
}

.source-big-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,7,20,0.95) 0%, rgba(11,7,20,0.2) 60%, transparent 100%);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

    .source-big-overlay h3 {
        font-size: 20px;
        color: #fff;
        margin-bottom: 6px;
        background: linear-gradient(135deg, #fff, var(--gold-light));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .source-big-overlay p {
        font-size: 12.5px;
        color: var(--text-muted);
    }

.sources-mini-list {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
}

.source-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(160deg, var(--card-bg), var(--bg-3));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: .3s;
    position: relative;
    overflow: hidden;
}

    .source-mini::before {
        content: '';
        position: absolute;
        right: -100%;
        top: 0;
        bottom: 0;
        width: 100%;
        background: linear-gradient(90deg, transparent, rgba(34,211,238,0.08), transparent);
        transition: right .6s ease;
    }

    .source-mini:hover::before {
        right: 100%;
    }

    .source-mini:hover {
        border-color: var(--cyan);
        transform: translateX(-6px);
        box-shadow: 0 10px 30px rgba(34,211,238,0.15);
    }

.source-mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139,92,246,0.12);
    flex-shrink: 0;
    transition: transform .3s;
}

    .source-mini-icon img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

.source-mini:hover .source-mini-icon {
    transform: scale(1.1) rotate(-8deg);
}

.source-mini-icon.instagram {
    background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(249,115,22,0.15));
}

.source-mini-icon.telegram {
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(34,211,238,0.15));
}

.source-mini-icon.eitaa {
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(139,92,246,0.15));
}

.source-mini-icon.web {
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(139,92,246,0.15));
}

.source-mini h4 {
    font-size: 13.5px;
    color: #fff;
    margin-bottom: 2px;
}

.source-mini p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   WORKFLOW - Vertical Timeline
============================================ */
.workflow-section {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

    .workflow-section::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(245,179,1,0.06), transparent 70%);
        pointer-events: none;
    }

.timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 30px;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, var(--primary) 15%, var(--gold) 50%, var(--cyan) 85%, transparent 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 20px 80px 20px 0;
    margin-bottom: 18px;
}

.timeline-node {
    position: absolute;
    right: 8px;
    top: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 6px var(--bg);
    transition: .3s;
}

.timeline-item:hover .timeline-node {
    border-color: var(--gold);
    transform: scale(1.1);
    box-shadow: 0 0 0 6px var(--bg), 0 0 30px rgba(245,179,1,0.5);
}

.timeline-node-inner {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-light);
    transition: .3s;
}

.timeline-item:hover .timeline-node-inner {
    color: var(--gold-light);
}

.timeline-card {
    background: linear-gradient(160deg, var(--card-bg), var(--bg-2));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: .3s;
    position: relative;
}

    .timeline-card::before {
        content: '';
        position: absolute;
        right: -8px;
        top: 40px;
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-left-color: var(--card-border);
    }

.timeline-item:hover .timeline-card {
    border-color: var(--gold);
    transform: translateX(-6px);
    box-shadow: var(--shadow-gold);
}

.timeline-card h3 {
    font-size: 14.5px;
    color: #fff;
    margin-bottom: 6px;
}

.timeline-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.8;
}

.workflow-cta {
    text-align: center;
    margin-top: 36px;
}

/* ============================================
   AUDIENCE - Circular Images
============================================ */
.audience-section {
    background: var(--bg-2);
    position: relative;
}

.audience-rings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.audience-ring {
    text-align: center;
}

.audience-ring-img {
    width: 130px;
    height: 130px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--card-border);
    position: relative;
    transition: .4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

    .audience-ring-img::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        background: conic-gradient(from 0deg, var(--primary), var(--gold), var(--cyan), var(--primary));
        z-index: -1;
        opacity: 0.6;
        transition: opacity .3s;
    }

.audience-ring:hover .audience-ring-img {
    transform: scale(1.05) rotate(3deg);
    border-color: transparent;
}

    .audience-ring:hover .audience-ring-img::after {
        opacity: 1;
    }

.audience-ring-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.audience-ring:hover .audience-ring-img img {
    transform: scale(1.1);
}

.audience-ring h3 {
    font-size: 14.5px;
    color: #fff;
    margin-bottom: 8px;
}

.audience-ring p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 260px;
    margin: 0 auto;
}

.audience-cta {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--gold), var(--cyan));
}

.audience-cta-inner {
    background: linear-gradient(160deg, var(--bg-2), var(--card-bg));
    border-radius: calc(var(--radius-lg) - 1px);
    padding: 40px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .audience-cta-inner::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(245,179,1,0.10), transparent 70%);
        animation: rotateGlow 15s linear infinite;
    }

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.audience-cta-inner h3 {
    font-size: 19px;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
}

.audience-cta-inner p {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 13px;
    position: relative;
}

.audience-cta-inner .btn {
    position: relative;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--card-border);
    padding: 44px 0 0;
    margin-top: 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-brand .logo-area {
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 12.5px;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 13.5px;
    color: #fff;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 8px;
}

    .footer-col h4::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 26px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--gold));
        border-radius: 2px;
    }

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

    .footer-list li {
        font-size: 12.5px;
        color: var(--text-muted);
        line-height: 1.8;
        display: flex;
        align-items: flex-start;
    }

    .footer-list a {
        color: var(--text-muted);
    }

        .footer-list a:hover {
            color: var(--primary-light);
        }

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding: 14px 0;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ============================================
   MODAL
============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 10, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
    animation: fadeIn .25s ease;
}

    .modal-overlay.active {
        display: flex;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: linear-gradient(160deg, var(--card-bg), var(--bg-2));
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 440px;
    padding: 26px 22px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    animation: slideUp .35s cubic-bezier(.34,1.56,.64,1);
    max-height: 92vh;
    overflow-y: auto;
}

    .modal-box::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--gold), var(--cyan));
        border-radius: var(--radius) var(--radius) 0 0;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--card-border);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-close:hover {
        background: rgba(239,68,68,0.2);
        border-color: var(--danger);
        color: #fff;
        transform: rotate(90deg);
    }

.modal-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 6px;
}

.modal-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 14px;
}

    .form-group label {
        display: block;
        font-size: 12px;
        color: var(--text);
        margin-bottom: 6px;
        font-weight: 500;
    }

    .form-group textarea, .form-group input {
        width: 100%;
        font-family: inherit;
        font-size: 12.5px;
        padding: 10px 12px;
        background: var(--bg);
        color: var(--text);
        border: 1.5px solid var(--card-border);
        border-radius: var(--radius-sm);
        transition: .2s;
        resize: vertical;
        outline: none;
    }

        .form-group textarea:focus, .form-group input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
        }

        .form-group textarea::placeholder, .form-group input::placeholder {
            color: #6b6280;
        }

.form-message {
    font-size: 12px;
    margin-bottom: 10px;
    min-height: 16px;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: .2s;
}

    .form-message.success {
        color: #34d399;
        background: rgba(16,185,129,0.1);
        padding: 8px;
        border: 1px solid rgba(16,185,129,0.3);
        animation: successPop .4s ease;
    }

    .form-message.error {
        color: #f87171;
        background: rgba(239,68,68,0.1);
        padding: 8px;
        border: 1px solid rgba(239,68,68,0.3);
        animation: shake .4s ease;
    }

@keyframes successPop {
    0% {
        transform: scale(.9);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* ============================================
   SCROLL REVEAL
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ============================================
   RESPONSIVE
============================================ */

/* Tablet */
@media (max-width: 992px) {
    .hero-company-name {
        font-size: 28px;
    }

    .hero-slogan {
        font-size: 14px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        height: 300px;
    }

    .about-content .section-title,
    .about-content .section-tag {
        text-align: center;
    }

    .about-content {
        text-align: center;
    }

    .services-head {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

        .services-head .section-title {
            text-align: center;
        }

    .services-lead {
        padding-right: 0;
        border-right: none;
        border-top: 2px solid var(--gold);
        padding-top: 14px;
    }

    .sources-showcase {
        grid-template-columns: 1fr;
    }

    .source-big {
        min-height: 280px;
    }

    .sources-mini-list {
        grid-template-rows: none;
        grid-template-columns: 1fr 1fr;
    }

    .audience-rings {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .audience-ring {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .audience-ring-img {
        width: 110px;
        height: 110px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 22px;
    }

    /* Hero: نام شرکت کوچک‌تر، آمار زیر محتوا */
    .hero {
        padding: 40px 0 40px;
    }

    .hero-company-name {
        font-size: 22px;
        line-height: 1.4;
    }

    .hero-slogan {
        font-size: 13px;
    }

    .hero-desc {
        font-size: 12.5px;
    }

    .hero-logo-wrap {
        width: 70px;
        height: 70px;
        padding: 12px;
        margin-bottom: 14px;
    }

    .hero-divider {
        margin-bottom: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

        .hero-actions .btn {
            width: 100%;
        }

    /* Stats در موبایل: زیر محتوا */
    .hero-inner {
        gap: 28px;
    }

    .hero-stats-box {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-number {
        font-size: 17px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-icon-wrap {
        width: 26px;
        height: 26px;
        margin-bottom: 4px;
    }

        .stat-icon-wrap img {
            width: 18px;
            height: 18px;
        }

    /* Nav */
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(11,7,20,0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--card-border);
        gap: 2px;
        max-height: 0;
        overflow: hidden;
        transition: .35s cubic-bezier(.4,0,.2,1);
    }

        .main-nav.open {
            max-height: 500px;
            padding: 14px 20px;
        }

    .nav-link {
        padding: 10px 4px;
        border-bottom: 1px solid rgba(42,26,74,0.5);
    }

        .nav-link::after {
            display: none;
        }

    /* Services در موبایل: ستونی */
    .service-item {
        grid-template-columns: 44px 1fr 28px;
        gap: 12px;
        padding: 16px 4px;
    }

    .service-num {
        font-size: 17px;
    }

    .service-body h3 {
        font-size: 13.5px;
    }

    .service-body p {
        font-size: 11.5px;
    }

    .service-icon {
        width: 24px;
        height: 24px;
    }

    /* Sources */
    .sources-mini-list {
        grid-template-columns: 1fr;
    }

    /* Timeline */
    .timeline-line {
        right: 22px;
    }

    .timeline-item {
        padding: 14px 60px 14px 0;
    }

    .timeline-node {
        width: 38px;
        height: 38px;
        right: 3px;
        top: 20px;
    }

    .timeline-node-inner {
        font-size: 14px;
    }

    .timeline-card {
        padding: 16px 18px;
    }

        .timeline-card h3 {
            font-size: 13px;
        }

        .timeline-card p {
            font-size: 11.5px;
        }

    /* Audience */
    .audience-ring-img {
        width: 100px;
        height: 100px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .brand-name {
        font-size: 13px;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .modal-box {
        padding: 22px 16px;
    }

    .modal-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero-company-name {
        font-size: 19px;
    }

    .hero-slogan {
        font-size: 12px;
    }

    .section-title {
        font-size: 19px;
    }

    .stat-number {
        font-size: 15px;
    }

    .stat-label {
        font-size: 9.5px;
    }

    .brand-sub {
        display: none;
    }

    .about-image {
        height: 220px;
    }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}



/* ============================================
   FORM VALIDATION (NEW v4)
============================================ */

.form-group {
    position: relative;
}

    /* حالت خطا: قرمز شدن فیلد */
    .form-group.has-error input,
    .form-group.has-error textarea {
        border-color: #ef4444 !important;
        background: rgba(239, 68, 68, 0.06) !important;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    }

/* انیمیشن لرزش ظریف */
@keyframes fieldShake {
    0%, 100% {
        transform: translateX(0);
    }

    15% {
        transform: translateX(-6px);
    }

    30% {
        transform: translateX(6px);
    }

    45% {
        transform: translateX(-4px);
    }

    60% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-2px);
    }

    90% {
        transform: translateX(2px);
    }
}

.form-group.shake {
    animation: fieldShake 0.5s cubic-bezier(.36,.07,.19,.97);
}

/* پیام خطای هر فیلد - زیر فیلد، با آیکون و انیمیشن ورود */
.field-error {
    display: none;
    font-size: 11.5px;
    color: #f87171;
    margin-top: 6px;
    line-height: 1.6;
    text-align: right;
    padding-right: 4px;
    animation: errorFadeIn .35s ease;
}

    .field-error::before {
        content: '⚠ ';
        color: #ef4444;
        font-weight: 700;
        margin-left: 4px;
    }

.form-group.has-error .field-error {
    display: block;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* برچسب قرمز در حالت خطا */
.form-group.has-error label {
    color: #f87171;
    transition: color .2s;
}

/* در حالت فوکوس بعد از خطا، قرمز بماند تا اصلاح شود */
.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* حالت موفق بعد از اصلاح (اختیاری) */
.form-group.is-valid input {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}


/* ============================================
   PRODUCTS SECTION (NEW v5)
============================================ */
.products-section {
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}

    .products-section::before {
        content: '';
        position: absolute;
        top: 20%;
        left: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(245,179,1,0.08), transparent 70%);
        filter: blur(60px);
        pointer-events: none;
    }

    .products-section::after {
        content: '';
        position: absolute;
        bottom: 10%;
        right: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(34,211,238,0.08), transparent 70%);
        filter: blur(60px);
        pointer-events: none;
    }

.products-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* کارت محصول */
.product-card {
    position: relative;
    background: linear-gradient(160deg, var(--card-bg), var(--bg-3));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}

    .product-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(245,179,1,0.06) 0%, transparent 40%, transparent 60%, rgba(34,211,238,0.06) 100%);
        opacity: 0;
        transition: opacity .4s ease;
        pointer-events: none;
    }

    .product-card:hover::before {
        opacity: 1;
    }

    .product-card:hover {
        transform: translateY(-6px);
        border-color: var(--gold);
        box-shadow: 0 25px 60px rgba(245,179,1,0.15), 0 0 0 1px rgba(245,179,1,0.2);
    }

.product-glow {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245,179,1,0.15), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    animation: productGlow 6s ease-in-out infinite;
}

.product-glow-cta {
    background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 60%);
    animation-delay: -3s;
}

@keyframes productGlow {
    0%, 100% {
        transform: translate(0,0) scale(1);
        opacity: .8;
    }

    50% {
        transform: translate(-20px,20px) scale(1.15);
        opacity: 1;
    }
}

/* سربرگ محصول */
.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.product-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(245,179,1,0.15), rgba(139,92,246,0.08));
    border: 1px solid rgba(245,179,1,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 8px 24px rgba(245,179,1,0.1);
}

.product-card:hover .product-logo-wrap {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 12px 32px rgba(245,179,1,0.25);
}

.product-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(245,179,1,0.4));
}

.product-badge {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(245,179,1,0.2), rgba(245,179,1,0.1));
    border: 1px solid rgba(245,179,1,0.4);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    position: relative;
    letter-spacing: 0.3px;
}

    .product-badge::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        background: var(--gold);
        border-radius: 50%;
        margin-left: 6px;
        vertical-align: middle;
        animation: pulse 1.8s infinite;
    }

/* بدنه محصول */
.product-body {
    flex: 1;
    position: relative;
    z-index: 1;
}

.product-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #ffffff, var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

/* ویژگی‌ها */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(11, 7, 20, 0.4);
    border: 1px solid rgba(42,26,74,0.6);
    border-radius: var(--radius-sm);
}

.product-feature {
    display: flex;
    align-items: center;
    font-size: 12.5px;
    color: var(--text);
    font-weight: 500;
}

.feature-dot {
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    margin-left: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(245,179,1,0.5);
}

/* فوتر محصول */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.product-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}

.product-url {
    font-size: 11.5px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    direction: ltr;
    letter-spacing: 0.5px;
}

/* کارت CTA */
.product-card-cta {
    background: linear-gradient(160deg, rgba(139,92,246,0.12), rgba(109,40,217,0.06));
    border-color: rgba(139,92,246,0.35);
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .product-card-cta:hover {
        border-color: var(--primary);
        box-shadow: 0 25px 60px rgba(139,92,246,0.2);
    }

.product-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.product-cta-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(109,40,217,0.08));
    border: 1px solid rgba(139,92,246,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 18px;
    transition: transform .4s ease;
    animation: ctaFloat 4s ease-in-out infinite;
}

@keyframes ctaFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.product-card-cta:hover .product-cta-icon {
    transform: rotate(180deg) scale(1.1);
    animation-play-state: paused;
}

.product-card-cta .product-title {
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 19px;
}

.product-card-cta .product-desc {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.product-card-cta .btn {
    margin-top: 6px;
}

/* ============================================
   RESPONSIVE - Products
============================================ */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-cta {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .product-card {
        padding: 22px 18px;
    }

    .product-title {
        font-size: 19px;
    }

    .product-desc {
        font-size: 12.5px;
    }

    .product-logo-wrap {
        width: 54px;
        height: 54px;
        padding: 8px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

        .product-footer .btn {
            width: 100%;
            justify-content: center;
        }

    .product-url {
        text-align: center;
    }

    .product-features {
        padding: 12px;
        gap: 8px;
    }

    .product-feature {
        font-size: 11.5px;
    }

    .product-card-cta .product-title {
        font-size: 17px;
    }
}


/* ============================================
   HERO BACKGROUND LOGO (NEW v6)
============================================ */
.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vmin;
    height: 90vmin;
    max-width: 900px;
    max-height: 900px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    filter: blur(1px) grayscale(15%);
    animation: heroLogoPulse 12s ease-in-out infinite;
    will-change: transform, opacity;
}

.hero-bg-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.3));
}

/* انیمیشن بسیار آرام برای زنده بودن لوگو */
@keyframes heroLogoPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.06;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.04) rotate(1.5deg);
        opacity: 0.09;
    }
}

/* اطمینان از اینکه محتوای Hero بالای لوگو قرار می‌گیرد */
.hero-inner {
    position: relative;
    z-index: 3;
}

/* در موبایل، لوگو کمی کوچک‌تر و کم‌رنگ‌تر شود تا مزاحم متن نشود */
@media (max-width: 768px) {
    .hero-bg-logo {
        width: 100vmin;
        height: 100vmin;
        opacity: 0.04;
    }
    @keyframes heroLogoPulse {
        0%, 100% {
            transform: translate(-50%, -50%) scale(1) rotate(0deg);
            opacity: 0.04;
        }
        50% {
            transform: translate(-50%, -50%) scale(1.03) rotate(1deg);
            opacity: 0.06;
        }
    }
}

/* ============================================
   CAPTCHA (NEW v7)
============================================ */
.captcha-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

    .captcha-image-wrap img {
        width: 160px;
        height: 60px;
        border-radius: var(--radius-sm);
        border: 1.5px solid var(--card-border);
        background: var(--bg);
        display: block;
        user-select: none;
        -webkit-user-drag: none;
        pointer-events: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    }

.captcha-refresh {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.35);
    color: var(--primary-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
    padding: 0;
}

    .captcha-refresh:hover {
        background: rgba(139,92,246,0.22);
        border-color: var(--primary);
        color: #fff;
        transform: rotate(180deg);
    }

.captcha-row input {
    flex: 1;
    min-width: 100px;
}

/* حالت خطای کپچا */
#captchaGroup.has-error .captcha-image-wrap img {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
}

#captchaGroup.has-error .captcha-row input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
}

/* موبایل */
@media (max-width: 480px) {
    .captcha-image-wrap img {
        width: 140px;
        height: 52px;
    }
    .captcha-row input {
        min-width: 80px;
    }
}


/* ============================================
   MODAL SCROLLBAR (NEW v8)
============================================ */

/* اسکرول‌بار سفارشی برای مودال */
.modal-box::-webkit-scrollbar {
    width: 6px;
}

.modal-box::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 100px;
    margin: 14px 0;
}

.modal-box::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 100px;
    transition: background .3s;
}

    .modal-box::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, var(--accent), var(--primary));
    }

/* Firefox */
.modal-box {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(139, 92, 246, 0.05);
}

/* فاصله بهتر بالای مودال تا اسکرول به دکمه بستن نخورد */
.modal-box {
    padding-top: 34px;
    padding-bottom: 28px;
}

/* در موبایل، ارتفاع و اسکرول بهتر */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 12px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .modal-box {
        max-height: calc(100vh - 40px);
        margin: 0 auto;
    }
}