﻿@font-face {
    font-family: myfont;
    src: url('ffontM.woff') format('woff');
}

@font-face {
    font-family: myfont;
    src: url('ffontB.woff') format('woff');
    font-weight: bold;
}

@font-face {
    font-family: myfont;
    src: url('fontL.woff') format('woff');
    font-style: italic;
}

* {
    font-family: myfont;
    
}

:root {
    --color-primary: #4A6CF7;
    --color-secondary: #090E34;
    --color-accent: #30E0A3;
    --color-bg: #FFFFFF;
    --color-text: #637381;
    --color-heading: #090E34;
    --font-family: 'Vazirmatn', sans-serif;
    --section-padding: 100px 0;
    --card-shadow: 0 10px 30px rgba(9, 14, 52, 0.07);
    --container-width: 1140px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
}

.container {
    max-width: 1170px;
    margin: auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* --- General & Reusable Classes --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.4);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(74, 108, 247, 0.5);
    }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

    .section-header .tag {
        display: inline-block;
        background-color: rgba(74, 108, 247, 0.1);
        color: var(--color-primary);
        padding: 5px 15px;
        border-radius: 20px;
        font-weight: 500;
        margin-bottom: 15px;
    }

    .section-header h2 {
        font-size: 40px;
        font-weight: 800;
        color: var(--color-heading);
        margin-bottom: 20px;
    }

    .section-header p {
        font-size: 18px;
        max-width: 600px;
        margin: auto;
    }

/* --- Header --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 15px 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

    .nav-links a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 500;
    }
.scrolled .nav-links a {
    color:var(--color-heading)
}
/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

/* --- Hero Section --- */
/*#hero {
    padding: 180px 0 120px 0;
    text-align: center;
}*/
#hero {
    height: 100vh;
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)), url('bg.jpg') no-repeat center center/contain;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-color);
}

    #hero h1 {
        font-size: 60px;
        font-weight: 800;
        color: #fff;
        margin-bottom: 25px;
        line-height: 1.2;
    }

        #hero h1 .highlight {
            color: var(--color-primary);
        }

    #hero p {
        font-size: 20px;
        max-width: 700px;
        margin: 45px auto 40px auto;
        color: #fff;
        line-height: 2.8rem;
    }

.partners {
    padding: 50px 0;
    text-align: center;
}

    .partners h3 {
        color: #A0AEC0;
        font-weight: 500;
        margin-bottom: 30px;
    }

.partner-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    filter: grayscale(100%) opacity(0.6);
}

/* --- Before & After Section --- */
#problem {
    padding: var(--section-padding);
    background-color: #F8F9FF;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.problem-card {
    padding: 40px;
    border-radius: 12px;
}

    .problem-card h3 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .problem-card ul {
        list-style: none;
        padding: 0;
    }

    .problem-card li {
        margin-bottom: 15px;
        display: flex;
        align-items: flex-start;
    }

        .problem-card li::before {
            content: '❌';
            margin-left: 10px;
            font-size: 20px;
        }

#before-card {
    background-color: #FFF5F5;
    border: 1px solid #FED7D7;
}

    #before-card h3 {
        color: #C53030;
    }

#after-card {
    background-color: #F0FFF4;
    border: 1px solid #C6F6D5;
}

    #after-card h3 {
        color: #2F855A;
    }

    #after-card li::before {
        content: '✅';
    }

/* --- Transparency Journey Section --- */
#journey {
    padding: var(--section-padding);
}

.journey-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
}

.journey-steps {
    position: relative;
}

.journey-step {
    padding: 20px;
    margin-bottom: 80vh;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

    .journey-step.active {
        opacity: 1;
    }

    .journey-step .tag {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .journey-step h3 {
        font-size: 28px;
        margin-bottom: 15px;
    }

.journey-visual {
    position: sticky;
    top: 150px;
    height: 70vh;
}

.visual-background {
    width: 100%;
    height: 100%;
    background: url('process.png') no-repeat center center;
    background-size: contain;
    /*opacity: 0.1;*/
}

.visual-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(74, 108, 247, 0.3);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* --- ROI Calculator Section --- */
#roi {
    padding: var(--section-padding);
    background-color: var(--color-secondary);
}

    #roi .section-header h2,
    #roi .section-header p {
        color: white;
    }

.roi-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.roi-inputs label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.roi-inputs input[type="range"] {
    width: 100%;
}

.roi-output {
    background-color: #F8F9FF;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

    .roi-output h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

#savings-output {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-accent);
}

