@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root {
  --bg: #030806;
  --bg-2: #0a1410;
  --panel: #0e1b15;
  --line: rgba(190, 255, 214, 0.10);
  --line-2: rgba(190, 255, 214, 0.18);
  --ink: #eef6f0;
  --muted: #93a79b;
  --green: #30d158;
  --green-deep: #107c10;
  --amber: #64d2ff;
  --radius: 28px;
  --display: -apple-system, "SF Pro Display", "Inter", system-ui, sans-serif;
  --body: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono: var(--body);
  --media: /static/media;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--body); font-size: .86rem; font-weight: 600; letter-spacing: .01em; color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }

/* ---------- navegação ---------- */
.nav { position: fixed; inset: 16px 0 auto; z-index: 50; }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: #cfdcd4; transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-links .cta { background: var(--green); color: #04130a; font-weight: 600; padding: 10px 18px; margin-left: 6px; }
.nav-links .cta:hover { background: #5cf08b; color: #04130a; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; }
.nav-toggle span::before { content: ""; position: absolute; top: 6px; left: 0; }
.nav-toggle span { top: -3px; }

/* ---------- barra de progresso de rolagem ---------- */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--green), var(--amber)); }

/* ---------- hero em slides ---------- */
.hero { position: relative; height: min(100svh, 1000px); min-height: 720px; display: grid; align-items: center; text-align: center; padding: 110px 0 150px; isolation: isolate; overflow: hidden; background: var(--bg); }
.slide { position: absolute; inset: 0; z-index: -4; opacity: 0; filter: blur(22px); transform: scale(1.1); transition: opacity 1.4s ease, filter 1.4s ease, transform 2s cubic-bezier(.2,.7,.2,1); }
.slide.on { opacity: 1; filter: none; transform: none; z-index: -3; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.62); }
.slide.on img { animation: zoom 10s cubic-bezier(.2,.6,.2,1) both; }
@keyframes zoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.slide::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 46%, rgba(3,8,6,.62), rgba(3,8,6,.2) 70%), linear-gradient(180deg, rgba(3,8,6,.55) 0%, transparent 30%, transparent 62%, var(--bg) 100%); }
#rede { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .5; }
.copy { display: none; }
.copy.on { display: block; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(110%); }
.copy.on .w > span { animation: sobe 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.2s + var(--w) * 60ms); }
@keyframes sobe { to { transform: none; } }
.copy.on .fade { animation: surge 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, .2s); }
@keyframes surge { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } }
.slider-ui { position: absolute; left: 0; right: 0; bottom: 44px; z-index: 2; }
.slider-row { display: flex; align-items: center; gap: 6px; width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; padding: 7px; border-radius: 999px; }
.dots { display: flex; gap: 4px; }
.dot { position: relative; overflow: hidden; border: 0; background: transparent; cursor: pointer; color: #b8c7be; font: inherit; font-size: .9rem; font-weight: 500; padding: 11px 18px; border-radius: 999px; transition: color .3s, background .3s; isolation: isolate; }
.dot:hover { color: #fff; background: rgba(255,255,255,.07); }
.dot.on { color: #fff; background: rgba(255,255,255,.09); }
.dot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.16); transform: scaleX(0); transform-origin: 0 50%; }
.dot.on::after { animation: enche var(--dur, 6.5s) linear forwards; }
.hero.pausado .dot.on::after { animation-play-state: paused; }
@keyframes enche { to { transform: scaleX(1); } }
.dot b { display: none; font-weight: 600; }
.arrows { display: flex; gap: 4px; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.14); }
.arrows button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.arrows button:hover { background: rgba(255,255,255,.16); }
.hero-grid { display: grid; gap: 26px; justify-items: center; margin-top: 18px; }
.hero .h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.03; margin: 0; max-width: 17ch; }
.hero .h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--green) 0%, #d6ffe3 50%, var(--amber) 105%); -webkit-background-clip: text; background-clip: text; }
.hero-side p { margin: 0 auto 28px; color: #d5e0d9; font-size: 1.15rem; max-width: 600px; }
.hero .actions { justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: .98rem; transition: transform .2s, background .2s, border-color .2s;
}
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--green); color: #04130a; }
.btn-primary:hover { background: #5cf08b; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-2); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); }

/* ---------- faixa de órgãos atendidos ---------- */
.marquee { border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: #b9cabf; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 7px; height: 7px; background: var(--green); transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
section { padding: 120px 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.head h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.head p { margin: 0; color: var(--muted); max-width: 460px; justify-self: end; }
.tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.tag::before { content: ""; width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(47,227,106,.18); }

/* números */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.stat { padding: 34px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #fff; }
.stat b sup { font-size: .4em; color: var(--green); margin-left: 4px; vertical-align: top; }
.stat p { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }


/* ecossistema: gráfico animado */
.eco { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.eco h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); margin-bottom: 22px; }
.eco p { color: var(--muted); max-width: 440px; margin: 0 0 28px; }
.eco svg { width: 100%; height: auto; overflow: visible; }
.eco .anel { fill: none; stroke: var(--line-2); stroke-dasharray: 3 9; transform-origin: 360px 360px; animation: gira 60s linear infinite; }
.eco .anel.b { animation-duration: 90s; animation-direction: reverse; stroke-dasharray: 1 14; }
@keyframes gira { to { transform: rotate(360deg); } }
.eco .fio { stroke: rgba(47,227,106,.28); stroke-width: 1.2; }
.eco .no circle.base { fill: var(--panel); stroke: rgba(47,227,106,.6); stroke-width: 1.5; }
.eco .no circle.pulso { fill: none; stroke: var(--green); transform-box: fill-box; transform-origin: center; animation: pulso 3s ease-out infinite; animation-delay: calc(var(--k) * .33s); }
@keyframes pulso { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.eco .no text { fill: #dbe8df; font-family: var(--body); font-size: 19px; font-weight: 500; text-anchor: middle; }
.eco .no .n { fill: var(--green); font-family: var(--mono); font-size: 13px; }
.eco .dado { fill: var(--amber); filter: drop-shadow(0 0 6px var(--amber)); }
.eco .nucleo { fill: #0c2a18; stroke: var(--green); stroke-width: 2; }
.eco .halo { fill: rgba(47,227,106,.14); transform-origin: 360px 360px; animation: respira 4s ease-in-out infinite; }
@keyframes respira { 50% { transform: scale(1.18); opacity: .5; } }

/* bento de soluções */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 250px; gap: 16px; }
.cell {
  position: relative; overflow: hidden; border-radius: var(--radius); isolation: isolate;
  border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  grid-column: span 4; transition: border-color .3s, transform .3s;
}
.cell.xl { grid-column: span 7; grid-row: span 2; }
.cell.tall { grid-column: span 5; grid-row: span 2; }
.cell.wide { grid-column: span 6; }
.cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.75) brightness(.72); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.cell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,11,8,.05) 20%, rgba(5,11,8,.92) 92%); }
.cell::after { /* luz que segue o cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(47,227,106,.28), transparent 60%);
}
.cell:hover { border-color: rgba(47,227,106,.55); transform: translateY(-3px); }
.cell:hover::after { opacity: 1; }
.cell:hover img { transform: scale(1.06); filter: saturate(1) brightness(.85); }
.cell .num { position: absolute; top: 20px; left: 24px; color: #fff; opacity: .85; }
.cell .go { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); transition: background .25s, color .25s, transform .25s; }
.cell:hover .go { background: var(--green); color: #04130a; transform: rotate(-45deg); }
.cell h3 { font-size: 1.55rem; margin-bottom: 8px; }
.cell.xl h3, .cell.tall h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.cell p { margin: 0; color: #c4d2c9; font-size: .95rem; max-width: 420px; }

/* valores */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-2), transparent); }
.value .mono { color: var(--green); }
.value h3 { font-size: 1.4rem; margin: 40px 0 10px; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }

