/* ════════════════════════════════════════
   SIG — Sistema Integrado de Gestão
   style.css
════════════════════════════════════════ */

/* ── VARIÁVEIS ── */
:root {
  --azul:        #0d1b6e;
  --azul-medio:  #1a2fa0;
  --azul-claro:  #e8eaf6;
  --cinza-claro: #f4f5f8;
  --cinza-borda: #e2e4ec;
  --branco:      #ffffff;
  --texto-suave: #4a5080;
  --grid-color:  rgba(13,27,110,0.04);
  --dash-color:  rgba(13,27,110,0.10);
}

/* ── RESET & BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--branco);
  color: var(--azul);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TIPOGRAFIA TECH ── */
.tech-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--azul-medio);
  opacity: 0.7;
}
h1, h2, h3, .section-tag {
  font-family: 'Space Grotesk', sans-serif;
}

/* ── GRID OVERLAY ── */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── DASHED TECH LINES ── */
.tech-lines-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.corner-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--azul-medio);
  opacity: 0.18;
}

.section-dashed-top {
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--dash-color) 0px,
    var(--dash-color) 6px,
    transparent 6px,
    transparent 14px
  );
}

.v-dash {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--dash-color) 0px,
    var(--dash-color) 6px,
    transparent 6px,
    transparent 14px
  );
  pointer-events: none;
}

/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  pointer-events: none;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  border-color: var(--cinza-borda);
  backdrop-filter: blur(12px);
  pointer-events: all;
}
.nav-logo {
  opacity: 0;
  transform: scale(0.88) translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
nav.scrolled .nav-logo { opacity: 1; transform: scale(1) translateX(0); }
.nav-logo img { height: 42px; }

.nav-links {
  display: flex; gap: 32px; list-style: none;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
nav.scrolled .nav-links { opacity: 1; transform: translateY(0); }
.nav-links a {
  text-decoration: none;
  color: var(--texto-suave);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.nav-links a:hover { color: var(--azul); }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  cursor: default;
}
#hero .grid-bg { opacity: 0.7; }

/* Corner markers */
.hero-corner {
  position: absolute;
  width: 16px; height: 16px;
  pointer-events: none;
  z-index: 1;
}
.hero-corner::before, .hero-corner::after {
  content: '';
  position: absolute;
  background: var(--azul-medio);
  opacity: 0.25;
}
.hero-corner.tl { top: 40px; left: 5%; }
.hero-corner.tr { top: 40px; right: 5%; }
.hero-corner.bl { bottom: 60px; left: 5%; }
.hero-corner.br { bottom: 60px; right: 5%; }
.hero-corner::before { width: 100%; height: 1px; top: 0; left: 0; }
.hero-corner::after  { width: 1px; height: 100%; top: 0; left: 0; }
.hero-corner.tr::after  { left: auto; right: 0; }
.hero-corner.bl::before { top: auto; bottom: 0; }
.hero-corner.br::before { top: auto; bottom: 0; }
.hero-corner.br::after  { left: auto; right: 0; }

/* Glow */
#hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, #eceffe 0%, transparent 68%);
  pointer-events: none;
  transition: opacity 0.4s;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Stage */
#hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Orbit SVG */
#orbit-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Logo */
#hero-logo {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: opacity 0.5s ease;
  animation: logoFloat 16s ease-in-out infinite;
  will-change: transform;
  /* halo radial para esconder as linhas tracejadas próximas */
  filter: drop-shadow(0 0 48px rgba(255,255,255,1)) drop-shadow(0 0 80px rgba(255,255,255,0.95)) drop-shadow(0 0 24px rgba(220,225,240,0.6));
}
#hero-logo a { display: block; line-height: 0; }
#hero-logo img {
  width: 420px;
  display: block;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

@keyframes logoFloat {
  0%   { transform: translate(-50%, calc(-50% +  0px)); }
  18%  { transform: translate(-50%, calc(-50% - 14px)); }
  35%  { transform: translate(-50%, calc(-50% -  6px)); }
  52%  { transform: translate(-50%, calc(-50% - 18px)); }
  68%  { transform: translate(-50%, calc(-50% -  3px)); }
  83%  { transform: translate(-50%, calc(-50% - 11px)); }
  100% { transform: translate(-50%, calc(-50% +  0px)); }
}

/* Orbit items */
.orbit-item {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 4;
  will-change: transform, opacity;
}
.orbit-item a {
  display: block;
  padding: 10px 24px;
  background: #ffffff;
  border: 1px solid var(--cinza-borda);
  border-radius: 50px;
  text-decoration: none;
  color: var(--texto-suave);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
  box-shadow: 0 2px 16px rgba(13,27,110,0.07);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, background 0.25s;
  user-select: none;
}
.orbit-item.focused a {
  border-color: var(--azul);
  color: var(--azul);
  box-shadow: 0 6px 28px rgba(13,27,110,0.16);
  background: #fff;
}
.orbit-item.dimmed a {
  color: #b0b4cc;
  border-color: #e8eaf0;
  box-shadow: none;
  background: #fafafa;
}

/* Orbit tooltip */
#orbit-tooltip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92) translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#orbit-tooltip.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
#orbit-tooltip-inner {
  background: rgba(255,255,255,0.97);
  border: 1px dashed rgba(26,47,160,0.3);
  border-radius: 10px;
  padding: 14px 18px;
  max-width: 210px;
  box-shadow: 0 1px 6px rgba(13,27,110,0.06);
  position: relative;
}
#orbit-tooltip-inner::before,
#orbit-tooltip-inner::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  border-color: rgba(26,47,160,0.35);
  border-style: solid;
}
#orbit-tooltip-inner::before {
  top: -1px; left: -1px;
  border-width: 1.5px 0 0 1.5px;
  border-radius: 2px 0 0 0;
}
#orbit-tooltip-inner::after {
  bottom: -1px; right: -1px;
  border-width: 0 1.5px 1.5px 0;
  border-radius: 0 0 2px 0;
}
#orbit-tooltip-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--azul-medio);
  opacity: 0.65;
  margin-bottom: 6px;
}
#orbit-tooltip-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.83rem;
  color: var(--texto-suave);
  line-height: 1.5;
  margin: 0;
  max-width: none;
}

