:root {
    --ink: #0b0e14;
    --panel: #141a26;
    --gold: #daae52;
    --gold-bright: #f9d66d;
    --cream: #f5f0de;
    --red: #d65438;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--ink);
    color: var(--cream);
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.55;
}

/* ---------- HERO ---------- */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 14, 20, 0.55) 0%, rgba(11, 14, 20, 0.82) 70%, var(--ink) 100%),
        url('/play/Assets/Backgrounds/aliado-naval-chart-background.png') center / cover no-repeat;
    filter: saturate(0.9);
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem;
}

.studio-logo { height: 44px; opacity: 0.92; }

.nav-play {
    color: var(--ink);
    background: var(--gold);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.5rem 1.4rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.nav-play:hover { background: var(--gold-bright); }

.hero-content {
    position: relative;
    z-index: 2;
    margin: auto;
    text-align: center;
    padding: 2rem 1.5rem 6rem;
    max-width: 720px;
}

.game-logo {
    width: min(420px, 78vw);
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6));
}

.tagline {
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    color: var(--cream);
    opacity: 0.92;
    margin: 1.2rem 0 2rem;
}

.cta {
    display: inline-block;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    padding: 0.95rem 2.6rem;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(218, 174, 82, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(218, 174, 82, 0.5);
}

.cta-note {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    opacity: 0.65;
}

.warship {
    position: absolute;
    z-index: 1;
    right: -4%;
    bottom: -6%;
    width: min(520px, 55vw);
    opacity: 0.85;
    pointer-events: none;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
}

/* ---------- FEATURES ---------- */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 1rem;
}

.feature {
    background: var(--panel);
    border: 1px solid rgba(218, 174, 82, 0.25);
    border-radius: 14px;
    padding: 1.6rem 1.5rem;
}

.feature h3 {
    margin: 0 0 0.6rem;
    color: var(--gold-bright);
    letter-spacing: 0.12em;
    font-size: 1.02rem;
}

.feature p { margin: 0; opacity: 0.88; font-size: 0.98rem; }

/* ---------- COMO FUNCIONA ---------- */

.how {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.how h2 {
    color: var(--gold-bright);
    letter-spacing: 0.16em;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1.6rem;
}

.how ol { padding-left: 1.4rem; }
.how li { margin-bottom: 0.7rem; }
.how strong { color: var(--gold-bright); }

.req {
    margin-top: 1.8rem;
    font-size: 0.88rem;
    opacity: 0.6;
    text-align: center;
}

/* ---------- FOOTER ---------- */

footer {
    border-top: 1px solid rgba(218, 174, 82, 0.2);
    text-align: center;
    padding: 2rem 1rem 2.4rem;
}

footer img { height: 36px; opacity: 0.7; }
footer p { margin: 0.7rem 0 0; font-size: 0.85rem; opacity: 0.55; }

.launch-wait {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: rgba(8, 11, 17, 0.94);
    color: var(--cream);
    letter-spacing: 0.12em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
}

.launch-wait.visible { opacity: 1; visibility: visible; }
.launch-wait > span:last-child { font-size: 0.85rem; opacity: 0.65; }

.launch-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(218, 174, 82, 0.25);
    border-top-color: var(--gold-bright);
    border-radius: 50%;
    animation: launch-spin 0.75s linear infinite;
}

@keyframes launch-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
    .warship { display: none; }
    .hero { min-height: 80vh; }
}
