/* ══════════════════════════════════════════════
   گروه فناوری ربین — Landing Page Styles
   ══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-light: linear-gradient(135deg, rgba(79,70,229,.08) 0%, rgba(124,58,237,.08) 100%);
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
    --radius: 1rem;
}

/* ── Global ── */
html, body {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: color .2s;
}

section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--bg-light);
}

/* ── Navbar ── */
.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary) !important;
}

.navbar {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,.92) !important;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: .5rem 1rem !important;
    border-radius: .5rem;
    transition: background .2s, color .2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--gradient-light);
}

.btn-cta-nav {
    background: var(--gradient);
    color: #fff !important;
    border: none;
    border-radius: .75rem;
    padding: .5rem 1.5rem;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}

.btn-cta-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79,70,229,.35);
    color: #fff !important;
}

/* ── Hero ── */
.hero-section {
    padding: 8rem 0 5rem;
    background: linear-gradient(160deg, #f0f0ff 0%, #fff 50%, #faf5ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(79,70,229,.06);
    filter: blur(80px);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-dark);
}

.hero-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 540px;
}

.hero-img-placeholder {
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    border-radius: var(--radius);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    border: 2px dashed var(--primary-light);
}

/* ── Buttons ── */
.btn-primary-gradient {
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: .75rem;
    padding: .75rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform .2s, box-shadow .2s;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,70,229,.3);
    color: #fff;
}

.btn-outline-primary-custom {
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: .75rem;
    padding: .75rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    background: transparent;
    transition: all .2s;
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: #fff;
}

/* ── Section Headings ── */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .75rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ── Feature Cards ── */
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card .icon-box {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.feature-card .icon-box iconify-icon {
    font-size: 2rem;
    color: var(--primary);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: .75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.7;
}

/* ── Screenshot Cards ── */
.screenshot-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform .3s, box-shadow .3s;
}

.screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.screenshot-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: .9rem;
}

.screenshot-card .card-body {
    padding: 1.25rem;
}

.screenshot-card h6 {
    font-weight: 700;
    margin-bottom: .5rem;
}

.screenshot-card p {
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 0;
}

/* ── Preview Section (Home) ── */
.preview-placeholder {
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    border-radius: var(--radius);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 500;
    border: 2px dashed var(--primary-light);
    box-shadow: var(--shadow-md);
}

/* ── CTA Banner ── */
.cta-banner {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 3.5rem 2rem;
    color: #fff;
    text-align: center;
}

.cta-banner h3 {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.05rem;
    opacity: .9;
    margin-bottom: 1.5rem;
}

.cta-banner .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    border-radius: .75rem;
    padding: .75rem 2.5rem;
    font-size: 1.05rem;
    transition: transform .2s, box-shadow .2s;
}

.cta-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* ── Pricing Cards ── */
.pricing-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform .3s, box-shadow .3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured::before {
    content: 'پیشنهادی';
    position: absolute;
    top: -14px;
    right: 50%;
    transform: translateX(50%);
    background: var(--gradient);
    color: #fff;
    padding: .25rem 1.25rem;
    border-radius: 2rem;
    font-size: .8rem;
    font-weight: 600;
}

.pricing-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.pricing-icon iconify-icon {
    font-size: 1.8rem;
    color: #fff;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin: 1rem 0 .25rem;
}

.pricing-card .price-period {
    color: var(--text-muted);
    font-size: .9rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    text-align: right;
}

.pricing-card ul li {
    padding: .5rem 0;
    color: var(--text-muted);
    font-size: .93rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid rgba(0,0,0,.04);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li iconify-icon {
    color: #22c55e;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pricing-features-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    margin-top: 0 !important;
}

.pricing-features-extra.show {
    max-height: 600px;
}

.pricing-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
    background: var(--gradient-light);
    border: 1px dashed var(--primary-light);
    border-radius: .75rem;
    padding: .6rem 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    margin-top: 1rem;
    font-family: inherit;
}

.pricing-toggle-btn:hover {
    background: rgba(79,70,229,.12);
    box-shadow: 0 2px 8px rgba(79,70,229,.15);
}

