/* ==========================================================================
   6DOF Engine — Estilos
   ========================================================================== */

:root {
  --bg-main: #090d16;
  --bg-elev: #0c1220;
  --bg-card: #111827;
  --bg-card-hover: #1a2234;
  --border-subtle: #1f293d;
  --border-strong: #2c3a55;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #60a5fa;
  --accent-cyan: #38bdf8;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-stack: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ===== Base ===== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

html.no-scroll {
  overflow: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

section[tabindex="-1"]:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ===== Reveal on scroll ===== */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

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

@keyframes fadeSwap {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ===== Buttons ===== */

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.925rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background-color: rgba(17, 24, 39, 0.6);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary svg,
.btn-secondary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 22, 0.6);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(9, 13, 22, 0.92);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.logo-emblem {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.35);
}

.logo-badge {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.is-active {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.12);
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
  background-color: var(--accent);
}

.nav-cta-mobile {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 1179px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-main);
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* O header usa backdrop-filter, então o menu é posicionado em relação a ele */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px 24px 32px;
    background: rgba(9, 13, 22, 0.98);
    border-top: 1px solid var(--border-subtle);
    font-size: 1.1rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    padding: 14px 16px;
  }

  .nav-cta-mobile {
    display: flex !important;
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .nav-cta {
    display: none;
  }
}

/* ===== Hero ===== */

.hero {
  position: relative;
  isolation: isolate;
  padding: 96px 0 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(37, 99, 235, 0.3), transparent 70%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 85%);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
  text-wrap: balance;
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 920px;
  margin: 0 auto 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 22px;
}

.hero-typer {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  min-height: 1.7em;
  margin-bottom: 36px;
}

.typer-prefix {
  color: var(--text-dim);
}

.typer {
  color: var(--accent-cyan);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.18em;
  background: var(--accent-cyan);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-proof {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
}

.hero-proof li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.hero-proof strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Planeta (canvas WebGL com imagem estática de reserva) */
.hero-planet {
  position: absolute;
  z-index: -1;
  top: -30px;
  right: -170px;
  width: 400px;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  opacity: 0.4;
}

@media (max-width: 1023.98px) {
  /* O planeta passa atrás do selo: base opaca para o texto azul manter o contraste */
  .badge-pill {
    background: linear-gradient(rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.1)), var(--bg-main);
  }
}

.hero-planet-static,
.hero-planet-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-planet-canvas {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-planet.is-ready .hero-planet-canvas {
  opacity: 1;
}

.hero-planet.is-ready .hero-planet-static {
  opacity: 0;
  transition: opacity 0.4s ease 1.2s;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 84px;
    text-align: left;
  }

  .hero::before {
    left: 32%;
  }

  .hero h1 {
    max-width: min(640px, 56vw);
    margin-left: 0;
    font-size: clamp(2.6rem, 4.4vw, 3.9rem);
  }

  .hero-lead {
    max-width: 560px;
    margin-left: 0;
  }

  .hero .hero-segment {
    align-items: flex-start;
  }

  .hero-actions,
  .hero-proof {
    justify-content: flex-start;
  }

  .hero-proof {
    max-width: 620px;
  }

  .hero-planet {
    top: 10px;
    right: calc(-1 * clamp(70px, 9vw, 210px));
    width: clamp(470px, 48vw, 780px);
    opacity: 1;
  }
}

/* Marquee */
.marquee {
  position: relative;
  margin-top: 80px;
  padding: 24px 0 28px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.marquee-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b1220;
  text-align: center;
  margin-bottom: 16px;
  padding: 0 16px;
}

.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}

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

.marquee-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

.integration-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f4f6fa;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

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

/* ===== Sections ===== */

.section {
  position: relative;
  padding: 96px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3b82f6;
  margin-bottom: 10px;
}

.section-title {
  text-wrap: balance;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.8rem;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(37, 99, 235, 0.12);
  color: #93c5fd;
  white-space: nowrap;
}