/* --- FAQ Section --- */
#faq{
    margin-top:30px;
    margin-bottom:35px
}
.faq-item {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    padding: 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .faq-question span {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #CBD5E0;
        border-radius: 50%;
        transition: all 0.3s;
    }

.faq-item.active .faq-question span {
    transform: rotate(45deg);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

    .faq-answer p {
        padding: 0 20px 20px;
    }

/* --- Footer --- */
footer {
    padding: 60px 0;
    background-color: var(--color-secondary);
    color: #A0AEC0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about p {
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 18px;
    color: white;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-col a:hover {
        color: white;
    }

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ----------------------------- */
/* Responsive Styles */
/* ----------------------------- */

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    #hero h1 {
        font-size: 50px;
    }

    .journey-step h3 {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .journey-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .journey-visual {
        display: none;
    }

    .journey-step {
        margin-bottom: 40px;
    }

    .roi-calculator {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 15px;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }

        .nav-links.active {
            right: 0;
        }

    #hero {
        padding: 120px 0 80px 0;
    }

        #hero h1 {
            font-size: 36px;
        }

        #hero p {
            font-size: 18px;
        }

    .section-header h2 {
        font-size: 32px;
    }

    .problem-card {
        padding: 30px;
    }

        .problem-card h3 {
            font-size: 24px;
        }

    .journey-step h3 {
        font-size: 22px;
    }

    .partner-logos img {
        width: 80px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    #hero h1 {
        font-size: 30px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .problem-card {
        padding: 20px;
    }

    .roi-calculator {
        padding: 30px 20px;
    }

    #savings-output {
        font-size: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-about p {
        max-width: 100%;
    }
}


/* بخش شفافیت مالی */
.transparency-section {
    padding: 120px 40px;
    background: rgba(0, 0, 0, 0.8);
}

.transparency-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.transparency-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 30px;
    background:  #00ff88;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.transparency-features {
    list-style: none;
    padding: 0;
}

    .transparency-features li {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        font-size: 18px;
        color: rgba(255, 255, 255, 0.9);
    }

        .transparency-features li::before {
            content: '✓';
            width: 30px;
            height: 30px;
            background: linear-gradient(45deg, #00ff88, #00cc6a);
            color: #000;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            margin-left: 15px;
            font-size: 16px;
        }

.financial-preview {
    background: #00ff881a;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/*    .financial-preview::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #00ff88, #ff0088, #8800ff);
    }*/

.preview-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #00ff88;
    text-align: center;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .cost-item:last-child {
        border-bottom: 2px solid #00ff88;
        font-weight: 700;
        color: #00ff88;
        font-size: 18px;
    }


@media (max-width: 768px) {
    .transparency-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.ecosystem-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
    position: relative;
    overflow: hidden;
}

    .ecosystem-section::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(74, 108, 247, 0.1) 0%, rgba(74, 108, 247, 0) 70%);
        z-index: 0;
    }

    .ecosystem-section::after {
        content: '';
        position: absolute;
        bottom: -100px;
        left: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(48, 224, 163, 0.1) 0%, rgba(48, 224, 163, 0) 70%);
        z-index: 0;
    }

.ecosystem-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.ecosystem-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(9, 14, 52, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(74, 108, 247, 0.1);
}

    .ecosystem-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(9, 14, 52, 0.15);
        border-color: rgba(74, 108, 247, 0.3);
    }

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.1) 0%, rgba(74, 108, 247, 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

    .card-icon svg {
        width: 28px;
        height: 28px;
        color: var(--color-primary);
    }

.ecosystem-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 15px;
}

.ecosystem-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 20px;
}

.card-wave {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ecosystem-card:hover .card-wave {
    transform: scaleX(1);
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecosystem-card {
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

    .ecosystem-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .ecosystem-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .ecosystem-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .ecosystem-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .ecosystem-card:nth-child(5) {
        animation-delay: 0.5s;
    }

/* Responsive Styles */
@media (max-width: 1200px) {
    .ecosystem-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 992px) {
    .ecosystem-section {
        padding: 80px 0;
    }

    .ecosystem-card {
        padding: 30px 25px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

        .card-icon svg {
            width: 24px;
            height: 24px;
        }
}

@media (max-width: 768px) {
    .ecosystem-cards-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .ecosystem-card {
        padding: 30px;
    }

        .ecosystem-card h3 {
            font-size: 20px;
        }
}

@media (max-width: 576px) {
    .ecosystem-section {
        padding: 60px 0;
    }

    .ecosystem-card {
        padding: 25px 20px;
    }
}