:root{
  --vinho:#120014;
  --vinho2:#070006;
  --text:#f3eef6;
  --muted:rgba(200,184,204,.86);
  --gold:#d6b15e;
  --gold2:#b98a32;
  --line:rgba(214,177,94,.22);
  --line2:rgba(214,177,94,.35);
  --purple:rgba(111,44,255,.80);
  --shadow: 0 18px 55px rgba(0,0,0,.58);
  --radius:20px;
  --radius2:28px;
  --max:1160px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background: var(--vinho);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.45;
}

a{color:inherit; text-decoration:none}
.container{width:min(var(--max), calc(100% - 40px)); margin:0 auto}

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(10,0,10,.78), rgba(10,0,10,.38));
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{
  width:44px; height:44px; border-radius:14px;
  border:1px solid var(--line2);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  background: rgba(0,0,0,.2);
}
.brand .t1{font-weight:900; letter-spacing:.10em; font-size:12px}
.brand .t2{display:block; margin-top:2px; font-size:12px; color:var(--muted)}

.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:999px;
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(111,44,255,.22), rgba(0,0,0,.12));
  color:rgba(214,177,94,.95);
  font-weight:900;
  letter-spacing:.12em;
  font-size:11px;
  text-transform:uppercase;
}

.hero{
  padding:28px 0 8px;
}
.hero-card{
  border-radius: var(--radius2);
  border:1px solid rgba(214,177,94,.16);
  background:
    radial-gradient(900px 520px at 18% 22%, rgba(111,44,255,.12), transparent 60%),
    radial-gradient(900px 520px at 82% 18%, rgba(214,177,94,.10), transparent 55%),
    linear-gradient(180deg, rgba(20,0,21,.72), rgba(0,0,0,.16));
  box-shadow: var(--shadow);
  padding:22px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:start;
}
h1{margin:0; font-size:30px; line-height:1.06}
.lead{
  margin:10px 0 0;
  color:var(--muted);
  max-width: 70ch;
  text-align: justify;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}
.stats{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}
.stat{
  border-radius:18px;
  border:1px solid rgba(214,177,94,.14);
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.10));
  padding:12px;
}
.stat .n{font-weight:900; font-size:18px}
.stat .l{font-size:12px; color:var(--muted)}

.controls{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  margin-top:14px;
}
.input{
  flex:1;
  min-width: 240px;
  display:flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(214,177,94,.16);
  background: rgba(0,0,0,.16);
}
.input input{
  width:100%;
  border:0; outline:0;
  background: transparent;
  color: var(--text);
  font-size:14px;
}
.input input::placeholder{color: rgba(200,184,204,.65)}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px; border-radius:16px;
  border:1px solid rgba(214,177,94,.35);
  background: linear-gradient(135deg, rgba(111,44,255,.26), rgba(111,44,255,.10));
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  color:var(--text);
  cursor:pointer;
  white-space: normal;
  text-align:center;
  line-height:1.15;
  min-height:44px;
}
.btn:hover{border-color: rgba(214,177,94,.55)}
.btn.gold{
  background: linear-gradient(135deg, rgba(214,177,94,.26), rgba(214,177,94,.10));
}
.btn.ghost{
  background: transparent;
  border:1px solid rgba(214,177,94,.20);
  color: var(--muted);
  box-shadow:none;
}

.section{
  padding:18px 0 26px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.card{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(214,177,94,.14);
  background: linear-gradient(180deg, rgba(16,0,18,.72), rgba(0,0,0,.16));
  box-shadow: 0 14px 40px rgba(0,0,0,.42);
  position:relative;
}
.card::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(214,177,94,.12);
}
.card button{
  all: unset;
  display:block;
  cursor:pointer;
  width:100%;
}
.thumb{
  aspect-ratio: 4/5;
  background:
    radial-gradient(700px 360px at 30% 35%, rgba(214,177,94,.12), transparent 60%),
    radial-gradient(700px 360px at 75% 45%, rgba(111,44,255,.14), transparent 60%),
    linear-gradient(135deg, rgba(0,0,0,.18), rgba(0,0,0,.55));
  position:relative;
  overflow:hidden;
}
.thumb img{
  width:100%; height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.001);
}
.card:hover .thumb img{transform: scale(1.04); transition: transform .35s ease}
.cap{
  padding:12px 12px 14px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.cap .label{font-size:12px; color: var(--muted)}
.cap .tag{
  font-size:11px; letter-spacing:.12em;
  text-transform:uppercase;
  color: rgba(214,177,94,.92);
  border:1px solid rgba(214,177,94,.22);
  padding:8px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.12);
}

