:root {
  --bg: #0b0d14;
  --bg-2: #11141e;
  --panel: #171b28;
  --line: #2a3044;
  --text: #e6e2d8;
  --muted: #a7a399;
  --gold: #d8b35f;
  --gold-2: #f0d48c;
  --sanctum: #6f9be0;
  --necro: #7fd67a;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Alegreya Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: .02em; }

/* Navegação */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(11,13,20,.9), rgba(11,13,20,0));
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text);
  font-family: var(--serif); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; }
.nav nav { display: flex; gap: clamp(.8rem, 2.5vw, 2rem); }
.nav nav a { color: var(--text); text-decoration: none; font-size: .95rem; opacity: .85; }
.nav nav a:hover { color: var(--gold-2); opacity: 1; }
.nav nav a.lang { border: 1px solid rgba(216,179,95,.55); border-radius: 3px; padding: 0 .45rem; color: var(--gold-2); font-size: .85rem; }

/* Capa */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-shade { position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(11,13,20,.75) 30%, rgba(11,13,20,.15) 65%, rgba(11,13,20,.45) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 40%, rgba(0,0,0,.45) 100%); }
.hero-text { position: relative; padding: 0 clamp(16px, 6vw, 96px) clamp(48px, 10vh, 110px); max-width: 820px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #d9d4c8; max-width: 38em; }
.lead strong { color: var(--gold-2); font-weight: 700; }
.eyebrow { font-family: var(--serif); text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; color: var(--gold); margin: 0 0 .9rem; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn {
  display: inline-block; padding: .75rem 1.5rem; text-decoration: none;
  font-family: var(--serif); font-weight: 700; letter-spacing: .06em; font-size: .95rem;
  color: #1a1408; background: linear-gradient(#f0d48c, #c79a3e);
  border: 1px solid #f3dc9e; border-radius: 3px;
  box-shadow: 0 4px 18px rgba(216,179,95,.25);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(216,179,95,.4); }
.btn.ghost { background: transparent; color: var(--gold-2); border-color: rgba(216,179,95,.6); box-shadow: none; }

/* Blocos */
.block { padding: clamp(64px, 10vw, 120px) 0; }
.block.dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }
.intro { color: var(--muted); max-width: 46em; font-size: 1.2rem; }
.intro.small { font-size: 1rem; }

.factions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 2.4rem 0; }
.faction { padding: 1.5rem 1.6rem; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid; border-radius: 4px; }
.faction p { margin: 0; color: var(--muted); }
.faction.sanctum { border-left-color: var(--sanctum); }
.faction.sanctum h3 { color: var(--sanctum); }
.faction.necro { border-left-color: var(--necro); }
.faction.necro h3 { color: var(--necro); }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.features li { background: var(--bg); padding: 1.6rem; }
.features h3 { color: var(--gold-2); }
.features p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #000; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }
.gallery figure.wide img { aspect-ratio: 21 / 9; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); font-size: .95rem; color: #ddd; }

.foot { padding: 2rem 16px; text-align: center; color: var(--muted); font-size: .9rem; }

@media (max-width: 640px) {
  .nav nav a:not(:nth-last-child(-n+2)) { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.wide img { aspect-ratio: 16 / 9; }
}
