﻿/* ==========================================================================
   CiberGuia — Segurança na Internet
   Design system premium v2
   Light mode refinado · tipografia display · glassmorphism · footer escuro
   ========================================================================== */

:root {
  --bg: #F6F8FB;
  --bg-2: #EEF2F8;
  --surface: #FFFFFF;
  --surface-2: #F7FAFE;
  --surface-3: #EDF1F7;
  --border: rgba(13, 28, 60, 0.08);
  --border-strong: rgba(13, 28, 60, 0.16);

  --text: #0B1B3A;
  --text-soft: #36455F;
  --muted: #5A6882;

  --primary: #0B6BE6;
  --primary-2: #2E5BFF;
  --navy: #152C63;
  --navy-2: #0F2149;
  --violet: #5B4AE0;
  --violet-2: #7A34E8;
  --emerald: #059669;
  --emerald-2: #0D9488;
  --gold: #A15C07;
  --gold-2: #C97E0A;
  --amber: #C77C0A;
  --rose: #DE2C5B;
  --rose-2: #C0194B;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(13, 28, 60, 0.04), 0 3px 12px rgba(13, 28, 60, 0.05);
  --shadow-md: 0 2px 6px rgba(13, 28, 60, 0.05), 0 18px 44px rgba(13, 28, 60, 0.09);
  --shadow-lg: 0 4px 10px rgba(13, 28, 60, 0.06), 0 34px 74px rgba(13, 28, 60, 0.16);
  --shadow-glow: 0 0 50px rgba(11, 107, 230, 0.15);

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 88% -12%, rgba(46, 91, 255, 0.07), transparent 60%),
    radial-gradient(900px 500px at -12% 22%, rgba(21, 44, 99, 0.05), transparent 55%),
    radial-gradient(760px 500px at 50% 118%, rgba(11, 107, 230, 0.045), transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02" 1, "cv03" 1, "cv04" 1;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: #044CA6; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.14;
  margin: 0 0 0.5em;
  letter-spacing: -0.035em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(11, 107, 230, 0.35); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(11, 107, 230, 0.16); color: var(--text); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#B7C4DA, #9CB1CC);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#96AAC6, #7D94B5); }

[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }

.container { width: min(1180px, 92%); margin-inline: auto; }

section { position: relative; padding: 88px 0; }

.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 27px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #0B6BE6 0%, #2E5BFF 55%, #1E40AF 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(23, 55, 140, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:hover { box-shadow: 0 16px 36px rgba(23, 55, 140, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(13, 28, 60, 0.07);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand img { width: 42px; height: 42px; }
.brand span b { color: var(--primary); }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  position: relative;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 10px 15px;
  border-radius: 12px;
  transition: color 0.16s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-cta {
  margin-left: 10px;
  padding: 11px 22px;
  font-size: 0.92rem;
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
  border: none;
}
.nav-cta:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.55);
  transform: translateY(-1px);
}