.footer{
  padding:20px 0 34px;
  border-top:1px solid rgba(214,177,94,.16);
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.18));
}
.footer .mini{
  font-size:12px;
  color: rgba(200,184,204,.86);
  text-align: justify;
  hyphens:auto;
  overflow-wrap:anywhere;
  word-break:normal;
}

/* Lightbox */
.lb{
  position:fixed; inset:0; z-index:200;
  display:none;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
}
.lb.open{display:block}
.lb-inner{
  position:absolute; inset:18px;
  display:grid;
  grid-template-rows: auto 1fr auto;
  gap:10px;
}
.lb-top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.lb-title{font-size:12px; color:rgba(214,177,94,.92); letter-spacing:.14em; font-weight:900; text-transform:uppercase}
.lb-actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.lb-btn{
  all:unset;
  cursor:pointer;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(214,177,94,.25);
  background: rgba(0,0,0,.18);
  color: var(--text);
  min-height: 40px;
  display:inline-flex; align-items:center; justify-content:center;
}
.lb-btn:hover{border-color: rgba(214,177,94,.55)}
.lb-stage{
  border-radius: 22px;
  border:1px solid rgba(214,177,94,.16);
  background: rgba(0,0,0,.22);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid; place-items:center;
}
.lb-stage img{
  max-width: 100%;
  max-height: 100%;
  width:auto; height:auto;
}
.lb-bottom{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  color: var(--muted);
  font-size:12px;
}
.lb-hint{opacity:.92}

@media (max-width: 1040px){
  .grid{grid-template-columns: repeat(3, 1fr)}
  .hero-grid{grid-template-columns: 1fr}
  .stats{grid-template-columns: repeat(3, 1fr)}
}
@media (max-width: 720px){
  .grid{grid-template-columns: repeat(2, 1fr)}
  h1{font-size:26px}
}
@media (max-width: 520px){
  .container{width:min(var(--max), calc(100% - 26px))}
  .grid{grid-template-columns: 1fr}
  .stats{grid-template-columns: 1fr}
  .lb-inner{inset:12px}
}

/* Justificação perfeita dos textos institucionais */

.l{
  text-align: justify;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.6;
  max-width: 70ch;
}

body{
  user-select:none;
  -webkit-user-select:none;
  -moz-user-select:none;
}

img{
  pointer-events:none;
}

/* --- Marca institucional (título + subtítulo) --- */

.brand-fixed{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}

.brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1;
}

.brand-title{
  margin:0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight:700;
  letter-spacing:.2px;
  color:#d4af37;
}

.brand-subtitle{
  margin-top:-1px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight:400;
  color:#d8d0c6;
}

/* --- TOPO --- */

header .brand-fixed .brand-title{
  font-size:16px;
}

header .brand-fixed .brand-subtitle{
  font-size:12px;
}

/* --- RODAPÉ --- */

footer .brand-fixed .brand-title{
  font-size:14px;
}

footer .brand-fixed .brand-subtitle{
  font-size:12px;
}

/* --- TAMANHO DO LOGO --- */

header .brand-fixed img{
  width:42px;
  height:42px;
}

footer .brand-fixed img{
  width:38px;
  height:38px;
}

.online-label{
  display:flex;
  align-items:center;
  gap:8px;
}

.dot-online{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#22c55e;
  position:relative;
  flex-shrink:0;
}

.dot-online::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:#22c55e;
  opacity:0.6;
  animation:pulseOnline 1.6s infinite;
}

@keyframes pulseOnline{
  0%{
    transform:scale(1);
    opacity:0.7;
  }
  70%{
    transform:scale(2.5);
    opacity:0;
  }
  100%{
    opacity:0;
  }
}

body::after{
  content: "ICH • USO RESTRITO";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: max-content;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  color: rgba(212,175,55,0.18);
  text-shadow: 0 0 2px rgba(0,0,0,0.25);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2147483647;
}

html, body {
  margin: 0;
  padding: 0;
  background: #12030a !important; /* use o tom mais escuro real do site */
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

#app, main, .site-wrap, .page, .page-wrap {
  background: transparent;
}

html {
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #1a060c 0%, #12030a 100%);
  z-index: -1;
  pointer-events: none;
}
