:root {

    --green: #176b43;
    --green-dark: #105333;
    --green-soft: #e9f2ec;

    --gold: #b18a3c;

    --background: #f7f6f2;

    --white: #ffffff;

    --text: #20231f;
    --muted: #777b75;

    --line: #dedfd9;

}


* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 80% 10%,
            #edf5ef 0,
            transparent 32%
        ),
        var(--background);

    color: var(--text);

    font-family:
        "Vazirmatn",
        Tahoma,
        Arial,
        sans-serif;

    overflow-x: hidden;

}


/* Page */

.page {

    width:
        min(
            1180px,
            calc(100% - 60px)
        );

    min-height: 100vh;

    margin: auto;

    position: relative;

}


/* Background */

.background-shape {

    position: fixed;

    border-radius: 50%;

    pointer-events: none;

    z-index: -1;

    filter: blur(1px);

}


.shape-one {

    width: 420px;
    height: 420px;

    top: -180px;
    right: -180px;

    border:
        1px solid rgba(23,107,67,.08);

}


.shape-two {

    width: 300px;
    height: 300px;

    bottom: -130px;
    left: -150px;

    border:
        1px solid rgba(177,138,60,.10);

}


/* Header */

.header {

    height: 100px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid var(--line);

}


.brand {

    display: flex;

    align-items: center;

    text-decoration: none;

}


.brand img {

    width: 150px;

    max-height: 60px;

    object-fit: contain;

}


.header-label {

    font-size: 10px;

    letter-spacing: 3px;

    color: var(--muted);

    direction: ltr;

}


/* Hero */

.hero {

    min-height: 620px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 70px;

}


/* Hero content */

.hero-content {

    max-width: 560px;

}


.eyebrow {

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--green);

    font-size: 11px;

    font-weight: 700;

    margin-bottom: 20px;

}


.dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 5px var(--green-soft);

}


h1 {

    font-size:
        clamp(45px, 6vw, 78px);

    line-height: 1.18;

    letter-spacing: -3px;

    font-weight: 800;

}


h1 span {

    color: var(--green);

}


.description {

    max-width: 480px;

    margin-top: 25px;

    color: var(--muted);

    font-size: 14px;

    line-height: 2.2;

}


/* Login */

.login-button {

    margin-top: 34px;

    width: fit-content;

    min-width: 225px;

    height: 60px;

    padding:
        0 20px 0 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    background: var(--green);

    color: white;

    text-decoration: none;

    border-radius: 5px;

    box-shadow:
        0 14px 30px rgba(23,107,67,.16);

    transition:
        transform .25s,
        background .25s,
        box-shadow .25s;

}


.login-button:hover {

    background: var(--green-dark);

    transform:
        translateY(-3px);

    box-shadow:
        0 18px 38px rgba(23,107,67,.23);

}


.login-button span:first-child {

    font-size: 13px;

    font-weight: 600;

}


.arrow {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255,255,255,.13);

    border-radius: 4px;

    font-size: 18px;

    transition: .25s;

}


.login-button:hover .arrow {

    transform:
        translateX(-4px);

}


/* Address */

.address {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 18px;

    direction: ltr;

    width: fit-content;

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;

    color: var(--muted);

}


.address-label {

    padding:
        4px 7px;

    background:
        var(--green-soft);

    color: var(--green);

    border-radius: 3px;

    font-size: 9px;

}


/* Visual */

.visual {

    height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

}


.mail-card {

    width: 330px;

    height: 390px;

    padding: 25px;

    position: relative;

    z-index: 3;

    background:
        rgba(255,255,255,.9);

    border:
        1px solid rgba(0,0,0,.06);

    border-radius: 9px;

    box-shadow:
        0 30px 80px rgba(36,52,42,.11);

    transform:
        rotate(2deg);

    animation:
        cardFloat 5s ease-in-out infinite;

}


@keyframes cardFloat {

    0%, 100% {
        transform:
            rotate(2deg)
            translateY(0);
    }

    50% {
        transform:
            rotate(1deg)
            translateY(-9px);
    }

}


/* Card */

.mail-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.mini-logo {

    width: 42px;
    height: 42px;

    padding: 6px;

    border-radius: 7px;

    background:
        var(--green-soft);

}


.mini-logo img {

    width: 100%;
    height: 100%;

    object-fit: contain;

}


.secure {

    display: flex;

    align-items: center;

    gap: 7px;

    direction: ltr;

    font-family: Arial, sans-serif;

    font-size: 9px;

    color: var(--muted);

}


.secure span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

}


/* Envelope */

.envelope {

    height: 190px;

    margin-top: 40px;

    position: relative;

}


.envelope-back {

    position: absolute;

    inset:
        25px 15px 10px;

    background:
        #edf3ef;

    border-radius: 7px;

}


