:root {
    --primary-color: #0d9488;
    --primary-color-dark: #0f766e;
    --secondary-color: #f0fdfa;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-color: #334155;
    --heading-color: #1e293b;
    --border-color: #e2e8f0;
    --error-color: #dc2626;
    --success-color: #16a34a;

    --font-family: 'Poppins', sans-serif;
    --header-height: 70px;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}


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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}


h1,
h2,
h3 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--primary-color-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

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

.btn--secondary:hover,
.btn--secondary:focus {
    background-color: var(--secondary-color);
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--primary-color-dark);
    outline-offset: 2px;
}


.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.logo:hover {
    text-decoration: none;
}

.nav-menu {
    display: none;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.nav-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--heading-color);
}

.btn--header {
    display: none;
}


.nav-menu.is-active {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    color: white;
    padding: 4rem 1rem;
    background: url('../assets/hero.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.71);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn--secondary {
    color: white;
    border-color: white;
}

.hero .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}


.section-padding {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-note {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    color: #64748b;
}

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

.text-container ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

.text-container li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.text-container li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}


.features-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.feature-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}


.how-it-works-section {
    background: var(--secondary-color);
}

.steps-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    text-align: center;
}

.step-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}


.game-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.game-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.game-card-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

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

.game-card-body h3 {
    margin-top: 0;
}

.game-card-body .btn {
    margin-top: auto;
}


.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--surface-color);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.faq-item summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 1rem;
    margin-bottom: 0;
}


.contact-section {
    background-color: var(--secondary-color);
}

.contact-container {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}

.contact-info address p {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}


.site-footer {
    background-color: var(--heading-color);
    color: #cbd5e1;
    padding: 2rem 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
}

.footer-legal p {
    font-size: 0.875rem;
    margin: 0;
}


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

body.modal-open .modal {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 1000px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title-text {
    margin-bottom: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-color);
}

.modal-body {
    padding: 1rem;
    overflow-y: auto;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}


.anim-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anim-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.policy-page h1,
.policy-page h2 {
    margin-top: 2rem;
}

.policy-page h1:first-child {
    margin-top: 0;
}


@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        gap: 0.5rem;
    }

    .btn--header {
        display: inline-block;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr 1.5fr;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}