:root {
  --bg: #070a12;
  --bg-2: #0d1322;
  --panel: #121a2c;
  --panel-2: #182236;
  --border: #263349;
  --border-soft: #1b2740;
  --text: #eef2fb;
  --text-dim: #a6b6d2;
  --text-mut: #6f809f;
  --accent: #4da3ff;
  --accent-2: #7c5cff;
  --oe: #4da3ff;
  --md: #33d69f;
  --dc: #ffab4d;
  --voice: #c98bff;
  --cert: #ff7597;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --glow: 0 0 60px rgba(77, 163, 255, 0.25);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 82% -8%, rgba(124, 92, 255, 0.18) 0%, transparent 60%),
    radial-gradient(1100px 700px at -5% 0%, rgba(77, 163, 255, 0.14) 0%, transparent 55%),
    radial-gradient(800px 800px at 100% 100%, rgba(51, 214, 159, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #070a12 0%, #060911 100%);
  background-attachment: fixed;
  position: relative;
}

/* faint grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: #7dbcff; text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(77, 163, 255, 0.12);
  color: #bcd8ff;
  padding: 1.5px 6px;
  border-radius: 6px;
  border: 1px solid rgba(77, 163, 255, 0.12);
  white-space: nowrap;
}

/* custom scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #23304a; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #33405c; background-clip: padding-box; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 284px;
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.85), rgba(8, 12, 21, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  z-index: 40;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: 0.5px;
  color: #fff; box-shadow: 0 8px 22px rgba(124, 92, 255, 0.45);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), transparent 45%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: -0.2px; }
.brand-text span { font-size: 11.5px; color: var(--text-mut); }

.search-box { padding: 0 6px 12px; }
.search-box input {
  width: 100%;
  background: rgba(10, 15, 26, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input::placeholder { color: var(--text-mut); }
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.14); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--text-mut); padding: 15px 12px 6px; font-weight: 700;
}
.nav-link {
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  position: relative;
}
.nav-link:hover { background: rgba(77, 163, 255, 0.08); color: var(--text); text-decoration: none; transform: translateX(2px); }
.nav-link.active {
  background: linear-gradient(90deg, rgba(77, 163, 255, 0.18), transparent);
  color: #fff;
}
.nav-link.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(77, 163, 255, 0.7);
}
.nav-link.hidden { display: none; }

.sidebar-footer { margin-top: auto; padding: 16px 12px 4px; font-size: 12px; }

/* ---------- Layout ---------- */
.content {
  margin-left: 284px;
  max-width: 1120px;
  padding: 0 52px 90px;
  position: relative;
  z-index: 1;
}

.menu-toggle {
  display: none;
  position: fixed; top: 14px; left: 14px;
  z-index: 60;
  background: rgba(18, 26, 44, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--border);
  width: 44px; height: 44px; border-radius: 12px;
  font-size: 18px; cursor: pointer;
}
.backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 30;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 46px; border-bottom: 1px solid var(--border-soft); position: relative; }
.hero::before {
  content: ""; position: absolute; top: -40px; left: -60px;
  width: 380px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 70%);
  filter: blur(40px); pointer-events: none; z-index: -1;
}
.hero-badges { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px;
  padding: 6px 13px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
}
.badge-alt {
  background: rgba(24, 34, 54, 0.7);
  color: var(--text-dim);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero h1 { font-size: 50px; line-height: 1.08; font-weight: 800; letter-spacing: -1.4px; }
.grad {
  background: linear-gradient(120deg, #6db3ff, var(--voice) 60%, #ff9ec4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(124, 92, 255, 0.35));
}
.hero-sub { margin-top: 20px; font-size: 17.5px; color: var(--text-dim); max-width: 740px; }

.hero-stats { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.stat {
  background: linear-gradient(180deg, rgba(19, 26, 44, 0.9), rgba(13, 19, 34, 0.7));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 24px;
  min-width: 132px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.stat:hover { transform: translateY(-3px); border-color: rgba(77, 163, 255, 0.4); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.stat strong {
  display: block; font-size: 27px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(120deg, #fff, #b9d3ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 12.5px; color: var(--text-mut); }

/* ---------- Sections ---------- */
.section { padding: 56px 0 8px; scroll-margin-top: 24px; }
.section > p { color: var(--text-dim); max-width: 780px; }
.section h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.6px;
  margin-bottom: 16px; display: flex; align-items: baseline; gap: 14px;
}
.sec-num {
  font-family: var(--mono); font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 4px 10px; border-radius: 8px;
  font-weight: 700; letter-spacing: 0;
  box-shadow: 0 4px 14px rgba(77, 163, 255, 0.35);
}
.ver {
  font-size: 12px; font-weight: 600; color: var(--md);
  background: rgba(51, 214, 159, 0.12); padding: 3px 11px; border-radius: 999px;
  border: 1px solid rgba(51, 214, 159, 0.25);
  letter-spacing: 0.3px; align-self: center;
}
h3.sub { margin: 30px 0 12px; font-size: 16px; font-weight: 700; color: var(--text); }
.section h4 { font-size: 13.5px; margin-bottom: 10px; color: var(--text-dim); font-weight: 600; }

/* reveal on scroll */
.section, .hero { opacity: 1; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(19, 26, 44, 0.92), rgba(11, 16, 28, 0.85));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(400px 120px at 100% 0%, rgba(77, 163, 255, 0.08), transparent 70%);
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(77, 163, 255, 0.35); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 16px; margin-bottom: 12px; letter-spacing: -0.2px; }
.card p { color: var(--text-dim); font-size: 14px; }
.card-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-mut); margin-bottom: 6px;
}
.accent-oe { box-shadow: inset 3px 0 0 var(--oe); }
.accent-md { box-shadow: inset 3px 0 0 var(--md); }
.accent-dc { box-shadow: inset 3px 0 0 var(--dc); }
.accent-oe:hover { box-shadow: inset 3px 0 0 var(--oe), 0 16px 40px rgba(0,0,0,0.4); }
.accent-md:hover { box-shadow: inset 3px 0 0 var(--md), 0 16px 40px rgba(0,0,0,0.4); }
.accent-dc:hover { box-shadow: inset 3px 0 0 var(--dc), 0 16px 40px rgba(0,0,0,0.4); }
.port {
  margin-top: 14px; font-size: 13px; color: var(--text-dim);
  background: rgba(7, 10, 18, 0.7); border: 1px solid var(--border-soft);
  padding: 8px 13px; border-radius: 10px; display: inline-block;
}
.port strong { color: #fff; font-family: var(--mono); }

.tick { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tick li { font-size: 13.5px; color: var(--text-dim); padding-left: 22px; position: relative; }
.tick li::before {
  content: "▸"; position: absolute; left: 4px; color: var(--accent); font-size: 12px;
}
.tick.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; margin-top: 14px; }
.tick.tick-lg { gap: 14px; margin-top: 16px; }
.tick.tick-lg li { font-size: 15px; line-height: 1.55; padding-left: 26px; }
.tick.tick-lg li::before { font-size: 14px; top: 2px; }
.tick strong { color: var(--text); }

.note { font-size: 12.5px; color: var(--text-mut); margin-top: 12px; line-height: 1.6; }
.doc-ref, .doc-card span:last-child {
  font-family: var(--mono); font-size: 11px; color: var(--text-mut);
}
.doc-ref { display: block; margin-top: 12px; }

/* mini table in card */
table.mini { width: 100%; font-size: 13.5px; }
table.mini td { padding: 6px 0; color: var(--text-dim); border-bottom: 1px solid var(--border-soft); }
table.mini tr:last-child td { border-bottom: none; }
table.mini td:first-child { color: var(--text); font-weight: 600; }
table.mini td:not(:first-child) { text-align: right; font-family: var(--mono); }

/* ---------- Data tables ---------- */
.table-wrap {
  margin-top: 18px; border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; overflow-x: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data thead th {
  background: linear-gradient(180deg, #1b2540, #151d31);
  color: #c6d4ee;
  text-align: left; padding: 13px 16px; font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.6px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
table.data td { padding: 12px 16px; border-top: 1px solid var(--border-soft); color: var(--text-dim); vertical-align: top; }
table.data tbody tr { transition: background 0.12s; }
table.data tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.014); }
table.data tbody tr:hover { background: rgba(77, 163, 255, 0.07); }
.req-y { color: var(--md); font-weight: 700; }
.td-muted { color: var(--text-mut); font-style: italic; }

/* ---------- Diff table (TradeMate vs B3) — clean ---------- */
.diff-intro {
  color: var(--text-dim); max-width: 720px; margin-bottom: 20px;
}
table.data.diff-compare thead th.col-tm {
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.22), #151d31);
  color: #cfe4ff;
}
table.data.diff-compare thead th.col-b3 {
  background: linear-gradient(180deg, rgba(51, 214, 159, 0.14), #151d31);
  color: #c5ebe0;
}
table.data.diff-compare tbody td.col-tm {
  color: #d7e8ff;
  border-left: 2px solid rgba(77, 163, 255, 0.35);
  background: rgba(77, 163, 255, 0.04);
}
table.data.diff-compare tbody td.col-b3 {
  color: var(--text-dim);
}
table.data.diff-compare tbody tr:hover td.col-tm {
  background: rgba(77, 163, 255, 0.1);
}
.chip.chip-tm {
  background: rgba(77, 163, 255, 0.14);
  border-color: rgba(77, 163, 255, 0.4);
  color: #b8d7ff;
  font-weight: 600;
}
.tag-only {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; margin-left: 6px;
  vertical-align: middle;
}
.tag-only.tm {
  background: rgba(77, 163, 255, 0.14);
  color: var(--oe);
  border: 1px solid rgba(77, 163, 255, 0.3);
}
.tag-only.b3 {
  background: rgba(51, 214, 159, 0.12);
  color: var(--md);
  border: 1px solid rgba(51, 214, 159, 0.28);
}

/* ---------- Página de crítica ao TradeMate ---------- */
:root {
  --drift: #ffb020;
  --drift-ink: #140c04;
  --drift-soft: rgba(255, 176, 32, 0.16);
  --drift-line: rgba(255, 176, 32, 0.55);
  --roast: #ff4d2e;
}

body.page-roast {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(255, 77, 46, 0.12), transparent 50%),
    radial-gradient(800px 400px at 0% 20%, rgba(255, 176, 32, 0.08), transparent 45%),
    var(--bg, #070a12);
}
body.page-roast .sidebar .brand-mark {
  background: linear-gradient(135deg, #ff4d2e, #ffb020);
  color: #140c04;
  font-size: 22px;
}
body.page-roast .sidebar .brand-text strong { color: #ffc46a; }

.hero-roast {
  border-bottom: none;
  padding-bottom: 28px;
}
.hero-roast::before {
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(255, 77, 46, 0.22), transparent 60%),
    radial-gradient(500px 200px at 70% 30%, rgba(255, 176, 32, 0.18), transparent 55%);
}
.hero-kicker-roast {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--roast);
}
.hero-roast h1 {
  max-width: 16ch;
}
.grad-roast {
  background: linear-gradient(100deg, #ff4d2e, #ffb020 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.badge-roast {
  background: var(--roast) !important;
  color: #fff !important;
  border-color: transparent !important;
  font-weight: 800;
}
.callout-roast {
  border-color: rgba(255, 77, 46, 0.45) !important;
  background: linear-gradient(135deg, rgba(255, 77, 46, 0.14), rgba(255, 176, 32, 0.08)) !important;
}
.callout-roast strong { color: #ffb4a4; }

/* ---------- Timeline (evolução do FIX) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0 22px;
  position: relative;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(51, 214, 159, 0.6));
  border-radius: 2px;
}
.tl-item {
  position: relative;
  padding: 0 0 26px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg, #070a12);
  border: 3px solid var(--accent);
}
.tl-item:last-child::before { border-color: #33d69f; }
.tl-year {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 4px;
}
.tl-body h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
  color: #fff;
  letter-spacing: -0.2px;
}
.tl-body p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 68ch;
}
.tl-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.tl-tag.tl-tm {
  background: rgba(77, 163, 255, 0.14);
  color: #b8d7ff;
  border: 1px solid rgba(77, 163, 255, 0.35);
}
.tl-tag.tl-b3 {
  background: rgba(51, 214, 159, 0.12);
  color: #a9ecd6;
  border: 1px solid rgba(51, 214, 159, 0.3);
}

/* ---------- Roadmap hipotético ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 18px;
  counter-reset: rm;
}
.rm-step {
  background: linear-gradient(180deg, rgba(19, 26, 44, 0.92), rgba(11, 16, 28, 0.85));
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--accent);
  border-radius: 13px;
  padding: 16px;
}
.rm-step:nth-child(2) { border-top-color: #6cc7ff; }
.rm-step:nth-child(3) { border-top-color: #33d69f; }
.rm-step:nth-child(4) { border-top-color: #c98bff; }
.rm-n {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-mut);
  margin-bottom: 8px;
}
.rm-step h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  color: #fff;
  letter-spacing: -0.2px;
}
.rm-step p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ---------- Leaks & fragilidades ---------- */
.leaks {
  margin: 26px 0 8px;
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 77, 46, 0.35);
  background:
    radial-gradient(700px 240px at 85% 0%, rgba(255, 77, 46, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(28, 12, 10, 0.7), rgba(11, 16, 28, 0.4));
}
.leaks-head { margin-bottom: 18px; }
.leaks-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  background: var(--roast, #ff4d2e);
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.leaks-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #fff;
}
.leaks-head h2 em {
  font-style: normal;
  color: #ff8a6e;
  text-decoration: underline;
  text-decoration-color: rgba(255, 77, 46, 0.6);
  text-decoration-thickness: 4px;
  text-underline-offset: 3px;
}
.leaks-lead {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 60ch;
}
.leaks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.leak-card {
  background: linear-gradient(180deg, rgba(20, 12, 10, 0.9), rgba(11, 16, 28, 0.9));
  border: 1px solid var(--border-soft);
  border-left: 4px solid #ff4d2e;
  border-radius: 13px;
  padding: 16px 16px 15px;
}
.leak-card.sev-high { border-left-color: #ff4d2e; }
.leak-card.sev-med  { border-left-color: #ffb020; }
.leak-card.sev-low  { border-left-color: #6cc7ff; }
.leak-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.leak-sev {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.sev-high .leak-sev { background: rgba(255, 77, 46, 0.18); color: #ff8a6e; border: 1px solid rgba(255, 77, 46, 0.4); }
.sev-med  .leak-sev { background: rgba(255, 176, 32, 0.16); color: #ffc46a; border: 1px solid rgba(255, 176, 32, 0.4); }
.sev-low  .leak-sev { background: rgba(108, 199, 255, 0.14); color: #9dd6ff; border: 1px solid rgba(108, 199, 255, 0.38); }
.leak-n {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-mut);
}
.leak-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.2px;
}
.leak-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}
.leak-card code {
  font-size: 12px;
  color: #ffd9a0;
}
@media (max-width: 700px) {
  .leaks { padding: 20px 16px; }
}

/* ---------- TradeMate viaja — NA CARA ---------- */

.drift-face {
  margin: 28px 0 8px;
  padding: 28px 26px 26px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #ffb020 0%, #ff8a1f 42%, #e85d04 100%);
  color: var(--drift-ink);
  box-shadow:
    0 0 0 4px rgba(255, 176, 32, 0.35),
    0 28px 60px rgba(232, 93, 4, 0.35);
  position: relative;
  overflow: hidden;
}
.drift-face::before {
  content: "VIAJA";
  position: absolute;
  right: -8px;
  top: 40%;
  transform: rotate(-12deg) translateY(-50%);
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 900;
  letter-spacing: -4px;
  color: rgba(20, 12, 4, 0.08);
  pointer-events: none;
  line-height: 1;
}
.drift-face-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.drift-face-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: var(--drift-ink);
  color: var(--drift);
  padding: 7px 12px;
  border-radius: 8px;
}
.drift-face-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
}
.drift-face h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  font-weight: 900;
  color: var(--drift-ink);
}
.drift-face h2 em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-thickness: 5px;
  text-underline-offset: 4px;
}
.drift-face-lead {
  position: relative;
  z-index: 1;
  margin: 12px 0 20px;
  font-size: 16px;
  font-weight: 700;
  max-width: 52ch;
  color: rgba(20, 12, 4, 0.88);
}
.drift-face-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drift-face-list li a {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: rgba(20, 12, 4, 0.92);
  color: #fff8ec;
  border-radius: 12px;
  padding: 12px 14px;
  border: 2px solid transparent;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.drift-face-list li a:hover {
  transform: translateX(4px);
  border-color: var(--drift-ink);
  background: #000;
}
.drift-face-list .df-n {
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 900;
  color: var(--drift);
  line-height: 1;
}
.drift-face-list .df-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #fff;
}
.drift-face-list .df-vs {
  font-size: 12.5px;
  color: #ffd9a0;
  font-family: var(--mono);
}
.drift-face-list .df-vs b {
  color: var(--drift);
  font-weight: 800;
}
.drift-face-more {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 16px;
  font-weight: 800;
  font-size: 14px;
  color: var(--drift-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.drift-face-more:hover { opacity: 0.75; }

@media (max-width: 700px) {
  .drift-face { padding: 22px 16px; }
  .drift-face-list li a {
    grid-template-columns: 44px 1fr;
    padding: 11px 12px;
  }
  .drift-face-list .df-n { font-size: 18px; }
  .drift-face-list .df-title { font-size: 14.5px; }
  .drift-face-list .df-vs { font-size: 11.5px; }
}

/* ---------- detalhe abaixo ---------- */

#drift.section {
  position: relative;
  margin-top: 28px;
  padding: 28px 26px 30px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--drift-line);
  background:
    radial-gradient(900px 280px at 10% 0%, rgba(240, 162, 74, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(36, 24, 12, 0.55), rgba(11, 16, 28, 0.35));
  box-shadow: 0 0 0 1px rgba(240, 162, 74, 0.08), 0 18px 50px rgba(0, 0, 0, 0.35);
}
#drift.section > h2 {
  color: #fff;
}
#drift.section > h2 .sec-num {
  color: var(--drift);
}

.drift-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  margin: 0 0 18px;
  border-radius: 14px;
  border: 1px solid var(--drift-line);
  background: linear-gradient(110deg, rgba(240, 162, 74, 0.22), rgba(240, 162, 74, 0.06));
}
.drift-banner-mark {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #1a1208;
  background: var(--drift);
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(240, 162, 74, 0.35);
}
.drift-banner-text {
  margin: 0;
  color: #ffe8c8;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 720px;
}
.drift-banner-text strong { color: #fff; }

.drift-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.drift-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #ffe2b8;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(240, 162, 74, 0.35);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.drift-chip:hover {
  background: rgba(240, 162, 74, 0.18);
  border-color: rgba(240, 162, 74, 0.6);
  transform: translateY(-1px);
}
.drift-chip .n {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  color: #1a1208;
  background: var(--drift);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
}

.drift-list {
  display: flex; flex-direction: column; gap: 14px; margin-top: 4px;
}
.drift-card {
  position: relative;
  background: linear-gradient(180deg, rgba(28, 22, 14, 0.95), rgba(11, 16, 28, 0.92));
  border: 1px solid rgba(240, 162, 74, 0.28);
  border-left: 4px solid var(--drift);
  border-radius: var(--radius);
  padding: 18px 20px 18px 18px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px 18px;
  align-items: start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.drift-card:hover {
  border-color: rgba(240, 162, 74, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.drift-card .drift-num {
  font-family: var(--mono); font-size: 12px; font-weight: 800;
  color: #1a1208;
  background: var(--drift);
  border: none;
  padding: 5px 11px; border-radius: 999px;
  display: inline-block; margin-bottom: 8px;
}
.drift-flag {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--drift);
  background: var(--drift-soft);
  border: 1px solid rgba(240, 162, 74, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
}
.drift-card h3 {
  font-size: 16px; color: #fff; margin: 0 0 6px; letter-spacing: -0.25px;
  grid-column: 2; grid-row: 1;
}
.drift-card .drift-meta {
  grid-column: 1; grid-row: 1 / span 2;
}
.drift-card .drift-body { grid-column: 2; grid-row: 2; }
.drift-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px;
}
.drift-col {
  border-radius: 11px; padding: 12px 14px; font-size: 13px; line-height: 1.5;
}
.drift-col.did {
  background: rgba(240, 162, 74, 0.1);
  border: 1px solid rgba(240, 162, 74, 0.28);
  color: #f3e2c8;
}
.drift-col.could {
  background: rgba(51, 214, 159, 0.08);
  border: 1px solid rgba(51, 214, 159, 0.28);
  color: var(--text-dim);
}
.drift-col strong {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 6px; font-weight: 700;
}
.drift-col.did strong { color: var(--drift); }
.drift-col.could strong { color: var(--md); }
.drift-why {
  margin-top: 12px;
  font-size: 13px;
  color: #ffe0b0;
  background: rgba(240, 162, 74, 0.1);
  border-left: 3px solid var(--drift);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
}
.hero-stats .stat.stat-drift {
  border-color: var(--drift-line);
  background: linear-gradient(180deg, rgba(240, 162, 74, 0.18), rgba(240, 162, 74, 0.05));
  box-shadow: 0 0 0 1px rgba(240, 162, 74, 0.12);
}
.hero-stats .stat.stat-drift strong { color: var(--drift); }
.hero-stats a.stat { text-decoration: none; color: inherit; display: block; }
.nav-link.nav-drift {
  color: #ffd59a !important;
  border-left: 2px solid var(--drift);
  background: rgba(240, 162, 74, 0.08);
}
@media (max-width: 860px) {
  #drift.section { padding: 20px 16px; }
  .drift-banner { flex-direction: column; gap: 10px; }
  .drift-card { grid-template-columns: 1fr; }
  .drift-card .drift-meta,
  .drift-card h3,
  .drift-card .drift-body { grid-column: 1; grid-row: auto; }
  .drift-cols { grid-template-columns: 1fr; }
}

/* pills / chips */
.pill { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.pill-oe { background: rgba(77, 163, 255, 0.16); color: var(--oe); border: 1px solid rgba(77,163,255,0.25); }
.pill-md { background: rgba(51, 214, 159, 0.16); color: var(--md); border: 1px solid rgba(51,214,159,0.25); }
.pill-dc { background: rgba(255, 171, 77, 0.16); color: var(--dc); border: 1px solid rgba(255,171,77,0.25); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.chip {
  font-family: var(--mono); font-size: 12px;
  background: rgba(18, 26, 44, 0.8); border: 1px solid var(--border);
  color: var(--text-dim); padding: 5px 11px; border-radius: 8px;
  transition: transform 0.12s, border-color 0.12s, color 0.12s;
}
.chip:hover { transform: translateY(-2px); border-color: rgba(77, 163, 255, 0.5); color: var(--text); }

.tagvoice {
  font-size: 10px; font-weight: 700; color: var(--voice);
  background: rgba(201, 139, 255, 0.16); padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(201, 139, 255, 0.3);
  margin-left: 6px; vertical-align: middle;
}

/* callout */
.callout {
  margin-top: 24px; background: linear-gradient(100deg, rgba(77, 163, 255, 0.12), rgba(77,163,255,0.02) 60%);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 14px; padding: 18px 20px; font-size: 14px; color: var(--text-dim);
}
.callout strong { color: var(--text); }
.callout-voice { border-left-color: var(--voice); background: linear-gradient(100deg, rgba(201, 139, 255, 0.12), transparent 60%); }

/* flows */
.flow { margin-top: 24px; }
.flow h3 { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.flow-steps { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.fstep {
  background: linear-gradient(180deg, rgba(19,26,44,0.9), rgba(11,16,28,0.8));
  border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 13px 16px; font-size: 13px; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 150px;
  transition: transform 0.15s, border-color 0.15s;
}
.fstep:hover { transform: translateY(-2px); border-color: rgba(77,163,255,0.35); }
.fstep span {
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(77,163,255,0.35);
}
.fstep.oe span { background: linear-gradient(135deg, var(--oe), #2f7ddb); }
.fstep.md span { background: linear-gradient(135deg, var(--md), #1fae7f); }
.farrow { display: grid; place-items: center; color: var(--text-mut); font-size: 18px; }

/* docs grid */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.doc-card {
  background: linear-gradient(180deg, rgba(19,26,44,0.9), rgba(11,16,28,0.8));
  border: 1px solid var(--border-soft);
  border-radius: 13px; padding: 17px 19px; display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.doc-card:hover { transform: translateY(-3px); border-color: rgba(77,163,255,0.35); box-shadow: 0 14px 34px rgba(0,0,0,0.35); }
.doc-card strong { font-size: 14px; color: var(--text); }
.doc-badge {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px;
}
.doc-badge.gen { background: rgba(159, 176, 204, 0.15); color: var(--text-dim); }
.doc-badge.oe { background: rgba(77, 163, 255, 0.16); color: var(--oe); }
.doc-badge.md { background: rgba(51, 214, 159, 0.16); color: var(--md); }
.doc-badge.dc { background: rgba(255, 171, 77, 0.16); color: var(--dc); }
.doc-badge.cert { background: rgba(255, 117, 151, 0.16); color: var(--cert); }

/* footer */
.footer {
  margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-mut); flex-wrap: wrap; gap: 12px;
}
.to-top { font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .cards-2, .cards-3, .doc-grid { grid-template-columns: 1fr; }
  .tick.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
  .content { margin-left: 0; padding: 66px 22px 64px; }
  .menu-toggle { display: block; }
  .sidebar.open ~ .backdrop { display: block; }
  .hero h1 { font-size: 36px; }
  .hero { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}
