﻿:root {
  --bg: #060A10;
  --deep: #0A0E14;
  --panel: #111823;
  --panel-2: #161B24;
  --line: rgba(255,255,255,.14);
  --line-strong: rgba(223,255,0,.36);
  --text: #F5F8FA;
  --muted: #A6AFB8;
  --soft: #7D8793;
  --volt: #DFFF00;
  --volt-2: #CCFF00;
  --cyan: #00E5CC;
  --gold: #FFD700;
  --danger: #FF5C5C;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
  scrollbar-color: rgba(223,255,0,.8) rgba(255,255,255,.06);
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  min-height: 64px;
  border: 2px solid rgba(6,10,16,.92);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--volt), rgba(0,229,204,.9));
  box-shadow: 0 0 18px rgba(223,255,0,.28);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f1ff42, var(--cyan));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 8%, rgba(223,255,0,.18), transparent 26rem),
    radial-gradient(circle at 78% 4%, rgba(0,229,204,.14), transparent 24rem),
    linear-gradient(180deg, rgba(6,10,16,.1), #060A10 46rem);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 72%);
  z-index: -1;
}

a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(6,10,16,.82);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 26px rgba(223,255,0,.28);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 15px; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: 12px; }
.topnav { display: flex; align-items: center; gap: 8px; }
.topnav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
}
.topnav a:hover { color: var(--volt); background: rgba(255,255,255,.06); }

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  padding: clamp(48px, 9vw, 110px) clamp(18px, 4vw, 56px) 42px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(6,10,16,.64), rgba(6,10,16,.9)),
    repeating-linear-gradient(102deg, rgba(223,255,0,.12) 0 2px, transparent 2px 84px);
  opacity: .68;
  transform: skewY(-2deg) translateY(-4%);
  transform-origin: top left;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .66fr);
  gap: clamp(28px, 5vw, 72px);
  width: min(1180px, 100%);
  margin: 0 auto;
}
.eyebrow {
  color: var(--volt);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 12px;
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: .92;
  letter-spacing: 0;
  margin: 0;
  max-width: 920px;
}
.lead {
  color: #D6DEE6;
  font-size: clamp(17px, 2vw, 21px);
  max-width: 760px;
  margin: 24px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}