/* Chips (filtros e abas) */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  color: var(--text-main);
  border-color: var(--text-dim);
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.chip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.chip-count {
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

/* ===== Seletor de segmento ===== */

.hero-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-segment-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.segment-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(9, 13, 22, 0.75);
}

.segment-switch button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.segment-switch button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.segment-switch button:hover {
  color: var(--text-main);
}

.segment-switch button.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.segment-switch-sm {
  margin-top: 22px;
}

.segment-switch-sm button {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.segment-switch-sm button svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .segment-switch {
    display: flex;
    width: 100%;
  }

  .segment-switch button {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}

/* ===== Segmentos ===== */

.segment-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.segment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.segment-card.is-active {
  border-color: rgba(96, 165, 250, 0.6);
  background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.18), transparent 55%), var(--bg-card);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2), 0 20px 50px rgba(0, 0, 0, 0.25);
}

.segment-card.is-active::after {
  content: "Selecionado";
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segment-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 7rem;
}

.segment-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(56, 189, 248, 0.12));
  color: var(--accent-light);
}

.segment-icon svg {
  width: 28px;
  height: 28px;
}

.segment-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.segment-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.segment-tagline {
  color: var(--text-muted);
}

.segment-lists h4 {
  color: var(--text-muted);
}

.segment-lists {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pain-list,
.gain-list {
  list-style: none;
  display: grid;
  align-content: start;
  gap: 10px;
}

.pain-list li,
.gain-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.pain-list li::before,
.gain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.pain-list li::before {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 8px no-repeat;
}

.gain-list li::before {
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.segment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 960px) {
  .segment-cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .segment-card { padding: 24px 18px; }
  .segment-card-head { flex-direction: column; align-items: flex-start; padding-right: 0; }
  .segment-card.is-active::after { top: 18px; right: 18px; }
  .segment-lists { grid-template-columns: 1fr; }
  .segment-actions > * { width: 100%; }
}

/* ===== Seções claras ===== */

.theme-light {
  --bg-main: #f3f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0b1220;
  --text-muted: #475569;
  --text-dim: #5b6779;
  --accent-light: #1d4ed8;
  background: var(--bg-main);
  color: var(--text-main);
}

.theme-light :focus-visible {
  outline-color: #1d4ed8;
}

.theme-light .section-tag {
  color: #1d4ed8;
}

.theme-light .btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.theme-light .btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.theme-light .segment-card,
.theme-light .auto-card,
.theme-light .pillar,
.theme-light .faq details {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.05);
}

.theme-light .segment-card.is-active {
  border-color: #3b82f6;
  background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 55%), #ffffff;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 18px 44px rgba(15, 23, 42, 0.09);
}

.theme-light .segment-card.is-active::after {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.theme-light .segment-icon,
.theme-light .auto-icon,
.theme-light .card-icon {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.theme-light .chip:hover {
  border-color: #94a3b8;
}

.theme-light .chip-count {
  background: rgba(15, 23, 42, 0.07);
}

.theme-light .auto-card:hover,
.theme-light .pillar:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.theme-light .auto-impact {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.07);
  color: #166534;
}

.theme-light .pain-list li::before {
  border-color: rgba(185, 28, 28, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.theme-light .gain-list li::before {
  border-color: rgba(21, 128, 61, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.theme-light .pillar::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(37, 99, 235, 0.08), transparent 45%);
}

.theme-light .timeline-deliverable {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
}

.theme-light .faq details[open] {
  border-color: rgba(37, 99, 235, 0.35);
}

.section-emblem {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 22px;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28), 0 0 0 6px rgba(37, 99, 235, 0.08);
}

/* ===== Antes x Depois ===== */

.compare {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.compare-head {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.compare-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
}

.compare-toggle button {
  position: relative;
  z-index: 1;
  padding: 10px 22px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.25s;
}

.compare-toggle button.is-active {
  color: #fff;
}

.compare-toggle-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.4);
  transition: transform 0.35s var(--ease), background-color 0.35s, border-color 0.35s;
}

[data-state="auto"] .compare-toggle-thumb {
  transform: translateX(100%);
  background: var(--accent);
  border-color: var(--accent-light);
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
}

.compare-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.compare-item {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid rgba(248, 113, 113, 0.6);
  background: var(--bg-main);
  transition: border-color 0.35s;
}

[data-state="auto"] .compare-item {
  border-left-color: var(--accent-light);
}

.compare-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.compare-task {
  font-weight: 600;
}

.compare-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
}

