/* InfraLinks one-page — design tokens + layout (tema claro enterprise) */

/* Fallbacks com métricas da fonte web: a troca para Inter/Space Grotesk não desloca o layout (CLS) */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 106.17%;
  ascent-override: 91.27%;
  descent-override: 22.79%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 600 700;
  size-adjust: 101.41%;
  ascent-override: 97.04%;
  descent-override: 28.8%;
  line-gap-override: 0%;
}

:root {
  --color-bg-deep: #e2e8f0;
  --color-bg: #f0f4f8;
  --color-surface: #ffffff;
  --color-elevated: #f8fafc;
  --color-border: #c8d4e0;
  --color-text: #0d274d;
  --color-muted: #475569;
  --color-accent: #0476a3;
  --color-accent-2: #036499;
  --color-accent-bright: #049fd9;
  --color-success: #15803d;
  --color-warning: #b45309;
  --color-danger: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(13, 39, 77, 0.06);
  --shadow-md: 0 14px 40px rgba(13, 39, 77, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-sans: "Inter", "Inter Fallback", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: clamp(3rem, 8vw, 6rem);
  --content-max: 72rem;
  --header-h: clamp(4rem, 11vw, 6.75rem);
  --transition-fast: 160ms ease;
  --transition-med: 280ms ease;
  --neon-cyan: #049fd9;
  --neon-blue: #0ea5e9;
  --neon-magenta: #6366f1;
  --neon-glow: 0 0 24px rgba(4, 159, 217, 0.2);
  --neon-glow-strong: 0 0 36px rgba(4, 159, 217, 0.28), 0 8px 32px rgba(13, 39, 77, 0.08);
  --neon-anim: 32s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__neon,
  .hero__neon::before {
    animation: none !important;
  }

  .hero__bg {
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(4, 159, 217, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(14, 165, 233, 0.1), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, var(--color-bg) 45%, #e8eef4 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent-bright);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid rgba(200, 212, 224, 0.95);
  background: color-mix(in srgb, #ffffff 92%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transition: box-shadow var(--transition-med), background var(--transition-med);
}

/* Estado após rolar: vidro mais denso + sombra flutuante */
.site-header.is-scrolled {
  background: color-mix(in srgb, #ffffff 84%, transparent);
  box-shadow: 0 10px 30px rgba(13, 39, 77, 0.08), 0 1px 0 rgba(4, 159, 217, 0.12);
}

/* Barra de progresso de rolagem (escala controlada via --scroll no JS) */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform-origin: left;
  transform: scaleX(var(--scroll, 0));
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue), var(--neon-magenta));
  box-shadow: 0 0 12px rgba(4, 159, 217, 0.55);
  pointer-events: none;
}

/* Link ativo via scrollspy */
.site-nav a.is-active {
  color: var(--color-text);
}

.site-nav a.is-active:not(.site-nav__cta)::after {
  transform: scaleX(1);
}

.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-text);
}

/* Logo recortado (sem margem transparente): ~60% da altura da barra */
.brand img {
  width: auto;
  height: clamp(3rem, 2rem + 3vw, 4.25rem);
  max-width: min(240px, 60vw);
  object-fit: contain;
}

@media (max-width: 768px) {
  .brand img {
    height: clamp(2.5rem, 1.6rem + 3vw, 2.875rem);
    max-width: min(160px, 50vw);
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
}

.site-nav a {
  position: relative;
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.25rem;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  color: var(--color-text);
}

/* Sublinhado animado que cresce da esquerda (exceto no CTA) */
.site-nav a:not(.site-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent-bright), var(--color-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-med);
}

.site-nav a:not(.site-nav__cta):hover::after,
.site-nav a:not(.site-nav__cta):focus-visible::after {
  transform: scaleX(1);
}

.site-nav__cta {
  color: var(--color-muted) !important;
  font-weight: 600 !important;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm);
}

.site-nav__cta:hover {
  color: var(--color-text) !important;
  border-bottom-color: rgba(4, 118, 163, 0.35);
}

.site-nav__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Varredura de brilho ao passar o mouse */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.btn:hover::after {
  animation: btn-sweep 0.75s ease;
}

