/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Yekan Bakh', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7fafd;
    color: #1a2634;
    direction: rtl;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ============================================================
   COLOR PALETTE
   ============================================================ */
:root {
    --navy: #0b1a2e;
    --navy-light: #142b44;
    --blue: #1a6bcf;
    --blue-light: #4a8fe0;
    --cyan: #00b4d8;
    --orange: #f57c00;
    --orange-light: #ffa726;
    --white: #ffffff;
    --gray-100: #f0f4f8;
    --gray-200: #e2e8f0;
    --gray-500: #8899aa;
    --gray-700: #3a4a5a;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.25);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.light {
    color: var(--white);
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--blue);
    background: rgba(26, 107, 207, 0.08);
    padding: 4px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--navy);
}

.section-header.light h2 {
    color: var(--white);
}

.section-header p {
    font-size: 17px;
    color: var(--gray-700);
    max-width: 640px;
    margin: 10px auto 0;
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.7);
}

.highlight-fz {
    color: var(--blue);
}
.highlight-gps {
    color: var(--cyan);
}
.highlight-orange {
    color: var(--orange);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--navy);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(26, 107, 207, 0.25);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo a {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-fz {
    color: var(--blue);
}
.logo-gps {
    color: var(--cyan);
}
.logo-ir {
    color: var(--orange);
    font-size: 18px;
    font-weight: 300;
}
.logo-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-500);
    margin-right: 8px;
    letter-spacing: 0.5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.main-nav ul li a {
    color: #ccd8e8;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.main-nav ul li a:hover {
    color: var(--white);
    border-bottom-color: var(--blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 180, 216, 0.12);
    color: var(--cyan);
    padding: 5px 18px;
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid rgba(0, 180, 216, 0.15);
    margin-bottom: 18px;
}

.hero-badge i {
    margin-left: 8px;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-iran {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.map-iran svg {
    width: 100%;
    height: auto;
}

.map-outline {
    fill: rgba(26, 107, 207, 0.08);
    stroke: rgba(0, 180, 216, 0.3);
    stroke-width: 2;
}

.map-grid {
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 1;
    fill: none;
}

.gps-dot {
    fill: var(--orange);
    opacity: 0.9;
    animation: pulse-dot 2.5s ease-in-out infinite;
}

.gps-dot:nth-child(2) {
    animation-delay: 0.3s;
}
.gps-dot:nth-child(3) {
    animation-delay: 0.6s;
}
.gps-dot:nth-child(4) {
    animation-delay: 0.9s;
}
.gps-dot:nth-child(5) {
    animation-delay: 1.2s;
}
.gps-dot:nth-child(6) {
    animation-delay: 1.5s;
}
.gps-dot:nth-child(7) {
    animation-delay: 1.8s;
}
.gps-dot:nth-child(8) {
    animation-delay: 2.1s;
}

@keyframes pulse-dot {
    0%,
    100% {
        r: 10;
        opacity: 0.9;
    }
    50% {
        r: 16;
        opacity: 0.4;
    }
}

.gps-label {
    fill: rgba(255, 255, 255, 0.6);
    font-size: 8px;
    font-weight: 500;
    text-anchor: middle;
}

.route {
    stroke: rgba(0, 180, 216, 0.2);
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 4 4;
}

.moving-dot {
    fill: var(--cyan);
    opacity: 0.7;
}

.map-overlay-text {
    position: absolute;
    bottom: 10%;
    right: 50%;
    transform: translateX(50%);
    color: rgba(255, 255, 255, 0.08);
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 2px;
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(70% 60% at 50% 100%);
    opacity: 0.04;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--gray-100);
    padding: 32px 24px;
    border-radius: 18px;
    text-align: center;
    transition: 0.35s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(26, 107, 207, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--white);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 15px;
    color: var(--gray-500);
}

.service-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    transition: 0.3s;
}

.service-link:hover {
    color: var(--orange);
    gap: 8px;
}

/* ============================================================
   ZONES
   ============================================================ */
.zones {
    padding: 80px 0;
    background: var(--gray-100);
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.zone-card {
    background: var(--white);
    padding: 28px 18px 22px;
    border-radius: 18px;
    text-align: center;
    transition: 0.35s ease;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.zone-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.zone-icon {
    font-size: 34px;
    color: var(--blue);
    margin-bottom: 6px;
}

.zone-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
}

.zone-location {
    font-size: 14px;
    color: var(--gray-500);
}

.zone-status {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background: #22c55e;
}

.status-dot.pending {
    background: var(--orange);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.zone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    margin-top: 8px;
    transition: 0.3s;
}

.zone-card:hover .zone-link {
    color: var(--orange);
    gap: 12px;
}

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.architecture {
    padding: 80px 0;
    background: var(--white);
}

.arch-diagram {
    max-width: 780px;
    margin: 0 auto;
}

.arch-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6px;
}