/* ---------- Dropdown menu ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  color: var(--text-soft);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(11, 107, 230, 0.06);
  color: var(--primary);
}
.nav-dropdown-menu a svg { width: 18px; height: 18px; color: var(--primary); flex: none; }

@media (max-width: 860px) {
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(11, 107, 230, 0.04);
    border-radius: 12px;
    margin-top: 4px;
    padding: 4px;
  }
  .nav-dropdown-menu a { padding: 11px 14px; }
}

.hamburger {
  display: none;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hamburger:hover { border-color: var(--primary); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 104px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 107, 230, 0.15) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(640px 440px at 30% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(640px 440px at 30% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}
.hero-copy { min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(11, 107, 230, 0.06);
  border: 1px solid rgba(11, 107, 230, 0.25);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px 17px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
}

.hero h1 { margin-bottom: 0.42em; }
.hero h1 .grad {
  background: linear-gradient(100deg, #0B6BE6, #2E5BFF 45%, #1E40AF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.16rem; color: var(--text-soft); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.85rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: calc(var(--radius-lg) + 14px);
  background: linear-gradient(135deg, rgba(11, 107, 230, 0.16), rgba(21, 44, 99, 0.12));
  filter: blur(26px);
  z-index: -1;
}
.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(13, 28, 60, 0.18), 0 0 0 1px rgba(13, 28, 60, 0.05), var(--shadow-glow);
}

/* ---------- Section headers ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.sec-head .kicker::before,
.sec-head .kicker::after {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 107, 230, 0.55));
}
.sec-head .kicker::after { background: linear-gradient(90deg, rgba(11, 107, 230, 0.55), transparent); }
.sec-head h2 { margin-bottom: 0.35em; }
.sec-head p { color: var(--muted); font-size: 1.06rem; }
.sec-head.left { text-align: left; margin-inline: 0; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 107, 230, 0.24);
  box-shadow: var(--shadow-lg);
}

.topic-card { position: relative; overflow: hidden; padding: 0 30px 30px; }
.topic-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pc1, var(--primary)), var(--pc2, var(--primary-2)));
  z-index: 3;
}
.topic-card--plain { padding-top: 30px; }
.topic-card--plain .icon { margin: 0 0 18px; }
.topic-card .thumb {
  display: block;
  width: calc(100% + 60px);
  max-width: none;
  height: 158px;
  margin-left: -30px;
  margin-right: -30px;
  object-fit: cover;
  object-position: center center;
  background: linear-gradient(135deg, #F8FBFE, #EAF1FA);
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.topic-card:hover .thumb { transform: scale(1.035); }
.topic-card .icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin: -27px 0 18px;
  background: linear-gradient(135deg, var(--pc1, var(--primary)), var(--pc2, var(--primary-2)));
  box-shadow: 0 10px 24px rgba(13, 28, 60, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 0 4px var(--surface);
}
.topic-card .icon svg { width: 30px; height: 30px; color: #FFFFFF; }
.topic-card h3 { margin-bottom: 0.4em; }
.topic-card p { color: var(--muted); font-size: 0.96rem; }
.topic-card a.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 10px;
  transition: gap 0.18s ease;
}
.topic-card a.learn-more:hover { gap: 14px; }

/* ---------- Feature list ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .f-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 107, 230, 0.09), rgba(21, 44, 99, 0.07));
  border: 1px solid rgba(11, 107, 230, 0.22);
  color: var(--primary);
}
.feature h4 { margin-bottom: 0.25em; font-size: 1.06rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  position: relative;
  display: flex;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  counter-increment: step;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.step:hover { border-color: rgba(11, 107, 230, 0.22); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step .num {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(23, 55, 140, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.step h4 { margin: 0 0 0.35em; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Alerts (tip / warn / danger / info) ---------- */
.alert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: var(--radius-md);
  padding: 18px 22px 18px 24px;
  border: 1px solid;
  border-left-width: 4px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(12, 22, 49, 0.03);
}
.alert svg { flex: none; width: 26px; height: 26px; margin-top: 2px; }
.alert strong { display: block; margin-bottom: 2px; font-family: var(--font-display); }
.alert p { margin: 0; font-size: 0.97rem; color: var(--text-soft); }

.alert-tip { background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(5, 150, 105, 0.03)); border-color: rgba(5, 150, 105, 0.28); border-left-color: var(--emerald); }
.alert-tip strong { color: var(--emerald); }
.alert-tip svg { color: var(--emerald); }

.alert-warn { background: linear-gradient(135deg, rgba(199, 124, 10, 0.09), rgba(199, 124, 10, 0.03)); border-color: rgba(199, 124, 10, 0.3); border-left-color: var(--amber); }
.alert-warn strong { color: var(--amber); }
.alert-warn svg { color: var(--amber); }

