﻿.home-page {
    overflow: hidden;
}

.section {
    padding: 85px 0;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}

    .section-heading > span,
    .services-heading > span,
    .process-heading > span {
        display: inline-flex;
        margin-bottom: 10px;
        color: #138d91;
        font-size: 0.88rem;
        font-weight: 900;
    }

    .section-heading h2,
    .services-heading h2,
    .process-heading h2 {
        margin: 0;
        color: #071d30;
        font-size: clamp(1.65rem, 3vw, 2.25rem);
        font-weight: 950;
        line-height: 1.5;
    }

    .section-heading p,
    .services-heading p {
        margin: 12px auto 0;
        color: #6b7a89;
        font-size: 0.96rem;
        line-height: 2;
    }

/* Hero */

.hero-section {
    position: relative;
    padding: 90px 0 95px;
    background: radial-gradient( circle at 7% 30%, rgba(30, 164, 164, 0.12), transparent 28% ), radial-gradient( circle at 90% 15%, rgba(19, 91, 140, 0.09), transparent 30% ), linear-gradient(180deg, #f5fbfd 0%, #f1f8fb 100%);
}

    .hero-section::before {
        position: absolute;
        top: 15%;
        right: -80px;
        width: 260px;
        height: 260px;
        content: "";
        border: 1px solid rgba(18, 104, 144, 0.08);
        border-radius: 50%;
    }

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 460px;
    align-items: center;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 65px;
}

.hero-content {
    order: 1;
}

.hero-visual {
    position: relative;
    order: 2;
    padding: 40px 12px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 8px 15px;
    color: #087b80;
    background: rgba(18, 167, 161, 0.09);
    border: 1px solid rgba(18, 167, 161, 0.14);
    border-radius: 100px;
    font-size: 0.84rem;
    font-weight: 900;
}

    .hero-eyebrow::before {
        width: 7px;
        height: 7px;
        content: "";
        background: #13a59f;
        border-radius: 50%;
        box-shadow: 0 0 0 5px rgba(19, 165, 159, 0.12);
    }

.hero-content h1 {
    margin: 0 0 20px;
    color: #061d31;
    font-size: clamp(1.9rem, 3.8vw, 3.2rem); 
    font-weight: 950;
    line-height: 1.42;
    letter-spacing: -1.7px;
}

.hero-content p {
    max-width: 550px;
    margin: 0;
    color: #435769;
    font-size: 1.06rem;
    font-weight: 500;
    line-height: 2.1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

    .button:hover {
        transform: translateY(-2px);
    }

.button--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0d5688, #0b4471);
    box-shadow: 0 12px 25px rgba(9, 70, 113, 0.22);
}

    .button--primary:hover {
        color: #ffffff;
        box-shadow: 0 16px 30px rgba(9, 70, 113, 0.29);
    }

.button--outline {
    color: #103c5d;
    background: rgba(255, 255, 255, 0.62);
    border-color: #194e70;
}

    .button--outline:hover {
        color: #ffffff;
        background: #103f62;
    }

/* Dashboard mockup */

.dashboard-window {
    position: relative;
    display: grid;
    min-height: 375px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(8, 57, 87, 0.08);
    border-radius: 14px;
    box-shadow: 0 30px 60px rgba(14, 62, 89, 0.14), 0 5px 15px rgba(14, 62, 89, 0.08);
    grid-template-columns: 55px 1fr;
    direction: ltr;
    transform: perspective(900px) rotateY(3deg) rotateX(1deg);
}

.dashboard-sidebar {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 19px;
    padding-top: 18px;
    background: #083b61;
}

.sidebar-logo {
    display: grid;
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    color: #ffffff;
    background: #18a8a1;
    border-radius: 8px;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 900;
}

