:root {
  --bg: #070914;
  --bg-2: #0d1022;
  --card: rgba(18, 20, 68, 0.55);
  --card-strong: rgba(24, 27, 86, 0.65);
  --line: rgba(126, 138, 255, 0.22);
  --text: #f5f7ff;
  --muted: #b7bed7;
  --muted-2: #8790b2;
  --blue: #4f7cff;
  --cyan: #33d6ff;
  --red: #ff365d;
  --purple: #8e5cff;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
  --display: "Sora", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--display); }

/* ===== Background (mantido do design original) ===== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    url("vcgl-hero-bg.png") center / cover no-repeat,
    #070914;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 8, 30, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  font-family: var(--display);
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.menu a:hover { color: var(--white); }

.nav-cta {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--blue);
  box-shadow: 0 14px 42px rgba(79, 124, 255, .28);
  transition: background .2s ease;
}

.nav-cta:hover { background: #3f68e8; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 20, 68, 0.55);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  padding: 12px 6px;
  color: var(--muted);
  font-weight: 600;
  border-radius: 10px;
}

.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.mobile-menu.open { display: flex; }

/* ===== Hero ===== */
.hero {
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-center h1 { margin-left: auto; margin-right: auto; max-width: 900px; }
.hero-center p { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe3ff;
  background: rgba(18, 20, 68, 0.55);
  font-size: 13px;
  font-weight: 700;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(51, 214, 255, .11), 0 0 28px rgba(51, 214, 255, .9);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(51, 214, 255, .10), 0 0 22px rgba(51, 214, 255, .8); }
  50% { box-shadow: 0 0 0 11px rgba(51, 214, 255, .14), 0 0 34px rgba(51, 214, 255, 1); }
}

h1 {
  margin: 24px 0 22px;
  max-width: 780px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.micro {
  margin-top: 16px !important;
  font-size: 13px !important;
  color: var(--muted-2) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  box-shadow: 0 20px 60px rgba(79, 124, 255, .30);
  color: var(--white);
}

.btn-primary:hover { background: #3f68e8; }

.btn-secondary {
  border-color: var(--line);
  background: rgba(18, 20, 68, 0.55);
  color: var(--white);
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid var(--line);
  font-size: 20px;
}

/* ===== Sections ===== */
section { padding: 72px 0; }

.section-alt {
  background: rgba(7, 8, 30, .52);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9ab4ff;
}

.section-head { max-width: 780px; margin-bottom: 42px; }

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 18, 64, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--blue);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .3s ease, transform .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 124, 255, .45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(79, 124, 255, .12);
}

.card:hover::before { opacity: 1; transform: scaleX(1); }

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(79, 124, 255, .16);
  border: 1px solid rgba(126, 138, 255, .4);
  color: #9ab4ff;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin: 20px 0 10px; font-size: 21px; letter-spacing: -0.02em; }
.card h3:first-child { margin-top: 0; }
.card p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

.list {
  display: grid;
  gap: 11px;
  padding: 18px 0 0;
  margin: 0 0 24px;
  list-style: none;
  color: #dce3ff;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-2px);
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #9ab4ff;
  transition: gap .2s ease, color .2s ease;
}

.card-link:hover { color: var(--white); gap: 12px; }

/* ===== Partners strip ===== */
.partners { padding: 112px 0; }

.partners-label {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 46px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 36s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes scroll {
  to { transform: translateX(-50%); }
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  min-width: 130px;
}

.partner img {
  width: 180px;
  height: 68px;
  padding: 12px 18px;
  box-sizing: border-box;
  object-fit: contain; /* todos dentro da mesma caixa, sem distorcer */
  background: #ffffff;            /* pastilha branca: logos desenhados para fundo branco */
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .25s ease, box-shadow .25s ease;
}

.partner:hover img {
  box-shadow: 0 8px 26px rgba(79, 124, 255, .25);
}

.partner:hover img { transform: scale(1.08); }

.partner span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(245, 247, 255, .45);
  transition: color .2s ease;
}

.partner:hover span { color: var(--white); }

/* ===== Numbers ===== */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.number-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 18, 64, .5);
  text-align: center;
}

.number-card .big {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}

.number-card .label { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ===== NIS2 band ===== */
.band {
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 54, 93, .35);
  background:
    radial-gradient(circle at 8% 10%, rgba(89, 17, 52, .55), transparent 42%),
    rgba(16, 18, 64, .5);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}

.band h3 { margin: 0 0 18px; font-size: 24px; letter-spacing: -0.02em; }

.band-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  color: #e6ebff;
  font-size: 15px;
}

.band-list li {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.band-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-2px);
}

.band-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.band-cta strong { font-size: 17px; }
.band-cta p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }

/* ===== Método ===== */
.steps-line {
  height: 2px;
  margin: 0 6px 26px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 16px rgba(79, 124, 255, .7);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }

