:root {
    --hero--bg-color: hsl(0, 0%, 98%);
    --hero__heading--color: hsl(0, 0%, 22%);
    --hero__details--color: hsl(233, 8%, 62%);
    --hero__invite-link--bg-color: linear-gradient(
        10deg,
        rgba(44, 182, 216, 1) 0%,
        rgba(50, 210, 93, 1) 100%
    );
    --hero__invite-link--color: hsl(0, 0%, 100%);
}
.hero__dark-mode {
    --hero--bg-color: hsl(0, 0%, 5%);
    --hero__heading--color: hsl(0, 0%, 92%);
    --hero__details--color: hsl(233, 8%, 62%);
}
.hero {
    display: flex;
    justify-content: space-between;
    height: min(45.833333vw, 660px);
    background-color: var(--hero--bg-color);
}
.hero__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    height: 100%;
    padding: 0 clamp(100px, 6.94445vw, 150px) 0 150px;
}
.hero__heading {
    font-size: min(3.889vw, 4.0625rem);
    font-weight: 300;
    color: var(--hero__heading--color);
}
.hero__details {
    font-size: clamp(0.875rem, 1.32vw, 1.5rem);
    line-height: 1.5;
    color: var(--hero__details--color);
}
.hero__invite-link {
    display: inline-block;
    padding: clamp(15px, 0.95vw, 18px) clamp(35px, 2.0833vw, 40px);
    border-radius: 50px;
    font-size: max(0.875rem, 0.972222222vw);
    font-weight: 700;
    color: var(--hero__invite-link--color);
    text-decoration: none;
    background: var(--hero__invite-link--bg-color);
}
.hero__invite-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
}
.hero__image {
    flex-shrink: 0;
    width: min(53.47vw, 770px);
    margin-bottom: max(-85px, -5.903vw);
    overflow: hidden;
    background-image: url("../assets/images/bg-intro-desktop.svg");
    background-repeat: no-repeat;
    background-size: 157% auto;
    background-position: 10% 104%;
}
.hero__image-app {
    transform: translateX(17%) translateY(-17%);
}

@media screen and (max-width: 1439px) {
    .hero__info {
        padding: 0 min(5.21vw, 75px) 0 min(10.41667vw, 150px);
    }
    .hero__heading {
        font-size: clamp(2.1875rem, 3.5vw, 3.5rem);
    }
}

@media screen and (max-width: 1000px) {
    .hero__info {
        gap: 20px;
    }
    .hero__invite-link {
        padding: clamp(12px, 1.2vw, 15px) clamp(25px, 2.5vw, 35px);
        font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
    }
}

@media screen and (max-width: 810px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: stretch;
        align-items: center;
        height: auto;
        padding-bottom: 50px;
    }
    .hero__info {
        align-items: center;
        gap: 30px;
        width: 90vw;
        padding: 0;
    }
    .hero__heading {
        font-size: clamp(1.25rem, 10vw, 2.5rem);
        text-align: center;
    }
    .hero__details {
        font-size: clamp(0.875rem, 3.5vw, 1.125rem);
        text-align: center;
    }
    .hero__image {
        width: 100%;
        aspect-ratio: 54/47;
        margin-bottom: 0;
        overflow: hidden;
        background-image: url("../assets/images/bg-intro-mobile.svg");
        background-repeat: no-repeat;
        background-size: 100% 132%;
        background-position: left 70%;
    }
    .hero__image-app {
        width: 90%;
        height: auto;
        transform: translateX(5.25%) translateY(-29%);
    }
}

@media screen and (max-width: 400px) {
    .hero__info {
        width: 85vw;
    }
    .hero__invite-link {
        font-size: clamp(0.6875rem, 3.4vw, 0.8125rem);
    }
}