.button.primary { background: var(--volt); color: #061008; box-shadow: 0 0 30px rgba(223,255,0,.22); }
.button.secondary { border-color: rgba(255,255,255,.18); color: var(--text); background: rgba(255,255,255,.06); }
.status-panel {
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(22,27,36,.92), rgba(10,14,20,.94));
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.logo-wide { max-width: 230px; width: 82%; display: block; margin-bottom: 20px; }
.signal-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 24px; }
.signal-row span { height: 4px; border-radius: 999px; background: var(--volt); box-shadow: 0 0 18px rgba(223,255,0,.45); }
.signal-row span:nth-child(2) { background: var(--cyan); }
.signal-row span:nth-child(3) { background: var(--gold); }
.signal-row span:nth-child(4) { background: #fff; opacity: .55; }
dl { margin: 0; display: grid; gap: 14px; }
dl div { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
dt { color: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
dd { margin: 4px 0 0; color: var(--text); font-weight: 700; }
dd a { color: var(--volt); text-decoration: none; }

.quick-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-band article {
  min-height: 190px;
  padding: 24px;
  background: rgba(22,27,36,.78);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
}
.quick-band h2 { font-size: 18px; margin: 18px 0 8px; }
.quick-band p { color: var(--muted); margin: 0; }
.mini-icon { width: 34px; height: 34px; display: block; border-radius: 50%; background: var(--volt); box-shadow: 0 0 24px rgba(223,255,0,.35); }
.mini-icon.cyan { background: var(--cyan); box-shadow: 0 0 24px rgba(0,229,204,.3); }
.mini-icon.gold { background: var(--gold); box-shadow: 0 0 24px rgba(255,215,0,.3); }

.reader-shell {
  position: relative;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 64px;
  border: 1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(circle at 0 0, rgba(223,255,0,.08), transparent 22rem),
    linear-gradient(180deg, rgba(10,14,20,.86), rgba(6,10,16,.92));
  border-radius: 18px;
  overflow: visible;
  box-shadow: var(--shadow);
}
.reader-tools {
  position: sticky;
  top: 71px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(10,14,20,.9);
  border-radius: 18px 18px 0 0;
  backdrop-filter: blur(16px);
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.tab:hover { transform: translateY(-1px); border-color: rgba(223,255,0,.32); color: var(--text); }
.tab.active { color: #061008; background: var(--volt); border-color: var(--volt); box-shadow: 0 0 24px rgba(223,255,0,.18); }
.searchbox { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 13px; }
.searchbox input {
  width: min(34vw, 310px);
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}
.searchbox input:focus { outline: 2px solid rgba(223,255,0,.36); border-color: transparent; }
.content-layout {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  padding: 22px clamp(18px, 3vw, 34px) 30px 0;
}
.toc {
  position: sticky;
  top: 158px;
  max-height: calc(100vh - 182px);
  overflow-y: auto;
  overflow-x: hidden;
  margin-left: 18px;
  padding: 22px 14px 18px;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(16,22,29,.94), rgba(8,12,18,.94)),
    radial-gradient(circle at 100% 0, rgba(0,229,204,.08), transparent 12rem);
  box-shadow:
    0 18px 54px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
  scrollbar-color: rgba(223,255,0,.62) transparent;
  scrollbar-width: thin;
}
.toc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223,255,0,.55), rgba(0,229,204,.32), transparent);
}
.toc p {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 16px;
  padding: 0 0 13px;
  color: #F5F8FA;
  font-weight: 900;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  background: linear-gradient(180deg, rgba(12,17,23,.98) 76%, rgba(12,17,23,0));
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-shadow: none;
}
.toc p::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 14px rgba(223,255,0,.42);
}
.toc p::after {
  content: "navegação";
  margin-left: auto;
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
#toc-list {
  display: grid;
  gap: 2px;
}
.toc a {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #AEB8C3;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.toc a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: rgba(223,255,0,.72);
  background: rgba(223,255,0,.055);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
}
.toc a b {
  display: block;
  min-width: 0;
  font-weight: 700;
}
.toc a::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px -14px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
.toc a:hover,
.toc a.active {
  color: var(--text);
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.095);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transform: translateX(2px);
}
.toc a.active::before {
  background: var(--volt);
  box-shadow: 0 0 14px rgba(223,255,0,.55);
}
.toc a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(223,255,0,.13), rgba(255,255,255,.045));
  border-color: rgba(223,255,0,.24);
}
.toc a.active span {
  color: #061008;
  background: var(--volt);
  box-shadow: 0 0 16px rgba(223,255,0,.24);
}
.legal-doc {
  display: none;
  padding: clamp(28px, 4vw, 58px) clamp(16px, 3vw, 48px) clamp(28px, 4vw, 58px) 0;
  max-width: 920px;
}
.legal-doc.active { display: block; }
.legal-doc h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: .98;
  margin-bottom: 22px;
  letter-spacing: -.04em;
}
.legal-doc h2 {
  scroll-margin-top: 160px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  margin: 46px 0 14px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  letter-spacing: -.025em;
}
.legal-doc h2 .section-num { color: var(--volt); }
.legal-doc h3 { font-size: 20px; color: var(--volt); margin: 32px 0 10px; letter-spacing: -.01em; }
.legal-doc p { color: #D8E0E7; margin: 0 0 17px; font-size: 16px; }
.legal-doc ul {
  margin: 0 0 24px;
  padding: 16px 18px 16px 38px;
  color: #D8E0E7;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}
.legal-doc li { margin: 7px 0; padding-left: 2px; }
.legal-doc li::marker { color: var(--volt); }
.legal-doc strong { color: #fff; }
mark { background: rgba(223,255,0,.24); color: inherit; border-radius: 4px; padding: 0 2px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255,255,255,.1);
  color: var(--muted);
}
.footer p { margin: 2px 0 0; }
.footer a { color: var(--volt); text-decoration: none; font-weight: 800; }

@media (max-width: 880px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topnav { width: 100%; overflow-x: auto; }
  .hero { min-height: auto; padding-top: 48px; }
  .hero-grid, .quick-band, .content-layout { grid-template-columns: 1fr; }
  .status-panel { align-self: stretch; }
  .reader-tools { position: static; flex-direction: column; align-items: stretch; }
  .searchbox { align-items: stretch; flex-direction: column; gap: 6px; }
  .searchbox input { width: 100%; }
  .content-layout { padding: 16px; }
  .toc {
    position: static;
    max-height: 300px;
    margin-left: 0;
  }
  .legal-doc { padding-left: 0; padding-right: 0; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .brand-copy small { display: none; }
  h1 { font-size: 40px; }
  .quick-band { width: calc(100% - 24px); }
  .reader-shell { width: calc(100% - 24px); }
  .legal-doc { padding: 22px 18px; }
  .tab { flex: 1 1 calc(50% - 4px); font-size: 13px; padding: 0 10px; }
}
