.hero {
    height: 100dvh;
    margin: 0 auto;
    width: min(80%, 700px);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    isolation: isolate;
}

.hero-grid-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(var(--primary-color-rgb), 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
}

html.dark .hero-grid-background {
    background-image:
        linear-gradient(rgba(var(--primary-color-rgb), 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.08) 1px, transparent 1px);
}

.hero-country {
    font-size: 12px;
    font-weight: 600;
}

.hero-title {
    font-size: 40px;
    max-width: 670px;
}

.hero-title>.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

html.dark .hero-subtitle {
    color: rgba(var(--tertiary-text-color-rgb), 70%);
}

.hero-main-buttons-wrapper {
    display: flex;
    justify-content: center;
    column-gap: 32px;
    row-gap: 12px;
    flex-wrap: wrap;
}

.hero-main-buttons-wrapper button,
.hero-main-buttons-wrapper a {
    border-radius: 4px;
    padding: 8px 12px;
    border-width: 1px;
    border-style: solid;
    font-weight: 500;
    font-size: 16px;
    text-transform: capitalize;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

html.dark .hero-main-buttons-wrapper>.hero-button-primary>img {
    content: url("/src/assets/icons/chevron-right-dark.svg");
}

html[lang="ar"] .hero-main-buttons-wrapper>.hero-button-primary>img {
    rotate: 180deg;
}

.hero-button-primary {
    border-color: rgba(var(--button-border-color-rgb), 15%);
    background: linear-gradient(to right, rgba(var(--primary-color-rgb), 10%), var(--primary-color) 600%);
}

.hero-button-secondary {
    border-color: transparent;
    background-color: transparent;
}

.link-button-secondary {
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        max-width: min(100%, 670px);
    }

    .hero-grid-background {
        background-size: 40px 40px;
    }
}

@media screen and (max-width: 448px) {
    .hero-country {
        font-size: 10px;
    }

    .hero-title {
        font-size: 20px;
        max-width: min(100%, 670px);
    }

    .hero-subtitle {
        font-size: 12px;
        font-weight: 500;
    }

    .hero-main-buttons-wrapper {
        margin-top: 12px;
    }

    .hero-main-buttons-wrapper button,
    .hero-main-buttons-wrapper a {
        width: 100%;
        justify-content: center;
    }

    .hero-grid-background {
        background-size: 30px 30px;
    }

}