/* Chega de Invasão — visual identity
   Black, red (#E30613), white. Strong typographic hierarchy. */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --ink: #f5f5f5;
  --ink-2: #b9b9b9;
  --muted: #7a7a7a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --red: #e30613;
  --red-2: #ff2433;
  --red-glow: rgba(227, 6, 19, 0.35);
  --paper: #ffffff;
  --paper-ink: #0a0a0a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 60px -20px rgba(0, 0, 0, 0.6);
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Background texture: subtle red grid + vignette */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(227, 6, 19, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(227, 6, 19, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
main, .topbar, .foot { position: relative; z-index: 1; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  position: sticky; top: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; display: block; }
@media (max-width: 640px) {
  .brand img { height: 22px; }
}
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 160ms ease;
}
.topnav a:hover { color: var(--ink); }
.btn-mini {
  background: var(--red);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.btn-mini:hover { background: var(--red-2); }

@media (max-width: 640px) {
  .topnav a:not(.btn-mini) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px);
}
.hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}

.hero-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.hero-logo {
  height: clamp(56px, 8vw, 96px);
  width: auto;
  margin: 0 auto clamp(20px, 2.5vw, 28px);
  display: block;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red-2); font-weight: 700; margin: 0 0 16px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--red);
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--red-2); }
.hero .lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(20px, 3.5vw, 44px);
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .form-wrap { order: 1; }
  .hero-grid .video-card { order: 2; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 140ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 30px -10px var(--red-glow);
}
.btn:hover { background: var(--red-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--ink-2); }
.btn-large { width: 100%; padding: 16px 24px; font-size: 16px; margin-top: 10px; }

.counter {
  margin: 16px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 14px;
  text-align: center;
}
.counter strong { color: var(--ink); font-weight: 700; font-size: 18px; margin-right: 4px; }