/* Tooltip connector SVG */
#tooltip-connector {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.22s ease;
}
#tooltip-connector.visible { opacity: 1; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #b0b4cc;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 5;
}
.scroll-hint.hidden { opacity: 0; }
.scroll-hint-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, #c8cceb, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.35} 50%{opacity:1} }

/* ════════════════════════════════════════
   SECTIONS
════════════════════════════════════════ */
section {
  padding: 96px 5%;
  position: relative;
  overflow: hidden;
}
section:nth-of-type(even) { background: var(--cinza-claro); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--azul-claro);
  color: var(--azul-medio);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-family: 'JetBrains Mono', monospace;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid rgba(26,47,160,0.12);
}
.section-tag::before {
  content: '//';
  opacity: 0.45;
  font-size: 0.65rem;
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--azul-medio);
  font-weight: 500;
  margin-bottom: 28px;
  font-family: 'Space Grotesk', sans-serif;
  opacity: 0.8;
}
p {
  color: var(--texto-suave);
  font-size: 0.97rem;
  margin-bottom: 14px;
  /*max-width: 68ch;*/
  text-align: justify;
}

/* ── Content split (texto + imagem) ── */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 40px;
}
.content-split.reverse { direction: rtl; }
.content-split.reverse > * { direction: ltr; }
.content-split-text p { max-width: 100%; }

.content-split-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--azul-claro);
}
.content-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.content-split-img::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(26,47,160,0.2);
  border-radius: 16px;
  z-index: 2;
  pointer-events: none;
}
.content-split-img::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, transparent 50%, rgba(26,47,160,0.06) 50%);
  pointer-events: none;
}

.img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #e8eaf6 0%, #d0d4f0 100%);
  color: var(--azul-medio);
}
.img-placeholder span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  opacity: 0.6;
  letter-spacing: 0.08em;
}
.img-placeholder svg { opacity: 0.3; }

/* ── Feature list ── */
.feature-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--texto-suave);
  padding: 10px 12px;
  border: 1px solid var(--cinza-borda);
  border-radius: 6px;
  background: rgba(255,255,255,0.6);
}
.feature-list li::before {
  content: '→';
  color: var(--azul-medio);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Destaque box ── */
.destaque-box {
  background: var(--azul);
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
.destaque-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 48px
  );
  pointer-events: none;
}
.destaque-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  position: relative;
}
.destaque-box p {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  max-width: none;
  margin-bottom: 0;
  position: relative;
}

