:root {
    --background: #f5f5f7;
    --text: #111111;
    --secondary: #86868b;
    --blue: #0071e3;
    --card: rgba(255, 255, 255, .72);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--background);
    color: var(--text);

    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ----------------------------- */

.landing {
    min-height: 100vh;

    width: min(1200px, calc(100% - 40px));

    margin: auto;

    display: flex;
    flex-direction: column;
}


/* ---------------- NAV ---------------- */

.nav {
    height: 90px;

    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 21px;
    font-weight: 700;
}

.brand-icon {
    width: 37px;
    height: 37px;

    border-radius: 11px;

    background: #111;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}


/* ---------------- HERO ---------------- */

.hero {
    flex: 1;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 70px;

    padding: 50px 0 80px;
}

.hero-content {
    max-width: 560px;
}

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 13px;

    border-radius: 100px;

    background: white;

    color: var(--secondary);

    font-size: 12px;

    margin-bottom: 22px;

    box-shadow:
        0 4px 20px rgba(0,0,0,.04);
}

.eyebrow i {
    color: var(--blue);
}

h1 {
    margin: 0;

    font-size: clamp(48px, 6vw, 78px);

    line-height: 1.15;

    letter-spacing: -3px;

    font-weight: 800;
}

h1 span {
    display: block;

    color: #8a8a8f;
}

.hero p {
    max-width: 480px;

    margin: 25px 0 32px;

    color: var(--secondary);

    font-size: 17px;

    line-height: 2;
}


/* ---------------- BUTTON ---------------- */

.start-button {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 14px 22px;

    border-radius: 14px;

    background: #111;

    color: white;

    font-size: 14px;

    font-weight: 600;

    transition: .2s;
}

.start-button i {
    transition: transform .2s;
}

.start-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0,0,0,.12);
}

.start-button:hover i {
    transform: translateX(-4px);
}


/* ---------------- VISUAL ---------------- */

.visual {
    position: relative;

    height: 520px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.chart-decoration {
    position: absolute;

    width: 480px;
    height: 280px;

    background: rgba(255,255,255,.55);

    border: 1px solid rgba(0,0,0,.06);

    border-radius: 30px;

    box-shadow:
        0 30px 70px rgba(0,0,0,.07);

    backdrop-filter: blur(20px);

    padding: 25px;

    bottom: 70px;
}

.chart-label {
    display: flex;

    justify-content: space-between;

    color: var(--secondary);

    font-size: 12px;
}

.chart-label i {
    font-size: 16px;
}

.chart-decoration svg {
    width: 100%;
    height: 210px;

    margin-top: 5px;

    overflow: visible;
}

.line {
    fill: none;

    stroke: #111;

    stroke-width: 3;

    vector-effect: non-scaling-stroke;
}

.area {
    fill: url(#gradient);
}


/* ---------------- FLOATING CARDS ---------------- */

.floating-card {
    position: absolute;

    width: 210px;

    padding: 18px;

    background: var(--card);

    border: 1px solid rgba(0,0,0,.07);

    border-radius: 20px;

    backdrop-filter: blur(20px);

    box-shadow:
        0 20px 50px rgba(0,0,0,.08);

    z-index: 2;

    animation: float 5s ease-in-out infinite;
}

.card-one {
    top: 45px;
    right: 10px;
}

.card-two {
    bottom: 35px;
    left: 5px;

    animation-delay: -2s;
}

.mini-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--secondary);

    font-size: 12px;

    margin-bottom: 18px;
}

.mini-top i {
    font-size: 18px;
    color: #111;
}

.floating-card strong {
    display: block;

    font-size: 25px;

    direction: ltr;

    text-align: right;

    margin-bottom: 5px;
}

.floating-card small {
    font-size: 11px;

    direction: ltr;
}

.positive {
    color: #16a34a;
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

}


/* ---------------- FOOTER ---------------- */

footer {
    padding: 25px 0;

    color: #a0a0a5;

    font-size: 11px;

    text-align: center;
}


/* ---------------- MOBILE ---------------- */

@media (max-width: 800px) {

    .landing {
        width: min(100% - 24px, 600px);
    }

    .nav {
        height: 75px;
    }

    .hero {
        grid-template-columns: 1fr;

        gap: 30px;

        padding-top: 30px;
    }

    .hero-content {
        text-align: center;
        margin: auto;
    }

    .eyebrow {
        margin-bottom: 18px;
    }

    h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 14px;
        margin-left: auto;
        margin-right: auto;
    }

    .start-button {
        padding: 13px 20px;
    }

    .visual {
        height: 400px;

        transform: scale(.85);
    }

    .chart-decoration {
        width: 450px;
        max-width: 100%;
    }

    footer {
        padding-top: 0;
    }
}


@media (max-width: 450px) {

    h1 {
        font-size: 42px;
    }

    .visual {
        transform: scale(.72);

        height: 330px;

        margin-top: -25px;
    }
}