/* ===== MCPE.LINUX — design profissional (estilo minecraft.net) ===== */

:root {
  --bg: #0b1020;
  --bg-2: #111a33;
  --bg-3: #0e1526;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.09);
  --text: #eef2ff;
  --muted: #9aa8c7;
  --accent: #4cc2ff;
  --accent-2: #7ee0a3;
  --gold: #ffc94d;
  --danger: #ff7a7a;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(76,194,255,.3); }

/* fundo com brilho sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(76,194,255,.14), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(126,224,163,.08), transparent 60%);
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,16,32,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .name { font-weight: 700; font-size: 18px; letter-spacing: .3px; color: var(--text); }
.brand .name span { color: var(--accent); }

nav { display: flex; align-items: center; gap: 28px; }
nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s;
}
nav a:hover { color: var(--text); text-decoration: none; }
nav .nav-cta {
  color: #04121f;
  background: var(--accent);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  transition: filter .15s, transform .1s;
}
nav .nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 50% -10%, rgba(76,194,255,.22), transparent 65%),
    linear-gradient(180deg, rgba(76,194,255,.06), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08);
  margin-bottom: 34px;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(92deg, #7ee0a3 0%, #4cc2ff 55%, #9d8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .subtitle {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, filter .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #4cc2ff, #2f9fe0);
  color: #04121f;
  box-shadow: 0 10px 30px rgba(76,194,255,.28);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost { color: var(--accent); padding: 14px 10px; }

/* badges */
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.badge {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}
.badge b { color: var(--accent-2); font-weight: 700; }

/* ---------- hero banner (screenshot) ---------- */
.hero-shot {
  margin: 70px auto 0;
  max-width: 960px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}
.hero-shot img {
  width: 100%;
  display: block;
}
.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,16,32,.55));
  pointer-events: none;
}

/* ---------- seções ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .subtitle { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.subtitle { color: var(--muted); font-size: 17px; }

/* feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16/10;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-text h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.3px; }
.feature-text p { color: var(--muted); margin-bottom: 14px; }
.feature-text ul { list-style: none; margin-top: 8px; }
.feature-text li {
  color: var(--muted);
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 15px;
}
.feature-text li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 10px; height: 10px;
  background: var(--accent-2);
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.4);
}
.feature-text li b { color: var(--text); }

/* cards genéricos */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .15s, border-color .15s, background .15s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(76,194,255,.4); background: var(--surface-2); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
  background: rgba(76,194,255,.12);
  border: 1px solid rgba(76,194,255,.25);
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* galeria */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .18s, border-color .18s;
}
.shot:hover { transform: translateY(-5px) scale(1.01); border-color: rgba(76,194,255,.5); }
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; image-rendering: pixelated; }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  opacity: 0;
  transition: opacity .18s;
}
.shot:hover figcaption { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4,7,15,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: zoom-out;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  image-rendering: pixelated;
}
.lightbox .hint {
  position: absolute;
  bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

/* tabela de requisitos */
.req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.req-table th, .req-table td {
  padding: 15px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.req-table th {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--surface-2);
}
.req-table tr:last-child td { border-bottom: none; }
.req-table td:first-child { color: var(--muted); width: 32%; }
.req-table td code { white-space: nowrap; }

/* changelog */
.changelog { max-width: 760px; }
.release {
  position: relative;
  padding: 0 0 34px 34px;
  border-left: 2px solid var(--border);
}
.release::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.release:last-child { padding-bottom: 0; border-left-color: transparent; }
.release .ver-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.release h3 { font-size: 20px; font-weight: 700; }
.release .ver { color: var(--accent); font-size: 14px; font-weight: 600; }
.release .date { color: var(--muted); font-size: 13px; }
.release ul { margin: 12px 0 0 4px; color: var(--muted); font-size: 15px; }
.release li { margin-bottom: 6px; padding-left: 18px; position: relative; }
.release li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--accent-2);
}
.tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(126,224,163,.12);
  color: var(--accent-2);
  border: 1px solid rgba(126,224,163,.35);
}

/* FAQ */
.faq { max-width: 780px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .15s;
}
.faq details[open] { border-color: rgba(76,194,255,.4); }
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }
.faq .answer code { font-size: 13.5px; }

/* CTA final */
.cta-final {
  text-align: center;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(76,194,255,.18), transparent 65%);
  pointer-events: none;
}
.cta-final h2 { margin-bottom: 16px; }
.cta-final p { color: var(--muted); margin-bottom: 34px; }

/* ---------- download ---------- */
.dl-hero { padding: 90px 0 40px; text-align: center; }
.dl-hero .hero-icon { width: 110px; height: 110px; border-radius: 24px; margin-bottom: 28px; }
.dl-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.dl-hero p { color: var(--muted); max-width: 540px; margin: 0 auto; }

.dl-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; padding: 30px 0 10px; }
.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.dl-card.featured { border-color: rgba(76,194,255,.5); background: linear-gradient(180deg, rgba(76,194,255,.08), var(--surface)); }
.dl-card .tag-row { display: flex; gap: 10px; margin-bottom: 18px; }
.dl-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.dl-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.dl-meta { margin: 18px 0 22px; font-size: 13px; color: var(--muted); }
.dl-meta b { color: var(--text); }
.dl-card .btn { justify-content: center; width: 100%; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 30px 0; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.step .num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(76,194,255,.12);
  border: 1px solid rgba(76,194,255,.3);
  color: var(--accent);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.step code { display: inline-block; font-size: 13px; }

.note {
  margin-top: 36px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,201,77,.3);
  background: rgba(255,201,77,.07);
  color: var(--muted);
  font-size: 14.5px;
  text-align: center;
}
.note-warn {
  border-color: rgba(255,122,122,.35);
  background: rgba(255,122,122,.07);
  color: #ffc9c9;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-3);
  padding: 64px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; margin-top: 12px; }
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom a { color: var(--muted); margin-left: 20px; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- modal / popup ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,7,15,.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 520px;
  padding: 30px;
  animation: modalIn .18s ease-out;
}
@keyframes modalIn {
  from { transform: translateY(14px) scale(.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-box h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.modal-box .modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.modal-box textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 14px;
  outline: none;
  transition: border-color .15s;
}
.modal-box textarea:focus { border-color: var(--accent); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 18px; }
.modal-actions .btn { padding: 11px 22px; font-size: 14.5px; }

/* botão flutuante de bug */
.bug-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .12s, border-color .15s;
}
.bug-fab:hover { transform: translateY(-2px); border-color: rgba(255,122,122,.5); }
.bug-fab .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent-2);
  color: #04180a;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* painel secreto admin */
.admin-list { max-height: 320px; overflow-y: auto; margin: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.admin-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
}
.admin-item .meta { color: var(--muted); font-size: 12px; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
.admin-item .msg { white-space: pre-wrap; word-break: break-word; color: var(--text); }
.admin-item .del {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 12.5px;
  padding: 0;
}
.admin-empty { color: var(--muted); text-align: center; padding: 30px 0; font-size: 14px; }

/* ---------- responsivo ---------- */
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 80px 0 60px; }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-icon { width: 96px; height: 96px; }
  nav .nav-cta { display: none; }
}
