@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekanbakh-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekanbakh-bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekanbakh-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/yekanbakh-bold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('../fonts/dana-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('../fonts/dana-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* پالت لوگوی ۳۶۵ — نارنجی + آبی برند */
    --orange: #fa7800;
    --orange-dark: #e06600;
    --orange-soft: #fff4eb;
    --primary: #fa7800;
    --blue: #0056c4;
    --navy: #003a8c;
    --navy-deep: #00205c;
    --blue-soft: #eaf2fc;
    --link: #0056c4;
    --bg: #f0f0f1;
    --card: #ffffff;
    --text: #0c0c0c;
    --muted: #81858b;
    --line: #e0e0e2;
    --chip: #f3f3f3;
    --radius: 8px;
    --shadow: 0 4px 16px rgba(12, 12, 12, 0.06);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: YekanBakh, Dana, Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    overflow: visible;
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(243, 246, 251, 0.88);
    backdrop-filter: blur(16px);
    transition: background .2s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(0, 32, 92, 0.06);
}

.site-header.is-scrolled::before {
    background: rgba(255, 255, 255, 0.94);
}

.header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding-inline: 16px;
    box-sizing: border-box;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--navy-deep);
    flex-shrink: 0;
}

.brand img { height: 44px; }

.nav-desktop {
    display: flex;
    gap: 6px;
    margin-inline-start: auto;
}

.nav-desktop a,
.nav a {
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.nav-desktop a:hover,
.nav a:hover { color: var(--navy); background: var(--blue-soft); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-cta {
    height: 44px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav,
.nav-panel-head,
.nav-backdrop {
    display: none;
}

.nav-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-close svg {
    width: 18px;
    height: 18px;
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-btn span {
    display: block;
    height: 2px;
    background: var(--navy);
    border-radius: 99px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--text);
    padding: 28px 0 48px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f1 100%);
    border-bottom: 1px solid var(--line);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center left;
    opacity: .12;
    pointer-events: none;
    filter: grayscale(.2);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--orange-soft, #fff4eb);
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
}

.eyebrow.light { background: rgba(255,255,255,.16); color: #fff; }

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.25;
    font-weight: 800;
    color: var(--text);
}

.lead {
    margin: 16px 0 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-meta {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 560px;
}

.phone {
    margin: 0;
    width: min(280px, 72vw);
    filter: drop-shadow(0 28px 40px rgba(0, 10, 40, 0.38));
}

.phone-body {
    position: relative;
    background: linear-gradient(180deg, #2b2f36 0%, #111318 100%);
    border-radius: 42px;
    padding: 11px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.16),
        inset 0 0 0 3px #0d0f14;
}

.phone-screen {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #f3f6fb;
    aspect-ratio: 9 / 19.4;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.phone-island {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 2;
    width: 92px;
    height: 26px;
    transform: translateX(-50%);
    background: #0b0d12;
    border-radius: 20px;
}

.phone-btn {
    position: absolute;
    background: #1a1d23;
    border-radius: 2px;
}

.phone-btn-r {
    top: 118px;
    right: -3px;
    width: 3px;
    height: 64px;
}

.phone-btn-l {
    left: -3px;
    width: 3px;
}

.phone-btn-l1 { top: 92px; height: 22px; }
.phone-btn-l2 { top: 128px; height: 46px; }
.phone-btn-l3 { top: 182px; height: 46px; }

.phone-hero {
    transform: rotate(-7deg);
}

.download-phones {
    position: relative;
    min-height: 460px;
    display: grid;
    place-items: center;
}

.download-phones .phone-back {
    position: absolute;
    width: min(210px, 54vw);
    transform: translate(-78px, 10px) rotate(-12deg);
    opacity: .92;
}

.download-phones .phone-front {
    position: relative;
    z-index: 1;
    width: min(240px, 62vw);
    transform: translate(36px, 0) rotate(6deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 18px;
    border-radius: 16px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 800;
    border: 0;
    cursor: pointer;
}

.btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.btn span { display: grid; line-height: 1.2; text-align: right; }
.btn small { font-weight: 600; opacity: .8; font-size: 12px; }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-android { background: #fff; color: var(--navy-deep); }
.btn-ios { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.webapp-install[hidden] { display: none !important; }
.webapp-install {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
}
.webapp-install-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 32, 92, .55);
}
.webapp-install-panel {
    position: relative;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    color: var(--navy-deep);
    border-radius: 22px;
    border: 1px solid rgba(250, 120, 0, .35);
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 32, 92, .28);
}
.webapp-install-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.webapp-install-head strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}
.webapp-install-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}
.webapp-install-close {
    border: 0;
    background: var(--blue-soft);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--navy-deep);
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}
.webapp-install-close svg { width: 18px; height: 18px; }
.webapp-install-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.webapp-install-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
}
.webapp-install-card.is-current {
    border-color: var(--orange);
    box-shadow: inset 0 0 0 1px rgba(250, 120, 0, .35);
}
.webapp-install-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--navy);
}
.webapp-install-card ol {
    margin: 0;
    padding-right: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}
.webapp-install-open {
    display: flex;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    background: var(--primary);
    color: #fff;
}
.webapp-install-open:hover { background: var(--orange-dark); }
@media (max-width: 720px) {
    .webapp-install-grid { grid-template-columns: 1fr; }
    .webapp-install-panel { padding: 16px; border-radius: 18px; }
}

