:root {
  --blue: #004496;
  --blue-deep: #002A5C;
  --blue-ink: #001A3D;
  --blue-light: #2F6FD1;
  --orange: #FFAA00;
  --orange-deep: #E69500;
  --green: #5A930D;
  --canvas: #FFFFFF;
  --soft: #F1F4F7;
  --baby: #E8F0FF;
  --ink: #1C2B33;
  --ink-2: #5D6C7B;
  --divider: #DEE3E9;
  --radius-card: 20px;
  --radius-feature: 24px;
  --radius-pill: 100px;
  --shadow-1: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-2: 0 12px 28px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'DM Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.44;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 1.35; font-weight: 700; }
.tabular { font-variant-numeric: tabular-nums; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section--white { background: var(--canvas); }
.section--soft { background: var(--soft); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head .lead { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 14px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--blue-ink);
  padding: 8px 14px; border-radius: var(--radius-pill); font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 16px; }

/* Topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: background 300ms var(--ease), padding 300ms var(--ease), box-shadow 300ms var(--ease);
}
.topbar.is-scrolled {
  background: rgba(0, 26, 61, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 150px; height: auto; transition: width 300ms var(--ease); }
.topbar.is-scrolled .brand img { width: 118px; }
.nav { display: flex; gap: 6px; }
.nav a {
  color: #fff; font-weight: 500; font-size: 15px; padding: 9px 16px; border-radius: var(--radius-pill);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.nav a:hover, .nav a:focus-visible { background: rgba(255, 255, 255, 0.12); color: var(--orange); }
.menu-btn {
  display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px;
}
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 700px at 78% 30%, #0A56B8 0%, var(--blue) 35%, var(--blue-deep) 70%, var(--blue-ink) 100%);
  padding: 150px 0 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero__glow--a { width: 520px; height: 520px; background: rgba(255, 170, 0, 0.22); right: -120px; top: -80px; }
.hero__glow--b { width: 420px; height: 420px; background: rgba(90, 147, 13, 0.20); left: -160px; bottom: -80px; }
.hero__inner {
  position: relative; z-index: 1; flex: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: end;
}
.hero__text { padding-bottom: 96px; align-self: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-bottom: 22px; }
.eyebrow__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(255, 170, 0, 0.2); }
.hero__title { font-size: clamp(52px, 8vw, 104px); line-height: 0.98; font-weight: 800; letter-spacing: -0.03em; }
.hero__title .accent { color: var(--orange); }
.hero__sub { margin-top: 24px; max-width: 560px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 0 36px; }
.hero__facts li { display: flex; flex-direction: column; padding-left: 14px; border-left: 2px solid var(--orange); }
.hero__facts strong { font-size: 22px; font-weight: 700; line-height: 1.2; }
.hero__facts span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

.hero__photo { position: relative; align-self: end; display: flex; justify-content: center; }
.hero__ring {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(620px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 170, 0, 0.35), rgba(255, 170, 0, 0.06) 55%, transparent 72%);
}
.hero__photo picture, .hero__photo img { position: relative; z-index: 1; }
.hero__photo img {
  width: min(600px, 100%); height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}
.hero__strip {
  position: relative; z-index: 2; height: 10px;
  background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--orange) 33.3% 66.6%, var(--green) 66.6% 100%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-pill); font-weight: 600; font-size: 16px;
  transition: transform 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}
.btn:active { transform: scale(0.95); opacity: 0.8; }
.btn--primary { background: var(--orange); color: var(--blue-ink); box-shadow: 0 8px 24px rgba(255, 170, 0, 0.3); }
.btn--primary:hover { background: #FFB829; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255, 170, 0, 0.38); }
.btn--ghost { color: #fff; border: 2px solid rgba(255, 255, 255, 0.35); }
.btn--ghost:hover { background: #fff; color: var(--blue-deep); border-color: #fff; transform: translateY(-3px); }

/* About */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.about__head { position: sticky; top: 110px; }
.about__body p + p { margin-top: 20px; }
.about__body p:first-child { font-size: 21px; font-weight: 500; color: var(--blue-deep); line-height: 1.45; }

/* Pattern strip */
.pattern {
  height: 120px;
  background-image: url('/assets/padrao.webp');
  background-size: auto 120px; background-repeat: repeat-x; background-position: center;
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 22px; }
.timeline::before {
  content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--blue) 50%, var(--green));
}
.timeline__item { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.timeline__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--soft), 0 8px 18px rgba(0, 68, 150, 0.3);
}
.timeline__icon svg { width: 24px; height: 24px; }
.timeline__item:nth-child(1) .timeline__icon { background: var(--orange); color: var(--blue-ink); box-shadow: 0 0 0 6px var(--soft), 0 8px 18px rgba(255, 170, 0, 0.35); }
.timeline__item:nth-child(5) .timeline__icon { background: var(--green); box-shadow: 0 0 0 6px var(--soft), 0 8px 18px rgba(90, 147, 13, 0.35); }
.timeline__card {
  background: var(--canvas); border: 1px solid var(--divider); border-radius: var(--radius-card); padding: 26px 28px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.timeline__card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08); }