@keyframes btn-sweep {
  to {
    left: 160%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover::after {
    animation: none;
  }
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, #049fd9, var(--color-accent-2));
  color: #ffffff;
  box-shadow: var(--shadow-sm), var(--neon-glow);
  border: 1px solid rgba(4, 118, 163, 0.45);
}

.btn--primary:hover {
  color: #ffffff;
  filter: brightness(1.04);
  box-shadow: 0 8px 28px rgba(4, 159, 217, 0.25), var(--neon-glow-strong);
  border-color: rgba(4, 118, 163, 0.65);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(248, 250, 252, 0.55);
  color: #f8fafc;
}

.btn--ghost:hover {
  border-color: #e0f2fe;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(26rem, 72vh, 44rem);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero__bg picture,
.hero__bg img {
  width: 100%;
  height: 100%;
  min-height: 106%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
      120deg,
      rgba(13, 39, 77, 0.9) 0%,
      rgba(13, 39, 77, 0.72) 42%,
      rgba(13, 39, 77, 0.45) 100%
    ),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(2, 12, 27, 0.42), transparent 58%);
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(4, 159, 217, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(14, 165, 233, 0.12), transparent);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__neon {
  position: absolute;
  inset: -2px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
  background: linear-gradient(
    125deg,
    rgba(4, 159, 217, 0.1),
    rgba(14, 165, 233, 0.08) 35%,
    rgba(99, 102, 241, 0.09) 70%,
    rgba(4, 159, 217, 0.1)
  );
  background-size: 220% 220%;
  animation: hero-neon-flow var(--neon-anim) ease-in-out infinite alternate;
}

.hero__neon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(248, 250, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 12%, transparent 72%);
  animation: hero-neon-grid calc(var(--neon-anim) * 1.25) linear infinite;
}

/* Spotlight que acompanha o cursor no hero (ativado via JS com --mx/--my) */
.hero__spotlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 40%),
    rgba(4, 159, 217, 0.28),
    rgba(14, 165, 233, 0.12) 40%,
    transparent 65%
  );
  transition: opacity var(--transition-med);
}

.hero.is-pointer .hero__spotlight {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__spotlight {
    display: none;
  }
}

@keyframes hero-neon-flow {
  0% {
    background-position: 0% 40%;
  }
  100% {
    background-position: 100% 60%;
  }
}

@keyframes hero-neon-grid {
  0% {
    opacity: 0.35;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.55;
  }
  100% {
    opacity: 0.4;
    transform: translate3d(-24px, -12px, 0);
  }
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

/* Entrada do hero (fade + blur-in) sem JS, com fallback silencioso */
@media (prefers-reduced-motion: no-preference) {
  @supports (transition-behavior: allow-discrete) {
    .hero__inner {
      transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s ease;
    }

    @starting-style {
      .hero__inner {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(12px);
      }
    }
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bae6fd;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 14px rgba(4, 159, 217, 0.35), 0 0 2px rgba(13, 39, 77, 0.85);
}

.hero h1 {
  margin: 0 0 var(--space-md);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-shadow: 0 2px 20px rgba(2, 12, 27, 0.45), 0 0 28px rgba(4, 159, 217, 0.12);
}

.hero__lead {
  margin: 0 0 var(--space-lg);
  color: #e2e8f0;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  max-width: 38rem;
  text-shadow: 0 1px 14px rgba(2, 12, 27, 0.45);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__panel {
  background: linear-gradient(160deg, rgba(248, 250, 252, 0.97), rgba(241, 245, 249, 0.98));
  border: 1px solid rgba(200, 212, 224, 0.95);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(4, 159, 217, 0.08);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.hero__panel:hover {
  border-color: rgba(4, 118, 163, 0.35);
  box-shadow: var(--shadow-md), var(--neon-glow-strong);
}

/* Canvas de partículas conectadas (rede) no hero */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .hero__particles {
    display: none;
  }
}

/* Texto com gradiente animado (shimmer) */
.text-gradient {
  background: linear-gradient(90deg, #7dd3fc 0%, #38bdf8 25%, #a5b4fc 50%, #38bdf8 75%, #7dd3fc 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: text-shimmer 7s linear infinite;
}

@keyframes text-shimmer {
  to {
    background-position: 300% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-gradient {
    animation: none;
  }
}

/* Tilt 3D controlado via --rx/--ry pelo JS */
[data-tilt],
.card {
  --rx: 0deg;
  --ry: 0deg;
  --tilt-scale: 1;
  transform-style: preserve-3d;
}

.is-tilting {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--tilt-scale)) !important;
  transition: transform 80ms linear, border-color var(--transition-med), box-shadow var(--transition-med) !important;
}

.hero__figure {
  margin: 0 0 var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(200, 212, 224, 0.85);
  box-shadow: 0 10px 28px rgba(13, 39, 77, 0.12);
}

.hero__figure img {
  width: 100%;
  height: auto;
}

.hero__panel h2 {
  margin: 0 0 var(--space-md);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .hero__stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  text-align: left;
}

.stat__value {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 700;
  color: #0476a3;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
  background: linear-gradient(135deg, var(--color-accent-bright), var(--color-accent-2) 60%, var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.section {
  padding: var(--space-xl) var(--space-md);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section--alt {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border-block: 1px solid rgba(200, 212, 224, 0.85);
}

/* Aurora: blobs de luz que flutuam atrás do conteúdo (só transform animado, sem filter) */
.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
}

.section--alt::before {
  top: -30vmax;
  left: -20vmax;
  background: radial-gradient(circle, rgba(4, 159, 217, 0.18), transparent 60%);
  animation: aurora-a 26s ease-in-out infinite alternate;
}

.section--alt::after {
  bottom: -32vmax;
  right: -22vmax;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 60%);
  animation: aurora-b 32s ease-in-out infinite alternate;
}

.section--alt > .section__inner {
  position: relative;
  z-index: 1;
}

@keyframes aurora-a {
  to {
    transform: translate3d(14vmax, 8vmax, 0) scale(1.15);
  }
}

@keyframes aurora-b {
  to {
    transform: translate3d(-12vmax, -10vmax, 0) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section--alt::before,
  .section--alt::after {
    animation: none;
  }
}

.section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section__header {
  max-width: 44rem;
  margin-bottom: var(--space-lg);
}

.section__header h2 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.02em;
}

/* Linha de acento em gradiente acima do título da seção */
.section__header h2::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  border-radius: 3px;
  margin-bottom: var(--space-sm);
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue), var(--neon-magenta));
  background-size: 200% 100%;
  box-shadow: 0 0 14px rgba(4, 159, 217, 0.45);
  animation: accent-flow 6s ease-in-out infinite alternate;
}

@keyframes accent-flow {
  to {
    background-position: 100% 0;
  }
}

.section__header p {
  margin: 0;
  color: var(--color-muted);
}

.section__figure {
  margin: 0 0 var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(200, 212, 224, 0.95);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.section__figure--narrow {
  max-width: 42rem;
}

.section__figure img {
  width: 100%;
  height: auto;
}

.section__figure-caption {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  color: var(--color-muted);
  background: var(--color-elevated);
  border-top: 1px solid rgba(200, 212, 224, 0.75);
}

.card-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color var(--transition-med), transform var(--transition-med), box-shadow var(--transition-med);
}

/* Borda neon reativa (ring em gradiente cônico animado) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--angle),
    transparent 55%,
    var(--neon-cyan) 72%,
    var(--neon-magenta) 85%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
  animation: card-border-spin 4s linear infinite;
}

@keyframes card-border-spin {
  to {
    --angle: 360deg;
  }
}

.card:hover {
  border-color: rgba(4, 118, 163, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(13, 39, 77, 0.12), var(--neon-glow), 0 0 0 1px rgba(4, 159, 217, 0.12);
}

/* Scroll-driven animation nativa — complementa o .reveal via JS */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card {
      animation: card-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }

  .card:hover::before {
    animation: none;
  }
}