/* Goal progress */
.goal {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.goal-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.goal-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red-2); font-weight: 700;
}
.goal-count { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.goal-count strong {
  color: var(--ink); font-weight: 800; font-size: 18px;
  letter-spacing: -0.01em; margin-right: 2px;
}
.goal-bar {
  height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.goal-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  border-radius: 999px;
  box-shadow: 0 0 18px var(--red-glow);
  transition: width 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  min-width: 6px;
}
.goal-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2.4s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
.goal-sub {
  margin: 10px 0 0;
  font-size: 12px; color: var(--muted);
  text-align: center;
}
.goal.reached .goal-fill { background: linear-gradient(90deg, #16a34a, #22c55e); box-shadow: 0 0 18px rgba(34, 197, 94, 0.4); }
.goal.reached .goal-label { color: #22c55e; }
.goal.reached .goal-sub { color: #22c55e; font-weight: 600; }

/* Video card (clickable) */
.video-card {
  position: relative;
  width: 100%;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #000;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.video-card:hover { transform: translateY(-2px); box-shadow: 0 26px 70px -18px rgba(227, 6, 19, 0.35), 0 0 0 1px var(--line-2); }
.video-card video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  background: #000;
}
.video-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  z-index: 1;
  background: rgba(0,0,0,0.10);
  transition: background 200ms ease;
  pointer-events: none;
}
.video-card:hover .video-overlay { background: rgba(0,0,0,0.25); }

.play-btn {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 50px var(--red-glow), 0 0 0 8px rgba(227, 6, 19, 0.18);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.video-card:hover .play-btn {
  transform: scale(1.08);
  box-shadow: 0 20px 60px var(--red-glow), 0 0 0 12px rgba(227, 6, 19, 0.22);
}
.video-hint {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 880px) {
  .video-card { aspect-ratio: 16 / 10; max-height: 320px; }
}

/* Form wrap inside hero */
.form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.form-head { margin-bottom: 18px; }
.form-title {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.form-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.cta-back {
  display: flex; justify-content: center; margin: 40px 0 14px;
}
.cta-back .btn { max-width: 320px; }

/* ---------- Section base ---------- */
section { padding: clamp(56px, 8vw, 110px) 0; }

.kicker {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red-2); font-weight: 700; margin: 0 0 14px;
}
.kicker.centered { text-align: center; }
.centered { text-align: center; }

h2 {
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 28px;
}

/* ---------- Manifesto ---------- */
.manifesto { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto p {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-2);
  margin: 0 0 22px;
}
.manifesto strong { color: var(--ink); font-weight: 600; }

.pull {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--red);
  background: rgba(227, 6, 19, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.pull strong { color: var(--red-2); }
.closing-line {
  font-size: clamp(20px, 2.2vw, 26px) !important;
  color: var(--ink) !important;
  font-weight: 600;
  letter-spacing: -0.015em;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 30px !important;
  line-height: 1.35;
}

/* ---------- Proposals ---------- */
.proposals { background: var(--bg); }
.proposal-list {
  list-style: none;
  margin: 48px auto 0;
  padding: 0;
  max-width: 920px;
}
.proposal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.proposal:last-child { border-bottom: 1px solid var(--line); }
.proposal-num {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--red-2);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  opacity: 0.95;
}
.proposal h3 {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 12px;
}
.proposal p {
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  max-width: 640px;
}
@media (max-width: 600px) {
  .proposal { grid-template-columns: 1fr; gap: 6px; }
}

.proposals-tail {
  margin: 50px auto 0;
  max-width: 700px;
  text-align: center;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink);
  line-height: 1.45;
  font-weight: 500;
}
.proposals-tail strong { color: var(--red-2); font-weight: 700; }

/* ---------- Sign form ---------- */
.row { display: grid; gap: 14px; margin-bottom: 14px; }
.row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row.two { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  letter-spacing: 0.01em;
}
.field input, .field select {
  background: #0c0c0c;
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 13px 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15);
  background: #0f0f0f;
}
.field input:invalid:not(:placeholder-shown) { border-color: rgba(227, 6, 19, 0.5); }

.check {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 16px 0;
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
  cursor: pointer;
}
.check input[type='checkbox'] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-2);
  border-radius: 5px;
  background: #0c0c0c;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 140ms ease;
}
.check input[type='checkbox']:checked {
  background: var(--red);
  border-color: var(--red);
}
.check input[type='checkbox']:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.check.required > span::after {
  content: ' *'; color: var(--red-2);
}
.check a { color: var(--red-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.check strong { color: var(--ink); }

.form-error {
  color: var(--red-2); font-size: 14px; margin: 12px 0 0;
  min-height: 20px; text-align: center;
}

.thanks {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--red);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 30px 80px -20px var(--red-glow);
}
.thanks-mark {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: #16a34a;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 40px -10px rgba(22, 163, 74, 0.5);
}
.thanks h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 10px; letter-spacing: -0.01em; }
.thanks p { color: var(--ink-2); margin: 0 0 20px; }
.share { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.lgpd-detail {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.lgpd-detail summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.lgpd-detail summary::after { content: '+'; font-size: 22px; color: var(--red-2); line-height: 1; }
.lgpd-detail[open] summary::after { content: '–'; }
.lgpd-detail summary::-webkit-details-marker { display: none; }
.lgpd-detail > div { padding-top: 14px; border-top: 1px solid var(--line); margin-top: 12px; }
.lgpd-detail p { margin: 0 0 10px; line-height: 1.55; }
.lgpd-detail a { color: var(--red-2); }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 60px;
  background: #050505;
}
.foot-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; color: var(--muted); font-size: 13px;
}
.foot-logo { height: 22px; width: auto; opacity: 0.7; }
.foot p { margin: 0; }
.foot-meta { font-size: 12px; opacity: 0.7; }

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  animation: fadeIn 200ms ease;
}
.video-modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.video-modal video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.video-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid var(--line-2);
  font-size: 18px; font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 160ms ease;
  z-index: 1;
}
.video-close:hover { background: var(--red); border-color: var(--red); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
