@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap");

:root {
    --orange: #ff9418;
    --orange-deep: #f47f00;
    --orange-soft: #fff0dc;
    --navy: #172133;
    --navy-soft: #273247;
    --cream: #fffaf3;
    --white: #ffffff;
    --gray: #7d8491;
    --gray-light: #e8e8e8;
    --green: #20a66a;
    --shadow: 0 28px 70px rgba(40, 31, 18, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--navy);
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 148, 24, 0.13), transparent 25%),
        radial-gradient(circle at 94% 42%, rgba(255, 148, 24, 0.1), transparent 24%),
        linear-gradient(180deg, #fffaf3 0%, #fff 62%, #fff8ef 100%);
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

a {
    color: inherit;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: -3;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.ambient {
    position: fixed;
    z-index: -2;
    border-radius: 999px;
    filter: blur(8px);
    pointer-events: none;
}

.ambient-one {
    top: 170px;
    right: -150px;
    width: 380px;
    height: 380px;
    background: rgba(255, 148, 24, 0.09);
}

.ambient-two {
    bottom: 80px;
    left: -120px;
    width: 320px;
    height: 320px;
    background: rgba(23, 33, 51, 0.045);
}

.site-shell {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand img {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    box-shadow: 0 12px 27px rgba(244, 127, 0, 0.25);
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand strong {
    font-size: 20px;
    font-weight: 900;
}

.brand small {
    margin-top: 6px;
    color: var(--orange-deep);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.online-state {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid rgba(23, 33, 51, 0.08);
    border-radius: 999px;
    color: #636a76;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 30px rgba(23, 33, 51, 0.05);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(32, 166, 106, 0.1);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(32, 166, 106, 0.1); }
    50% { box-shadow: 0 0 0 9px rgba(32, 166, 106, 0.02); }
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 70px;
    min-height: 510px;
    padding: 48px 44px;
    overflow: hidden;
    border: 1px solid rgba(23, 33, 51, 0.07);
    border-radius: 42px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,238,.89));
    box-shadow: var(--shadow);
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: -180px;
    left: -120px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: rgba(255, 148, 24, 0.1);
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    border: 55px solid rgba(255, 148, 24, 0.045);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #d66d00;
    background: var(--orange-soft);
    font-size: 12px;
    font-weight: 800;
}

.hero-label span {
    font-size: 14px;
}

.hero h1 {
    max-width: 680px;
    margin: 23px 0 16px;
    font-size: clamp(42px, 5.7vw, 72px);
    line-height: 1.2;
    letter-spacing: -2.2px;
}

.hero h1 span {
    position: relative;
    display: inline-block;
    color: var(--orange-deep);
}

.hero h1 span::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 3px;
    z-index: -1;
    width: 94%;
    height: 13px;
    border-radius: 999px;
    background: rgba(255, 148, 24, 0.16);
    transform: rotate(-1deg);
}

.hero p {
    max-width: 600px;
    margin: 0;
    color: var(--gray);
    font-size: 16px;
    line-height: 2;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 27px;
    color: #505866;
    font-size: 12px;
    font-weight: 600;
}

.trust-row div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: white;
    background: var(--orange);
    font-size: 11px;
    font-weight: 900;
}

.hero-logo-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: 330px;
}

.hero-logo-wrap img {
    position: relative;
    z-index: 3;
    width: min(270px, 70vw);
    aspect-ratio: 1;
    border-radius: 64px;
    box-shadow:
        0 35px 55px rgba(244, 127, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-11px) rotate(1deg); }
}

.logo-glow {
    position: absolute;
    z-index: 0;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 148, 24, 0.19);
    filter: blur(40px);
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(244, 127, 0, 0.25);
}

.orbit-one {
    width: 330px;
    height: 330px;
    animation: spin 20s linear infinite;
}