.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 18, 64, .5);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: none;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}

.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ===== Testemunhos ===== */
.quote-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 18, 64, .5);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote-card blockquote { margin: 0; color: #e6ebff; font-size: 16px; line-height: 1.65; }
.quote-card blockquote::before { content: "“"; display: block; font-family: var(--display); font-size: 46px; line-height: .5; margin-bottom: 14px; color: var(--cyan); }
.quote-card footer { color: var(--muted-2); font-size: 13.5px; font-weight: 600; }

/* ===== CTA ===== */
.cta {
  padding: 54px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 82% 14%, rgba(89, 17, 52, .6), transparent 32%),
    radial-gradient(circle at 12% 0%, rgba(21, 27, 90, .9), transparent 46%),
    rgba(16, 18, 64, .6);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta-title { display: block; font-family: var(--display); font-size: 20px; margin-bottom: 18px; }

.cta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  color: #e6ebff;
  font-size: 15px;
}

.cta-list li { display: flex; align-items: baseline; gap: 11px; }

.cta-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-2px);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-left: 36px;
  border-left: 1px solid var(--line);
  min-width: 260px;
}

.cta-contact {
  text-align: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 20, 68, 0.55);
  font-weight: 700;
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}

.cta-contact:hover { border-color: rgba(126, 138, 255, .55); background: rgba(79, 124, 255, .14); }

/* ===== Footer ===== */
.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}

.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }
.footer-name { color: var(--white); font-family: var(--display); }
.footer-tagline { margin: 10px 0 0; }

.footer h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--display);
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: #c9d1ec; }
.footer a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.scroll-zoom { will-change: transform, opacity; }

[data-drift] { will-change: transform; }

/* ===== Barra de progresso de scroll ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--blue);
  box-shadow: 0 0 14px rgba(79, 124, 255, .8);
  z-index: 60;
  pointer-events: none;
}

/* ===== Header que reage ao scroll ===== */
.topbar { transition: background .3s ease, box-shadow .3s ease; }
.topbar.scrolled {
  background: rgba(6, 6, 24, 0.92);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.nav { transition: height .3s ease; }
.topbar.scrolled .nav { height: 62px; }
.brand-logo { transition: height .3s ease; }
.topbar.scrolled .brand-logo { height: 36px; }

/* ===== Entrada do hero ao carregar ===== */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

.hero-center > * { animation: hero-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-center > *:nth-child(1) { animation-delay: .05s; }
.hero-center > *:nth-child(2) { animation-delay: .18s; }
.hero-center > *:nth-child(3) { animation-delay: .32s; }
.hero-center > *:nth-child(4) { animation-delay: .46s; }
.hero-center > *:nth-child(5) { animation-delay: .60s; }

/* ===== Reveal no scroll (variantes) ===== */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  filter: blur(10px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform, filter;
}

.reveal { transform: translateY(34px); }
.reveal-left { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }
.reveal-scale { transform: scale(.92); }

.reveal.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ===== Título do hero: palavras a emergir uma a uma ===== */
.hero-center > h1 { animation: none; }

h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(46px) rotate(2deg);
  filter: blur(8px);
  animation: word-in .75s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(.15s + var(--i) * .07s);
}

@keyframes word-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ===== Spotlight que segue o rato nos cartões ===== */
.number-card, .step, .quote-card { position: relative; overflow: hidden; }

.card::after, .number-card::after, .step::after, .quote-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(126, 138, 255, .16), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
}

.card:hover::after, .number-card:hover::after, .step:hover::after, .quote-card:hover::after {
  opacity: 1;
}

/* ===== Glow pulsante no CTA principal do hero ===== */
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 20px 60px rgba(79, 124, 255, .30), 0 0 0 0 rgba(79, 124, 255, .35); }
  50% { box-shadow: 0 20px 60px rgba(79, 124, 255, .42), 0 0 0 12px rgba(79, 124, 255, 0); }
}