[data-state="auto"] .compare-time {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
}

.compare-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.is-switching .compare-desc,
.is-switching .compare-time {
  animation: fadeSwap 0.45s var(--ease);
}

.compare-summary {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
}

.compare-metric > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.compare-metric strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fca5a5;
  transition: color 0.35s;
}

[data-state="auto"] .compare-metric strong {
  color: #86efac;
}

.compare-metric strong.compare-vis {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.compare-metric small {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meter {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border-subtle);
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--danger);
  transition: width 0.6s var(--ease), background-color 0.6s;
}

[data-state="auto"] .meter span {
  background: var(--success);
}

/* ===== Ponte Digital ===== */

.bridge-card {
  position: relative;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.bridge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(220px, 250px) 72px minmax(0, 1fr);
  align-items: center;
}

.group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.system-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.system-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #2a3750;
  background: #131c2e;
  color: var(--text-main);
  font-size: 0.92rem;
  text-align: left;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

button.system-pill {
  cursor: pointer;
}

button.system-pill:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: #16213a;
}

button.system-pill.is-active {
  border-color: var(--accent-light);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0.06));
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25), 0 0 24px rgba(37, 99, 235, 0.2);
}

.system-pill .type {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.system-pill.is-outcome {
  border-color: rgba(59, 130, 246, 0.35);
}

.system-pill .check {
  color: var(--accent-light);
  font-weight: 700;
}

.flow-connector {
  position: relative;
  align-self: stretch;
  min-height: 48px;
}

.flow-connector::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.65), rgba(59, 130, 246, 0.15));
}

.flow-connector i {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  opacity: 0;
  animation: flowX 2.4s linear infinite;
}

.flow-connector i:nth-child(2) { animation-delay: 0.8s; }
.flow-connector i:nth-child(3) { animation-delay: 1.6s; }

@keyframes flowX {
  0% { left: 8px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 16px); opacity: 0; }
}

@keyframes flowY {
  0% { top: 6px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 14px); opacity: 0; }
}

.engine-core {
  position: relative;
  padding: 30px 22px;
  border-radius: 16px;
  border: 1px solid #3b82f6;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(56, 189, 248, 0.08)), var(--bg-card);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.18);
  text-align: center;
}

.engine-core .logo-badge {
  display: inline-block;
  margin-bottom: 12px;
}

.engine-core h3 {
  font-size: 1.2rem;
  color: #60a5fa;
  margin-bottom: 4px;
}

.engine-core p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.flow-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.engine-processing {
  margin-top: 14px;
  min-height: 2.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--accent-cyan);
}

.engine-rings span {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  pointer-events: none;
  animation: ring 3s ease-out infinite;
}

.engine-rings span:nth-child(2) { animation-delay: 1s; }
.engine-rings span:nth-child(3) { animation-delay: 2s; }

@keyframes ring {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.14); opacity: 0; }
}

.bridge-detail {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed var(--border-strong);
}

.bridge-detail.is-swapping > * {
  animation: fadeSwap 0.4s var(--ease);
}

.bridge-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.bridge-detail-head h3 {
  font-size: 1.2rem;
}

.bridge-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 28px;
}

.flow-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.flow-list li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
}