/* ── Escolha bloco ── */
.escolha-bloco {
  background: var(--azul-claro);
  border-left: 3px solid var(--azul-medio);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  position: relative;
}
.escolha-bloco::before {
  content: attr(data-label);
  position: absolute;
  top: -10px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--azul-medio);
  background: var(--azul-claro);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid rgba(26,47,160,0.15);
}
.escolha-bloco h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 6px;
}
.escolha-bloco p { margin-bottom: 0; }

/* ── Cards section ── */
.cards-section {
  background: var(--azul) !important;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}
.cards-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.cards-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--azul-medio), transparent);
}
.card:hover { box-shadow: 0 8px 28px rgba(13,27,110,0.18); transform: translateY(-2px); }
.card-nome {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--azul-medio);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--azul);
  line-height: 1.35;
  margin: 0;
}

/* ── Footer ── */
footer {
  background: var(--azul);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 40px 5%;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 48px
  );
  pointer-events: none;
}
footer img {
  height: 32px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  position: relative;
}
footer p { color: rgba(255,255,255,0.45); max-width: none; position: relative; }

/* ════════════════════════════════════════
   FORMULÁRIO
════════════════════════════════════════ */
#parceiros-form { position: relative; overflow: hidden; }

.form-wrapper {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--cinza-borda);
  border-radius: 16px;
  padding: 56px 64px;
  position: relative;
  box-shadow: 0 4px 40px rgba(13,27,110,0.07);
}
.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--azul), var(--azul-medio), #6b7ff0);
  border-radius: 16px 16px 0 0;
}
.form-wrapper::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(26,47,160,0.08);
  border-radius: 10px;
  pointer-events: none;
}
.form-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.form-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--azul-medio);
  opacity: 0.6;
  letter-spacing: 0.1em;
  margin-bottom: 44px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--azul-medio);
  opacity: 0.7;
}
.form-field input {
  border: 1px solid var(--cinza-borda);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--azul);
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}
.form-field input:focus {
  border-color: var(--azul-medio);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,47,160,0.08);
}
.form-field input::placeholder { color: #b0b4cc; font-size: 0.88rem; }
.form-btn {
  width: 100%;
  margin-top: 8px;
  padding: 15px 24px;
  background: var(--azul);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.form-btn:hover {
  background: var(--azul-medio);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(13,27,110,0.22);
}
.form-btn:active { transform: translateY(0); }
.form-btn svg { flex-shrink: 0; }
.form-note {
  text-align: center;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #b0b4cc;
  letter-spacing: 0.08em;
}

/* ════════════════════════════════════════
   BOTÕES FLUTUANTES
════════════════════════════════════════ */
.fab-group {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 999;
}
.fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  box-shadow: 0 2px 12px rgba(13,27,110,0.18);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  outline: none;
}
.fab:hover {
  transform: scale(1.09);
  box-shadow: 0 4px 20px rgba(13,27,110,0.22);
  border-color: rgba(255,255,255,0.6);
}
.fab-top {
  background: var(--azul);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(8px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s, border-color 0.2s;
}
.fab-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
}
.fab-top:hover { transform: scale(1.09) translateY(0) !important; }
.fab-wa { background: #25D366; }

/* ════════════════════════════════════════
   PARCEIROS
════════════════════════════════════════ */
.parceiros {
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.parceiros-conteiner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1; min-width: 0;
  transition: opacity .25s, transform .25s;
}
.parceiros-conteiner:hover { transform: scale(1.05); }

/* ════════════════════════════════════════
   RESPONSIVO — mobile first
════════════════════════════════════════ */

/* Hamburguer */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--cinza-borda);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.2s;
  z-index: 210;
}
.nav-hamburger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--azul);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer mobile */
.nav-drawer {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cinza-borda);
  padding: 16px 5% 24px;
  z-index: 205;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-drawer.open { transform: translateY(0); opacity: 1; }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-drawer ul li a {
  display: block;
  padding: 13px 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--texto-suave);
  text-decoration: none;
  border-bottom: 1px solid var(--cinza-borda);
  transition: color 0.2s;
}
.nav-drawer ul li:last-child a { border-bottom: none; }
.nav-drawer ul li a:active { color: var(--azul); }

