/* ==================================================
   فایل استایل سفارشی MoonGPT
   شامل: متغیرهای رنگی، تنظیمات پایه، هدر، هیرو،
   کارت‌های ویژگی، مدل‌ها، قیمت‌گذاری، آکاردئون و فوتر
   ================================================== */

/* --------------------------------------------------
   ۱. متغیرهای CSS برای مدیریت متمرکز رنگ‌ها
-------------------------------------------------- */
:root {
    --bg-main: #05070d;              /* پس‌زمینه اصلی - تیره‌ترین رنگ */
    --bg-alt: #0a0e1a;               /* پس‌زمینه بخش‌های متناوب */
    --bg-card: #111726;              /* پس‌زمینه کارت‌ها */
    --bg-card-hover: #161d30;        /* پس‌زمینه کارت هنگام هاور */

    --color-blue: #4f7dfa;           /* رنگ اصلی آبی برند */
    --color-purple: #9b5cf6;         /* رنگ اصلی بنفش برند */
    --gradient-brand: linear-gradient(90deg, var(--color-blue), var(--color-purple));

    --text-primary: #f2f4fa;         /* رنگ متن اصلی روی پس‌زمینه تیره */
    --text-muted-soft: #8b98ad;      /* رنگ سفارشی جایگزین text-muted بوت‌استرپ */

    --border-soft: rgba(255, 255, 255, 0.08); /* رنگ بردر ملایم روی پس‌زمینه تیره */
    --radius-lg: 20px;
    --radius-md: 14px;
      --accent: #7c3aed;
    --bg-dark: #0f0f0f;
    /* ... بقیه متغیرهات ... */

    /* فونت بوتسترپ */
    --bs-font-sans-serif: 'Vazirmatn', -apple-system, sans-serif;
}

/* --------------------------------------------------
   ۲. تنظیمات پایه صفحه
-------------------------------------------------- */
* {
    scroll-behavior: smooth; /* اسکرول نرم هنگام کلیک روی لینک‌های ناوبری */
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی به دلیل افکت‌های نوری */
    position: relative;
}

/* اورراید کلاس text-muted پیش‌فرض بوت‌استرپ برای خوانایی بهتر روی تم تیره */
.text-muted,
.text-muted-soft {
    color: var(--text-muted-soft) !important;
}

/* --------------------------------------------------
   ۳. افکت‌های نوری پس‌زمینه (Glow Effects)
-------------------------------------------------- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none; /* این المان‌ها نباید مانع کلیک شوند */
}

.glow-blue {
    width: 500px;
    height: 500px;
    background: var(--color-blue);
    top: -100px;
    right: -100px;
}

.glow-purple {
    width: 550px;
    height: 550px;
    background: var(--color-purple);
    bottom: 0;
    left: -150px;
}

/* --------------------------------------------------
   ۴. هدر و منوی ناوبری (Glassmorphism)
-------------------------------------------------- */
.glass-navbar {
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    padding: 14px 0;
    z-index: 999;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.brand-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.navbar-nav .nav-link {
    color: var(--text-muted-soft);
    font-weight: 500;
    padding: 8px 14px !important;
    transition: color 0.25s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary);
}

/* دکمه‌ی گرادیانتی مشترک برای CTA های اصلی سایت */
.btn-gradient {
    background: var(--gradient-brand);
    color: #fff !important;
    border: none;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 125, 250, 0.35);
    color: #fff;
}

.btn-outline-light {
    border-color: var(--border-soft);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* --------------------------------------------------
   ۵. بج‌های نرم (Badge) استفاده‌شده در چند بخش
-------------------------------------------------- */
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(155, 92, 246, 0.12);
    border: 1px solid rgba(155, 92, 246, 0.3);
    color: #c9a9ff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* متن گرادیانتی برای هایلایت کلمات کلیدی */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --------------------------------------------------
   ۶. بخش هیرو (Hero Section)
-------------------------------------------------- */
.hero-section {
    padding: 170px 0 100px;
    position: relative;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted-soft);
    max-width: 550px;
    margin-bottom: 30px;
}

/* باکس آمار کوچک زیر هیرو */
.stats-row {
    max-width: 480px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
}

.stat-box h3 {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}

.stat-box p {
    font-size: 0.8rem;
    color: var(--text-muted-soft);
    margin: 0;
}

/* --------------------------------------------------
   ۷. ماک‌آپ چت در هیرو
-------------------------------------------------- */
.chat-mockup {
    background: rgba(17, 23, 38, 0.75);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-soft);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.mockup-title {
    margin-right: 10px;
    font-size: 0.8rem;
    color: var(--text-muted-soft);
}

.mockup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
}