.flow-list li::before {
  content: "→";
  color: var(--accent-light);
  font-weight: 700;
}

@media (max-width: 900px) {
  .bridge-card { padding: 24px; }

  .bridge-grid {
    grid-template-columns: 1fr;
  }

  .bridge-grid .system-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .group-label { text-align: center; }

  .flow-connector {
    width: 2px;
    min-height: 60px;
    margin: 4px auto;
  }

  .flow-connector::before {
    top: 6px;
    bottom: 6px;
    left: 0;
    right: 0;
    width: 2px;
    height: auto;
    transform: none;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.65), rgba(59, 130, 246, 0.15));
  }

  .flow-connector i {
    left: -3px;
    top: 6px;
    margin-top: 0;
    animation-name: flowY;
  }

  .engine-core {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .bridge-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .bridge-grid .system-group {
    grid-template-columns: 1fr;
  }
}

/* ===== Catálogo ===== */

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.search {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-main);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search input::placeholder {
  color: var(--text-dim);
}

.search input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.catalog-count {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.auto-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s, background-color 0.25s;
  animation: cardIn 0.45s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.auto-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--bg-card-hover);
}

.auto-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.auto-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent-light);
}

.auto-icon svg {
  width: 20px;
  height: 20px;
}

.auto-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
}

.auto-card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.auto-card > p {
  flex-grow: 1;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.auto-systems {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.auto-systems .tag,
.modal .tag-muted {
  font-size: 0.72rem;
  border-color: var(--border-strong);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
}

.auto-impact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.07);
  color: #86efac;
  font-size: 0.85rem;
  line-height: 1.45;
}

.auto-impact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.auto-more {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.auto-more span {
  display: inline-block;
  transition: transform 0.2s;
}

.auto-card:hover .auto-more span {
  transform: translateX(4px);
}

.catalog-empty {
  max-width: 520px;
  margin: 8px auto 0;
  padding: 40px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  text-align: center;
  color: var(--text-muted);
}

.catalog-empty p {
  margin-bottom: 8px;
}

.catalog-empty strong {
  color: var(--text-main);
}

.catalog-empty .btn-secondary {
  margin-top: 12px;
}

.catalog-footer {
  margin-top: 36px;
  text-align: center;
  color: var(--text-muted);
}

.catalog-footer a {
  color: var(--accent-light);
  font-weight: 600;
}

/* ===== Modal ===== */

.modal {
  width: 100%;
  max-width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(3, 6, 12, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal[open] {
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-inner {
  position: relative;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-main);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover {
  color: var(--text-main);
  border-color: var(--text-dim);
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-right: 44px;
}

.modal-head .auto-icon {
  width: 52px;
  height: 52px;
}

.modal-head .auto-icon svg {
  width: 24px;
  height: 24px;
}

.modal-head .auto-cat {
  display: block;
  text-align: left;
  margin-bottom: 2px;
}

.modal-head h3 {
  font-size: 1.4rem;
  line-height: 1.25;
}

.modal-summary {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 24px;
}

.modal-problem {
  margin-bottom: 26px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-left: 3px solid rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.06);
}

.modal-problem h4 {
  color: #fca5a5;
  margin-bottom: 6px;
}

.modal-problem p {
  font-size: 0.95rem;
}

.modal-steps {
  list-style: none;
  display: grid;
  gap: 0;
  margin-bottom: 26px;
}

.modal-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  animation: fadeSwap 0.4s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + 100ms);
}

.modal-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(37, 99, 235, 0.15));
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.modal-steps li > span:last-child {
  padding-top: 5px;
}

.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
}

.modal-meta .impact {
  color: #86efac;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 600px) {
  .modal-inner { padding: 28px 20px; }
  .modal-meta { grid-template-columns: 1fr; }
  .modal-actions > * { width: 100%; }
}

/* ===== Simulador ===== */

