:root {
  --bg: #0b0c12;
  --bg2: #12131c;
  --panel: #161824;
  --line: rgba(220, 176, 98, .35);
  --gold: #dcb062;
  --gold2: #f3cf86;
  --text: #ece6d8;
  --muted: #a3a2b2;
  --ok: #8fe08f;
  --err: #ff8a7a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif;
}
a { color: var(--gold2); }
h1, h2, h3, .brand { font-family: Cinzel, Georgia, serif; }

/* topo */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: rgba(11, 12, 18, .82); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { color: var(--gold); text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.brand span { color: var(--text); font-size: 13px; margin-left: 8px; letter-spacing: 4px; font-weight: 600; }
nav { display: flex; gap: 22px; align-items: center; }
nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
nav a:hover { color: var(--gold2); }
.nav-cta { border: 1px solid var(--gold); padding: 6px 14px; border-radius: 8px; }

/* herói */
.hero { position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center bottom; image-rendering: pixelated;
  filter: saturate(1.05); transform: scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(11, 12, 18, .15) 0%, rgba(11, 12, 18, .75) 70%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 40px 20px; max-width: 760px; }
.hero h1 {
  margin: 10px 0 0; font-size: clamp(56px, 11vw, 112px); line-height: 1; font-weight: 800; letter-spacing: 4px;
  color: var(--gold2); text-shadow: 0 4px 0 #3a1f07, 0 0 40px rgba(243, 160, 60, .35);
}
.sub { margin: 6px 0 0; font-family: Cinzel, serif; letter-spacing: 6px; color: #eee6d4; font-weight: 600; }
.lead { font-size: 18px; color: #ddd7ca; text-shadow: 0 1px 3px #000; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 99px;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #777; }
.status.on .dot { background: #3ddc6a; box-shadow: 0 0 10px #3ddc6a; }
.status.on { color: var(--text); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ornamento */
.orn { height: 12px; margin: 10px auto 22px; width: min(420px, 80%);
  background:
    linear-gradient(90deg, transparent, var(--gold) 45%, transparent 45%, transparent 55%, var(--gold) 55%, transparent) center/100% 1px no-repeat,
    linear-gradient(45deg, var(--gold) 50%, transparent 50%) center/9px 9px no-repeat;
}
.orn.left { margin-left: 0; width: 220px; }

/* botões */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 9px; text-decoration: none; cursor: pointer;
  font: 600 17px Cinzel, Georgia, serif; color: var(--text); border: 1px solid var(--line);
  background: linear-gradient(#2c2e3c, #171822); box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  transition: transform .12s, filter .12s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.15); }
.btn.gold { color: #fff3d6; border-color: #f3cf86; background: linear-gradient(#a8772b, #5a3c10); }
.btn:disabled { opacity: .6; cursor: wait; }

/* seções */
.wrap { max-width: 1120px; margin: 0 auto; padding: 70px 20px 30px; }
h2 { text-align: center; font-size: clamp(28px, 4vw, 40px); color: var(--gold); margin: 0; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card, .panel {
  background: linear-gradient(#181a26, #10111a); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 8px 24px rgba(0, 0, 0, .35);
}
.card h3 { margin: 0 0 6px; color: var(--gold2); font-size: 19px; }
.card p { margin: 0; color: #cfcabe; font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 10px 14px; color: var(--muted); font-size: 14px; background: var(--bg2); }

/* cadastro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split h2 { text-align: left; }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; color: #d7d1c4; }
.ticks li::before { content: "◆"; position: absolute; left: 4px; color: var(--gold); font-size: 12px; top: 3px; }
form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; color: #ddd6c7; }
form small { color: var(--muted); font-weight: 400; }
form input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 8px; font-size: 16px;
  color: var(--text); background: #0a0b10; border: 1px solid rgba(220, 176, 98, .3); outline: none;
}
form input:focus { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(220, 176, 98, .15); }
form .btn { width: 100%; margin-top: 6px; }
.msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

/* downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.dl {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px; text-decoration: none; color: var(--text);
  background: linear-gradient(#1b1d2b, #10111a); border: 1px solid var(--line); border-radius: 14px; transition: transform .15s, border-color .15s;
}
.dl:hover { transform: translateY(-3px); border-color: var(--gold2); }
.dl-name { font: 800 26px Cinzel, serif; color: var(--gold2); }
.dl-info { color: var(--muted); font-size: 14px; }
.dl.off { opacity: .55; pointer-events: none; }
.steps { max-width: 760px; margin: 30px auto 0; color: #d7d1c4; }
.steps li { margin: 10px 0; }

footer { margin-top: 70px; padding: 30px 20px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .top { padding: 10px 16px; }
  nav { gap: 12px; }
  nav a:not(.nav-cta) { display: none; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split h2, .orn.left { text-align: center; margin-left: auto; }
  .wrap { padding: 50px 16px 20px; }
}