.pricing-toggle-btn .toggle-icon {
    font-size: 1.3rem;
    transition: transform .3s;
}

.pricing-features-extra.show ~ .pricing-toggle-btn .toggle-icon {
    transform: rotate(45deg);
}

/* ── FAQ ── */
.faq-section .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-section .accordion-button {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text-dark);
    background: #fff;
    padding: 1.25rem 1.5rem;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: var(--gradient-light);
    box-shadow: none;
}

.faq-section .accordion-body {
    color: var(--text-muted);
    line-height: 1.8;
    padding: 1rem 1.5rem 1.25rem;
}

/* ── Contact ── */
.contact-info-card {
    background: var(--gradient-light);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}

.contact-info-card .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-card .info-item:last-child {
    margin-bottom: 0;
}

.contact-info-card .info-icon {
    width: 48px;
    height: 48px;
    border-radius: .75rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-card .info-icon iconify-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: .75rem;
    border: 1px solid var(--border-color);
    padding: .75rem 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* ── About ── */
.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-light);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar iconify-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

/* ── Footer ── */
.site-footer {
    background: var(--text-dark);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
}

.site-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer a {
    color: #94a3b8;
    transition: color .2s;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: .88rem;
    color: #64748b;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 .25rem;
    transition: background .2s;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-social iconify-icon {
    font-size: 1.2rem;
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-section {
        padding: 6rem 0 3rem;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto;
    }
    .hero-img-placeholder {
        min-height: 260px;
        margin-top: 2rem;
    }
    section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .cta-banner {
        padding: 2.5rem 1.25rem;
    }
    .cta-banner h3 {
        font-size: 1.3rem;
    }
    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

/* ── Product Card Highlight ── */
.product-card-highlight {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
    position: relative;
}

.product-card-highlight::before {
    content: 'محبوب‌ترین';
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: var(--gradient);
    color: #fff;
    padding: .2rem 1rem;
    border-radius: 2rem;
    font-size: .75rem;
    font-weight: 600;
}

/* ── Dropdown RTL ── */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: .75rem;
    box-shadow: var(--shadow-md);
    padding: .5rem 0;
    min-width: 200px;
}

.dropdown-item {
    padding: .5rem 1.25rem;
    font-size: .92rem;
    transition: background .2s;
}

.dropdown-item:hover {
    background: var(--gradient-light);
    color: var(--primary);
}

/* Nested submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-top: -.5rem;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-item::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid currentColor;
    float: left;
    margin-top: .4rem;
}

/* Mobile: nested dropdown stacks vertically */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        right: auto !important;
        box-shadow: none !important;
        border: none !important;
        padding-right: 1rem;
        margin-top: 0;
        display: none;
    }
    .dropdown-submenu > .dropdown-menu.show {
        display: block !important;
    }
    .dropdown-submenu > .dropdown-item::after {
        border-right: 5px solid currentColor;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        display: inline-block;
        transition: transform .2s;
    }
    .dropdown-submenu.open > .dropdown-item::after {
        transform: rotate(-90deg);
    }
}

/* ── Engagement Cards ── */
.engage-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.engage-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity .3s;
}

.engage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.engage-card:hover::before {
    opacity: 1;
}

.engage-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    position: relative;
}

.engage-icon iconify-icon {
    font-size: 2.2rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.spin-wheel {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 6px 20px rgba(245,158,11,.3);
}

.referral-icon {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 6px 20px rgba(59,130,246,.3);
}

.points-icon {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    box-shadow: 0 6px 20px rgba(234,179,8,.3);
}

.bonus-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 20px rgba(16,185,129,.3);
}

.coupon-icon {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    box-shadow: 0 6px 20px rgba(244,63,94,.3);
}

.notif-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 6px 20px rgba(124,58,237,.3);
}

.engage-card h5 {
    font-weight: 700;
    margin-bottom: .75rem;
}

.engage-card p {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.engage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: center;
}

.engage-tags span {
    background: var(--gradient-light);
    color: var(--primary);
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .75rem;
    border-radius: 2rem;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.engage-card:hover .spin-wheel {
    animation: spin-slow 2s linear infinite;
}

/* ── Misc ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: none;
    transition: transform .2s;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}