.stats {
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.stats-grid article {
    padding: 8px 12px;
    text-align: center;
}

.stats-grid strong {
    display: block;
    font-size: 16px;
    color: var(--navy-deep);
}

.stats-grid span {
    color: var(--muted);
    font-size: 13px;
}

.steps { padding-top: 56px; padding-bottom: 12px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.steps-grid article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.steps-grid span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff3e8;
    color: var(--orange);
    font-weight: 800;
    margin-bottom: 12px;
}

.steps-grid h3 { margin: 0 0 8px; color: var(--navy-deep); }
.steps-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.section { padding: 72px 0; }

.section-head { max-width: 560px; margin-bottom: 32px; }
.section-head .eyebrow { background: var(--blue-soft); color: var(--blue); }
.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(26px, 3vw, 36px);
    color: var(--navy-deep);
}
.section-head p { color: var(--muted); margin: 10px 0 0; }

.feature-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 16px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.feature-card img {
    height: 190px;
    width: 100%;
    object-fit: cover;
}

.feature-card div { padding: 18px; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy-deep); }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.feature-wide { grid-row: span 2; }
.feature-wide img { height: 280px; }

.gallery { background: #fff; }
.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
}

.gallery-grid figure {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}

.gallery-grid img {
    height: 280px;
    width: 100%;
    object-fit: cover;
}

.gallery-grid figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(transparent, rgba(0,32,92,.72));
}

.download-band {
    background: linear-gradient(160deg, #0066d6 0%, #003a8c 55%, #00205c 100%);
    color: #fff;
    padding: 56px 0;
}

.download-inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    align-items: center;
}

.download-inner h2 {
    margin: 8px 0 10px;
    font-size: clamp(26px, 3vw, 38px);
}

.download-inner p { color: rgba(255,255,255,.82); }

.download-inner img,
.download-inner .phone {
    width: min(240px, 100%);
    margin: 0 auto;
}

.download-alert {
    background: rgba(229, 72, 77, .16);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
}

.faq-wrap { max-width: 760px; }
.faq-list { display: grid; gap: 10px; }

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 4px 18px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--navy-deep);
    padding: 14px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--orange); font-size: 22px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); }

.site-footer {
    background: #00163f;
    color: #d7e4f7;
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr .9fr 1fr;
    gap: 28px;
    padding-bottom: 32px;
}

.site-footer .brand { color: #fff; }
.site-footer h3 { margin: 0 0 12px; color: #fff; font-size: 15px; }
.site-footer a, .site-footer p, .site-footer span { display: block; margin-bottom: 8px; color: #c5d4ea; }
.site-footer a:hover { color: #fff; }
.muted { color: #8ea3c3 !important; }

.socials { display: flex; gap: 10px; }
.socials a {
    background: rgba(255,255,255,.08);
    padding: 6px 10px;
    border-radius: 10px;
}

.trust-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust-box {
    min-height: 92px;
    background: #fff;
    border-radius: 16px;
    display: grid;
    place-items: center;
    padding: 8px;
    color: var(--navy);
}

.trust-box img, .trust-box a, .trust-box iframe {
    max-width: 100%;
    max-height: 76px;
}

.trust-placeholder {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    border: 1.5px dashed var(--line);
    width: 100%;
    min-height: 72px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.footer-copy {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 980px) {
    .hero-grid, .download-inner, .feature-grid, .gallery-grid, .footer-grid, .stats-grid, .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    .feature-wide { grid-column: 1 / -1; grid-row: auto; }
    .hero-visual { min-height: 480px; }
}

@media (max-width: 820px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding-inline: 16px;
    }
    .header-brand { gap: 8px; }
    .menu-btn { display: flex; }
    .nav-desktop { display: none !important; }
    .header-actions {
        margin-inline-start: 0;
        display: flex;
    }
    .header-cta {
        display: inline-flex;
        height: 40px;
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 12px;
        white-space: nowrap;
    }
    .nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 86vw);
        height: 100dvh;
        z-index: 120;
        margin: 0;
        background: #fff;
        border: 0;
        border-radius: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 18px 16px 24px;
        box-shadow: -16px 0 40px rgba(0, 20, 60, 0.22);
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform .28s ease, visibility .28s ease;
    }
    .nav.is-open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }
    .nav a {
        padding: 12px 14px;
        font-size: 15px;
        color: var(--navy-deep);
    }
    .nav-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 0 12px;
        padding: 0 0 14px;
        border-bottom: 1px solid var(--line);
    }
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 110;
        background: rgba(0, 20, 60, 0.46);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }
    body.nav-open { overflow: hidden; }
    body.nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .hero-grid, .download-inner, .feature-grid, .gallery-grid, .footer-grid, .stats-grid, .steps-grid {
        grid-template-columns: 1fr;
    }
    .hero { padding-top: 18px; }
    .phone-hero,
    .download-phones .phone-front,
    .download-phones .phone-back { transform: none; }
    .download-phones { min-height: 0; }
    .download-phones .phone-back { display: none; }
    .gallery-grid img, .feature-wide img, .feature-card img { height: 210px; }
    .hero-actions .btn { width: 100%; }
    .trust-boxes { grid-template-columns: 1fr; }
}