.alert-danger { background: linear-gradient(135deg, rgba(222, 44, 91, 0.08), rgba(222, 44, 91, 0.03)); border-color: rgba(222, 44, 91, 0.28); border-left-color: var(--rose); }
.alert-danger strong { color: var(--rose); }
.alert-danger svg { color: var(--rose); }

.alert-info { background: linear-gradient(135deg, rgba(11, 107, 230, 0.06), rgba(21, 44, 99, 0.04)); border-color: rgba(11, 107, 230, 0.24); border-left-color: var(--primary-2); }
.alert-info strong { color: var(--primary-2); }
.alert-info svg { color: var(--primary-2); }

/* ---------- Accordion ---------- */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.accordion details { border-bottom: 1px solid var(--border); }
.accordion details:last-child { border-bottom: none; }
.accordion details[open] {
  background: linear-gradient(180deg, rgba(11, 107, 230, 0.035), transparent);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.16s ease;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: rgba(13, 28, 60, 0.025); }
.accordion summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--primary);
  background: rgba(11, 107, 230, 0.09);
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.accordion details[open] summary::after {
  transform: rotate(45deg);
  background: var(--primary);
  color: #FFFFFF;
}
.accordion .a-body { padding: 0 26px 22px; color: var(--text-soft); font-size: 0.98rem; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 16px 22px; font-size: 0.95rem; }
th {
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  border-bottom: 1px solid var(--border-strong);
}
td { border-bottom: 1px solid var(--border); color: var(--text-soft); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(11, 107, 230, 0.035); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tag-ok { background: rgba(5, 150, 105, 0.12); color: var(--emerald); }
.tag-no { background: rgba(222, 44, 91, 0.12); color: var(--rose); }
.tag-warn { background: rgba(199, 124, 10, 0.13); color: var(--amber); }

/* ---------- Illustration in content ---------- */
.page-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.page-visual img { width: 100%; height: auto; }
.visual-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.visual-card img { width: 100%; }

/* ---------- Premium visuals (glow + floating badges) ---------- */
.img-shell { position: relative; }
.img-shell::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: calc(var(--radius-lg) + 18px);
  background: linear-gradient(135deg, rgba(11, 107, 230, 0.14), rgba(21, 44, 99, 0.12));
  filter: blur(22px);
  z-index: -1;
  transition: opacity 0.25s ease;
}
.img-shell .page-visual { transition: transform 0.28s ease, box-shadow 0.28s ease; }
.img-shell:hover .page-visual { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.float-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text);
  box-shadow: 0 10px 26px rgba(13, 28, 60, 0.14), 0 1px 2px rgba(13, 28, 60, 0.06);
  animation: float 4.5s ease-in-out infinite;
}
.float-badge svg { width: 18px; height: 18px; flex: none; }
.float-badge.fb-emerald svg { color: var(--emerald); }
.float-badge.fb-cyan svg { color: var(--primary); }
.float-badge.fb-violet svg { color: var(--violet); }
.float-badge.fb-amber svg { color: var(--amber); }
.float-badge.fb-top { top: 20px; left: -20px; }
.float-badge.fb-bottom { bottom: 24px; right: -18px; }
.float-badge.fb-right { top: 26px; right: -20px; }
.float-badge.fb-left { bottom: 26px; left: -20px; }
.float-badge.fb-delay-1 { animation-delay: 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.page-visual.wide { width: 100%; max-width: 720px; margin-inline: auto; display: block; }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(11, 107, 230, 0.07), rgba(21, 44, 99, 0.08)),
    var(--surface);
  border: 1px solid rgba(11, 107, 230, 0.16);
  padding: 58px 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 107, 230, 0.14), transparent 65%);
  top: -180px;
  right: -130px;
  pointer-events: none;
}
.cta-banner::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 44, 99, 0.12), transparent 65%);
  bottom: -200px;
  left: -120px;
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 0.3em; }
.cta-banner p { color: var(--text-soft); margin: 0 0 20px; max-width: 560px; }
.cta-banner .cta-img { position: relative; width: 300px; }
.cta-banner .cta-img img { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 72px 0 76px; text-align: center; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 107, 230, 0.28), transparent);
  pointer-events: none;
}
.page-hero .breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--primary); }
.page-hero h1 { margin-bottom: 0.35em; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin-inline: auto; }

