/* ============ Mundria — site oficial ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark: #0a0e18;
    --card-bg: rgba(18,24,38,.92);
    --card-border: rgba(120,160,255,.25);
    --gold: #ffd36b;
    --blue: #57a8ff;
    --blue-dark: #2f6fe0;
    --blue-shadow: #1d4da8;
    --green: #45c988;
    --green-dark: #1f9a5f;
    --green-shadow: #157347;
    --text: #e8eefc;
    --text-muted: #9fb4d8;
    --text-soft: #b8c8e8;
}

html { scroll-behavior: smooth; }
html, body {
    width: 100%;
    min-height: 100%;
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
}
body {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(87,168,255,.13), transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(178,139,255,.10), transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255,211,107,.06), transparent 60%),
        linear-gradient(160deg, #182238, #0a0e18);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* ---------- Header ---------- */
header {
    padding: 14px 40px;
    background: rgba(12,16,26,.85);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    image-rendering: auto;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.5));
    transition: transform .3s;
}
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.logo h1 {
    font-size: 26px;
    letter-spacing: 1.5px;
    font-weight: 900;
    background: linear-gradient(90deg, #7fc4ff, #b28bff, #ffd36b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
nav { display: flex; gap: 22px; align-items: center; }
nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    padding: 6px 2px;
    position: relative;
    transition: color .2s;
}
nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    border-radius: 2px;
    transition: right .25s;
}
nav a:hover { color: #fff; }
nav a:hover::after { right: 0; }
.lang-dd { position: relative; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1a2233;
    border: 1px solid #35405c;
    color: var(--text);
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    font-weight: 700;
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color .2s;
}
.lang-btn:hover, .lang-btn:focus, .lang-dd.open .lang-btn { border-color: var(--gold); }
.lang-btn img { width: 22px; height: 16px; border-radius: 3px; display: block; }
.lang-btn .arr { font-size: 10px; color: var(--text-muted); transition: transform .2s; }
.lang-dd.open .lang-btn .arr { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #141b2c;
    border: 1px solid #35405c;
    border-radius: 12px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 14px 40px rgba(0,0,0,.55);
    z-index: 200;
}
.lang-dd.open .lang-menu { display: flex; }
.lang-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--text-soft);
    padding: 9px 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    transition: background .15s, color .15s;
}
.lang-menu button:hover { background: rgba(87,168,255,.14); color: #fff; }
.lang-menu button.active { background: rgba(255,211,107,.12); color: var(--gold); }
.lang-menu button img { width: 24px; height: 17px; border-radius: 3px; display: block; }

main {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: 90px 0 70px;
    overflow: visible;
}
.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffb02e, #e08214);
    color: #3a2404;
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: .6px;
    box-shadow: 0 3px 0 #9a5a0e, 0 6px 14px rgba(0,0,0,.3);
    animation: bob 3s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.hero h2 {
    font-size: 58px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.15;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #7fc4ff, #b28bff, #ffd36b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 6s linear infinite;
}
@keyframes shine {
    to { background-position: 200% center; }
}
.hero p {
    color: var(--text-muted);
    font-size: 19px;
    margin-bottom: 34px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero .downloads { margin-bottom: 28px; }

/* Cubos voxel flutuantes */
.cube-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}
.vcube {
    position: absolute;
    width: 48px;
    height: 48px;
    transform-style: preserve-3d;
    animation: floatcube 12s ease-in-out infinite;
    opacity: .55;
}
.vcube .f {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(0,0,0,.35);
}
.vcube .f.top    { background: #75d66a; transform: rotateX(90deg) translateZ(24px); }
.vcube .f.front  { background: #8a5e3c; transform: translateZ(24px); }
.vcube .f.right  { background: #6d4527; transform: rotateY(90deg) translateZ(24px); }
.vcube.c2 .f.top    { background: #58b9ff; }
.vcube.c2 .f.front  { background: #2f6fe0; }
.vcube.c2 .f.right  { background: #1d4da8; }
.vcube.c3 .f.top    { background: #ffd36b; }
.vcube.c3 .f.front  { background: #e08214; }
.vcube.c3 .f.right  { background: #9a5a0e; }
.vcube.c4 .f.top    { background: #b28bff; }
.vcube.c4 .f.front  { background: #7c5cd6; }
.vcube.c4 .f.right  { background: #5a3fa8; }
@keyframes floatcube {
    0%, 100% { transform: rotateX(-24deg) rotateY(38deg) translateY(0); }
    50%      { transform: rotateX(-24deg) rotateY(58deg) translateY(-26px); }
}

/* ---------- Botões ---------- */
.downloads {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 0;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    padding: 15px 40px;
    background: linear-gradient(180deg, var(--blue), var(--blue-dark));
    box-shadow: 0 6px 0 var(--blue-shadow), 0 12px 28px rgba(0,0,0,.4);
    transition: transform .08s, box-shadow .08s, filter .2s;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--blue-shadow), 0 6px 14px rgba(0,0,0,.35); }
.btn.alt {
    background: linear-gradient(180deg, var(--green), var(--green-dark));
    box-shadow: 0 6px 0 var(--green-shadow), 0 12px 28px rgba(0,0,0,.4);
}
.btn.alt:active { box-shadow: 0 2px 0 var(--green-shadow), 0 6px 14px rgba(0,0,0,.35); }
.btn.discord {
    background: linear-gradient(180deg, #7289da, #5865F2);
    box-shadow: 0 6px 0 #4a54c9, 0 12px 28px rgba(0,0,0,.4);
}
.btn.discord:active { box-shadow: 0 2px 0 #4a54c9, 0 6px 14px rgba(0,0,0,.35); }
.btn .bicon { font-size: 22px; line-height: 1; }
.btn small {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    opacity: .85;
}
.btn .btxt { text-align: left; line-height: 1.25; }

/* ---------- Status ---------- */
.status-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.05);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    border: 1px solid rgba(255,255,255,.09);
    color: var(--text-soft);
}
.status-indicator {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #ff4747;
    box-shadow: 0 0 10px #ff4747;
    flex-shrink: 0;
}
.status-indicator.online {
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    50% { box-shadow: 0 0 16px var(--green), 0 0 4px var(--green); }
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 46px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 10px 34px rgba(0,0,0,.3);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,211,107,.45);
    box-shadow: 0 16px 44px rgba(0,0,0,.45);
}
.feature-card .ficon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}
.feature-card img.ficon {
    width: 44px;
    height: 44px;
    image-rendering: pixelated;
}
.feature-card h4 {
    color: var(--gold);
    font-size: 16.5px;
    margin-bottom: 6px;
    font-weight: 800;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

/* ---------- Sections ---------- */
section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 38px 46px;
    margin-bottom: 34px;
    box-shadow: 0 18px 60px rgba(0,0,0,.3);
    scroll-margin-top: 90px;
}
section h3 {
    color: var(--gold);
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}
section h3::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #75d66a 50%, #8a5e3c 50%);
    border: 2px solid rgba(0,0,0,.4);
    border-radius: 3px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ---------- Notícias ---------- */
#news-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.news-item {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    border-left: 4px solid var(--blue);
    padding: 16px 22px;
    border-radius: 12px;
    transition: border-color .2s, background .2s;
}
.news-item:hover {
    background: rgba(255,255,255,.075);
    border-left-color: var(--gold);
}
.news-item:first-child {
    background: linear-gradient(90deg, rgba(255,176,46,.16), rgba(255,176,46,.04));
    border: 1px solid rgba(255,176,46,.35);
    border-left: 4px solid var(--gold);
}
.news-item h4 {
    color: var(--gold);
    font-size: 16.5px;
    margin-bottom: 2px;
}
.news-item .date {
    color: var(--blue);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 6px;
}
.news-item p { color: var(--text-soft); font-size: 14.5px; }

/* ---------- Downloads ---------- */
.dl-version {
    text-align: center;
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 14px;
}
.dl-version b { color: var(--gold); }

/* ---------- Guia ---------- */
.guide { color: var(--text-soft); font-size: 15px; line-height: 1.75; }
.guide b { color: var(--gold); }
.guide h4 {
    color: #fff;
    font-size: 17px;
    margin: 22px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.guide h4:first-of-type { margin-top: 16px; }
.guide ul { list-style: none; margin-bottom: 4px; }
.guide li {
    margin-bottom: 8px;
    padding: 8px 12px 8px 34px;
    position: relative;
    background: rgba(255,255,255,.04);
    border-radius: 9px;
}
.guide li::before {
    content: '◆';
    position: absolute;
    left: 12px;
    color: var(--blue);
    font-weight: bold;
}
.kbd {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(180deg, #3a4a68, #2a3650);
    color: var(--gold);
    font-weight: 800;
    font-size: 12.5px;
    font-family: inherit;
    box-shadow: 0 2px 0 rgba(0,0,0,.35);
}

/* ---------- Comunidade / Loja ---------- */
.comm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.comm-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 26px;
    text-align: center;
}
.comm-card .cicon { font-size: 40px; margin-bottom: 10px; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.comm-card img.cicon { width: 46px; height: 46px; margin: 0 auto 10px; image-rendering: pixelated; }
.comm-card h4 { color: var(--gold); font-size: 18px; margin-bottom: 8px; }
.comm-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }

/* ---------- Footer ---------- */
footer {
    margin-top: 60px;
    padding: 34px 20px 40px;
    text-align: center;
    border-top: 1px solid var(--card-border);
    background: rgba(12,16,26,.6);
}
footer .foot-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
footer .foot-logo img { width: 30px; height: 30px; border-radius: 7px; }
footer .foot-logo span {
    font-weight: 900;
    font-size: 17px;
    background: linear-gradient(90deg, #7fc4ff, #b28bff, #ffd36b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
footer p { color: var(--text-muted); font-size: 13.5px; }
footer a {
    color: var(--gold);
    font-weight: 800;
    text-decoration: none;
    transition: filter .2s;
}
footer a:hover { filter: brightness(1.2); text-decoration: underline; }

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
    header { padding: 12px 16px; }
    .logo h1 { font-size: 21px; }
    .logo img { width: 34px; height: 34px; }
    nav { gap: 14px; }
    nav a { font-size: 13px; }
    .hero { padding: 56px 0 44px; }
    .hero h2 { font-size: 38px; }
    .hero p { font-size: 16px; }
    section { padding: 24px 20px; }
    section h3 { font-size: 21px; }
    .comm-grid { grid-template-columns: 1fr; }
    .vcube { width: 32px; height: 32px; }
    .vcube .f { width: 32px; height: 32px; }
    .vcube .f.top { transform: rotateX(90deg) translateZ(16px); }
    .vcube .f.front { transform: translateZ(16px); }
    .vcube .f.right { transform: rotateY(90deg) translateZ(16px); }
}
@media (max-width: 560px) {
    header { flex-direction: column; gap: 10px; }
    nav { flex-wrap: wrap; justify-content: center; }
    .hero h2 { font-size: 31px; }
    .btn { width: 100%; justify-content: center; }
    .downloads { flex-direction: column; align-items: stretch; }
}