.orbit-two {
    width: 385px;
    height: 385px;
    border-color: rgba(23, 33, 51, 0.09);
    animation: spinReverse 27s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spinReverse {
    to { transform: rotate(-360deg); }
}

.floating-tag {
    position: absolute;
    z-index: 4;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    color: var(--navy);
    background: rgba(255,255,255,.84);
    box-shadow: 0 14px 30px rgba(23, 33, 51, 0.11);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.tag-fast {
    top: 37px;
    right: 7px;
}

.tag-safe {
    left: 4px;
    bottom: 44px;
}

.download-section {
    padding: 86px 0 38px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-kicker {
    color: var(--orange-deep);
    font-size: 12px;
    font-weight: 800;
}

.section-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(28px, 4vw, 42px);
}

.files-count {
    padding: 8px 13px;
    border-radius: 999px;
    color: #696f79;
    background: #f4f2ef;
    font-size: 12px;
    font-weight: 700;
}

.download-list {
    display: grid;
    gap: 20px;
}

.download-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    padding: 31px;
    border: 1px solid rgba(23, 33, 51, 0.08);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 70px rgba(47, 37, 22, 0.09);
    transition: transform .25s ease, box-shadow .25s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(47, 37, 22, 0.13);
}

.file-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 150px;
    height: 170px;
    overflow: hidden;
    border-radius: 27px;
    color: white;
    background:
        linear-gradient(145deg, #ffab3e, var(--orange-deep));
    box-shadow: 0 20px 38px rgba(244, 127, 0, 0.25);
}

.file-visual::before {
    content: "";
    position: absolute;
    right: -29px;
    bottom: -33px;
    width: 115px;
    height: 115px;
    border: 24px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.file-extension {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
}

.file-fold {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 0 0 18px 0;
    background: rgba(255, 255, 255, 0.24);
}

.file-content {
    min-width: 0;
}

.file-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.new-badge {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--orange-deep);
    font-size: 11px;
    font-weight: 800;
}

.file-title-row h3 {
    margin: 0;
    font-size: 25px;
}

.verified {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--green);
    background: rgba(32, 166, 106, 0.08);
    font-size: 11px;
    font-weight: 700;
}

.verified span {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    color: white;
    background: var(--green);
    font-size: 9px;
}

.file-content > p {
    max-width: 760px;
    margin: 12px 0 18px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.9;
}

.file-information {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.file-information span {
    min-width: 105px;
    padding: 10px 13px;
    border: 1px solid rgba(23, 33, 51, 0.065);
    border-radius: 13px;
    color: #474e5b;
    background: #fbfaf8;
    font-size: 12px;
    font-weight: 700;
}

.file-information small {
    display: block;
    margin-bottom: 3px;
    color: #9a9da4;
    font-size: 9px;
    font-weight: 600;
}

.download-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 245px;
    min-height: 66px;
    padding: 0 18px;
    overflow: hidden;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    box-shadow: 0 18px 35px rgba(244, 127, 0, 0.27);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease;
}

.download-button::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -45%;
    width: 35%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    transform: rotate(20deg);
    transition: left .65s ease;
}

.download-button:hover::before {
    left: 115%;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px rgba(244, 127, 0, 0.34);
}

.button-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    border-radius: 13px;
    background: rgba(255,255,255,.18);
}

.button-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.button-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    line-height: 1.25;
}

.button-text strong {
    font-size: 14px;
}

.button-text small {
    margin-top: 4px;
    color: rgba(255,255,255,.72);
    font-size: 9px;
}

.button-arrow {
    font-size: 22px;
    transition: transform .2s ease;
}

.download-button:hover .button-arrow {
    transform: translateX(-4px);
}

.download-button.is-loading {
    pointer-events: none;
    filter: saturate(.7);
}

.download-button.is-loading .button-arrow {
    animation: bounceArrow .7s infinite alternate;
}

@keyframes bounceArrow {
    to { transform: translateY(3px); }
}

.secure-caption {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #777e89;
    font-size: 11px;
}

.shield {
    color: var(--orange);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    margin: 35px 0 70px;
}

.features article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 21px;
    border: 1px solid rgba(23, 33, 51, 0.07);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.features article > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 15px;
    color: var(--orange-deep);
    background: var(--orange-soft);
    font-size: 18px;
    font-weight: 900;
}