.hero-medallion {
  width: 86px;
  height: 86px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--primary);
  border: 2px solid transparent;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) padding-box,
    linear-gradient(135deg, #0B6BE6, #2E5BFF, #152C63) border-box;
  box-shadow: 0 14px 34px rgba(13, 28, 60, 0.16), 0 0 0 1px rgba(13, 28, 60, 0.03);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}
.hero-medallion svg { width: 42px; height: 42px; }
.hero-medallion:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13, 28, 60, 0.2), 0 0 0 1px rgba(13, 28, 60, 0.03); }

.two-col { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 52px; align-items: center; }

/* ---------- Password checker ---------- */
.checker { max-width: 640px; }
.checker input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 16px 20px;
  box-shadow: inset 0 1px 2px rgba(12, 22, 49, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.checker input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 107, 230, 0.14);
}
.meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(12, 22, 49, 0.08);
  overflow: hidden;
  margin: 16px 0 10px;
}
.meter .bar { height: 100%; width: 0; border-radius: 999px; transition: width 0.35s ease, background 0.35s ease; }
.meter-0 .bar { background: var(--rose); width: 14%; }
.meter-1 .bar { background: #EA580C; width: 34%; }
.meter-2 .bar { background: var(--amber); width: 58%; }
.meter-3 .bar { background: #65A30D; width: 80%; }
.meter-4 .bar { background: var(--emerald); width: 100%; }
.checker .label { font-weight: 600; font-size: 0.95rem; }
.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-top: 14px; }
.criteria li { list-style: none; display: flex; gap: 10px; align-items: center; font-size: 0.92rem; color: var(--muted); transition: color 0.2s ease; }
.criteria li.ok { color: var(--emerald); font-weight: 500; }
.criteria .c-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex: none;
  display: grid;
  place-items: center;
  font-size: 11px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.criteria li.ok .c-dot { border-color: var(--emerald); background: rgba(5, 150, 105, 0.12); color: var(--emerald); }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 720px; margin-inline: auto; }
.quiz-progress { display: flex; gap: 8px; margin-bottom: 26px; }
.quiz-progress i {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(12, 22, 49, 0.09);
  transition: background 0.3s ease;
}
.quiz-progress i.done { background: linear-gradient(90deg, var(--primary), var(--navy)); }
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.quiz-card h3 { margin-bottom: 22px; }
.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 15px 20px;
  border-radius: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.quiz-opt:hover { border-color: var(--primary); color: var(--text); box-shadow: 0 4px 14px rgba(11, 107, 230, 0.1); transform: translateY(-1px); }
