/* =========================
   Reset & Base Styles
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #2f6bff;
    --primary-dark: #1f52d6;
    --secondary: #00b894;
    --accent: #6c5ce7;
    --bg: #f5f8ff;
    --white: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 20px 45px rgba(47, 107, 255, 0.12);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "IRANSansWeb", Tahoma, sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

/* =========================
   Buttons
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary,
.btn-windows {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover,
.btn-windows:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(47, 107, 255, 0.22);
}

.btn-mobile {
    background: var(--white);
    color: var(--primary);
    border: 1px solid rgba(47, 107, 255, 0.15);
    box-shadow: var(--shadow-sm);
}

.btn-mobile:hover {
    transform: translateY(-3px);
    background: #f8fbff;
    box-shadow: var(--shadow-md);
}

/* =========================
   Header
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.header-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.logo-text strong {
    font-size: 18px;
    color: var(--text);
}

.logo-text span {
    font-size: 13px;
    color: var(--text-light);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover::after {
    width: 100%;
}

/* =========================
   Hero Section
========================= */
.hero-section {
    padding: 90px 0 70px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.hero-badge,
.section-badge {
    display: inline-block;
    background: rgba(47, 107, 255, 0.10);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    border: 1px solid rgba(47, 107, 255, 0.12);
}

.hero-title {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.35;
    margin: 0 0 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-light);
    max-width: 680px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.highlight-item {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--text);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.dashboard-card {
    width: 100%;
    max-width: 470px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 25px 60px rgba(31, 41, 55, 0.12);
    position: relative;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(47,107,255,0.12), rgba(108,92,231,0.08));
    z-index: -1;
}

.dashboard-top {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.dashboard-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
}

.dashboard-top span:nth-child(1) {
    background: #ff6b6b;
}
.dashboard-top span:nth-child(2) {
    background: #feca57;
}
.dashboard-top span:nth-child(3) {
    background: #1dd1a1;
}

.dashboard-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chart-box {
    min-height: 220px;
    border-radius: 22px;
    background: linear-gradient(135deg, #edf4ff, #f5f0ff);
    display: grid;
    place-items: center;
    color: var(--text);
    font-weight: 800;
    font-size: 18px;
    border: 1px solid #e8edff;
}

.mini-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mini-card {
    background: var(--white);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    font-weight: 700;
    color: var(--text);
}

/* =========================
   Section Generic
========================= */
section {
    padding: 85px 0;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.section-title {
    margin: 0 0 14px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.4;
    font-weight: 900;
}

.section-subtitle {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
}

/* =========================
   Features
========================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(47, 107, 255, 0.12), transparent 70%);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(47, 107, 255, 0.18);
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef4ff, #f4f0ff);
    margin-bottom: 18px;
    font-size: 26px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
}

.feature-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
}

/* =========================
   Stats
========================= */
.stats-section {
    padding-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    margin: 0 0 8px;
    font-size: 32px;
    color: var(--primary);
    font-weight: 900;
}

.stat-card p {
    margin: 0;
    color: var(--text-light);
    font-weight: 600;
}

/* =========================
   Download Section
========================= */
.download-box {
    background: linear-gradient(135deg, #2f6bff, #6c5ce7);
    border-radius: 28px;
    padding: 42px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 25px 50px rgba(47, 107, 255, 0.20);
}

.download-box .section-badge {
    background: rgba(255,255,255,0.16);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}

.download-box h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
}

.download-box p {
    margin: 0;
    color: rgba(255,255,255,0.88);
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.download-actions .btn-windows {
    background: var(--white);
    color: var(--primary);
}

.download-actions .btn-mobile {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.28);
}

.download-actions .btn-mobile:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

/* =========================
   Testimonials
========================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.testimonial-card p {
    margin: 0 0 18px;
    color: var(--text);
    font-size: 15px;
}

.testimonial-card h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.testimonial-card span {
    color: var(--text-light);
    font-size: 14px;
}

/* =========================
   Footer
========================= */
.site-footer {
    background: #0f172a;
    color: #e5e7eb;
    padding-top: 70px;
    margin-top: 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 35px;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
    color: #fff;
}

.footer-about p,
.footer-contact p,
.footer-links a {
    color: #cbd5e1;
    font-size: 15px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
    .hero-container,
    .download-box,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .download-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .main-nav ul {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section {
        padding-top: 50px;
    }

    section {
        padding: 65px 0;
    }

    .hero-buttons,
    .download-actions,
    .hero-highlights {
        flex-direction: column;
        align-items: stretch;
    }

    .features-grid,
    .testimonials-grid,
    .stats-grid,
    .mini-cards {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .download-box {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .logo-text span {
        display: none;
    }

    .btn {
        width: 100%;
    }

    .feature-card,
    .testimonial-card,
    .stat-card {
        border-radius: 18px;
    }

    .dashboard-card {
        padding: 14px;
        border-radius: 22px;
    }

    .chart-box {
        min-height: 180px;
        font-size: 16px;
    }
}
