﻿

/* Variables */
:root {
    --green-d: #007A2F;
    --green-l: #00B347;
    --yellow: #FFDF00;
    --yellow-d: #E6C900;
    --blue: #0a1929;
    --blue-l: #132f4c;
    --white: #fff;
    --gray: #e8f5e9;
    --dark: #0a1f0d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--blue);
    border-bottom: 2px solid var(--yellow);
    padding-top: 8px;
}
.header-row {
    padding: 0 16px;
}
.header-top {
    min-height: 60px;
    display: flex;
    align-items: center;
}
.header-top-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}
.header-logo img {
    display: block;
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s;
}
.header-logo:hover img { transform: scale(1.05); }

/* Hamburger */
.header-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
}
.header-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #FFDF00;
    background: var(--yellow);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.header-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header-toggle.active span:nth-child(2) { opacity: 0; }
.header-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav links */
.header-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 8px;
    padding: 0 16px;
}
.header-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s;
}
.header-nav a:hover {
    color: var(--yellow);
    background: var(--blue-l);
}

/* Login/Register buttons */
.header-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.btn-header {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}
.btn-header:hover {
    transform: translateY(-2px);
}
.btn-login {
    color: var(--yellow);
    background: transparent;
    border: 2px solid var(--yellow);
}
.btn-login:hover {
    background: var(--yellow);
    color: var(--blue);
}
.btn-register {
    color: var(--blue);
    background: var(--yellow);
    border: 2px solid var(--yellow);
}
.btn-register:hover {
    background: var(--yellow-d);
    box-shadow: 0 4px 15px rgba(255,223,0,0.4);
}

/* Mobile row 2 - Login/Register */
.header-btns-row {
    display: none;
    width: 100%;
    background: var(--blue-l);
    padding: 4px 12px;
    border-bottom: 1px solid rgba(255,223,0,0.3);
}
.header-btns-row .header-btns-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.header-btns-row .btn-header {
    flex: 1;
    max-width: 160px;
    border-radius: 12px;
}

/* ===== 移动端 ===== */
@media (max-width: 991px) {
    /* Row 1: Logo left, Hamburger right */
    .header-toggle {
        display: flex;
    }
    .header-toggle span {
        background-color: #FFDF00 !important;
    }
    .header-top .header-btns { display: none; }
    .header-top-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: flex-start;
        gap: 6px;
    }
    .header-logo { order: 1; }
    .header-toggle { order: 2; margin-left: auto; }
    .header-btns-row {
        order: 3;
        display: flex !important;
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
        box-sizing: border-box;
    }
    .header-nav-wrap {
        order: 4;
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
        box-sizing: border-box;
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }
    .header-nav-wrap.open {
        grid-template-rows: 1fr;
    }
    .header-nav-wrap > .header-nav {
        min-height: 0;
        overflow: hidden;
    }
    .header-nav-wrap.open > .header-nav {
        overflow-y: auto;
        overflow-x: hidden;
    }
    .header-nav {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        background: var(--blue-l);
        border-bottom: 2px solid var(--yellow);
    }
    .header-nav.open {
        padding: 16px;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 65vh;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .header-nav.open a {
        flex: 1 1 auto;
        min-width: calc(50% - 4px);
        padding: 12px 16px;
        border-radius: 12px;
        background: var(--blue);
        text-align: center;
    }
}

/* PC */
@media (min-width: 992px) {
    .header-toggle { display: none; }
    .header-btns-row { display: none !important; }
    .header-top .header-btns { display: flex; }
    .header-nav-wrap {
        display: flex;
        flex: 1;
        width: auto;
        margin-left: 0;
        max-height: none;
        overflow: visible;
    }
    .header-nav {
        display: flex;
        flex: 1;
        justify-content: center;
        gap: 2px 6px;
        padding: 0 12px;
        max-height: none;
        overflow: visible;
        background: transparent;
        border-bottom: none;
    }
    .header-nav a {
        padding: 6px 10px;
        font-size: 13px;
    }
    .header-top-inner {
        gap: 12px;
    }
}

/* Main */
main { padding-top: 0; }
section[id] { scroll-margin-top: 120px; }

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 160px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--blue);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--yellow);
}
.hero-text p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 28px;
    max-width: 480px;
}
.btn-cta {
    display: inline-block;
    padding: 16px 36px;
    background: var(--yellow);
    color: var(--blue);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid var(--yellow);
    transition: all 0.3s;
}
.btn-cta:hover {
    transform: translateY(-2px);
    background: var(--yellow-d);
}
.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-media img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    border: 2px solid var(--yellow);
}
@media (max-width: 767px) {
    .hero { min-height: auto; padding: 150px 0 60px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
}

/* Blocks */
.block {
    padding: 80px 0;
}
.block-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    color: var(--yellow);
    margin-bottom: 12px;
}
.block-desc {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 48px;
}
.steps-cta { text-align: center; margin-top: 40px; }

/* Content prose - texto corrido estilo humano */
.content-prose {
    max-width: 720px;
    margin: 0 auto 32px;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
}
.content-prose p {
    margin-bottom: 1.2em;
}
.content-prose p:last-child { margin-bottom: 0; }
.content-prose ul, .content-prose ol {
    margin: 1em 0 1em 1.5em;
    padding: 0;
}
.content-prose li { margin-bottom: 0.5em; }
.content-prose strong { color: var(--yellow); }