@media (max-width: 768px) {
  /* NAV */
  nav {
    pointer-events: all !important;
    background: rgba(255,255,255,0.97) !important;
    border-color: var(--cinza-borda) !important;
    backdrop-filter: blur(12px) !important;
  }
  .nav-logo { opacity: 1 !important; transform: none !important; }
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }

  /* HERO */
  #hero { height: 100svh; min-height: 560px; }
  #orbit-svg { display: none; }
  #hero-glow { display: none; }
  .hero-corner { display: none; }
  .grid-bg { display: none; }

  #hero-logo {
    animation: none !important;
    left: 50% !important;
    top: 42% !important;
    transform: translate(-50%, -50%) !important;
  }
  #hero-logo img { width: 240px !important; }

  .orbit-item {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
  }
  #hero-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 64px;
  }
  #orbit-items-mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    max-width: 400px;
  }
  .orbit-item a { font-size: 0.8rem; padding: 8px 16px; }

  #orbit-tooltip, #tooltip-connector { display: none !important; }
  .scroll-hint { bottom: 16px; }

  /* SECTIONS */
  section { padding: 56px 5%; }
  .content-split { grid-template-columns: 1fr; gap: 28px; }
  .content-split.reverse { direction: ltr; }
  .content-split.reverse > * { direction: ltr; }
  .content-split-img { aspect-ratio: 16/9; }
  .content-split-img::before { display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list li { font-size: 0.85rem; }
  .destaque-box { padding: 20px; }

  /* NÚMEROS */
  #sobre-rabbit > div:last-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  /* PARCEIROS */
  .partners-row {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px 24px !important;
  }
  .parceiros-conteiner {
    flex: 0 0 calc(33.333% - 16px) !important;
    min-width: 80px;
  }

  /* CARDS */
  .cards-wrap { grid-template-columns: 1fr !important; gap: 12px; }

  /* FORMULÁRIO */
  .form-wrapper { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-title { font-size: 1.3rem; }

  /* PLANOS */
  #planos .section-inner > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }

  /* BOTÕES FLUTUANTES */
  .fab-group { bottom: 20px; right: 16px; }
  .fab { width: 46px; height: 46px; }
}

@media (max-width: 480px) {
  #hero-logo img { width: 200px !important; }
  .orbit-item a { font-size: 0.75rem; padding: 7px 13px; }
  h2 { font-size: 1.5rem; }
  section { padding: 48px 5%; }
  #sobre-rabbit > div:last-child { grid-template-columns: 1fr 1fr !important; }
  .parceiros-conteiner { flex: 0 0 calc(50% - 12px) !important; }}

/* ════════════════════════════════════════
   FULL-HEIGHT SECTIONS
════════════════════════════════════════ */
.full-h {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
.full-h .section-inner {
  width: 100%;
}
/* Formulário: centraliza o card horizontal e verticalmente */
#parceiros-form.full-h {
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
/* Sobre o Grupo Rabbit: números + parceiros somados */
.full-h-double {
  min-height: 100vh;
}

/* ── Image caption ── */
.content-split-img-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.img-caption {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--texto-suave);
  border: 1px solid var(--cinza-borda);
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: rgba(255,255,255,0.7);
  max-width: 100%;
  line-height: 1.5;
}
.img-caption strong {
  color: var(--azul);
  font-family: 'Space Grotesk', sans-serif;
}
/* Override border-radius on img when caption present */
.content-split-img-wrap .content-split-img {
  border-radius: 12px 12px 0 0;
}

/* ════════════════════════════════════════
   PLANOS — selectable cards
════════════════════════════════════════ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);/*alteradp de 3 para 2*/
  gap: 24px;
  margin-top: 40px;
}
.plan-card {
  border: 1.5px solid var(--cinza-borda);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
  user-select: none;
}
.plan-card:hover {
  border-color: var(--azul-medio);
  box-shadow: 0 6px 28px rgba(13,27,110,0.12);
  transform: translateY(-2px);
}
.plan-card.selected {
  border-color: var(--azul);
  box-shadow: 0 8px 32px rgba(13,27,110,0.18);
  background: var(--azul-claro);
}
.plan-card.selected::after {
  content: '✓ Selecionado';
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--azul-medio);
  opacity: 0.7;
}
.plan-featured {
  border-color: var(--azul);
  background: var(--azul-claro);
}
.plan-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--azul);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}
.plan-tier {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
}
.plan-featured .plan-tier { color: var(--azul-medio); }
.plan-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--azul);
  margin: 0;
}
.plan-desc {
  font-size: 0.88rem;
  color: var(--texto-suave);
  margin: 0;
  max-width: 100%;
}
.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.plan-list li {
  font-size: 0.88rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 100%;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}
