:root {
    --primary-color: #4c346a;
    --accent-color: #6eb1a1;
    --text-color: #1f2933;
    --muted-text: #64748b;
    --surface-color: #ffffff;
    --surface-muted: #f5f7fa;
    --shadow-soft: 0 24px 60px rgba(76, 52, 106, 0.12);
    --shadow-card: 0 12px 30px rgba(31, 41, 51, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --max-width: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Vazirmatn", "Segoe UI", "Tahoma", sans-serif;
    background: var(--surface-muted);
    color: var(--text-color);
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus,
a:hover {
    color: var(--primary-color);
}

.download-link {
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.25rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.download-link:hover,
.download-link:focus {
    color: #2a1945;
    border-color: #2a1945;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

.container {
    width: min(var(--max-width), 92%);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading span {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    background: rgba(110, 177, 161, 0.16);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 1rem 0 0.75rem;
    color: var(--primary-color);
}

.section-heading p {
    max-width: 640px;
    margin: 0.5rem auto 0;
    color: var(--muted-text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2a1945);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(76, 52, 106, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(76, 52, 106, 0.45);
}

.site-header {
    background: linear-gradient(
        140deg,
        rgba(76, 52, 106, 0.95),
        rgba(110, 177, 161, 0.92)
    );
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-bottom-right-radius: 120px;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: -160px -140px auto auto;
    width: 360px;
    height: 360px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(0px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}

.brand img {
    width: 6rem;
    height: auto;
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    color: #ffffff;
    cursor: pointer;
}

.nav-toggle svg {
    width: 26px;
    height: 26px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-weight: 500;
}

.primary-nav a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.primary-nav a:hover,
.primary-nav a:focus {
    color: #ffffff;
}

.hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 3.5rem;
    padding: 4.5rem 0 5.5rem;
    position: relative;
    z-index: 5;
}

.hero-copy h1 {
    font-size: clamp(2.3rem, 4vw, 3.1rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.highlight {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.highlight strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    border-radius: 36px;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: auto auto -20px -40px;
    width: 70%;
    height: 70%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 36px;
    z-index: -1;
}

.values-grid,
.services-grid,
.team-grid {
    display: grid;
    gap: 1.5rem;
}

.values-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.value-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(76, 52, 106, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(76, 52, 106, 0.12);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.value-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.value-card p {
    color: var(--muted-text);
    font-size: 0.97rem;
}

.value-card--finance {
    position: relative;
}

.value-card--finance::before {
    content: "+";
    position: absolute;
    right: calc(100% + 0.4rem);
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, #b48be6, #6b3ea3);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(76, 52, 106, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 2;
}

.benefits-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: center;
    background: var(--surface-color);
    border-radius: 40px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(76, 52, 106, 0.05);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.benefits-list li {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(110, 177, 161, 0.12);
    color: var(--text-color);
    border: 1px solid rgba(110, 177, 161, 0.22);
}

.clients-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
}

.clients-gallery img {
    width: clamp(90px, 22vw, 130px);
    background: #ffffff;
    padding: 1.1rem;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(76, 52, 106, 0.12);
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(76, 52, 106, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 320px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.service-card svg,
.service-card .service-icon {
    width: 54px;
    height: 54px;
    color: var(--primary-color);
}

.service-card .service-icon {
    font-size: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.service-card p {
    color: var(--muted-text);
    font-size: 0.98rem;
    flex: 1;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.platform-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(76, 52, 106, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.platform-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
    padding: 0.5rem;
    box-shadow: inset 0 0 0 1px rgba(76, 52, 106, 0.05);
}

.platform-card h3 {
    margin: 0 0 0.35rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.platform-card p {
    margin: 0;
    color: var(--muted-text);
    font-size: 0.95rem;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(76, 52, 106, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-card strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.team-card span {
    font-weight: 600;
    color: var(--accent-color);
}

.team-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin: 0;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: auto;
}

.team-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(76, 52, 106, 0.08);
    color: var(--primary-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.team-social svg {
    transform: scale(0.7);
}

.team-social a:hover,
.team-social a:focus {
    background: var(--primary-color);
    color: #ffffff;
}

.project-hero {
    padding-top: 4rem;
}

.project-hero__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.project-hero__content h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.project-hero__content p {
    color: var(--muted-text);
    font-size: 1rem;
}

.project-section {
    padding: 4rem 0;
}

.project-section:nth-of-type(even) {
    background: var(--surface-color);
}

.project-section__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.project-section__content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-section__content p {
    color: var(--muted-text);
    margin-bottom: 1rem;
}

.project-section__content ul {
    margin: 0;
    padding-right: 1.2rem;
    color: var(--muted-text);
    line-height: 1.8;
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.logo-strip img {
    width: clamp(80px, 16vw, 140px);
    padding: 1rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(76, 52, 106, 0.15);
    height: auto; /* مهم! */
    object-fit: contain;
}

.contact-panel {
    background: linear-gradient(
        135deg,
        rgba(76, 52, 106, 0.95),
        rgba(110, 177, 161, 0.92)
    );
    border-radius: 40px;
    padding: 3rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contact-panel::after {
    content: "";
    position: absolute;
    inset: auto auto -80px -80px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.contact-panel h3 {
    font-size: 2rem;
    margin-top: 0;
}

.contact-details {
    display: grid;
    gap: 1.2rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item span {
    font-weight: 600;
    min-width: 90px;
}

.site-footer {
    padding: 3rem 0 2rem;
    background: #101222;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer .footer-top {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.site-footer .brand {
    color: #ffffff;
}

.footer-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: left;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.scroll-to-top {
    position: fixed;
    inset: auto 1.5rem 1.5rem auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), #2a1945);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(76, 52, 106, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1200;
}

.scroll-to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-to-top svg {
    width: 26px;
    height: 26px;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    box-shadow: 0 26px 50px rgba(76, 52, 106, 0.45);
    outline: none;
}

@media (max-width: 960px) {
    .site-header {
        border-bottom-right-radius: 80px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-highlights {
        grid-template-columns: 1fr 1fr;
    }

    .benefits-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .benefits-wrapper img {
        order: -1;
    }
}

@media (max-width: 800px) {
    .value-card--finance::before {
        display: none;
    }
    .primary-nav {
        position: absolute;
        inset: calc(100% + 1rem) 0 auto;
        background: rgba(16, 18, 34, 0.92);
        padding: 1.75rem;
        border-radius: 20px;
        margin: 0 auto;
        width: min(280px, 92vw);
        flex-direction: column;
        gap: 1.25rem;
        transform: scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .primary-nav.is-open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .navbar {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 3.5rem 0;
    }

    .site-header {
        border-bottom-right-radius: 60px;
    }

    .benefits-wrapper,
    .contact-panel {
        padding: 2rem;
    }

    .site-footer .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.4rem;
    }

    .team-card {
        padding: 1.75rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
