/* ============================================
   HOME PAGE - استایل خفن و حرفه‌ای
   ============================================ */

/* ===== هدر (Hero) ===== */
.hero {
    padding: 30px 0 40px;
    background: transparent !important;
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    flex: 1 1 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    align-self: center;
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.15);
}

.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* ===== گرادیانت هدر - تم تیره (پیش‌فرض) ===== */
.hero-content h1 .gradient-text {
    background: linear-gradient(135deg, #8B5CF6, #6C3CE1, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== گرادیانت هدر - تم روشن (اصلاح شده با رنگ‌های تیره‌تر) ===== */
[data-theme="light"] .hero-content h1 .gradient-text {
    background: linear-gradient(135deg, #4F2BA8, #6C3CE1, #BE185D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* پشتیبانی از span داخل h1 در تم روشن */
[data-theme="light"] .hero-content h1 span {
    background: linear-gradient(135deg, #4F2BA8, #6C3CE1, #BE185D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter {
    font-size: clamp(1.2rem, 1.4vw, 1.4rem);
    font-weight: 700;
    color: var(--accent-light);
    min-height: 3.2rem;
    margin: 14px 0 18px;
}

.hero-description {
    font-size: clamp(1rem, 1vw, 1.05rem);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 2;
    margin: 16px auto 30px;
}

/* ===== دکمه‌های شیشه‌ای ===== */
.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.btn-glass:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 60, 225, 0.2);
    box-shadow: 0 8px 40px rgba(108, 60, 225, 0.08);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 30px rgba(108, 60, 225, 0.2);
}

.btn-hero-primary:hover {
    box-shadow: 0 8px 50px rgba(108, 60, 225, 0.3);
    transform: translateY(-3px);
    color: #fff !important;
}

.btn-hero-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.btn-hero-secondary:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}

/* ===== آمار ===== */
.hero-stats-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px 80px;
    padding-top: 28px;
    border-top: 2px solid var(--border-color);
    justify-content: center;
}

.stats-group {
    flex: 1 1 auto;
    min-width: 220px;
    text-align: center;
}

.stats-group-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: inline-block;
}