.btn-glow { animation: cta-glow 2.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1; transform: none; transition: none;
  }
  .hero-center > * { animation: none; }
  h1 .w { animation: none; opacity: 1; transform: none; filter: none; }
  .btn-glow { animation: none; }
  .card::after, .number-card::after, .step::after, .quote-card::after { display: none; }
  .marquee-track { animation: none; }
  .scroll-progress { display: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .menu { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .cta, .band { grid-template-columns: 1fr; }
  .band-cta { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--line); }
  .cta-actions { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; min-height: auto; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav { height: 68px; }
  .hero { min-height: calc(100svh - 68px); }
  h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero { padding: 52px 0 42px; }
  .panel, .card, .cta, .band { padding: 22px; }
  section { padding: 44px 0; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Páginas interiores ===== */
.page-hero {
  min-height: auto;
  padding: 110px 0 84px;
}

.page-hero .hero-center { text-align: left; align-items: flex-start; }
.page-hero h1 { margin-left: 0; max-width: 820px; font-size: clamp(36px, 4.6vw, 58px); }
.page-hero p { margin-left: 0; }
.page-hero .hero-actions { justify-content: flex-start; }

.menu a.active { color: var(--white); }

.lead-block h3 { font-size: 22px; margin: 0 0 10px; }
.lead-block p { color: var(--muted); margin: 0 0 18px; }

@media (max-width: 640px) {
  .page-hero { padding: 64px 0 52px; }
}

/* ===== Cartão de largura total ===== */
.card-wide { grid-column: 1 / -1; }

.list-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 11px 28px;
}

@media (max-width: 980px) {
  .list-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .list-cols { grid-template-columns: 1fr; }
}

/* ===== Páginas legais ===== */
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 12px 0; display: grid; gap: 8px; }
.legal a { color: #9ab4ff; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--white); }
.legal strong { color: #e6ebff; }

.legal-summary {
  margin: 0 0 10px;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(16, 18, 64, .5);
}
.legal-summary h2 { margin-top: 0 !important; font-size: 18px !important; }
.legal-summary p { margin: 0; }

/* ===== Página Sobre ===== */
.timeline .step::before {
  content: attr(data-year);
  font-size: 30px;
}

.value-letter {
  display: block;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 1;
}

/* ===== Afiliações ===== */
.affil-logo {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 16px;
}

.affil-role {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9ab4ff;
}

/* ===== Testemunho em destaque ===== */
.quote-featured {
  grid-column: 1 / -1;
  max-width: 820px;
}

.quote-featured blockquote { font-size: 19px; line-height: 1.7; }
.quote-featured footer { font-size: 15px; color: var(--muted); }

/* ===== PRR / cofinanciamento ===== */
.prr-bar {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 0 36px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: #ffffff; /* os emblemas oficiais exigem fundo claro e contraste */
}

.footer-prr {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-prr img {
  height: 44px;
  width: auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ffffff;
}

.footer-prr span { font-size: 13px; color: var(--muted-2); }
.footer-prr a { color: #9ab4ff; }
.footer-prr a:hover { color: var(--white); }

/* ===== Botão voltar ao topo ===== */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(126, 138, 255, .45);
  background: rgba(16, 18, 64, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s ease;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}

.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); border-color: var(--blue); }

@media (max-width: 640px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}

/* ===== Linha de demonstração ===== */
.demo-line {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 138, 255, .35);
  background: rgba(79, 124, 255, .1);
  font-size: 14px;
  color: var(--muted);
}
.demo-line a { color: #b9caff; text-decoration: none; }
.demo-line a:hover { color: var(--white); }

/* ===== Página de contacto ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(16, 18, 64, .5);
  display: grid;
  gap: 18px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }

.form-field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #c9d2f2;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(10, 12, 40, .6);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, .2);
}

.form-field textarea { resize: vertical; min-height: 130px; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}
.form-consent input { margin-top: 3px; accent-color: var(--blue); }
.form-consent a { color: #9ab4ff; }

.form-status { margin: 0; font-size: 14.5px; min-height: 1.4em; }
.form-status.ok { color: #7ee2a8; }
.form-status.err { color: #ff9d9d; }
.form-status a { color: #9ab4ff; }

.contact-aside h3 { font-size: 17px; margin: 0 0 10px; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Contactos como texto (não clicáveis) ===== */
span.cta-contact { cursor: text; user-select: all; }
span.cta-contact:hover { color: inherit; }

/* ===== Aviso de cookies ===== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 60;
  width: min(680px, calc(100vw - 32px));
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(126, 138, 255, .4);
  background: rgba(13, 15, 50, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}

.cookie-banner p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1 1 280px; }
.cookie-banner a { color: #9ab4ff; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 9px 16px; font-size: 13.5px; }

/* ===== Carrossel de testemunhos (loop infinito) ===== */
.quote-carousel { max-width: 820px; margin: 0 auto; overflow: hidden; }

.quote-track {
  display: flex;
  will-change: transform;
  touch-action: pan-y;        /* deixa rolar a página na vertical, captura o gesto horizontal */
}

.quote-track .quote-card {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
}

.quote-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.quote-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 18, 64, .6);
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.quote-btn:hover { color: var(--white); border-color: var(--blue); transform: scale(1.08); }

.quote-dots { display: flex; gap: 8px; }
.quote-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(160, 170, 220, .35);
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, transform .25s ease;
}
.quote-dots button.on { background: var(--blue); transform: scale(1.25); }

@media (max-width: 700px) {
  .partners { padding: 72px 0; }
  .partners-label { margin-bottom: 34px; }
  .partner img { width: 150px; height: 56px; padding: 9px 14px; }
}