/* Ícone do card: chip em gradiente com brilho reativo */
.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
  background: linear-gradient(135deg, rgba(4, 159, 217, 0.14), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(4, 159, 217, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform var(--transition-med), box-shadow var(--transition-med), color var(--transition-med);
}

.card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.card:hover .card__icon {
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: var(--neon-glow);
  color: var(--color-accent-bright);
}

.card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(4, 159, 217, 0.12);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.split {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--color-accent-bright), var(--color-accent-2));
  box-shadow: 0 0 0 3px rgba(4, 159, 217, 0.15);
}

/* Parceiros — carrossel acessível */
.partners-carousel {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.partners-carousel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.partners-carousel__label {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.partners-carousel__controls {
  display: flex;
  gap: var(--space-xs);
}

.partners-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-elevated);
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.partners-carousel__btn:hover {
  border-color: rgba(4, 118, 163, 0.45);
  background: #ffffff;
}

.partners-carousel__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.partners-carousel__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.partners-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--space-sm) 0;
  scrollbar-color: rgba(4, 118, 163, 0.45) transparent;
}

@media (prefers-reduced-motion: reduce) {
  .partners-carousel__viewport {
    scroll-behavior: auto;
  }
}

.partners-carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  width: max-content;
}

.partners-carousel__track > li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.partners-carousel__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  min-width: 5.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
}

.partners-carousel__item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.partners-carousel__item img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  filter: none;
}

.partners-carousel__hint {
  margin: var(--space-sm) 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-md);
  margin-bottom: var(--space-sm);
}

.faq details {
  transition: border-color var(--transition-med), box-shadow var(--transition-med);
}

.faq details:hover,
.faq details[open] {
  border-color: rgba(4, 118, 163, 0.4);
  box-shadow: var(--neon-glow);
}

.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: var(--space-md) 2.5rem var(--space-md) 0;
  font-weight: 600;
}

/* Chevron animado */
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--transition-med);
}

.faq details[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.faq p {
  margin: 0;
  padding: var(--space-md) 0;
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr 1.1fr;
}

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

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
}

.contact-list li {
  margin-bottom: var(--space-sm);
}

.contact-list strong {
  color: var(--color-text);
}

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: rgba(4, 118, 163, 0.45);
}

/* Foco com anel neon */
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(4, 159, 217, 0.18), var(--neon-glow);
}