.arch-node {
    background: var(--gray-100);
    padding: 18px 32px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: 0.3s;
    width: 100%;
    max-width: 480px;
    color: var(--navy);
}

.arch-node:hover {
    border-color: var(--blue);
    background: rgba(26, 107, 207, 0.03);
}

.arch-node.main-node {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-color: var(--blue);
    color: var(--white);
}

.arch-node.main-node .arch-sub {
    color: rgba(255, 255, 255, 0.5);
}

.arch-node.portal-node {
    border-color: var(--cyan);
    background: rgba(0, 180, 216, 0.04);
}

.arch-node.fleet-node {
    border-color: var(--orange);
    background: rgba(245, 124, 0, 0.04);
}

.arch-node.data-node {
    border-color: var(--blue-light);
    background: rgba(74, 143, 224, 0.04);
}

.arch-node.dashboard-node {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.04);
}

.arch-label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
}

.arch-node.main-node .arch-label {
    color: var(--white);
}

.arch-sub {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-500);
    margin-top: 2px;
}

.arch-nodes-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.arch-nodes-row .arch-node {
    flex: 0 0 auto;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    width: auto;
    background: var(--gray-100);
}

.arch-arrow {
    font-size: 28px;
    color: var(--gray-200);
    padding: 4px 0;
    line-height: 1;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: 80px 0;
    background: var(--gray-100);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 8px;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 18px;
}

.about-text p {
    font-size: 16px;
    color: var(--gray-700);
    margin-bottom: 14px;
    line-height: 1.8;
}

.about-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-icon-wrap {
    width: 240px;
    height: 240px;
    background: linear-gradient(145deg, var(--navy), var(--navy-light));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(11, 26, 46, 0.15);
}

.about-icon-wrap i {
    font-size: 52px;
    color: var(--orange);
    margin-bottom: 6px;
}

.about-icon-wrap span {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
}

.about-icon-wrap small {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    padding: 80px 0;
    background: var(--white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--gray-100);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: 0.3s;
}

.faq-item:hover {
    border-color: rgba(26, 107, 207, 0.2);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    transition: 0.3s;
}

.faq-question h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
}

.faq-toggle {
    font-size: 18px;
    color: var(--blue);
    transition: 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.8;
}

.faq-answer a {
    color: var(--blue);
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: 80px 0;
    background: var(--navy);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item i {
    font-size: 22px;
    color: var(--orange);
    min-width: 30px;
    margin-top: 4px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
}

.contact-item a {
    color: var(--cyan);
}

.contact-item a:hover {
    text-decoration: underline;
}

.map-box {
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.map-box i {
    font-size: 48px;
    color: var(--orange);
    display: block;
    margin-bottom: 12px;
}

.map-box p {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #060f1a;
    color: #8899aa;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-brand .logo a {
    font-size: 24px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 8px;
    max-width: 240px;
}

.footer-links h4,
.footer-company h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    font-size: 14px;
    color: var(--gray-500);
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--cyan);
}

.footer-company .company-name {
    color: var(--gray-200);
    font-size: 14px;
}

.footer-company .company-web a {
    color: var(--cyan);
    font-size: 14px;
}

.footer-company .company-phone {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 6px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #667788;
}

.footer-bottom strong {
    color: var(--gray-200);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zones-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-links {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .main-nav ul li a {
        font-size: 16px;
    }

    .header-actions .btn-sm {
        display: none;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .zones-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header h2 {
        font-size: 26px;
    }

    .arch-nodes-row {
        gap: 8px;
    }

    .arch-nodes-row .arch-node {
        font-size: 12px;
        padding: 6px 12px;
    }

    .arch-node {
        padding: 14px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .about-icon-wrap {
        width: 180px;
        height: 180px;
    }

    .about-icon-wrap i {
        font-size: 38px;
    }

    .about-icon-wrap span {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .zones-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .logo a {
        font-size: 20px;
    }

    .logo-ir {
        font-size: 14px;
    }

    .logo-sub {
        display: none;
    }

    .map-overlay-text {
        font-size: 18px;
        bottom: 5%;
    }
}