@font-face {
    font-family: "Vazirmatn";
    src: url("fonts/Vazirmatn-Variable.woff2") format("woff2-variations");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --orange: #ff7514;
    --orange-dark: #d94f00;
    --charcoal: #403e4f;
    --ink: #191823;
    --blue: #3975d8;
    --surface: #ffffff;
    --surface-soft: #f4f4f7;
    --border: #dedee5;
    --muted: #676675;
    --content: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--surface);
    color: var(--ink);
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.8;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(64, 62, 79, 0.12);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(calc(100% - 40px), var(--content));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 850;
    text-decoration: none;
}

.brand img,
.footer-brand img {
    border-radius: 12px;
}

.site-header nav,
.site-footer nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.site-header nav a,
.site-footer nav a {
    color: var(--charcoal);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
    color: var(--orange-dark);
}

.hero {
    min-height: min(820px, calc(100vh - 76px));
    overflow: hidden;
    background: var(--orange);
    color: #fff;
}

.hero__inner {
    position: relative;
    width: min(calc(100% - 40px), var(--content));
    min-height: inherit;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero__copy {
    position: relative;
    z-index: 2;
    width: min(620px, 62%);
    padding: 80px 0 120px;
}

.eyebrow {
    margin: 0 0 12px;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 900;
    line-height: 1.35;
}

.hero__slogan {
    max-width: 620px;
    margin: 24px 0 0;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    line-height: 1.6;
}

.hero__description {
    max-width: 590px;
    margin: 24px 0 0;
    font-size: clamp(18px, 2vw, 23px);
}

.hero__phone {
    position: absolute;
    bottom: -170px;
    left: -60px;
    width: min(48vw, 520px);
    height: auto;
    transform: rotate(-4deg);
}

.store-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    direction: ltr;
}

.store-links a {
    display: inline-flex;
    min-height: 52px;
}

.store-links img {
    display: block;
    width: 164px;
    height: 52px;
}

.intro {
    width: min(calc(100% - 40px), 760px);
    margin: 0 auto;
    padding: 96px 0 64px;
    text-align: center;
}

.intro .eyebrow,
.download .eyebrow {
    color: var(--orange-dark);
}

.intro h2,
.download h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 850;
    line-height: 1.45;
}

.intro > p:last-child,
.download p {
    color: var(--muted);
    font-size: 18px;
}

.features {
    border-top: 1px solid var(--border);
}

.feature {
    width: min(calc(100% - 40px), var(--content));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    align-items: center;
    gap: 72px;
    padding: 72px 0;
}

.feature + .feature {
    border-top: 1px solid var(--border);
}

.feature--reverse .feature__copy {
    grid-column: 2;
    grid-row: 1;
}

.feature--reverse .feature__media {
    grid-column: 1;
    grid-row: 1;
}

.feature__number {
    display: block;
    margin-bottom: 16px;
    color: var(--orange-dark);
    font-size: 16px;
    font-weight: 700;
}

.feature__copy h3 {
    margin: 0 0 20px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.45;
}

.feature__copy p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
}

.feature__media {
    align-self: end;
    display: flex;
    justify-content: center;
    overflow: hidden;
    height: 620px;
}

.feature__media img {
    display: block;
    width: min(100%, 390px);
    height: auto;
    object-fit: contain;
    object-position: bottom;
}

.download {
    width: min(calc(100% - 40px), var(--content));
    margin: 64px auto;
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-top: 6px solid var(--orange);
    background: var(--surface-soft);
}

.download .store-links {
    flex-shrink: 0;
    margin-top: 0;
}

.site-footer {
    padding: 56px max(20px, calc((100% - var(--content)) / 2));
    background: var(--charcoal);
    color: #fff;
}

.site-footer__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand strong {
    display: block;
    font-size: 20px;
}

.footer-brand p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.site-footer nav a {
    color: #fff;
}

.copyright {
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 900px) {
    .site-header__inner {
        min-height: 68px;
    }

    .site-header nav {
        gap: 16px;
    }

    .site-header nav a[href="#support"] {
        display: none;
    }

    .hero {
        min-height: 850px;
    }

    .hero__inner {
        align-items: flex-start;
    }

    .hero__copy {
        width: 100%;
        padding-top: 64px;
        text-align: center;
    }

    .hero h1,
    .hero__slogan,
    .hero__description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero__phone {
        right: 50%;
        bottom: -330px;
        left: auto;
        width: min(82vw, 430px);
        transform: translateX(50%) rotate(-2deg);
    }

    .hero .store-links {
        justify-content: center;
    }

    .feature,
    .feature--reverse {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 56px 0 0;
        text-align: center;
    }

    .feature .feature__copy,
    .feature--reverse .feature__copy,
    .feature .feature__media,
    .feature--reverse .feature__media {
        grid-column: 1;
    }

    .feature .feature__copy,
    .feature--reverse .feature__copy {
        grid-row: 1;
    }

    .feature .feature__media,
    .feature--reverse .feature__media {
        grid-row: 2;
    }

    .feature__copy p {
        margin-right: auto;
        margin-left: auto;
    }

    .feature__media {
        height: 540px;
    }

    .feature__media img {
        width: min(76vw, 350px);
    }

    .download,
    .site-footer__main {
        flex-direction: column;
        text-align: center;
    }

    .download {
        padding: 48px 24px;
    }

    .download .store-links,
    .site-footer nav {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .site-header__inner {
        width: min(calc(100% - 28px), var(--content));
    }

    .brand span {
        display: none;
    }

    .site-header nav {
        gap: 14px;
    }

    .site-header nav a {
        font-size: 13px;
    }

    .hero__inner,
    .intro,
    .feature,
    .download {
        width: min(calc(100% - 28px), var(--content));
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.55;
    }

    .hero__description {
        font-size: 17px;
    }

    .store-links {
        justify-content: center;
    }

    .store-links img {
        width: 148px;
        height: 48px;
    }

    .intro {
        padding-top: 72px;
    }

    .feature__copy h3 {
        font-size: 30px;
    }

    .feature__copy p {
        font-size: 17px;
    }

    .feature__media {
        height: 470px;
    }

    .site-footer {
        padding: 48px 20px;
    }

    .footer-brand {
        flex-direction: column;
    }

    .site-footer nav {
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.site-header nav .account-link { color: var(--orange-dark); font-weight: 800; }

.guide-link { display: inline-block; margin-top: 24px; color: #9b3800; font-weight: 700; text-underline-offset: 5px; }

.learning-resources { width:min(calc(100% - 32px), 1024px); margin:72px auto; }
.learning-resources h2 { font-size:clamp(28px,4vw,40px); margin:0 0 20px; }
.learning-resources > p a { color:#9b3800; text-underline-offset:4px; }
.resource-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:28px; }
.resource-card { padding:24px; border:1px solid var(--border); border-radius:12px; text-decoration:none; }
.resource-card:hover { background:#fff4e9; }
.resource-card:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.resource-card h3 { margin:0 0 10px; font-size:20px; }
.resource-card p { margin:0; color:var(--muted); }
@media(max-width:800px) { .resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .resource-grid { grid-template-columns:1fr; } }