.plan-list li::before { display: none; }
.plan-list li.ok { color: var(--texto-suave); }
.plan-list li.ok::before {
  content: '✓';
  display: inline;
  color: var(--azul-medio);
  font-weight: 600;
  flex-shrink: 0;
}
.plan-list li.no { color: #ccc; }
.plan-list li.no::before {
  content: '–';
  display: inline;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   FOOTER — slim
════════════════════════════════════════ */
footer {
  padding: 20px 5% !important;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  height: 28px !important;
  margin: 0 !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.7;
}
.footer-brand span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.footer-right a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-right a:hover { color: #fff; }
.footer-phone {
  display: flex !important;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.6) !important;
}
.footer-sep { opacity: 0.3; }

/* Responsive additions */
@media (max-width: 768px) {
  .full-h { min-height: auto; }
  .full-h-double { min-height: auto; }
  .plans-grid { grid-template-columns: 1fr !important; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-right { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-sep { display: none; }
}

/* ════════════════════════════════════════
   PALAVRAS-CHAVE DESTACADAS
════════════════════════════════════════ */
em.kw {
  font-style: normal;
  color: #7202AC;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

/* ════════════════════════════════════════
   ORBIT TOOLTIP — sombra menor, mais clean
════════════════════════════════════════ */
#orbit-tooltip-inner {
  box-shadow: 0 1px 6px rgba(13,27,110,0.06);
}

/* ════════════════════════════════════════
   REMATRÍCULA — GAP extra no tooltip
   (tratado no JS via idx === 3)
════════════════════════════════════════ */

/* ════════════════════════════════════════
   INLINE TOOLTIP — palavras e imagens
════════════════════════════════════════ */
.tip-word {
  border-bottom: 1.5px dashed rgba(26,47,160,0.35);
  cursor: default;
  transition: border-color 0.2s, color 0.2s;
  color: inherit;
}
.tip-word:hover {
  border-color: var(--azul);
  color: var(--azul);
}

.tip-img {
  cursor: crosshair;
}

/* Tooltip box */
#inline-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 230px;
}
#inline-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#inline-tooltip-inner {
  background: rgba(255,255,255,0.97);
  border: 1px dashed rgba(26,47,160,0.28);
  border-radius: 10px;
  padding: 13px 16px;
  box-shadow: 0 1px 8px rgba(13,27,110,0.07);
  position: relative;
}
/* Corner marks */
#inline-tooltip-inner::before,
#inline-tooltip-inner::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  border-color: rgba(26,47,160,0.3);
  border-style: solid;
}
#inline-tooltip-inner::before {
  top: -1px; left: -1px;
  border-width: 1.5px 0 0 1.5px;
  border-radius: 2px 0 0 0;
}
#inline-tooltip-inner::after {
  bottom: -1px; right: -1px;
  border-width: 0 1.5px 1.5px 0;
  border-radius: 0 0 2px 0;
}
#inline-tooltip-title {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--azul-medio);
  opacity: 0.65;
  margin-bottom: 5px;
}
#inline-tooltip-body {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--texto-suave);
  line-height: 1.5;
  margin: 0;
  max-width: none;
  text-align: left;
}

/* SVG connector (fixed overlay) */
/* Connector L — CSS puro, sem SVG */
#inline-connector {
  display: none; /* SVG descartado */
}

.tip-line-h {
  position: fixed;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    #8891cc 0px, #8891cc 4px,
    transparent 4px, transparent 8px
  );
  pointer-events: none;
  z-index: 998;
  transition: opacity 0.2s ease;
}
.tip-line-v {
  position: fixed;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    #8891cc 0px, #8891cc 4px,
    transparent 4px, transparent 8px
  );
  pointer-events: none;
  z-index: 998;
  transition: opacity 0.2s ease;
}
.tip-dot {
  position: fixed;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #1a2fa0;
  opacity: 0.4;
  pointer-events: none;
  z-index: 998;
  transform: translate(-50%, -50%);
}
.tip-dot.elbow {
  background: #8891cc;
  opacity: 0.55;
  width: 4px; height: 4px;
}