.stats-group-title span {
    background: linear-gradient(135deg, var(--accent-light), #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--info));
    border-radius: 10px;
    margin: 6px auto 14px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    display: block;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.purple-text {
    background: linear-gradient(135deg, var(--accent-light), #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.green-text {
    background: linear-gradient(135deg, var(--success), #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gold-text {
    background: linear-gradient(135deg, var(--warning), #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cyan-text {
    background: linear-gradient(135deg, var(--info), #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================================
   📢 ANNOUNCEMENT BANNER - خفن و مدرن
   ================================================================ */

.announcement-banner {
    position: relative;
    margin: 1.2rem auto 2.2rem;
    max-width: 1100px;
    width: calc(100% - 2rem);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(108, 60, 225, 0.05) 0%, 
        rgba(6, 182, 212, 0.02) 50%,
        rgba(108, 60, 225, 0.03) 100%
    );
    border: 1.5px solid rgba(108, 60, 225, 0.08);
    box-shadow: 
        0 8px 50px rgba(108, 60, 225, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: slideDownBanner 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.announcement-banner:hover {
    border-color: rgba(108, 60, 225, 0.15);
    box-shadow: 
        0 12px 60px rgba(108, 60, 225, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

/* ===== نوار رنگی ===== */
.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-light), var(--info));
    border-radius: 0 4px 4px 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.announcement-banner:hover::before {
    opacity: 1;
}

/* ===== افکت درخشش ===== */
.announcement-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(108, 60, 225, 0.03), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.announcement-banner:hover .announcement-glow {
    opacity: 1;
}

/* ===== کانتینر داخلی ===== */
.announcement-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 2rem;
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
}

/* ===== آیکون ===== */
.announcement-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, 
        rgba(108, 60, 225, 0.10), 
        rgba(108, 60, 225, 0.04)
    );
    border: 2px solid rgba(108, 60, 225, 0.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 30px rgba(108, 60, 225, 0.02);
}

.announcement-banner:hover .announcement-icon {
    transform: scale(1.08) rotate(-4deg);
    border-color: var(--accent-light);
    background: rgba(108, 60, 225, 0.12);
    box-shadow: 0 0 40px rgba(108, 60, 225, 0.06);
}

/* ===== متن ===== */
.announcement-text {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.8;
    text-align: right;
    min-width: 0;
    word-wrap: break-word;
    font-family: 'Vazirmatn', 'IRANSansX', tahoma, sans-serif;
    letter-spacing: 0.02em;
}

.announcement-text strong {
    font-weight: 700;
    color: var(--accent-light);
}

.announcement-text em {
    font-style: italic;
    color: var(--text-secondary);
}

.announcement-text a {
    display: inline-block;
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 0.05rem 0.15rem;
    transition: color 0.3s ease;
}

.announcement-text a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.announcement-text a:hover {
    color: var(--text-primary);
}

.announcement-text a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

/* ===== انیمیشن ===== */
@keyframes slideDownBanner {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ================================================================
   بخش معرفی ربات
   ================================================================ */

.about-robot {
    padding: 20px 0 30px;
    background: transparent !important;
}

.about-robot-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-robot-image {
    flex: 1 1 35%;
    display: flex;
    justify-content: center;
}

.about-robot-image #robotLogoAbout {
    max-width: 300px;
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 8px 40px rgba(108, 60, 225, 0.06);
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
}

.about-robot-image #robotLogoAbout:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 50px rgba(108, 60, 225, 0.10);
}

.about-robot-text {
    flex: 1 1 55%;
}

.about-robot-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.about-robot-text h2 span {
    background: linear-gradient(135deg, var(--accent-light), #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-robot-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 18px;
}

.about-robot-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.about-robot-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-robot-features span i {
    color: var(--success);
    font-size: 1rem;
}

/* ================================================================
   مزایا
   ================================================================ */

.features {
    padding: 70px 0 80px;
    background: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 44px;
}

.section-title h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
}

.section-title h2 span {
    background: linear-gradient(135deg, var(--accent-light), #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 6px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 36px 22px;
    background: var(--bg-card);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 50px rgba(108, 60, 225, 0.06);
    border-color: var(--accent);
}

.feature-item i {
    font-size: 3.5rem;
    color: var(--accent-light);
    background: var(--accent-glow);
    padding: 22px;
    border-radius: 30px;
    margin-bottom: 16px;
    margin-top: -18px;
    display: inline-block;
    transition: all 0.4s ease;
}

.feature-item:hover i {
    transform: scale(1.1) rotate(4deg);
}

.feature-item h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ================================================================
   سوالات متداول
   ================================================================ */

.faq-section {
    padding: 70px 0 80px;
    background: transparent;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 26px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    user-select: none;
    gap: 14px;
    font-size: 1rem;
}

.faq-question:hover {
    color: var(--accent-light);
}

.faq-question i {
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 26px;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 26px 22px 26px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.9;
}

/* ================================================================
   بخش‌های اصلی
   ================================================================ */

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3.5rem 0 2.5rem;
}

.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transform: translateY(0);
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--info));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section-card:hover::before {
    opacity: 1;
}

.section-card:hover {
    transform: translateY(-14px);
    border-color: var(--accent);
    box-shadow: 0 16px 60px rgba(108, 60, 225, 0.06);
}

.section-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.section-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.section-card:hover .section-link {
    color: var(--text-primary);
    gap: 0.8rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .hero { padding: 20px 0 30px; }
    .hero-description { margin: 16px auto 24px; }
    .hero-actions { gap: 10px; }
    .btn-hero-primary { padding: 0.5rem 1.6rem; font-size: 0.85rem; }
    .btn-hero-secondary { padding: 0.4rem 1.2rem; font-size: 0.75rem; }
    .hero-stats-wrapper { flex-direction: column; gap: 30px; align-items: center; }
    .stats-group { text-align: center; min-width: auto; width: 100%; }
    .stats-group-title { font-size: 1.5rem; }
    .stats-group .title-line { margin: 6px auto 12px; }
    .stats-group .hero-stats { justify-content: center; gap: 24px; }
    .hero-stats .stat-number { font-size: clamp(1.8rem, 4vw, 2.4rem); }
    .about-robot-wrapper { flex-direction: column; text-align: center; gap: 30px; }
    .about-robot-image #robotLogoAbout { max-width: 200px; }
    .about-robot-features { justify-content: center; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .sections-grid { grid-template-columns: 1fr; }
    .feature-item i { font-size: 2.8rem; padding: 18px; margin-top: -14px; }

    /* ===== بنر ===== */
    .announcement-banner { margin: 0.8rem auto 1.5rem; width: calc(100% - 1.2rem); border-radius: 18px; }
    .announcement-wrapper { padding: 0.8rem 1.2rem; gap: 0.9rem; }
    .announcement-icon { width: 40px; height: 40px; font-size: 1rem; }
    .announcement-text { font-size: 0.92rem; line-height: 1.7; }
}

@media (max-width: 480px) {
    .hero { padding: 12px 0 20px; }
    .hero-content h1 { font-size: 2.3rem; }
    .hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .btn-hero-primary { padding: 0.35rem 1rem; font-size: 0.75rem; min-height: 46px; }
    .btn-hero-secondary { padding: 0.25rem 0.8rem; font-size: 0.65rem; min-height: 39px; }
    .hero-stats-wrapper { gap: 20px; }
    .stats-group-title { font-size: 1.2rem; }
    .stats-group .hero-stats { gap: 16px; }
    .hero-stats .stat-number { font-size: 1.6rem; }
    .hero-stats .stat-label { font-size: 0.7rem; }
    .about-robot-image #robotLogoAbout { max-width: 150px; }
    .about-robot-text h2 { font-size: 1.5rem; }
    .about-robot-text p { font-size: 0.9rem; }
    .about-robot-features span { font-size: 0.8rem; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-item { padding: 24px 16px; }
    .feature-item i { font-size: 2.5rem; padding: 16px; margin-top: -12px; }
    .section-card { padding: 1.5rem 1rem; }

    /* ===== بنر ===== */
    .announcement-banner { border-radius: 16px; width: calc(100% - 0.8rem); }
    .announcement-wrapper { padding: 0.6rem 0.9rem; gap: 0.7rem; }
    .announcement-icon { width: 34px; height: 34px; font-size: 0.85rem; }
    .announcement-text { font-size: 0.82rem; line-height: 1.6; }
}

@media (max-width: 360px) {
    .announcement-icon { width: 28px; height: 28px; font-size: 0.7rem; }
    .announcement-text { font-size: 0.7rem; line-height: 1.5; }
    .announcement-wrapper { padding: 0.4rem 0.6rem; gap: 0.5rem; }
}

@media (min-width: 1025px) {
    .feature-item i { font-size: 4rem; padding: 26px; margin-top: -22px; }
    .about-robot-image #robotLogoAbout { max-width: 300px; }
    .hero-stats .stat-number { font-size: 2.8rem; }
    .stats-group-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .hero::before, .hero::after { display: none; }
}

/* ================================================================
   تم روشن
   ================================================================ */

[data-theme="light"] .announcement-banner {
    background: linear-gradient(135deg, 
        rgba(108, 60, 225, 0.03) 0%, 
        rgba(6, 182, 212, 0.01) 50%,
        rgba(108, 60, 225, 0.02) 100%
    );
    border-color: rgba(108, 60, 225, 0.06);
}

[data-theme="light"] .announcement-banner:hover {
    border-color: rgba(108, 60, 225, 0.12);
}

[data-theme="light"] .announcement-icon {
    background: rgba(108, 60, 225, 0.05);
    border-color: rgba(108, 60, 225, 0.06);
}

[data-theme="light"] .announcement-banner:hover .announcement-icon {
    background: rgba(108, 60, 225, 0.08);
    border-color: rgba(108, 60, 225, 0.12);
}

[data-theme="light"] .announcement-text a {
    color: var(--accent);
}

[data-theme="light"] .announcement-text a:hover {
    color: var(--accent-dark);
}

[data-theme="light"] .announcement-text a::after {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

[data-theme="light"] .btn-hero-secondary {
    background: #ffffff;
}

[data-theme="light"] .btn-hero-secondary:hover {
    background: #f5f5fa;
}

[data-theme="light"] .feature-item {
    background: #ffffff;
}

[data-theme="light"] .section-card {
    background: #ffffff;
}

[data-theme="light"] .faq-item {
    background: #ffffff;
}

/* ===== اصلاح گرادیانت هدر برای تم روشن ===== */
[data-theme="light"] .hero-content h1 .gradient-text {
    background: linear-gradient(135deg, #4F2BA8, #6C3CE1, #BE185D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-content h1 span {
    background: linear-gradient(135deg, #4F2BA8, #6C3CE1, #BE185D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}