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


:root {
    --primary-color: #8A6BFF;
    --secondary-color: #29D3C2;
    --dark-color: #121417;
    --medium-dark-color: #1f2227;
    --light-color: #FFFFFF;
    --text-color: #E0E0E0;
    --text-color-muted: #A0A0A0;

    --header-height: 4.5rem;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
}


* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--light-color);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.25rem;
}

ul {
    list-style: none;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.hidden {
    display: none !important;
}


.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section--dark {
    background-color: var(--medium-dark-color);
}

.section__title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: #7a5ddb;
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(138, 107, 255, 0.3);
}

.btn--secondary {
    background-color: transparent;
    color: var(--light-color);
    border-color: var(--secondary-color);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
}


.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.header--sticky {
    background-color: rgba(18, 20, 23, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.navbar__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light-color);
}

.navbar__logo:hover {
    color: var(--primary-color);
}

.navbar__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar__link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar__link:hover::after,
.navbar__link:focus::after {
    width: 100%;
}

.navbar__link:hover,
.navbar__link:focus {
    color: var(--light-color);
}

.navbar__link--highlight {
    color: var(--secondary-color);
    font-weight: 600;
    border: 1px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.navbar__link--highlight:hover,
.navbar__link--highlight:focus {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.navbar__link--highlight::after {
    display: none;
}

.navbar__toggle,
.navbar__close {
    font-size: 1.5rem;
    color: var(--light-color);
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}


.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background: url('../img/hero.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(18, 20, 23, 1) 0%, rgba(18, 20, 23, 0.6) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--light-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-color-muted);
}

.hero__features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step__card {
    background-color: var(--medium-dark-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #333;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.step__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.step__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}


.games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.game-card {
    background-color: var(--dark-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.03);
}

.game-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.game-card__description {
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}


.levels__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.levels__progress-title,
.levels__badges-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 1.5rem;
    background-color: var(--medium-dark-color);
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar__inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
}

.badges__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.badge {
    font-size: 2rem;
    color: var(--secondary-color);
    background-color: var(--medium-dark-color);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
}


.community__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.community__icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.3;
}


.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about__image {
    border-radius: var(--border-radius);
    object-fit: cover;
}

.about__text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.about__text p {
    margin-bottom: 1rem;
}


.contact__wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background-color: var(--dark-color);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--medium-dark-color);
    border: 1px solid #444;
    border-radius: var(--border-radius);
    color: var(--light-color);
    font-family: var(--font-family);
    font-size: 1rem;
}

.form__input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form__input::placeholder {
    color: var(--text-color-muted);
}

.form__input:invalid {
    border-color: #e74c3c;
}

.form__error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form__message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.form__message--success {
    background-color: #27ae60;
    color: var(--light-color);
}

.contact__info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact__info p {
    margin-bottom: 1.5rem;
    color: var(--text-color-muted);
}

.contact__info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact__info-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.contact__social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact__social a {
    font-size: 1.5rem;
    color: var(--text-color-muted);
}

.contact__social a:hover {
    color: var(--primary-color);
}


.faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid #333;
}

.faq__toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--light-color);
    text-align: left;
}

.faq__toggle:hover {
    color: var(--primary-color);
}

.faq__icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq__toggle[aria-expanded="true"] .faq__icon {
    transform: rotate(180deg);
}

.faq__content {
    padding-bottom: 1.5rem;
    color: var(--text-color-muted);
}

.faq__content p {
    max-width: 95%;
}


.footer {
    background-color: var(--medium-dark-color);
    padding-top: 4rem;
    border-top: 1px solid #333;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__address {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social a {
    font-size: 1.25rem;
    color: var(--text-color-muted);
}

.footer__social a:hover {
    color: var(--primary-color);
}

.footer__links-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-color);
    margin-bottom: 1rem;
}

.footer__links ul li {
    margin-bottom: 0.5rem;
}

.footer__links ul a {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.footer__links ul a:hover {
    color: var(--light-color);
}

.footer__compliance-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--text-color-muted);
}

.footer__bottom {
    border-top: 1px solid #333;
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer__disclaimer {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 1rem;
    border: 1px solid #555;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--dark-color);
}

.footer__disclaimer strong {
    color: #f39c12;
}

.footer__copyright {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}


.policy-page {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 80vh;
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.policy-header h1 {
    font-size: 3rem;
}

.policy-header p {
    font-size: 1.1rem;
    color: var(--text-color-muted);
}

.policy-page section {
    max-width: 800px;
    margin: 0 auto;
}

.policy-page h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.policy-page p,
.policy-page ul {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.policy-page ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.policy-page li {
    margin-bottom: 0.5rem;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content-static {
    background-color: var(--medium-dark-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid #444;
}

.modal-content-static h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.modal-content-static p {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.modal__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal__small-text {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-top: 1.5rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--medium-dark-color);
    border-top: 1px solid #444;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding: 1.5rem;
}

.cookie-banner__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    gap: 1.5rem;
}

.cookie-banner__content p {
    margin: 0;
    color: var(--text-color);
}

.cookie-banner__buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal[hidden] {
    display: none;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal__content {
    position: relative;
    z-index: 1051;
    background-color: var(--dark-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 960px;
    box-shadow: var(--shadow);
    border: 1px solid #444;
}

.modal__close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal__close-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.modal__title {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #333;
    display: none;
}

.modal__iframe-container {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

#game-modal-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}




@media (max-width: 992px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--medium-dark-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease;
        padding: 4rem 2rem;
        z-index: 100;
    }

    .navbar__menu.navbar--active {
        right: 0;
    }

    .navbar__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .navbar__link {
        font-size: 1.25rem;
    }

    .navbar__toggle,
    .navbar__close {
        display: block;
    }

    .navbar__close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero__features {
        flex-direction: column;
        gap: 0.5rem;
    }

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

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

    .community__icons {
        flex-direction: row;
        margin-top: 2rem;
    }

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

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

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

    .footer__brand {
        grid-column: 1 / 3;
    }

    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

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

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

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

    .footer__brand {
        grid-column: auto;
    }

    .modal-content-static {
        padding: 1.5rem;
    }

    .modal__buttons {
        flex-direction: column;
    }

    .modal__close-btn {
        top: 10px;
        right: 10px;
    }
}.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 35px auto;
}

.footer-legal img {
    height: 60px;
}