.form__row {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.form__field {
  margin-bottom: var(--space-md);
}

.form__hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: var(--space-xs);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status--ok {
  display: block;
  background: rgba(21, 128, 61, 0.1);
  border: 1px solid rgba(21, 128, 61, 0.35);
  color: #14532d;
}

.form-status--err {
  display: block;
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.35);
  color: #7f1d1d;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) var(--space-md);
  background: #e8eef4;
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-accent);
}

.site-footer a:hover {
  color: var(--color-accent-bright);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: color-mix(in srgb, #ffffff 98%, var(--color-bg));
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-med), opacity var(--transition-med);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Entrada escalonada dos itens do menu */
  .site-nav.is-open li {
    animation: nav-item-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .site-nav.is-open li:nth-child(1) { animation-delay: 40ms; }
  .site-nav.is-open li:nth-child(2) { animation-delay: 90ms; }
  .site-nav.is-open li:nth-child(3) { animation-delay: 140ms; }
  .site-nav.is-open li:nth-child(4) { animation-delay: 190ms; }
  .site-nav.is-open li:nth-child(5) { animation-delay: 240ms; }
  .site-nav.is-open li:nth-child(6) { animation-delay: 290ms; }
}

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Botão flutuante "voltar ao topo" com anel de progresso */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md), var(--neon-glow);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--transition-med), transform var(--transition-med), box-shadow var(--transition-med);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: var(--shadow-md), var(--neon-glow-strong);
}

.back-to-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top__track {
  fill: none;
  stroke: rgba(4, 159, 217, 0.15);
  stroke-width: 2;
}

.back-to-top__ring {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 119.4;
  stroke-dashoffset: var(--ring, 119.4);
  transition: stroke-dashoffset 120ms linear;
}

.back-to-top__arrow {
  width: 0.6rem;
  height: 0.6rem;
  border-left: 2px solid var(--color-accent);
  border-top: 2px solid var(--color-accent);
  transform: rotate(45deg) translate(2px, 2px);
}

/* Scroll reveal — só oculta quando o JS está ativo (sem JS, o conteúdo segue visível) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* View Transitions — crossfade curto e suave */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* Dark mode automático — fica no fim do arquivo para vencer a cascata das regras base */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-deep: #060b16;
    --color-bg: #0b1220;
    --color-surface: #111a2e;
    --color-elevated: #16233d;
    --color-border: #27354f;
    --color-text: #e6edf6;
    --color-muted: #9db0c9;
    --color-accent: #38bdf8;
    --color-accent-2: #0ea5e9;
    --color-accent-bright: #7dd3fc;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.55);
    --neon-glow: 0 0 28px rgba(56, 189, 248, 0.3);
    --neon-glow-strong: 0 0 40px rgba(56, 189, 248, 0.42), 0 10px 36px rgba(0, 0, 0, 0.5);
  }

  body {
    background:
      radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.12), transparent 55%),
      radial-gradient(900px 500px at 90% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
      linear-gradient(180deg, #0b1220 0%, var(--color-bg-deep) 100%);
  }

  .site-header {
    background: color-mix(in srgb, #0b1220 82%, transparent);
    border-bottom-color: rgba(39, 53, 79, 0.9);
  }

  .site-header.is-scrolled {
    background: color-mix(in srgb, #0b1220 90%, transparent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(56, 189, 248, 0.18);
  }

  .site-nav {
    background: color-mix(in srgb, #0b1220 96%, var(--color-bg));
  }

  .nav-toggle {
    background: var(--color-surface);
  }

  .hero__panel {
    background: linear-gradient(160deg, rgba(17, 26, 46, 0.95), rgba(11, 18, 32, 0.96));
    border-color: rgba(39, 53, 79, 0.95);
  }

  .hero__figure {
    border-color: rgba(39, 53, 79, 0.9);
  }

  .stat__value {
    color: var(--color-accent);
  }

  .section--alt {
    background: rgba(17, 26, 46, 0.55);
    border-block-color: rgba(39, 53, 79, 0.85);
  }

  .section__figure {
    border-color: rgba(39, 53, 79, 0.95);
  }

  .section__figure-caption {
    border-top-color: rgba(39, 53, 79, 0.75);
  }

  .card__icon {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .partners-carousel__btn:hover {
    background: var(--color-elevated);
  }

  .partners-carousel__item img {
    filter: brightness(0) invert(1) opacity(0.85);
  }

  .form input,
  .form select,
  .form textarea {
    background: #0e1626;
    color: var(--color-text);
  }

  .form-status--ok {
    background: rgba(21, 128, 61, 0.2);
    color: #bbf7d0;
  }

  .form-status--err {
    background: rgba(185, 28, 28, 0.2);
    color: #fecaca;
  }

  .site-footer {
    background: #080e1a;
  }
}