/* linha do tempo */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.step { padding: 28px 28px 0 0; position: relative; }
.step::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--bg), 0 0 18px var(--green); }
.step b { font-family: var(--display); font-size: 2.4rem; font-weight: 600; letter-spacing: -.03em; display: block; line-height: 1; margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* setor público */
.gov { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gov-photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; border: 1px solid var(--line); }
.gov-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.8); }
.gov-list { display: grid; gap: 16px; }
.gov-item { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: border-color .3s, background .3s; }
.gov-item:hover { border-color: rgba(47,227,106,.5); background: var(--panel); }
.gov-item h3 { font-size: 1.5rem; margin-bottom: 6px; }
.gov-item p { margin: 0; color: var(--muted); font-size: .93rem; }

/* chamada final */
.cta-box { position: relative; padding: 2px; border-radius: 34px; background: conic-gradient(from var(--ang), transparent 0 62%, var(--green) 78%, var(--amber) 88%, transparent 96%); animation: spin 7s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }
.cta-in { border-radius: 32px; padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 80px); text-align: center; background: radial-gradient(70% 120% at 50% 0%, #10361f 0%, var(--bg-2) 62%); }
.cta-in h2 { font-size: clamp(2.3rem, 6vw, 5rem); margin-bottom: 20px; }
.cta-in p { color: #c4d2c9; margin: 0 auto 32px; max-width: 480px; }
.cta-in .onde { margin: -14px auto 30px; font-size: .95rem; }
.cta-in .onde a { color: var(--green); border-bottom: 1px solid rgba(48,209,88,.4); }
.cta-in .actions { justify-content: center; }

/* rodapé */
footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.foot img { height: 52px; width: auto; margin-bottom: 18px; }
.foot p { color: var(--muted); font-size: .93rem; max-width: 320px; margin: 0; }
.foot address { font-style: normal; margin-top: 18px; }
.foot address a { color: #cfdcd4; line-height: 1.55; }
.foot h4 { margin: 0 0 16px; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.foot a { display: block; padding: 5px 0; color: #cfdcd4; font-size: .95rem; }
.foot a:hover { color: var(--green); }
.foot-end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }


/* ---------- aurora de fundo (dá o que o vidro refrata) ---------- */
body::before { content: ""; position: fixed; inset: -25%; z-index: -1; pointer-events: none; filter: blur(70px);
  background:
    radial-gradient(34% 34% at 22% 30%, rgba(48,209,88,.42), transparent 70%),
    radial-gradient(30% 30% at 80% 22%, rgba(100,210,255,.30), transparent 70%),
    radial-gradient(38% 38% at 62% 82%, rgba(16,124,16,.50), transparent 70%),
    radial-gradient(26% 26% at 12% 86%, rgba(94,92,230,.22), transparent 70%);
  animation: aurora 34s ease-in-out infinite alternate; }
@keyframes aurora { 0% { transform: translate(0,0) rotate(0deg) scale(1); } 50% { transform: translate(4%,-5%) rotate(12deg) scale(1.1); } 100% { transform: translate(-5%,4%) rotate(-10deg) scale(1.05); } }

/* ---------- vidro fosco ---------- */
.glass, .nav-bar, .stats, .value, .gov-item, .cap, .cta-in, .cell .num, .btn-ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 20px 50px -24px rgba(0,0,0,.7);
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
}
.stat { border-color: rgba(255,255,255,.12); }
.nav-links .cta, .btn-primary { background: #fff; color: #06140c; }
.nav-links .cta:hover, .btn-primary:hover { background: var(--green); color: #04130a; }
.cell { padding: 12px; background: #0b1410; border-color: rgba(255,255,255,.12); }
.cell::before { background: linear-gradient(180deg, transparent 45%, rgba(3,8,6,.45)); }
.cell img { filter: saturate(.95) brightness(.88); }
.cell:hover { border-color: rgba(255,255,255,.4); }
.cell::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 60%); }
.cap { padding: 16px 18px; border-radius: 20px; }
.cell h3 { font-size: 1.35rem; margin-bottom: 4px; }
.cell.xl h3, .cell.tall h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cell .num { top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; color: #fff; font-size: .8rem; opacity: 1; }
.cell .go { top: 12px; right: 12px; }
.cell:hover .go { background: #fff; color: #06140c; }
.value .mono { color: var(--green); }
.gov-item:hover { background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.07)); border-color: rgba(255,255,255,.35); }
.gov-item .mono { color: #fff; }
.cta-box { background: conic-gradient(from var(--ang), rgba(255,255,255,.1) 0 60%, var(--green) 76%, var(--amber) 88%, rgba(255,255,255,.1) 96%); }
.cta-in { background: linear-gradient(180deg, rgba(10,30,18,.82), rgba(5,12,9,.9)); }
.marquee span::after { border-radius: 50%; transform: none; width: 5px; height: 5px; }
.step::before { box-shadow: 0 0 0 5px rgba(3,8,6,.6), 0 0 18px var(--green); }
.foot h4 { letter-spacing: .01em; text-transform: none; font-size: .86rem; font-weight: 600; }
.foot-end.mono { color: var(--muted); font-weight: 400; }
.eco .no .n { font-family: var(--body); font-weight: 600; }
.tag::before { display: none; }
@media (max-width: 1020px) { .dot span { display: none; } .dot b { display: inline; } .dot { padding: 11px 16px; } }
@media (max-width: 620px) { .hero { min-height: 760px; padding-bottom: 130px; } .slider-ui { bottom: 30px; } }

/* ---------- animação de entrada ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav-bar { border-radius: 28px; flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 6px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .nav-links .cta { margin: 6px 0 0; text-align: center; }
  .hero-grid, .head, .gov, .eco { grid-template-columns: 1fr; }
  .hero-grid { gap: 22px; }

  .head p { justify-self: start; }
  .stats, .values, .timeline { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .timeline { row-gap: 40px; }
  .cell, .cell.xl, .cell.tall, .cell.wide { grid-column: span 6; grid-row: span 1; }
  .cell.xl { grid-column: span 12; }
  .foot { grid-template-columns: 1fr 1fr; }
  section { padding: 84px 0; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .hud { inset: 88px 12px 12px; }
  .hud-top .coord { display: none; }

  .cell, .cell.xl, .cell.tall, .cell.wide { grid-column: span 12; }
  .bento { grid-auto-rows: 230px; }
  .stats, .values, .timeline, .foot { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .btn { width: 100%; justify-content: center; }
  .gov-photo { min-height: 260px; }
}

/* =================== páginas internas =================== */
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .98rem; }
.page-hero { --page-bg: url("/static/media/2025/07/DSC09783-scaled.jpg"); position: relative; padding: 176px 0 76px; overflow: hidden; isolation: isolate; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: -40px; z-index: -2; background: var(--page-bg) center / cover no-repeat; filter: blur(22px) saturate(1.1) brightness(.5); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 40%, rgba(3,8,6,.5), rgba(3,8,6,.15) 70%), linear-gradient(180deg, rgba(3,8,6,.6) 0%, transparent 35%, var(--bg) 100%); }
.page-hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); max-width: 20ch; margin: 14px auto 0; }
.page-hero .lead { color: #d5e0d9; max-width: 640px; margin: 20px auto 0; font-size: 1.12rem; }
.crumb { font-size: .88rem; color: #b8c7be; }
.crumb a:hover { color: #fff; }
.crumb i { font-style: normal; opacity: .5; margin: 0 8px; }
.page-body { padding: 8px 0 110px; }
.prose { max-width: 860px; margin-inline: auto; padding: clamp(24px, 5vw, 60px); border-radius: var(--radius); font-size: 1.06rem; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { color: #cdd9d1; margin: 0 0 1.15em; }
.prose > p:first-of-type { font-size: 1.22rem; color: #eef6f0; line-height: 1.55; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.2em 0 .7em; padding-top: 1.4em; border-top: 1px solid rgba(255,255,255,.12); }
.prose h2:first-child { padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 .6em; }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--green); border-bottom: 1px solid rgba(48,209,88,.4); }
.prose a:hover { border-bottom-color: var(--green); }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: .8em; color: #cdd9d1; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(48,209,88,.7); }
.prose ol { padding-left: 1.3em; margin: 0 0 1.4em; color: #cdd9d1; }
.prose ol li { margin-bottom: .7em; }
.prose img { border-radius: 20px; margin: 28px 0; height: auto; }
.prose iframe, .prose video { max-width: 100%; border-radius: 20px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--green); color: #eef6f0; font-size: 1.15rem; }
.prose code { background: rgba(255,255,255,.1); padding: 2px 7px; border-radius: 7px; font-size: .9em; }
.cover { max-width: 1000px; margin: 0 auto 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.cover img { width: 100%; }
.vazio { text-align: center; color: var(--muted); }
.vazio strong { display: block; font-size: 1.3rem; margin-bottom: 8px; }

/* notícias */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.post { display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: var(--radius); transition: transform .3s, border-color .3s; }
.post:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.4); }
.post time { font-size: .86rem; font-weight: 600; color: var(--green); }
.post h2 { font-size: 1.5rem; line-height: 1.12; }
.post p { margin: 0; color: var(--muted); font-size: .97rem; flex: 1; }
.post .mais { font-weight: 600; font-size: .93rem; color: #fff; }
.post:hover .mais { color: var(--green); }

/* contato */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; max-width: 1040px; margin-inline: auto; align-items: start; }
.card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); }
.card h2 { font-size: 1.6rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; color: #dbe8df; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--green); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(48,209,88,.2); }
.info-item { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.info-item:first-of-type { border-top: 0; padding-top: 0; }
.info-item span { display: block; font-size: .86rem; font-weight: 600; color: var(--green); margin-bottom: 6px; }
.info-item a, .info-item p { color: #eef6f0; margin: 0; line-height: 1.5; }
.info-item a:hover { color: var(--green); }
.ok { text-align: center; }
.ok strong { display: block; font-family: var(--display); font-size: 1.7rem; letter-spacing: -.03em; margin-bottom: 8px; }
.ok p { color: var(--muted); margin: 0; }
.glass.prose, .glass.post, .glass.card { display: block; }
.glass.post { display: flex; }
@media (max-width: 1020px) { .contact { grid-template-columns: 1fr; } .page-hero { padding: 150px 0 60px; } }
.prose h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 .7em; }
.prose h2, .prose h3, .prose h4 { line-height: 1.15; }
.prose h4, .prose h5 { font-family: var(--display); font-size: 1.15rem; font-weight: 600; margin: 1.6em 0 .5em; }
.prose h2 + p, .prose h3 + p, .prose h4 + p { margin-top: .6em; }

/* =================== animações no celular e no toque =================== */
.nav-bar { transition: padding .35s, background .35s, box-shadow .35s; }
.nav.rolou .nav-bar { background: linear-gradient(180deg, rgba(20,34,27,.78), rgba(8,16,12,.72)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px -18px rgba(0,0,0,.9); }
.nav-toggle span, .nav-toggle span::before { transition: transform .35s cubic-bezier(.2,.8,.2,1), top .35s; }
.nav-toggle[aria-expanded="true"] span { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(-90deg); }
.btn:active, .cell:active, .post:active, .gov-item:active, .dot:active, .arrows button:active { transform: scale(.96); transition-duration: .1s; }
/* estado "em foco": no toque não existe hover, então o cartão acende ao passar pelo meio da tela */
.cell.foco { border-color: rgba(255,255,255,.42); }
.cell.foco .go { background: #fff; color: #06140c; transform: rotate(-45deg); }
.cell.foco::after { opacity: 1; animation: varre 2.6s ease-in-out infinite alternate; }
@keyframes varre { from { --mx: 8%; --my: 20%; } to { --mx: 92%; --my: 80%; } }
@property --mx { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }
@property --my { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }
.value, .gov-item, .post, .step::before { transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s, background .4s, box-shadow .4s; }
.value.foco, .post.foco { border-color: rgba(255,255,255,.4); transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 26px 60px -26px rgba(48,209,88,.55); }
.gov-item.foco { border-color: rgba(255,255,255,.4); background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.07)); }
.gov-item.foco .mono { color: var(--green); }
.step.foco::before { transform: scale(1.5); box-shadow: 0 0 0 5px rgba(3,8,6,.6), 0 0 26px 6px var(--green); }
.step b { transition: color .4s; }
.step.foco b { color: var(--green); }

@media (max-width: 1020px) {
  /* menu abre deslizando, com os itens em cascata */
  .nav-links { display: flex; max-height: 0; opacity: 0; overflow: hidden; padding-block: 0; visibility: hidden;
    transition: max-height .5s cubic-bezier(.2,.8,.2,1), opacity .35s, padding .5s, visibility 0s .5s; }
  .nav-links.open { max-height: 78svh; opacity: 1; padding: 8px 0 6px; visibility: visible; overflow-y: auto; transition-delay: 0s; }
  .nav-links > * { opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .4s cubic-bezier(.2,.8,.2,1), background .2s, color .2s; }
  .nav-links.open > * { opacity: 1; transform: none; transition-delay: calc(60ms + var(--n, 0) * 45ms); }
  /* entrada dos blocos com mais presença */
  .rv { transform: translateY(40px) scale(.94); filter: blur(8px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .9s; }
  .rv.in { filter: none; }
  .timeline { border-top: 0; border-left: 1px solid rgba(190,255,214,.18); padding-left: 0; row-gap: 34px; }
  .step { padding: 0 0 0 26px; }
  .step::before { top: 8px; left: -6px; }
}
/* a foto do cartão se desloca conforme a página rola (paralaxe) */
@supports (animation-timeline: view()) {
  @media (max-width: 1020px) {
    .cell img { animation: paralaxe linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .gov-photo img { animation: paralaxe linear both; animation-timeline: view(); }
    @keyframes paralaxe { from { transform: scale(1.22) translateY(-7%); } to { transform: scale(1.22) translateY(7%); } }
    .head h2 { animation: titulo linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes titulo { from { letter-spacing: .02em; opacity: .25; } to { letter-spacing: -.035em; opacity: 1; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .rv { filter: none; }
  .nav-links > * { opacity: 1; transform: none; }
}

/* =================== botão de som =================== */
.nav-links { order: 2; margin-left: auto; }
.som { order: 3; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--green); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, transform .2s; }
.som:hover { background: rgba(255,255,255,.14); }
.som:active { transform: scale(.92); }
.barras { display: flex; align-items: center; gap: 3px; height: 16px; }
.barras i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 50%; animation: barra 1s ease-in-out infinite; }
.barras i:nth-child(2) { animation-delay: -.35s; } .barras i:nth-child(3) { animation-delay: -.7s; } .barras i:nth-child(4) { animation-delay: -.15s; }
@keyframes barra { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.som[aria-pressed="false"] { color: var(--muted); }
.som[aria-pressed="false"] .barras i { animation: none; transform: scaleY(.18); }
@media (max-width: 1020px) {
  .nav-bar { gap: 8px; }
  .som { order: 1; margin-left: auto; }
  .nav-toggle { order: 2; }
  .nav-links { order: 4; margin-left: 0; }
}

@media (max-width: 1020px) { .cell img { transition: filter .5s; } }

.som.espera { color: #fff; animation: chama 1.8s ease-out infinite; }
@keyframes chama { 0% { box-shadow: 0 0 0 0 rgba(48,209,88,.6); } 100% { box-shadow: 0 0 0 14px rgba(48,209,88,0); } }

/* =================== menu em níveis (estrutura em app/menu.py) =================== */
.nav-bar { position: relative; }
.nav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 999px; background: none; color: #cfdcd4; font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.nav-links > a { white-space: nowrap; }
.nav-btn:hover, .nav-item.aberto > .nav-btn { background: rgba(255,255,255,.07); color: #fff; }
.nav-btn .seta { flex-shrink: 0; opacity: .7; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.nav-item.aberto > .nav-btn .seta { transform: rotate(180deg); }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub-tit { margin: 0 0 6px; padding: 0 14px; font-size: .78rem; font-weight: 600; color: var(--green); }
.nav-links .sub a { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 14px; line-height: 1.35; }
.nav-links .sub a:hover { background: rgba(255,255,255,.09); }
.sub .fora { opacity: .55; }
.nav-links .sub .sub-todos { margin-top: 8px; color: var(--green); font-weight: 600; }
.nav-links [aria-current] { color: #fff; background: rgba(255,255,255,.1); }
.nav-item.atual > .nav-btn { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }

@media (min-width: 1021px) {
  .nav-item { position: relative; }
  .nav-item.largo { position: static; }
  .sub { position: absolute; top: calc(100% + 22px); left: 50%; min-width: 248px; translate: -50% 0; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .22s, transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .22s; }
  .sub::before { content: ""; position: absolute; inset: -26px 0 auto; height: 26px; } /* ponte para o mouse não "cair" entre o botão e o painel */
  .nav-item.aberto > .sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-item.largo > .sub { top: calc(100% + 10px); width: min(800px, 100%); }
  .sub-in { padding: 12px; border-radius: 26px; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(180deg, #16241d, #09110d); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 30px 70px -24px rgba(0,0,0,.95); max-height: calc(100svh - 130px); overflow-y: auto; }
  .largo .sub-in { padding: 22px 16px 14px; }
  .sub-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  @media (scripting: none) { .nav-item:hover > .sub, .nav-item:focus-within > .sub { visibility: visible; opacity: 1; transform: none; } }
}
@media (min-width: 1021px) and (max-width: 1180px) {
  .nav-bar { gap: 12px; }
  .nav-links { gap: 0; }
  .nav-btn, .nav-links > a:not(.cta) { padding-inline: 10px; font-size: .88rem; }
  .nav-logo img { height: 30px; }
}
@media (max-width: 1020px) {
  .nav-bar { row-gap: 0; } /* a linha vazia do menu fechado deixava a barra mais alta embaixo */
  .nav .nav-bar:has(.nav-links.open) { background: linear-gradient(180deg, rgba(20,34,27,.96), rgba(8,16,12,.96)); } /* fundo firme para ler os itens */
  .nav-btn { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1rem; }
  .nav-links > a { font-size: 1rem; }
  .sub { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1), visibility 0s .4s; }
  .nav-item.aberto > .sub { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
  .sub-in { overflow: hidden; min-height: 0; }
  .sub-in > :first-child { margin-top: 12px; }
  .sub-in > :last-child { margin-bottom: 10px; }
  .sub ul { margin-left: 14px; padding-left: 6px; border-left: 1px solid var(--line-2); }
  .sub-col + .sub-col { margin-top: 14px; }
  .nav-links .sub a { padding: 12px 14px; }
  .nav-links .sub .sub-todos { margin-left: 6px; }
}
@media (max-width: 360px) { .nav-bar { padding-left: 14px; gap: 0 6px; } .nav-logo img { height: 28px; } }
