@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;800&display=swap');

:root {
    --bg-dark: #0A192F;
    --bg-dark-2: #112240;
    --bg-light: #F8FAFC;
    --card-bg: rgba(255, 255, 255, 0.08);
    --text-light: #E6F1FF;
    --text-soft: #CCD6F6;
    --text-dark: #1E293B;
    --primary: #38BDF8;
    --primary-dark: #0EA5E9;
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow: 0 20px 60px rgba(2, 8, 23, 0.18);
    --radius: 22px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container,
.nav-container,
.hero-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

/* Header - Darker */
.main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(10, 25, 47, 0.99);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.nav-container {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 52px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #00111f;
    font-weight: 700;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.car-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.car-base,
.car-lights {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.car-base {
    opacity: 1;
    transform: scale(1);
}

.car-lights {
    opacity: 0;
    transform: scale(1.01);
}

.hero:hover .car-base {
    opacity: 0.96;
    transform: scale(1.02);
}

.hero:hover .car-lights {
    opacity: 1;
    transform: scale(1.02);
}

.hero-overlay {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    min-width: 900px;
    margin-right: 40px;
    background: linear-gradient(
        to left,
        rgba(10, 25, 47, 0.85) 0%,
        rgba(10, 25, 47, 0.4) 50%,
        transparent 100%
    );
}

.hero-container {
    width: min(900px, calc(100% - 38px));
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 620px;
    color: #fff;
    padding: 34px;
    border-radius: 28px;
    background: rgba(8, 18, 35, 0.26);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    color: #A5F3FC;
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-size: 14px;
    font-weight: 1000;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.35;
    margin-bottom: 18px;
    font-weight: 1000;
    color: var(--text-light);
}

.highlight {
    color: var(--primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-soft);
    margin-bottom: 28px;
    max-width: 54ch;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-main {
    background: var(--primary);
    color: #00111f;
}

.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-link {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.stat-card {
    min-width: 170px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: #fff;
}

.stat-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--primary);
}

.stat-card span {
    font-size: 14px;
    color: var(--text-soft);
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 42px;
    color: var(--bg-dark);
    font-weight: 800;
}

/* Features - Orange Hover */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 4px;
    background: transparent;
    border-radius: 999px;
    transition: var(--transition);
}

.feature-card:hover::after {
    background: #141515;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), #7DD3FC);
    color: #01253a;
    display: grid;
    place-items: center;
    font-size: 28px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--bg-dark);
}

.feature-card p {
    color: #475569;
}

/* FAQ */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.faq-item {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: none;
    background: transparent;
    padding: 22px 24px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 24px 22px;
    color: #475569;
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: var(--text-soft);
    text-align: center;
    padding: 24px 0;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(10, 25, 47, 0.90) 0%,
                rgba(10, 25, 47, 0.62) 45%,
                rgba(10, 25, 47, 0.28) 100%
            );
    }

    .hero-container {
        display: flex;
        align-items: flex-end;
        min-height: 100vh;
        padding-bottom: 40px;
    }

    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(10, 25, 47, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: var(--transition);
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 16px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-btn {
        display: none;
    }

    .hero {
        min-height: 92vh;
    }

    .hero-container {
        width: min(100% - 26px, 1200px);
        padding-top: 110px;
    }

    .hero-content {
        padding: 17px 13px;
        border-radius: 22px;
    }

    .hero-content h1 {
        font-size: 13px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat-card {
        width: 100%;
    }

    .section {
        padding: 75px 0;
    }

    .section-title {
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 44px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .btn,
    .nav-btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-question {
        font-size: 15px;
        padding: 18px;
    }

    .faq-answer p {
        padding-left: 18px;
        padding-right: 18px;
         text-align: justify;
    }
}
.code-overlay {
    animation: scrollCode 20s linear infinite;
}

@keyframes scrollCode {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

