/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-light: #f8fafc;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --success: #10b981;
    --radius: 12px;
    --shadow: 0 10px 40px rgba(0,0,0,0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 10px 26px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    background: rgba(79, 70, 229, 0.15);
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
}

.logo-icon {
    color: var(--accent);
    font-size: 26px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary-light);
}

.mobile-order {
    display: none;
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 36px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Mockup Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.mockup-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    width: 300px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.08);
    transform: rotate(3deg);
    transition: transform 0.4s;
}

.mockup-card:hover {
    transform: rotate(0deg) scale(1.03);
}

.mockup-header {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    text-align: center;
}

.mockup-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.mockup-item {
    background: rgba(79, 70, 229, 0.15);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    border-right: 3px solid var(--primary);
}

.mockup-footer {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
}

/* ===== Sections Common ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ===== Services ===== */
.services {
    padding: 80px 0;
    background: rgba(30, 41, 59, 0.4);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 24px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.2);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.price {
    display: inline-block;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ===== How it works ===== */
.how {
    padding: 80px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
}

.step-num {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.step p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Order Form ===== */
.order {
    padding: 80px 0;
    background: rgba(30, 41, 59, 0.4);
}

.order-form {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
}

.form-success {
    max-width: 640px;
    margin: 20px auto 0;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

/* ===== About ===== */
.about {
    padding: 80px 0;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 15px;
}

.lean-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background: #0a0f1a;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    margin-top: 6px;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 12px;
}

/* ===== Chatbot ===== */
.chat-toggle {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.chatbot {
    position: fixed;
    bottom: 100px;
    left: 28px;
    width: 360px;
    max-height: 520px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot.open {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    font-size: 28px;
}

.chat-header-info strong {
    display: block;
    font-size: 15px;
}

.chat-header-info small {
    font-size: 11px;
    opacity: 0.8;
}

.chat-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: 420px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    max-width: 85%;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.6;
}

.message.bot .bubble {
    background: rgba(79, 70, 229, 0.2);
    border-bottom-right-radius: 4px;
}

.message.user .bubble {
    background: var(--primary);
    color: white;
    border-bottom-left-radius: 4px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.quick-replies button {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-replies button:hover {
    background: rgba(79, 70, 229, 0.3);
    border-color: var(--primary);
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-input-area button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

    .steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nav {
        display: none;
    }

    .mobile-order {
        display: block;
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 28px;
    }

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

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

    .order-form {
        padding: 24px;
    }

    .chatbot {
        width: calc(100vw - 20px);
        left: 10px;
        bottom: 90px;
        max-height: 70vh;
    }

    .chat-toggle {
        left: 16px;
        bottom: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}


/* ===== Pixelchi 724 brand tagline ===== */
.hero-tagline {
    margin: -10px 0 18px;
    color: var(--accent);
    font-size: 21px;
    font-weight: 700;
}


/* ===== Product gallery carousel ===== */
.portfolio { padding: 78px 0; background: linear-gradient(180deg, rgba(30,41,59,.24), rgba(15,23,42,.48)); }
.gallery-wrap { position: relative; display: flex; align-items: center; gap: 12px; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 31%); gap: 20px; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 10px 2px 18px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-card { min-width: 0; overflow: hidden; border-radius: 18px; background: var(--bg-card); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 12px 30px rgba(0,0,0,.18); scroll-snap-align: start; transition: transform .25s, border-color .25s; }
.gallery-card:hover { transform: translateY(-5px); border-color: rgba(99,102,241,.55); }
.gallery-card img { display: block; width: 100%; height: 230px; object-fit: cover; background: #202b3b; }
.gallery-caption { padding: 17px 18px 20px; }
.gallery-caption h3 { font-size: 17px; margin-bottom: 7px; }
.gallery-caption p { color: var(--text-muted); font-size: 13px; line-height: 1.8; margin: 0; }
.gallery-arrow { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); color: white; background: var(--primary); font: inherit; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 5px 16px rgba(0,0,0,.2); transition: transform .2s, background .2s; z-index: 1; }
.gallery-arrow:hover { transform: scale(1.08); background: var(--primary-dark); }
.gallery-hint { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 8px; }
.gallery-cta { text-align: center; margin-top: 22px; }
@media (max-width: 900px) { .gallery-track { grid-auto-columns: minmax(245px, 46%); } }
@media (max-width: 600px) { .portfolio { padding: 58px 0; } .gallery-wrap { gap: 6px; } .gallery-track { grid-auto-columns: 82%; gap: 13px; } .gallery-card img { height: 215px; } .gallery-arrow { flex-basis: 34px; width: 34px; height: 34px; font-size: 23px; } }

/* Featured brand slides */
.gallery-card-featured img { object-fit: contain; background: #101b33; }


/* ===== Floating featured video ===== */
.featured-video {
    position: fixed; right: 24px; bottom: 24px; width: 276px; padding: 10px;
    border: 1px solid rgba(255,255,255,.16); border-radius: 16px;
    background: rgba(22,32,46,.96); box-shadow: 0 12px 36px rgba(0,0,0,.32);
    z-index: 950; direction: rtl; backdrop-filter: blur(10px);
}
.featured-video-heading { display:flex; align-items:center; gap:9px; margin:0 2px 9px; }
.featured-video-heading h2 { margin:0; color:#F6F3EC; font-size:15px; font-weight:700; }
.featured-video-mark { display:inline-flex; align-items:center; justify-content:center; width:27px; height:27px; border-radius:50%; color:#fff; background:linear-gradient(135deg,var(--primary),var(--accent)); font-size:11px; }
.featured-video video { display:block; width:100%; max-height:210px; aspect-ratio:4 / 5; object-fit:contain; border-radius:10px; background:#080d14; }
@media (max-width:600px) {
    .featured-video { right:12px; bottom:12px; width:min(190px,calc(100vw - 24px)); padding:7px; border-radius:12px; }
    .featured-video-heading { gap:6px; margin-bottom:6px; }
    .featured-video-heading h2 { font-size:12px; }
    .featured-video-mark { width:22px; height:22px; font-size:9px; }
    .featured-video video { max-height:145px; }
}

/* فراتر از پیکسل ها - پنجره ویدئو */
.featured-video {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 276px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(22,32,46,.96);
    box-shadow: 0 12px 36px rgba(0,0,0,.32);
    z-index: 950;
    direction: rtl;
    backdrop-filter: blur(10px);
}

.featured-video-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 2px 9px;
}

.featured-video-heading h2 {
    margin: 0;
    color: #F6F3EC;
    font-size: 15px;
    font-weight: 700;
}

.featured-video-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: white;
    background: #7657D5;
    font-size: 11px;
}

.featured-video video {
    display: block;
    width: 100%;
    max-height: 210px;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    border-radius: 10px;
    background: #080d14;
}

@media (max-width: 600px) {
    .featured-video {
        right: 12px;
        bottom: 12px;
        width: 190px;
        padding: 7px;
        border-radius: 12px;
    }

    .featured-video-heading h2 {
        font-size: 12px;
    }

    .featured-video video {
        max-height: 145px;
    }
}