/* حباب‌های گفتگو */
.chat-bubble {
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 85%;
    animation: fadeInUp 0.5s ease;
}

.bubble-user {
    background: var(--gradient-brand);
    color: #fff;
    align-self: flex-end;
    border-bottom-left-radius: 4px;
}

.bubble-bot {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-right-radius: 4px;
}

/* انیمیشن سه نقطه‌ی "در حال تایپ" */
.bubble-bot.typing {
    display: flex;
    gap: 4px;
    padding: 14px 16px;
    align-items: center;
}

.bubble-bot.typing span {
    width: 6px;
    height: 6px;
    background: var(--text-muted-soft);
    border-radius: 50%;
    animation: typingBlink 1.4s infinite ease-in-out;
}

.bubble-bot.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble-bot.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mockup-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.02);
}

.mockup-input i {
    color: var(--color-blue);
    font-size: 1.1rem;
}

/* --------------------------------------------------
   ۸. کلاس‌های عمومی بخش‌ها
-------------------------------------------------- */
.section-padding {
    padding: 90px 0;
}

.bg-section-alt {
    background: var(--bg-alt);
}

.section-heading {
    max-width: 620px;
    margin: 0 auto 50px;
}

.section-heading h2 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 14px;
}

/* --------------------------------------------------
   ۹. کارت‌های ویژگی (Feature Cards)
-------------------------------------------------- */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    height: 100%;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(155, 92, 246, 0.35);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.icon-blue {
    background: linear-gradient(135deg, rgba(79, 125, 250, 0.25), rgba(79, 125, 250, 0.1));
    color: var(--color-blue);
}

.icon-purple {
    background: linear-gradient(135deg, rgba(155, 92, 246, 0.25), rgba(155, 92, 246, 0.1));
    color: var(--color-purple);
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

/* --------------------------------------------------
   ۱۰. کارت‌های مدل‌های هوش مصنوعی
-------------------------------------------------- */
.model-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 26px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.model-card:hover {
    border-color: var(--model-color, var(--color-blue));
    transform: translateY(-4px);
}

.model-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--model-color);
    background: color-mix(in srgb, var(--model-color) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--model-color) 40%, transparent);
}

.model-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* --------------------------------------------------
   ۱۱. کارت‌های قیمت‌گذاری
-------------------------------------------------- */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
}

/* کارت پیشنهادی با برجستگی بصری بیشتر */
.pricing-highlight {
    background: linear-gradient(180deg, rgba(155, 92, 246, 0.1), var(--bg-card) 60%);
    border: 1px solid rgba(155, 92, 246, 0.45);
    box-shadow: 0 20px 60px rgba(155, 92, 246, 0.15);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.plan-name {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.plan-price {
    margin: 20px 0;
}

.price-number {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-unit {
    font-size: 0.85rem;
    color: var(--text-muted-soft);
    margin-right: 6px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.plan-features li i {
    color: var(--color-blue);
    font-size: 0.95rem;
}

/* --------------------------------------------------
   ۱۲. آکاردئون سوالات متداول (اورراید استایل بوت‌استرپ)
-------------------------------------------------- */
.accordion-custom .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md) !important;
    margin-bottom: 14px;
    overflow: hidden;
}

.accordion-custom .accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: none !important;
    padding: 20px 24px;
}

.accordion-custom .accordion-button:not(.collapsed) {
    color: var(--color-blue);
    background: rgba(79, 125, 250, 0.06);
}

/* تغییر رنگ آیکون فلش پیش‌فرض بوت‌استرپ برای هماهنگی با تم تیره */
.accordion-custom .accordion-button::after {
    filter: invert(60%) sepia(70%) saturate(1000%) hue-rotate(190deg);
}

.accordion-custom .accordion-body {
    color: var(--text-muted-soft);
    line-height: 1.9;
    padding: 4px 24px 22px;
    font-size: 0.92rem;
}

/* --------------------------------------------------
   ۱۳. فوتر
-------------------------------------------------- */
.footer-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-soft);
    padding: 70px 0 20px;
}

.footer-heading {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted-soft);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.05rem;
    transition: all 0.25s ease;
}

.social-icons a:hover {
    background: var(--gradient-brand);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: var(--border-soft);
    margin: 40px 0 20px;
}

/* --------------------------------------------------
   ۱۴. واکنش‌گرایی (Responsive) برای موبایل و تبلت
-------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .hero-section {
        padding: 140px 0 60px;
        text-align: center;
    }

    .navbar-nav {
        margin: 20px 0;
        gap: 6px !important;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .stat-box h3 {
        font-size: 1.1rem;
    }

    .chat-mockup {
        margin-top: 20px;
    }
}