.sim {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.sim-tabs {
  justify-content: flex-start;
  margin-bottom: 24px;
}

.sim-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
}

.sim-pipeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
  transition: border-color 0.3s, background-color 0.3s;
}

.sim-step strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}

.sim-step small {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.sim-step-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.sim-step-icon svg {
  width: 19px;
  height: 19px;
}

.sim-step-status {
  justify-self: end;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}

.sim-step.is-running {
  border-color: var(--accent-light);
  background: rgba(37, 99, 235, 0.08);
}

.sim-step.is-running .sim-step-icon {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 18px var(--accent-glow);
}

.sim-step.is-running .sim-step-status {
  border-color: var(--accent-light);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.sim-step.is-done {
  border-color: rgba(34, 197, 94, 0.3);
}

.sim-step.is-done .sim-step-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.sim-step.is-done .sim-step-status {
  border-color: #22c55e;
  background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sim-terminal {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: #05080f;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: #0a0f1a;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.terminal-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-body {
  flex: 1;
  max-height: 420px;
  padding: 16px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.75;
}

.log-placeholder {
  color: var(--text-dim);
}

.log-placeholder b {
  color: var(--accent-light);
  font-weight: 600;
}

.log-line {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  animation: fadeSwap 0.3s var(--ease);
}

.log-time,
.log-elapsed {
  color: var(--text-dim);
}

.log-tag {
  min-width: 3.6em;
  font-weight: 600;
}

.log-msg {
  color: #d1d5db;
}

.log-line.info .log-tag { color: var(--accent-light); }
.log-line.ok .log-tag { color: var(--success); }
.log-line.done .log-tag,
.log-line.done .log-msg { color: var(--accent-cyan); }

.sim-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.sim-footer .btn-primary {
  min-width: 230px;
}

.sim-results {
  flex: 1;
  min-width: 280px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sim-results > div {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-main);
}

.sim-results span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.35;
  margin-bottom: 4px;
}

.sim-results strong {
  font-size: 1.15rem;
  font-weight: 700;
}

#simAuto { color: var(--success); }
#simManual { color: #fca5a5; }

.sim-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .sim-body { grid-template-columns: 1fr; }
  .sim-terminal { min-height: 280px; }
  .sim-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-footer .btn-primary { width: 100%; }
}

@media (max-width: 600px) {
  .sim { padding: 20px 16px; }
  .log-line { grid-template-columns: auto minmax(0, 1fr); }
  .log-time,
  .log-elapsed { display: none; }
  .sim-results { min-width: 0; }
}

/* ===== Calculadora de ROI ===== */

.roi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.range-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.range-head label {
  font-size: 0.95rem;
  font-weight: 500;
}

.range-head output {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.range-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan) var(--fill, 50%), var(--border-strong) var(--fill, 50%));
  cursor: pointer;
}

input[type="range"]:focus-visible {
  outline-offset: 8px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  transition: transform 0.15s;
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.roi-output {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.25), transparent 60%), var(--bg-card);
}

.roi-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.roi-big {
  margin-top: -10px;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #86efac, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.roi-grid > div {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.6);
}

.roi-grid span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.roi-grid strong {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.roi-bars {
  display: grid;
  gap: 14px;
}

.roi-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.roi-bar-head b {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: var(--border-subtle);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.5s var(--ease);
}

.bar-now { background: linear-gradient(90deg, #ef4444, #f87171); }
.bar-after { background: linear-gradient(90deg, var(--accent), var(--accent-cyan)); }

.roi-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

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

@media (max-width: 480px) {
  .roi-inputs,
  .roi-output { padding: 24px 18px; }
  .range-head { flex-direction: column; gap: 6px; }
}

/* ===== Pilares ===== */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pillar {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: border-color 0.25s, background-color 0.25s, opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, 0.16), transparent 45%);
  transition: opacity 0.3s;
}

.pillar:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--bg-card-hover);
}