.envelope-paper {

    position: absolute;

    width: 170px;
    height: 130px;

    left: 50%;

    top: 4px;

    transform:
        translateX(-50%);

    padding: 22px 18px;

    background: white;

    border-radius: 4px;

    box-shadow:
        0 8px 20px rgba(0,0,0,.08);

}


.envelope-paper div {

    height: 5px;

    margin-bottom: 10px;

    border-radius: 10px;

    background: #e7e9e5;

}


.envelope-paper div:first-child {

    width: 70%;

    background:
        #dbe8df;

}


.envelope-paper div:last-child {

    width: 55%;

}


.envelope-front {

    position: absolute;

    left: 15px;
    right: 15px;

    bottom: 10px;

    height: 100px;

    background:
        linear-gradient(
            135deg,
            #dce9df 50%,
            transparent 50%
        ),
        linear-gradient(
            225deg,
            #dce9df 50%,
            transparent 50%
        );

    background-position:
        left top,
        right top;

    background-size:
        50% 100%,
        50% 100%;

    background-repeat: no-repeat;

    border-radius:
        0 0 7px 7px;

}


/* Card bottom */

.mail-card-bottom {

    margin-top: 10px;

    display: flex;

    flex-direction: column;

}


.mail-card-bottom strong {

    font-size: 15px;

}


.mail-card-bottom span {

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;

}


/* Orbit */

.mail-orbit {

    position: absolute;

    border:
        1px solid rgba(23,107,67,.10);

    border-radius: 50%;

}


.orbit-one {

    width: 440px;
    height: 440px;

}


.orbit-two {

    width: 350px;
    height: 350px;

    border-color:
        rgba(177,138,60,.12);

}


/* Information */

.info {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);

}


.info-item {

    min-height: 135px;

    padding:
        28px 30px;

    display: flex;

    gap: 18px;

    border-left:
        1px solid var(--line);

}


.info-item:last-child {

    border-left: 0;

}


.info-number {

    color: var(--gold);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

}


.info-item strong {

    font-size: 12px;

}


.info-item p {

    margin-top: 5px;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.8;

}


/* Footer */

footer {

    min-height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #92968f;

    font-size: 9px;

}


.footer-links {

    display: flex;

    gap: 10px;

    align-items: center;

}


.footer-links a {

    color: inherit;

    text-decoration: none;

    transition: .2s;

}


.footer-links a:hover {

    color: var(--green);

}


/* Install */

.install-banner {

    position: fixed;

    bottom: 20px;

    left: 50%;

    transform:
        translate(-50%, 140px);

    width:
        min(
            460px,
            calc(100% - 30px)
        );

    padding:
        14px 16px;

    display: flex;

    align-items: center;

    gap: 15px;

    background:
        rgba(255,255,255,.96);

    border:
        1px solid var(--line);

    border-radius: 8px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.13);

    opacity: 0;

    pointer-events: none;

    transition: .35s;

    z-index: 100;

}


.install-banner.show {

    transform:
        translate(-50%, 0);

    opacity: 1;

    pointer-events: auto;

}


.install-banner > div {

    flex: 1;

}


.install-banner strong {

    display: block;

    font-size: 11px;

}


.install-banner span {

    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 8px;

}


.install-banner button {

    border: 0;

    background: var(--green);

    color: white;

    padding:
        8px 14px;

    border-radius: 4px;

    font-family: inherit;

    font-size: 9px;

    cursor: pointer;

}


.install-banner .close-install {

    background: transparent;

    color: #999;

    font-size: 18px;

    padding: 4px;

}


/* Responsive */

@media (max-width: 850px) {

    .page {

        width:
            calc(100% - 35px);

    }


    .hero {

        grid-template-columns: 1fr;

        padding:
            70px 0;

        gap: 50px;

    }


    .hero-content {

        max-width: 650px;

        text-align: center;

        margin: auto;

    }


    .eyebrow {

        justify-content: center;

    }


    .description {

        margin-left: auto;
        margin-right: auto;

    }


    .login-button {

        margin-left: auto;
        margin-right: auto;

    }


    .address {

        margin-left: auto;
        margin-right: auto;

    }


    .visual {

        height: 440px;

    }


    .info {

        grid-template-columns: 1fr;

    }


    .info-item {

        border-left: 0;

        border-bottom:
            1px solid var(--line);

    }


    .info-item:last-child {

        border-bottom: 0;

    }

}


@media (max-width: 520px) {

    .header {

        height: 80px;

    }


    .brand img {

        width: 125px;

    }


    h1 {

        font-size: 43px;

        letter-spacing: -2px;

    }


    .description {

        font-size: 12px;

    }


    .visual {

        height: 390px;

    }


    .mail-card {

        width: 285px;
        height: 350px;

    }


    .mail-orbit {

        transform:
            scale(.8);

    }


    .info-item {

        padding:
            25px 15px;

    }


    footer {

        flex-direction: column;

        justify-content: center;

        gap: 10px;

    }

}