/* Parceiros tooltip trigger */
.tip-partner {
  position: relative;
  cursor: default;
}
.tip-partner:hover img {
  opacity: 0.85;
  transform: scale(1.04);
  transition: opacity 0.2s, transform 0.2s;
}

/* Tooltip abaixo (parceiros) */
#inline-tooltip.below {
  transform: translateY(-4px) scale(0.96);
}
#inline-tooltip.below.visible {
  transform: translateY(0) scale(1);
}

/* Tooltip, linhas e dots acima de tudo */
#inline-tooltip  { z-index: 1002; }
.tip-line-h,
.tip-line-v,
.tip-dot         { z-index: 1001; }

/* ════════════════════════════════════════
   GALERIA DE IMAGENS — SIG
════════════════════════════════════════ */
.gallery-wrap {
  --gal-slide-w: clamp(150px, 19vw, 215px);
  --gal-active-w: clamp(220px, 28vw, 320px);
  --gal-gap: clamp(20px, 2.6vw, 32px);
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.gallery-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
}

.gallery-track-wrap {
  overflow: hidden;
  flex: 0 0 auto;
  width: calc(2 * var(--gal-slide-w) + var(--gal-active-w) + 2 * var(--gal-gap));
}

.gallery-track {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--gal-gap);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}
.gallery-track.no-transition { transition: none; }

.gallery-slide {
  flex: 0 0 var(--gal-slide-w);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  opacity: 0.55;
  box-shadow: 0 4px 20px rgba(13,27,110,0.10);
  border: 1px solid var(--cinza-borda);
  /* flex-basis muda instantaneamente (não anima) para que o cálculo do
     deslizamento (translateX, feito em JS a partir do offsetWidth) já
     tenha a largura final correta no mesmo instante da troca. */
  transition: opacity 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  display: block;
  opacity: 0;
  transform: scale(2.05);
  transition: opacity 0.35s ease, transform 0.5s ease;
}
.gallery-slide img.is-loaded { opacity: 1; }

.gallery-slide:hover img {
  transform: scale(2.45);
}

.gallery-slide.is-active {
  flex-basis: var(--gal-active-w);
  opacity: 1;
  box-shadow: 0 14px 38px rgba(13,27,110,0.22);
  border-color: var(--azul-medio);
  border-width: 2px;
  z-index: 2;
}
.gallery-slide.is-active:hover {
  box-shadow: 0 18px 44px rgba(13,27,110,0.28);
}
.gallery-slide.is-active:hover img {
  transform: scale(2.5);
}

.gallery-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,27,110,0.0);
  transition: background 0.25s;
  pointer-events: none;
}
.gallery-slide:hover::after {
  background: rgba(13,27,110,0.06);
}

.gallery-nav {
  appearance: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--cinza-borda);
  color: var(--azul-medio);
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(13,27,110,0.07);
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.gallery-nav:hover {
  border-color: var(--azul);
  color: var(--azul);
  box-shadow: 0 6px 22px rgba(13,27,110,0.16);
  transform: translateY(-1px);
}
.gallery-nav:active {
  transform: translateY(0) scale(0.95);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinza-borda);
  transition: background 0.25s, transform 0.25s;
}
.gallery-dots span.active {
  background: var(--azul-medio);
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .gallery-wrap {
    --gal-slide-w: clamp(78px, 24vw, 110px);
    --gal-active-w: clamp(170px, 62vw, 230px);
    --gal-gap: 12px;
  }
  .gallery-viewport { gap: 6px; }
  .gallery-nav { width: 36px; height: 36px; }
}

/* ── Lightbox ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 40, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-figure {
  max-width: min(90vw, 1100px);
  max-height: 86vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-lightbox.is-open .lightbox-img.is-loaded {
  opacity: 1;
  transform: scale(1);
}
.lightbox-close,
.lightbox-arrow {
  appearance: none;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255,255,255,0.18);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 1;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  z-index: 1;
}
.lightbox-arrow:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 640px) {
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lightbox-arrow { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