.pillar:hover::before {
  opacity: 1;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  font-weight: 700;
  font-family: var(--font-mono);
}

.pillar h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.pillar p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ===== Resultados ===== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.stat-card {
  padding: 40px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #111827 0%, #0d121f 100%);
  text-align: center;
}

.stat-number {
  margin-bottom: 12px;
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.stat-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== Método ===== */

.timeline {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  height: 2px;
}

.timeline::before {
  right: 10%;
  background: var(--border-strong);
}

.timeline::after {
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transition: width 2s linear;
}

.timeline.is-animated::after {
  width: 80%;
}

.timeline-step {
  position: relative;
  text-align: center;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg-main);
  color: var(--text-muted);
  font-weight: 800;
  transition: background-color 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s;
  transition-delay: calc(var(--i, 0) * 0.5s);
}

.timeline.is-animated .timeline-dot {
  border-color: var(--accent-light);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
}

.timeline-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.timeline-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.timeline-deliverable {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(37, 99, 235, 0.1);
  color: #93c5fd;
  font-size: 0.78rem;
  line-height: 1.4;
}

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

  .timeline::before,
  .timeline::after {
    top: 0;
    left: 22px;
    width: 2px;
  }

  .timeline::before {
    right: auto;
    bottom: 0;
    height: auto;
  }

  .timeline::after {
    height: 0;
    transition: height 2s linear;
  }

  .timeline.is-animated::after {
    width: 2px;
    height: 100%;
  }

  .timeline-step {
    padding-left: 68px;
    text-align: left;
  }

  .timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
}

/* ===== Autodiagnóstico ===== */

.quiz {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 36px 36px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.quiz-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-subtle);
}

.quiz-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transition: width 0.4s var(--ease);
}

