/* ==========================================================================
   RADAR BRATECHS — /newsletter
   Neutro o bastante para acompanhar qualquer uma das 3 opções:
   base escura + luz da marca (#2334B2 · #16A6FC → #3FF9A5)
   ========================================================================== */
:root {
  --bg: #04061A;
  --bg-2: #080D2E;
  --card: rgba(16, 24, 84, .42);
  --text: #EEF1FF;
  --muted: #9AA3D6;
  --line: rgba(201, 207, 255, .12);
  --line-2: rgba(201, 207, 255, .22);
  --brand: #2334B2;
  --cyan: #16A6FC;
  --green: #3FF9A5;
  --grad: linear-gradient(110deg, #16A6FC, #3FF9A5);
  --crit: #FF5C7A;
  --high: #FFB547;
  --med: #16A6FC;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(35, 52, 178, .45), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(22, 166, 252, .10), transparent 60%),
    var(--bg);
  color: var(--text); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body::before { /* grade técnica */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(201,207,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,207,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.dot, .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); display: inline-block; }
.live { animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
main, .top, .foot { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 14px; z-index: 20; margin-top: 14px;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(4, 6, 26, .7); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.top__logo img { height: 24px; width: auto; }
.top__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(63, 249, 165, .12); color: var(--green); }
.top__status { margin-left: auto; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.top__status b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.top__share { font: 500 14px var(--sans); color: var(--bg); background: var(--grad); border: 0; border-radius: 999px; height: 40px; padding: 0 18px; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.top__share:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(63, 249, 165, .7); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.hero__copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(48px, 7vw, 104px); line-height: .95; letter-spacing: -.05em; font-weight: 600; }
.hero__lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero__lead b { color: var(--text); font-weight: 500; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 13, 46, .5); }
.hero__stats div { padding: 14px 22px; }
.hero__stats div + div { border-left: 1px solid var(--line); }
.hero__stats dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero__stats dd { margin: 4px 0 0; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }

.radar { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: center; }
.radar canvas { width: 100%; height: 100%; display: block; }
.radar__legend { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; display: flex; gap: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.radar__legend span { display: inline-flex; align-items: center; gap: 6px; }
.sev { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sev--critica { background: var(--crit); box-shadow: 0 0 10px var(--crit); }
.sev--alta { background: var(--high); box-shadow: 0 0 10px var(--high); }
.sev--media { background: var(--med); box-shadow: 0 0 10px var(--med); }

/* ---------- edição ---------- */
.edition { padding: 56px 0 0; }
.edition__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.edition__head h2, .archive__head h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.035em; font-weight: 600; margin-top: 8px; }
.slots { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 13, 46, .6); }
.slots button { font: 500 13px var(--mono); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .3s, color .3s; }
.slots button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.slots button:disabled { opacity: .35; cursor: default; }

.stories { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.story {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--card);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .4s, transform .5s var(--ease);
  opacity: 0; translate: 0 24px; animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.story::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(63, 249, 165, .12), transparent 65%); }
.story:hover { border-color: var(--line-2); transform: translateY(-3px); }
.story:hover::before { opacity: 1; }
.story:first-child { grid-row: span 2; padding: 36px; }
.story:first-child h3 { font-size: clamp(28px, 2.8vw, 40px); }
.story:first-child .story__summary { font-size: 17px; }
.story__rank { position: absolute; right: 26px; top: 20px; font: 400 64px/1 var(--mono); color: transparent; -webkit-text-stroke: 1px rgba(201, 207, 255, .16); }
.story__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.badge--critica { color: var(--crit); border-color: rgba(255, 92, 122, .45); background: rgba(255, 92, 122, .08); }
.badge--alta { color: var(--high); border-color: rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .08); }
.badge--media { color: var(--med); border-color: rgba(22, 166, 252, .45); background: rgba(22, 166, 252, .08); }
.badge--lang { color: var(--muted); }
.story h3 { font-size: 22px; line-height: 1.18; letter-spacing: -.025em; font-weight: 600; padding-right: 48px; }
.story h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.story h3 a:hover { background-size: 100% 1px; }
.story__summary { color: var(--muted); font-size: 15.5px; }
.story__why { display: grid; gap: 4px; padding: 14px 16px; border-left: 2px solid var(--green); border-radius: 0 12px 12px 0; background: rgba(63, 249, 165, .06); font-size: 14.5px; }
.story__why b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.story__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.source { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.source__mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 600 12px var(--mono); color: var(--bg); background: var(--grad); }
.source small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.read { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.read:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.also { width: 100%; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.also a { color: var(--soft, #C9CFFF); }
.story--skeleton { min-height: 260px; background: linear-gradient(100deg, rgba(16,24,84,.3) 40%, rgba(35,52,178,.35) 50%, rgba(16,24,84,.3) 60%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; opacity: 1; translate: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.story.is-target { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 20px 60px -30px rgba(63, 249, 165, .6); }

/* ---------- arquivo ---------- */
.archive { padding: 96px 0 0; }
.archive__head { display: grid; gap: 24px; margin-bottom: 28px; }
.archive__tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(8, 13, 46, .6); transition: border-color .3s; }
.search:focus-within { border-color: var(--green); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 15px var(--sans); }
.search input::placeholder { color: var(--muted); opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 500 12.5px var(--sans); color: var(--muted); background: rgba(8, 13, 46, .6); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: all .3s; }
.chips button[aria-pressed="true"] { color: var(--bg); background: var(--grad); border-color: transparent; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.day { position: relative; padding-left: 36px; display: grid; gap: 12px; }
.day::before { content: ""; position: absolute; left: 2px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green); box-shadow: 0 0 12px rgba(63, 249, 165, .5); }
.day__label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.row { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 13, 46, .45); text-decoration: none; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.row:hover { border-color: var(--line-2); background: rgba(16, 24, 84, .55); transform: translateX(4px); }
.row__slot { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.row__title { font-size: 15.5px; font-weight: 500; }
.row__title small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }
.row .sev { flex: none; }
.empty { padding: 30px 0; color: var(--muted); }

/* ---------- fontes ---------- */
.sources { padding: 96px 0 40px; display: grid; gap: 22px; }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sources li { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 13, 46, .5); }
.sources li small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-left: 6px; text-transform: uppercase; }
.disclaimer { max-width: 760px; font-size: 13px; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot img { height: 22px; width: auto; }
.foot a { margin-left: auto; color: var(--green); text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; opacity: 0; z-index: 50; padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; transition: all .4s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .radar { max-width: 360px; order: -1; }
  .stories { grid-template-columns: 1fr; }
  .story:first-child { grid-row: auto; }
}
@media (max-width: 620px) {
  main, .top, .foot { width: calc(100% - 32px); }
  .top { padding-left: 14px; gap: 10px; }
  .top__tag { display: none; }
  .top__status span { font-size: 11px; }
  .top__share { padding: 0 14px; font-size: 13px; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .story, .story:first-child { padding: 24px; }
  .story__rank { font-size: 46px; }
  .row { grid-template-columns: 44px 1fr; }
  .row .sev { display: none; }
  .foot a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .story { opacity: 1; translate: none; }
}