.timeline__tag { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 8px; }
.timeline__card p:last-child { margin-top: 8px; color: var(--ink-2); font-size: 17px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--canvas); border: 1px solid var(--divider); border-radius: var(--radius-feature); padding: 34px 30px;
  box-shadow: var(--shadow-1); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.card__icon svg { width: 26px; height: 26px; }
.card__icon--blue { background: var(--baby); color: var(--blue); }
.card__icon--orange { background: #FFF3D6; color: var(--orange-deep); }
.card__icon--green { background: #EAF4DD; color: var(--green); }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 17px; }

/* Quote */
.quote {
  background: radial-gradient(900px 500px at 20% 20%, #0A56B8 0%, var(--blue-deep) 50%, var(--blue-ink) 100%);
  color: #fff; padding: 110px 0; position: relative; overflow: hidden;
}
.quote::after {
  content: ''; position: absolute; right: -80px; bottom: -80px; width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255, 170, 0, 0.14); filter: blur(60px);
}
.quote__inner { position: relative; z-index: 1; max-width: 860px; text-align: center; margin: 0 auto; }
.quote__logo { width: 200px; margin: 0 auto 32px; opacity: 0.95; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.quote__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.pill { padding: 8px 18px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; }
.pill--orange { background: var(--orange); color: var(--blue-ink); }
.pill--blue { background: var(--blue-light); color: #fff; }
.pill--green { background: var(--green); color: #fff; }
.pill--white { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }

/* Footer */
.footer { background: var(--blue-ink); color: rgba(255, 255, 255, 0.8); padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__brand img { width: 170px; }
.footer__brand p { margin-top: 18px; font-size: 15px; line-height: 1.6; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__nav a:hover { color: var(--orange); }
.footer__credit { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.footer__credit img { width: 140px; min-width: 120px; opacity: 0.9; transition: opacity 200ms var(--ease); }
.footer__credit a:hover img { opacity: 1; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal--delay { transition-delay: 120ms; }
.reveal--delay2 { transition-delay: 240ms; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about__head { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
    background: var(--blue-ink); flex-direction: column; padding: 100px 24px 24px; gap: 4px;
    transform: translateX(100%); transition: transform 300ms var(--ease);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 18px; padding: 14px 18px; }
  .menu-btn { display: flex; position: relative; z-index: 60; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__text { padding-bottom: 32px; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__facts { justify-content: center; }
  .hero__facts { gap: 20px 28px; }
  .hero__facts li { text-align: left; }
  .hero__photo img { width: min(360px, 80%); }
  .timeline::before { left: 23px; }
  .timeline__item { grid-template-columns: 48px 1fr; gap: 16px; }
  .timeline__icon { width: 48px; height: 48px; }
  .timeline__card { padding: 20px 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .pattern { height: 88px; background-size: auto 88px; }
}
@media (max-width: 400px) {
  .container { width: calc(100% - 32px); }
  .hero__title { font-size: 48px; }
  .btn { width: 100%; }
  .brand img { width: 128px; }
}

/* Footer legal (campanha) */
.footer__legal { margin-top: 40px; padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.footer__legal-title { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.footer__legal-cnpj { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

.nowrap { white-space: nowrap; }
.footer__bottom p + p { margin-top: 6px; }
.footer__bottom strong { color: rgba(255, 255, 255, 0.8); font-weight: 600; }

/* Número de urna */
.hero__numero { margin-top: 40px; }
.hero__numero img { width: min(300px, 70%); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); }
.footer__numero { width: 130px; margin-top: 14px; }
@media (max-width: 860px) {
  .hero__numero { display: flex; justify-content: center; margin-top: 30px; }
  .hero__numero img { width: min(240px, 65%); }
}

/* Alvos de toque (min 44px) */
.menu-btn { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .footer__nav { gap: 0; }
  .footer__nav a { display: block; padding: 11px 0; min-height: 44px; }
  .footer__credit a { display: inline-flex; min-height: 44px; align-items: center; }
}