.sidebar-item {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

    .sidebar-item.active {
        opacity: 1;
        background: #20b4ad;
        border-color: #20b4ad;
        box-shadow: 0 0 0 7px rgba(32, 180, 173, 0.13);
    }

.dashboard-main {
    padding: 18px;
    background: #f7fafc;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #173c54;
    font-size: 0.72rem;
}

.dashboard-actions {
    display: flex;
    gap: 6px;
}

    .dashboard-actions span {
        width: 22px;
        height: 7px;
        background: #d7e3e9;
        border-radius: 10px;
    }

.dashboard-stats {
    display: grid;
    margin-top: 18px;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dashboard-stat {
    display: flex;
    min-height: 65px;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e8eff3;
    border-radius: 9px;
}

    .dashboard-stat small {
        color: #94a5b0;
        font-size: 0.55rem;
    }

    .dashboard-stat strong {
        margin-top: 6px;
        color: #174f72;
        font-size: 0.8rem;
    }

.dashboard-charts {
    display: grid;
    margin-top: 12px;
    grid-template-columns: 1.3fr 1fr;
    gap: 10px;
}

.dashboard-chart {
    height: 150px;
    padding: 13px;
    background: #ffffff;
    border: 1px solid #e8eff3;
    border-radius: 9px;
}

.chart-title {
    color: #264c64;
    font-size: 0.56rem;
    font-weight: 800;
}

.chart-bars {
    display: flex;
    height: 105px;
    align-items: end;
    justify-content: space-around;
    padding-top: 18px;
    border-bottom: 1px solid #e5edef;
}

    .chart-bars i {
        width: 8%;
        background: linear-gradient(180deg, #25b6ae, #12628e);
        border-radius: 3px 3px 0 0;
    }

.progress-list {
    display: grid;
    gap: 16px;
    padding-top: 22px;
}

    .progress-list span {
        position: relative;
        display: block;
        height: 7px;
        overflow: hidden;
        background: #eaf0f3;
        border-radius: 20px;
    }

        .progress-list span::before {
            display: block;
            width: var(--value);
            height: 100%;
            content: "";
            background: linear-gradient(90deg, #18a69f, #12668f);
            border-radius: inherit;
        }

.dashboard-bottom {
    display: grid;
    margin-top: 12px;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-card {
    height: 45px;
    background: linear-gradient( 90deg, #dbe8ed 22%, transparent 22% 29%, #eaf0f2 29% );
    border: 1px solid #e4edef;
    border-radius: 8px;
}

.floating-report {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 76, 108, 0.08);
    border-radius: 11px;
    box-shadow: 0 18px 40px rgba(12, 68, 98, 0.15);
    backdrop-filter: blur(12px);
}

.floating-report--right {
    top: 15px;
    right: -8px;
    display: grid;
    width: 120px;
    gap: 8px;
    padding: 15px;
}

    .floating-report--right span {
        display: block;
        height: 7px;
        background: #dce8ed;
        border-radius: 10px;
    }

        .floating-report--right span:nth-child(1) {
            width: 55%;
            background: #51bdb6;
        }

        .floating-report--right span:nth-child(2) {
            width: 90%;
        }

        .floating-report--right span:nth-child(3) {
            width: 70%;
        }

.floating-report--left {
    bottom: 15px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 150px;
    padding: 13px;
}

    .floating-report--left > div:last-child {
        display: flex;
        flex-direction: column;
    }

    .floating-report--left strong {
        color: #174d6d;
        font-size: 0.85rem;
    }

    .floating-report--left small {
        color: #81939f;
        font-size: 0.58rem;
    }

.report-circle {
    width: 38px;
    height: 38px;
    background: radial-gradient(circle, #ffffff 47%, transparent 49%), conic-gradient(#16a8a0 0 85%, #e1ecef 85%);
    border-radius: 50%;
}

/* Products */

.products-section {
    background: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    position: relative;
    display: flex;
    min-height: 265px;
    align-items: center;
    flex-direction: column;
    padding: 28px 22px 22px;
    overflow: hidden;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(11, 55, 83, 0.075);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(18, 56, 78, 0.08), 0 2px 5px rgba(18, 56, 78, 0.04);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

    .product-card::before {
        position: absolute;
        top: 0;
        right: 15%;
        left: 15%;
        height: 3px;
        content: "";
        background: linear-gradient( 90deg, transparent, #19a39d, transparent );
        opacity: 0;
        transition: opacity 180ms ease;
    }

    .product-card:hover {
        border-color: rgba(15, 135, 139, 0.18);
        box-shadow: 0 22px 50px rgba(18, 56, 78, 0.13);
        transform: translateY(-7px);
    }

        .product-card:hover::before {
            opacity: 1;
        }

.product-icon {
    display: grid;
    width: 59px;
    height: 59px;
    margin-bottom: 20px;
    border-radius: 13px;
    place-items: center;
    font-size: 1.75rem;
}

.product-icon--blue {
    color: #0e5688;
    background: #e5f1f8;
}

.product-icon--green {
    color: #097a7e;
    background: #dcf4f1;
}

.product-icon--cyan {
    color: #07698d;
    background: #dff3f6;
}

.product-icon--purple {
    color: #5253a4;
    background: #ecebfa;
}

.product-card h3 {
    margin: 0 0 10px;
    color: #0a2234;
    font-size: 1.03rem;
    font-weight: 950;
    line-height: 1.7;
}

.product-card p {
    margin: 0;
    color: #667684;
    font-size: 0.84rem;
    line-height: 1.9;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 19px;
    color: #0f648a;
    font-size: 0.82rem;
    font-weight: 900;
}

    .product-link i {
        transition: transform 180ms ease;
    }

    .product-link:hover {
        color: #0c8f8f;
    }

        .product-link:hover i {
            transform: translate(-3px, -3px);
        }

/* Services — سه ستون مرتب */

.services-section {
    padding-top: 35px;
}

.services-box {
    padding: 45px;
    background: linear-gradient( 135deg, rgba(242, 250, 252, 0.96), rgba(236, 247, 250, 0.82) );
    border: 1px solid #d7e7ec;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(12, 60, 84, 0.06);
}

.services-heading {
    max-width: 740px;
    margin: 0 auto 38px;
    text-align: center;
}

/*
  این بخش در دسکتاپ دقیقاً سه ستون مساوی است.
  هر ستون دو خدمت دارد و ارتفاع آیتم‌ها نیز منظم می‌ماند.
*/
.services-columns {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.services-column {
    display: grid;
    align-content: start;
    gap: 17px;
}

.service-item {
    display: grid;
    min-height: 150px;
    align-items: flex-start;
    padding: 21px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(16, 83, 112, 0.08);
    border-radius: 13px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

    .service-item:hover {
        background: #ffffff;
        box-shadow: 0 13px 30px rgba(14, 60, 84, 0.09);
        transform: translateY(-4px);
    }

.service-icon {
    display: grid;
    width: 44px;
    height: 44px;
    color: #0f638a;
    background: #e1f0f6;
    border-radius: 11px;
    place-items: center;
    font-size: 1.18rem;
}

.service-content {
    min-width: 0;
}

    .service-content h3 {
        margin: 1px 0 8px;
        color: #0b2b40;
        font-size: 0.96rem;
        font-weight: 950;
        line-height: 1.7;
    }

    .service-content p {
        margin: 0;
        color: #607481;
        font-size: 0.8rem;
        line-height: 1.95;
    }

/* Partners */

.partners-section {
    padding-top: 55px;
}

.partners-list {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
}

.partner-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    color: #8d989e;
    text-align: center;
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

    .partner-item:hover {
        filter: grayscale(0);
        opacity: 1;
        transform: translateY(-3px);
    }

.partner-logo {
    display: grid;
    width: 68px;
    height: 68px;
    color: #62717b;
    background: linear-gradient( 135deg, #eef2f3, #d5dcdf );
    border: 1px solid #d6dde0;
    border-radius: 50%;
    place-items: center;
    font-size: 1rem;
    font-weight: 950;
}

.partner-item span {
    font-size: 0.75rem;
    font-weight: 800;
}

/* Process */

.process-section {
    padding-top: 35px;
}

.process-box {
    padding: 42px 50px 46px;
    background: linear-gradient( 135deg, #f4fbfd, #edf8fa );
    border: 1px solid #e0eef1;
    border-radius: 20px;
}

.process-heading {
    margin-bottom: 37px;
    text-align: center;
}

.process-list {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr) 80px minmax(0, 1fr) 80px minmax(0, 1fr);
}

.process-item {
    position: relative;
    text-align: center;
}

.process-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #0d6591, #08436d);
    border: 7px solid #e4f3f5;
    border-radius: 50%;
    box-shadow: 0 9px 20px rgba(10, 75, 111, 0.16);
    place-items: center;
    font-size: 1.3rem;
}

.process-item h3 {
    margin: 0;
    color: #0d293d;
    font-size: 0.95rem;
    font-weight: 950;
}

.process-item p {
    margin: 8px auto 0;
    color: #71818c;
    font-size: 0.75rem;
    line-height: 1.8;
}

.process-connector {
    position: relative;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: center;
    color: #15958f;
}

    .process-connector::before,
    .process-connector::after {
        width: 35%;
        height: 1px;
        content: "";
        background: #9db9c3;
    }

    .process-connector i {
        margin: 0 3px;
        font-size: 1.2rem;
    }

/* Responsive */

@media (max-width: 1100px) {
    .hero-grid {
        gap: 35px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-box {
        padding: 38px 30px;
    }

    .partners-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 35px;
    }

    .process-list {
        grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr) 50px minmax(0, 1fr) 50px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-section {
        padding: 65px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 1;
        text-align: center;
    }

        .hero-content p {
            margin-inline: auto;
        }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: 2;
        width: min(100%, 680px);
        margin-inline: auto;
    }

    /*
      در تبلت، سه ستون به دو ستون تبدیل می‌شوند
      تا محتوا فشرده و درهم‌ریخته نشود.
    */
    .services-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-column:last-child {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 20px;
    }

    .process-connector {
        display: none;
    }
}

@media (max-width: 650px) {
    .section {
        padding: 65px 0;
    }

    .hero-section {
        padding: 50px 0 55px;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.55;
        letter-spacing: -0.7px;
    }

    .hero-content p {
        font-size: 0.92rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        padding: 25px 0;
    }

    .dashboard-window {
        min-height: 300px;
        grid-template-columns: 42px 1fr;
        transform: none;
    }

    .dashboard-sidebar {
        gap: 14px;
    }

    .dashboard-main {
        padding: 10px;
    }

    .dashboard-chart {
        height: 120px;
        padding: 9px;
    }

    .chart-bars {
        height: 80px;
    }

    .floating-report--right {
        top: 2px;
        right: -5px;
        width: 90px;
    }

    .floating-report--left {
        bottom: 2px;
        left: -4px;
        min-width: 125px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 250px;
    }

    .services-box {
        padding: 30px 16px;
        border-radius: 16px;
    }

    /*
      روی موبایل همه خدمات یک‌ستونه می‌شوند.
    */
    .services-columns {
        grid-template-columns: 1fr;
    }

    .services-column:last-child {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .service-item {
        min-height: auto;
        padding: 18px;
    }

    .partners-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-box {
        padding: 32px 18px;
    }

    .process-list {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .process-item p {
        max-width: 240px;
    }
}