/* Features */
.block-features {
    background: var(--dark);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--blue);
    border: 2px solid var(--yellow);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--yellow-d);
}
.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1.25rem;
    color: var(--yellow);
    margin-bottom: 8px;
}
.feature-card p { color: var(--gray); font-size: 0.95rem; margin: 0; }
@media (max-width: 991px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* Steps */
.block-steps {
    background: var(--blue);
    border-top: 3px solid var(--yellow);
    border-bottom: 3px solid var(--yellow);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step-card {
    background: var(--blue-l);
    border: 2px solid var(--yellow);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}
.step-card:hover { border-color: var(--yellow); transform: translateY(-4px); }
.step-num {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    color: var(--blue);
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 16px;
}
.step-card h3 { color: var(--yellow); margin-bottom: 8px; font-size: 1.2rem; }
.step-card p { color: var(--gray); font-size: 0.95rem; margin: 0; }
@media (max-width: 767px) {
    .steps-grid { grid-template-columns: 1fr; }
}

/* Bonuses */
.block-bonuses {
    background: var(--dark);
}
.bonus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.bonus-card {
    position: relative;
    background: var(--blue);
    border: 2px solid var(--yellow);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: left;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.bonus-card:hover { transform: translateY(-2px); border-color: var(--yellow); }
.bonus-tag {
    flex-shrink: 0;
    background: var(--yellow);
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
}
.bonus-card h3 { color: var(--yellow); font-size: 1.2rem; margin-bottom: 8px; }
.bonus-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 8px;
}
.bonus-card p { color: var(--gray); font-size: 0.9rem; margin: 0; }
@media (max-width: 991px) {
    .bonus-card {
        flex-direction: column;
        text-align: center;
    }
    .bonus-tag { align-self: center; }
}

/* Games */
.block-games {
    background: var(--green-d);
    border-top: 3px solid var(--yellow);
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.game-card {
    background: var(--blue);
    border: 2px solid var(--yellow);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--yellow); }
.game-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-l);
}
.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.game-info {
    padding: 20px 24px;
}
.game-info h3 { color: var(--yellow); margin-bottom: 8px; }
.game-info p { color: var(--gray); font-size: 0.95rem; margin: 0; }
@media (max-width: 767px) {
    .games-grid { grid-template-columns: 1fr; }
}

/* App */
.block-app {
    background: var(--dark);
}
.app-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.app-info .block-title { text-align: left; }
.app-info .block-desc { text-align: left; margin-bottom: 20px; }
.app-info > p {
    color: var(--gray);
    margin-bottom: 24px;
}
.app-list {
    list-style: none;
    margin: 0 0 28px 0;
    padding: 0;
}
.app-list li {
    color: var(--gray);
    padding: 8px 0;
    font-size: 1.05rem;
}
.app-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn-outline {
    background: transparent !important;
    border: 2px solid var(--yellow) !important;
    color: var(--yellow) !important;
}
.btn-outline:hover { background: var(--blue-l) !important; }
.app-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.app-visual img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 16px;
    border: 2px solid var(--yellow);
}
@media (max-width: 767px) {
    .app-layout { grid-template-columns: 1fr; }
    .app-info .block-title,
    .app-info .block-desc,
    .app-info > p { text-align: center; }
    .app-btns { justify-content: center; }
}

/* FAQ */
.block-faq {
    background: var(--dark);
}
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    background: var(--blue);
    border: 2px solid var(--yellow);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover,
.faq-item.active { border-color: var(--yellow); }
.faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.faq-btn em {
    font-size: 1.5rem;
    color: var(--yellow);
    font-style: normal;
    transition: transform 0.3s;
}
.faq-item.active .faq-btn em { transform: rotate(45deg); }
.faq-body {
    padding: 0 24px 20px;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-body[hidden] { display: none !important; }

/* CTA */
.block-cta {
    background: var(--blue);
    border-top: 4px solid var(--yellow);
    text-align: center;
    padding: 60px 0;
}
.block-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--yellow);
    margin-bottom: 12px;
}
.block-cta p {
    color: var(--gray);
    margin-bottom: 24px;
}
.btn-lg { padding: 18px 40px; font-size: 18px; }

/* Footer */
footer {
    background: var(--blue);
    border-top: 4px solid var(--yellow);
    padding: 48px 0 32px;
}
.footer-content { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.footer-intro { text-align: center; margin-bottom: 32px; }
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo img { max-width: 150px; max-height: 60px; height: auto; object-fit: contain; }
.footer-intro h3 { color: var(--yellow); margin-bottom: 12px; font-size: 1.5rem; }
.footer-intro .title-link {
    color: var(--yellow);
    text-decoration: none;
}
.footer-intro .title-link:hover { text-decoration: underline; }
.footer-intro p { color: var(--gray); max-width: 700px; margin: 0 auto; }
.footer-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--yellow);
}
.footer-contact h3 { color: var(--yellow); margin-bottom: 16px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 12px; }
.contact-icon { font-size: 1.25rem; }
.contact-details strong { color: var(--yellow); display: block; margin-bottom: 4px; }
.contact-details p,
.contact-details a { color: var(--gray); margin: 0; text-decoration: none; }
.contact-details a:hover { color: var(--yellow); }
.google-map {
    border-radius: 12px;
    overflow: hidden;
}
.google-map iframe { width: 100%; height: 260px; border: none; display: block; }
.footer-copyright {
    text-align: center;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--yellow);
    color: var(--gray);
    font-size: 0.85rem;
}
@media (max-width: 767px) {
    .footer-contact { grid-template-columns: 1fr; }
}

/* Mobile: prevent overflow, improve touch */
@media (max-width: 991px) {
    html { overflow-x: hidden; }
    .container { padding: 0 16px; }
    .header-nav.open a { min-width: calc(50% - 6px); }
}
@media (max-width: 480px) {
    .header-nav.open a { min-width: 100%; }
    .hero-text h1 { font-size: 1.75rem; }
    .block-title { font-size: 1.5rem; }
    .btn-cta, .btn-header { padding: 14px 20px; font-size: 14px; }
}