.quiz-step {
  animation: fadeSwap 0.4s var(--ease);
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.quiz-back {
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.quiz-back:hover {
  color: var(--text-main);
}

.quiz-question {
  margin-bottom: 24px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.35;
}

.quiz-question:focus,
.quiz-level:focus {
  outline: none;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.quiz-option:hover {
  border-color: var(--accent-light);
  background: rgba(37, 99, 235, 0.06);
}

.quiz-option.is-selected {
  border-color: var(--accent-light);
  background: rgba(37, 99, 235, 0.15);
}

.quiz-letter {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.quiz-option.is-selected .quiz-letter {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.quiz-result {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  grid-template-areas:
    "gauge summary"
    "recs recs"
    "actions actions";
  gap: 28px 32px;
  align-items: center;
}

.gauge {
  grid-area: gauge;
  position: relative;
  width: 160px;
  height: 160px;
}

.gauge svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.gauge-track {
  stroke: var(--border-subtle);
}

.gauge-fill {
  stroke: var(--gauge-color, var(--accent-light));
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease);
}

.gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-value strong {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.gauge-value small {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 600;
}

.gauge-value span {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quiz-summary {
  grid-area: summary;
}

.quiz-level-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.quiz-level {
  margin: 2px 0 8px;
  font-size: 1.6rem;
  color: var(--gauge-color, var(--text-main));
}

.quiz-summary p {
  color: var(--text-muted);
}

.quiz-recs {
  grid-area: recs;
}

.quiz-rec-list {
  display: grid;
  gap: 10px;
}

.quiz-rec {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-main);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.quiz-rec:hover {
  border-color: var(--accent-light);
  background: rgba(37, 99, 235, 0.06);
}

.quiz-rec strong {
  display: block;
  font-size: 0.95rem;
}

.quiz-rec small {
  color: #86efac;
  font-size: 0.82rem;
}

.quiz-rec > span:last-child {
  color: var(--accent-light);
  font-weight: 700;
}

.quiz-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quiz-noscript {
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .quiz { padding: 32px 18px 24px; }

  .quiz-result {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gauge"
      "summary"
      "recs"
      "actions";
    justify-items: center;
    text-align: center;
  }

  .quiz-recs,
  .quiz-actions { width: 100%; }

  .quiz-rec { text-align: left; }

  .quiz-actions > * { width: 100%; }
}

/* ===== FAQ ===== */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-group {
  display: grid;
  gap: 12px;
}

.faq-group-title {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.faq-group + .faq-group-title {
  margin-top: 20px;
}

.faq details {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: border-color 0.2s, background-color 0.2s;
}

.faq details[open] {
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--bg-card-hover);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-light);
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
}

.faq details[open] .faq-body {
  animation: fadeSwap 0.35s var(--ease);
}

/* ===== Contato ===== */

.anchor-alias {
  position: absolute;
  top: 0;
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: 56px;
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.25), transparent 55%), var(--bg-card);
}

.contact-info h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.contact-info > p {
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-steps {
  list-style: none;
  counter-reset: cs;
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-steps li {
  counter-increment: cs;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 14px;
}

.contact-steps li::before {
  content: counter(cs);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-light);
  font-weight: 700;
}

.contact-steps span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-direct {
  color: var(--text-muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.contact-direct a {
  color: var(--accent-light);
  text-decoration: underline;
}

.contact-whatsapp {
  margin-top: 16px;
}

.contact-form {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.65);
}

.form-row.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  font-size: 0.85rem;
  font-weight: 500;
}

.field legend {
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-main);
  color: var(--text-main);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}

.field-error {
  font-size: 0.8rem;
  color: var(--danger);
}

.field-error:empty {
  display: none;
}

.check-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-chip {
  position: relative;
}

.check-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-chip span {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.check-chip span:hover {
  color: var(--text-main);
}

.check-chip input:checked + span {
  border-color: var(--accent-light);
  background: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
}

.check-chip input:focus-visible + span {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.form-context {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(37, 99, 235, 0.08);
  font-size: 0.85rem;
  animation: fadeSwap 0.35s var(--ease);
}

.form-context-title {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.form-context ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.form-context li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}

.form-context li strong {
  color: var(--text-main);
}

.form-context-remove {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.form-context-remove svg {
  width: 13px;
  height: 13px;
}

.form-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.form-success {
  padding: 32px 8px;
  text-align: center;
  animation: fadeSwap 0.4s var(--ease);
}

.form-success h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.form-success h3:focus {
  outline: none;
}

.form-success p {
  max-width: 420px;
  margin: 0 auto 20px;
  color: var(--text-muted);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  font-size: 1.8rem;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 960px) {
  .contact-box {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 24px;
  }
}

@media (max-width: 560px) {
  .contact-box { padding: 28px 16px; }
  .contact-form { padding: 20px 16px; }
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
}

/* ===== Footer ===== */

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.footer-emblem-link {
  flex-shrink: 0;
  border-radius: 50%;
}

.footer-emblem {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.25);
}

.footer-slogan {
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand p:not(.footer-slogan) {
  max-width: 320px;
}

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

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

/* ===== Flutuantes ===== */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(17, 24, 39, 0.9);
  color: var(--text-main);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, border-color 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  border-color: var(--accent-light);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== Responsivo geral ===== */

@media (max-width: 768px) {
  .hero { padding-top: 72px; }
  .marquee { margin-top: 64px; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .compare { padding: 20px 16px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-toggle button { padding: 10px 14px; font-size: 0.86rem; }
}

@media (max-width: 520px) {
  /* A frase digitada pode ocupar duas linhas: reserva o espaço para os botões não pularem */
  .hero-typer { min-height: 3.2em; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions .btn-lg { width: 100%; }
  .hero-proof { flex-direction: column; align-items: center; gap: 10px; }
}

/* ===== Movimento reduzido ===== */

@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;
    transition-delay: 0s !important;
  }

  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .marquee-viewport { -webkit-mask-image: none; mask-image: none; }
}