.quiz-opt.correct { border-color: var(--emerald); background: rgba(5, 150, 105, 0.1); color: var(--emerald); font-weight: 600; }
.quiz-opt.wrong { border-color: var(--rose); background: rgba(222, 44, 91, 0.1); color: var(--rose); font-weight: 600; }
.quiz-opt.disabled { cursor: default; opacity: 0.75; }
.quiz-opt.disabled:hover { border-color: var(--border-strong); color: var(--text-soft); box-shadow: none; transform: none; }
.quiz-opt .tag { margin-left: 10px; }
.quiz-result { text-align: center; padding: 44px 24px; }
.quiz-result .score {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(100deg, #0B6BE6, #2E5BFF 45%, #1E40AF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.quiz-next { margin-top: 18px; }

/* ---------- Phishing test ---------- */
.phish-from {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.phish-card {
  background: linear-gradient(135deg, #F8FBFE, #EEF4FB);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 22px;
  font-size: 0.98rem;
  color: var(--text);
}
.phish-card b { color: var(--text); }
.phish-verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.phish-verdict button {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.16s ease;
}
.phish-verdict button:hover { border-color: var(--primary); color: var(--text); box-shadow: 0 4px 14px rgba(11, 107, 230, 0.1); transform: translateY(-1px); }
.phish-verdict button:disabled { cursor: default; opacity: 0.75; transform: none; box-shadow: none; }
.phish-verdict button.correct { border-color: var(--emerald); background: rgba(5, 150, 105, 0.1); color: var(--emerald); }
.phish-verdict button.wrong { border-color: var(--rose); background: rgba(222, 44, 91, 0.1); color: var(--rose); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  box-shadow: inset 0 1px 2px rgba(12, 22, 49, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 107, 230, 0.14);
}
.form-success {
  display: none;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.04));
  border: 1px solid rgba(5, 150, 105, 0.4);
  border-left: 4px solid var(--emerald);
  color: var(--emerald);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-success.show { display: block; }

.form-error {
  display: none;
  background: linear-gradient(135deg, rgba(222, 44, 91, 0.08), rgba(222, 44, 91, 0.03));
  border: 1px solid rgba(222, 44, 91, 0.4);
  border-left: 4px solid var(--rose);
  color: var(--rose);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-error.show { display: block; }

/* ---------- Contact info cards ---------- */
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-item:hover { border-color: rgba(11, 107, 230, 0.24); box-shadow: var(--shadow-md); }
.contact-item .c-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0B6BE6, #1E40AF);
  box-shadow: 0 8px 18px rgba(23, 55, 140, 0.24);
}
.contact-item .c-icon svg { color: #fff; stroke: #fff; }
.contact-item h4 { margin-bottom: 2px; font-size: 1.02rem; }
.contact-item p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; color: var(--text-soft); }
.check-list li::before {
  content: "\2713";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.14), rgba(5, 150, 105, 0.08));
  color: var(--emerald);
  border: 1px solid rgba(5, 150, 105, 0.35);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  color: #C6D1E3;
  background:
    radial-gradient(720px 360px at 12% 0%, rgba(11, 107, 230, 0.18), transparent 60%),
    radial-gradient(640px 340px at 92% 100%, rgba(21, 44, 99, 0.35), transparent 60%),
    #0A1424;
  padding: 72px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { color: #F2F6FC; margin-bottom: 16px; }
.footer .brand:hover { color: #F2F6FC; }
.footer .brand span b { color: #6FB1FF; }
.footer p { color: #9AA8BF; font-size: 0.93rem; max-width: 320px; }
.footer h4 {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8EDF7;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: #9AA8BF; font-size: 0.95rem; transition: color 0.16s ease, padding-left 0.16s ease; }
.footer ul a:hover { color: #7CB8FF; padding-left: 3px; }
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #8B98B0;
  font-size: 0.88rem;
}
.footer-bottom a { color: #8B98B0; }
.footer-bottom a:hover { color: #7CB8FF; }
.footer-bottom span { color: #FFFFFF; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--primary); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; max-width: 560px; margin-inline: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner .cta-img { margin-inline: auto; }
  .cta-banner p { margin-inline: auto; }
}

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 16px 5%;
    margin: 0;
    transform: translateY(-130%);
    transition: transform 0.32s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { display: block; padding: 13px 14px; font-size: 1.05rem; }
  .nav-links a::after { left: 14px; right: auto; bottom: 10px; width: 26px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-cta.btn { justify-content: center; }
}

@media (max-width: 680px) {
  section { padding: 66px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .criteria { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 40px 26px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .step { flex-direction: column; gap: 14px; }
  .quiz-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ---------- Share buttons ---------- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 28px 0;
  margin: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-bar .share-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.share-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: #FFFFFF;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.share-bar a:hover { transform: translateY(-2px); filter: brightness(1.1); color: #FFFFFF; }
.share-bar a:active { transform: scale(0.97); }
.share-bar a svg { width: 18px; height: 18px; flex: none; }
.share-whatsapp { background: #25D366; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35); }
.share-facebook { background: #1877F2; box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35); }
.share-twitter { background: #000000; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.share-telegram { background: #0088CC; box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35); }

@media (max-width: 480px) {
  .share-bar { gap: 10px; }
  .share-bar a { padding: 9px 14px; font-size: 0.82rem; }
}

/* ---------- Threat map ---------- */
#ameacas { padding: 80px 0 60px; }
#ameacas .sec-head { text-align: center; margin-bottom: 40px; }
#ameacas .sec-head p { max-width: 620px; margin: 10px auto 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

.map-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .map-grid { grid-template-columns: 1fr; }
}

.map-wrap {
  position: relative;
  background: linear-gradient(145deg, #F8FAFC 0%, #EFF6FF 50%, #F0F9FF 100%);
  border: 1px solid rgba(11, 107, 230, 0.12);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(11, 107, 230, 0.06), 0 20px 50px rgba(11, 107, 230, 0.08);
  overflow: hidden;
}
.map-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22C55E, #EAB308, #F97316, #EF4444);
  border-radius: 20px 20px 0 0;
}
@media (max-width: 620px) {
  .map-wrap {
    padding: 16px;
  }
  .map-wrap #brMap {
    min-width: 0;
  }
}

.map-select {
  max-width: 340px;
  margin-bottom: 18px;
}
.map-select label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.map-select select {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.map-select select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 107, 230, 0.15);
}

#brMap {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}
#brMap [data-level] {
  fill: url(#risk1);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  filter: url(#stateShadow);
}
#brMap [data-level]:hover {
  filter: url(#glow);
  transform: scale(1.02);
}
#brMap [data-level].active {
  filter: url(#activeGlow);
  stroke: var(--navy);
  stroke-width: 3.2;
  transform: scale(1.03);
}
#brMap [data-level="0"] { fill: url(#risk0); }
#brMap [data-level="1"] { fill: url(#risk1); }
#brMap [data-level="2"] { fill: url(#risk2); }
#brMap [data-level="3"] { fill: url(#risk3); }
#brMap [data-level="4"] { fill: url(#risk4); }

@keyframes pulse-critical {
  0%, 100% { filter: url(#stateShadow); }
  50% { filter: url(#activeGlow); }
}
#brMap [data-level="4"] {
  animation: pulse-critical 3s ease-in-out infinite;
}

#brMap .region-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  fill: rgba(11, 44, 99, 0.18);
  text-anchor: middle;
  pointer-events: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#brMap .state-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  fill: #FFFFFF;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.3);
  stroke-width: 2.5px;
  stroke-linejoin: round;
  transition: opacity 0.2s ease;
}
#brMap .state-label.sm { font-size: 10.5px; }
#brMap .state-label.xs { font-size: 8.5px; }

.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  box-shadow: 0 8px 24px rgba(15, 33, 73, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.map-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--navy);
  border-radius: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.map-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.map-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.map-info-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  padding: 24px;
}
.map-info-placeholder svg { margin-bottom: 14px; opacity: 0.6; }
.map-info-placeholder p { margin: 0; }

.map-info-content {
  width: 100%;
  animation: fadeSlideIn 0.35s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.map-info-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.map-info-uf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  background: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 107, 230, 0.3);
}
.map-info-head h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.map-info-level {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.map-info-level[data-level="0"] { background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(34,197,94,0.08)); color: #16A34A; }
.map-info-level[data-level="1"] { background: linear-gradient(135deg, rgba(77,124,15,0.12), rgba(132,204,22,0.08)); color: #4D7C0F; }
.map-info-level[data-level="2"] { background: linear-gradient(135deg, rgba(180,83,9,0.12), rgba(234,179,8,0.08)); color: #B45309; }
.map-info-level[data-level="3"] { background: linear-gradient(135deg, rgba(194,65,12,0.12), rgba(249,115,22,0.08)); color: #C2410C; }
.map-info-level[data-level="4"] { background: linear-gradient(135deg, rgba(153,27,27,0.12), rgba(239,68,68,0.08)); color: #991B1B; }

.map-info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.map-stat {
  text-align: center;
  padding: 14px 10px;
  background: linear-gradient(145deg, var(--bg-2), #F8FAFC);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.map-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.map-stat-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 4px;
}
.map-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.map-info-top-scams { margin-bottom: 16px; }
.map-info-top-scams h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 700;
}
.map-info-top-scams ul { list-style: none; margin: 0; padding: 0; }
.map-info-top-scams li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.15s ease;
}
.map-info-top-scams li:last-child { border-bottom: none; }
.map-info-top-scams li:hover { background: var(--bg-2); }
.map-info-top-scams li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(11, 107, 230, 0.3);
}

.map-info-source {
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.map-legend-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 500;
}
.map-legend-item i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ---------- Simulador SMS/WhatsApp ---------- */
.sim-wrap { max-width: 420px; margin: 0 auto; }
.sim-card {
  border-radius: 18px;
  overflow: hidden;
  background: #0a0f1a;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.sim-progress {
  display: flex;
  gap: 6px;
  padding: 14px 16px 0;
  justify-content: center;
}
.sim-progress i {
  width: 32px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  transition: background 0.3s;
}
.sim-progress i.done { background: var(--emerald); }
.sim-progress i.active { background: var(--violet); }

.sim-body {
  padding: 0 16px 20px;
  min-height: 420px;
}

/* Phone status bar */
.sim-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 4px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.sim-statusbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sim-statusbar-right svg { width: 16px; height: 16px; }

/* Message header bar */
.sim-msg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sim-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.sim-avatar.sms { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.sim-avatar.wa { background: linear-gradient(135deg, #22c55e, #16a34a); }
.sim-avatar svg { width: 22px; height: 22px; fill: #fff; }
.sim-msg-sender { font-weight: 700; color: #fff; font-size: 0.95rem; }
.sim-msg-meta { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* Message bubble */
.sim-bubble-wrap {
  display: flex;
  margin: 10px 0;
}
.sim-bubble-wrap.incoming { justify-content: flex-start; }
.sim-bubble-wrap.outgoing { justify-content: flex-end; }
.sim-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #fff;
  position: relative;
  animation: bubbleIn 0.35s ease;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.sim-bubble.incoming {
  background: #1e293b;
  border-bottom-left-radius: 4px;
  color: #e2e8f0;
}
.sim-bubble.incoming a {
  color: #38bdf8;
  text-decoration: underline;
  word-break: break-all;
}
.sim-bubble.outgoing {
  background: linear-gradient(135deg, #059669, #10b981);
  border-bottom-right-radius: 4px;
}
.sim-bubble-time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* Verdict buttons */
.sim-verdict {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 6px;
}
.sim-verdict button {
  flex: 1;
  padding: 14px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.sim-verdict button:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
}
.sim-verdict button[data-v="1"]:hover { border-color: var(--rose); color: var(--rose); }
.sim-verdict button[data-v="0"]:hover { border-color: var(--emerald); color: var(--emerald); }
.sim-verdict button.correct {
  border-color: var(--emerald) !important;
  color: var(--emerald) !important;
  background: rgba(16,185,129,0.12) !important;
}
.sim-verdict button.wrong {
  border-color: var(--rose) !important;
  color: var(--rose) !important;
  background: rgba(244,63,94,0.12) !important;
}
.sim-verdict button:disabled { opacity: 0.5; cursor: default; }

/* Feedback alert inside sim */
.sim-feedback {
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  font-size: 0.85rem;
  line-height: 1.6;
  animation: bubbleIn 0.3s ease;
}
.sim-feedback.tip {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #a7f3d0;
}
.sim-feedback.danger {
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.25);
  color: #fda4af;
}
.sim-feedback strong { display: block; margin-bottom: 6px; font-size: 0.92rem; }
.sim-feedback .sim-next {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.sim-feedback .sim-next:hover { background: var(--violet-dark); }

/* Result screen */
.sim-result {
  text-align: center;
  padding: 40px 20px;
  animation: bubbleIn 0.4s ease;
}
.sim-result .sim-score {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sim-result .sim-score-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.sim-result .sim-msg {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.6;
}
.sim-result .sim-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.sim-result .sim-actions .btn { min-width: 150px; }

/* Channel badge */
.sim-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.sim-channel-badge.sms {
  background: rgba(14,165,233,0.15);
  color: #38bdf8;
}
.sim-channel-badge.wa {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}

/* Tooltip on sender name */
.sim-sender-tooltip {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
}

@media (max-width: 480px) {
  .sim-wrap { max-width: 100%; }
  .sim-card { border-radius: 0; }
  .sim-bubble { max-width: 92%; }
}

/* ---------- Gamificação ---------- */
.cg-stats-panel {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
}
.cg-stats-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cg-stat {
  flex: 1;
  min-width: 70px;
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}
.cg-stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.cg-stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.cg-badges {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cg-badges-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  font-weight: 600;
}
.cg-badges-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: all 0.3s;
}
.cg-badge.earned {
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.3);
  box-shadow: 0 0 10px rgba(168,85,247,0.15);
}
.cg-badge.pending {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0.35;
  filter: grayscale(1);
}
.cg-earned-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 10px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  color: #c4b5fd;
  font-size: 0.85rem;
  animation: badgePop 0.4s ease;
}
.cg-earned-badge span { font-size: 1.2rem; }
@keyframes badgePop {
  0%   { opacity: 0; transform: scale(0.85); }
  60%  { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.cg-improved {
  display: inline-block;
  padding: 6px 14px;
  margin: 8px 0;
  border-radius: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  color: #6ee7b7;
  font-size: 0.82rem;
}
.cg-compare {
  display: inline-block;
  padding: 6px 14px;
  margin: 8px 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-soft);
  font-size: 0.82rem;
}
.cg-history {
  margin: 14px 0;
  text-align: left;
}
.cg-history strong {
  font-size: 0.78rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cg-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cg-history-item {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.cg-history-item.good {
  background: rgba(16,185,129,0.1);
  color: #6ee7b7;
}
.cg-history-item.mid {
  background: rgba(245,158,11,0.1);
  color: #fcd34d;
}
.cg-history-item.low {
  background: rgba(244,63,94,0.1);
  color: #fda4af;
}
.cg-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Banner de consentimento de cookies (LGPD) ---------- */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 150%);
  max-width: 720px;
  width: calc(100% - 24px);
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease;
}
.cookie-consent.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cookie-consent .cookie-icon {
  flex: 0 0 auto;
  color: var(--emerald);
  display: flex;
}
.cookie-consent .cookie-icon svg {
  width: 28px;
  height: 28px;
}
.cookie-consent .cookie-text {
  flex: 1 1 auto;
  min-width: 0;
}
.cookie-consent .cookie-text strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text);
}
.cookie-consent .cookie-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.cookie-consent .cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}
.cookie-consent .cookie-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}
.cookie-consent .cookie-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 4px;
}
.cookie-consent .cookie-close:hover { color: var(--text); }
@media (max-width: 640px) {
  .cookie-consent { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cookie-consent .cookie-actions { width: 100%; }
  .cookie-consent .cookie-actions .btn { flex: 1; text-align: center; padding: 10px 16px; font-size: 0.92rem; }
  .cookie-consent .cookie-text p { line-height: 1.45; }
}
@media (min-width: 641px) and (max-width: 860px) {
  .cookie-consent { max-width: calc(100% - 24px); }
}

/* Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .float-badge { animation: none; }
}