.features div {
    display: flex;
    flex-direction: column;
}

.features strong {
    font-size: 13px;
}

.features small {
    margin-top: 4px;
    color: var(--gray);
    font-size: 10px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0 38px;
    border-top: 1px solid rgba(23, 33, 51, 0.08);
    color: #9297a0;
    font-size: 11px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-weight: 800;
}

.footer-brand img {
    width: 35px;
    height: 35px;
    border-radius: 11px;
}

footer p {
    margin: 0;
}

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 48px 28px;
        text-align: center;
    }

    .hero-copy {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .hero-logo-wrap {
        order: -1;
        min-height: 285px;
    }

    .hero-logo-wrap img {
        width: 210px;
        border-radius: 51px;
    }

    .orbit-one {
        width: 265px;
        height: 265px;
    }

    .orbit-two {
        width: 315px;
        height: 315px;
    }

    .trust-row {
        justify-content: center;
    }

    .download-card {
        grid-template-columns: 115px 1fr;
    }

    .file-visual {
        width: 115px;
        height: 145px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 22px, 1160px);
    }

    .topbar {
        min-height: 78px;
    }

    .brand img {
        width: 47px;
        height: 47px;
        border-radius: 14px;
    }

    .online-state {
        padding: 9px 11px;
        font-size: 10px;
    }

    .hero {
        min-height: auto;
        padding: 34px 18px 39px;
        border-radius: 29px;
    }

    .hero h1 {
        margin-top: 18px;
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 13px;
    }

    .hero-logo-wrap {
        min-height: 225px;
    }

    .hero-logo-wrap img {
        width: 164px;
        border-radius: 40px;
    }

    .orbit-one {
        width: 205px;
        height: 205px;
    }

    .orbit-two {
        width: 245px;
        height: 245px;
    }

    .floating-tag {
        padding: 7px 12px;
        font-size: 9px;
    }

    .tag-fast {
        top: 20px;
    }

    .tag-safe {
        bottom: 25px;
    }

    .download-section {
        padding-top: 62px;
    }

    .section-heading {
        align-items: center;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .download-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        border-radius: 27px;
    }

    .file-visual {
        width: 100%;
        height: 105px;
    }

    .file-title-row {
        flex-direction: column;
        gap: 10px;
    }

    .verified {
        align-self: flex-start;
    }

    .file-information {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .file-information span {
        min-width: 0;
        padding: 9px;
    }

    .download-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .download-button {
        width: 100%;
        min-width: 0;
    }

    .secure-caption {
        justify-content: center;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* کلمه‌های دانلود که به دکمه دانلود مستقیم اسکرول می‌کنند */
html {
    scroll-behavior: smooth;
}

.download-scroll-link {
    position: relative;
    display: inline-block;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-decoration: none;
    cursor: pointer;
}

.download-scroll-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--orange);
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.download-scroll-link:hover::after,
.download-scroll-link:focus-visible::after {
    opacity: 0.75;
    transform: scaleX(1);
}

.download-scroll-link:focus-visible {
    outline: 2px solid rgba(255, 148, 24, 0.45);
    outline-offset: 5px;
    border-radius: 4px;
}

#direct-download {
    scroll-margin-block: 38vh;
}

.download-button.scroll-highlight {
    animation: directDownloadHighlight 1.35s ease;
}

@keyframes directDownloadHighlight {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 18px 35px rgba(244, 127, 0, 0.27);
    }

    38% {
        transform: translateY(-4px) scale(1.04);
        box-shadow:
            0 0 0 12px rgba(255, 148, 24, 0.13),
            0 26px 52px rgba(244, 127, 0, 0.4);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 18px 35px rgba(244, 127, 0, 0.27);
    }
}

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

    .download-button.scroll-highlight {
        animation: none;
    }
}

/* همه المنت‌ها به‌جز دکمه دانلود قابل کلیک هستند */
body *:not(#direct-download):not(#direct-download *) {
    cursor: pointer;
}

#direct-download,
#direct-download * {
    cursor: pointer;
}
