/* ==========================================================================
   Moni Zuber | Design & Arquitetura Inspirados em imassolla.com
   Fundo Mantido: Galáxia 3D Interativa em Canvas + Nebulosas (Sem Satélite)
   Paleta Moni Zuber: Preto (#000000), Vermelho Brasa (#A92D2D), Ouro Velho (#CF9E3E)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --bg: #000000;
  --bg-card: rgba(13, 14, 18, 0.78);
  --bg-card-solid: #0f1015;
  --bg-elevated: rgba(20, 21, 27, 0.88);

  --brasa: #a92d2d;
  --brasa-light: #e05252;
  --brasa-soft: rgba(169, 45, 45, 0.18);
  --brasa-glow: rgba(169, 45, 45, 0.35);

  --ouro: #cf9e3e;
  --ouro-light: #e5b95c;
  --ouro-soft: rgba(207, 158, 62, 0.16);
  --ouro-glow: rgba(207, 158, 62, 0.3);

  --text: #f4f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --line: rgba(255, 255, 255, 0.09);
  --line-hover: rgba(207, 158, 62, 0.42);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

h1, h2, h3, h4, .font-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.sec {
  padding: 6.5rem 0;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   1. PLANO DE FUNDO INTERATIVO (GALÁXIA 3D EM CANVAS + NEBULOSAS)
   ========================================================================== */
#galaxy-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.95;
}

.cosmic-nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.nebula-1 {
  width: 550px;
  height: 550px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--brasa-glow) 0%, rgba(138, 36, 36, 0.15) 50%, transparent 70%);
}

.nebula-2 {
  width: 650px;
  height: 650px;
  top: 35%;
  left: -200px;
  background: radial-gradient(circle, var(--ouro-glow) 0%, rgba(168, 127, 46, 0.1) 50%, transparent 70%);
}

.nebula-3 {
  width: 600px;
  height: 600px;
  bottom: 5%;
  right: -150px;
  background: radial-gradient(circle, rgba(169, 45, 45, 0.25) 0%, rgba(207, 158, 62, 0.1) 50%, transparent 70%);
}

/* ==========================================================================
   2. HEADER SUPERIOR FIXO (ESTILO IMASSOLLA.COM)
   ========================================================================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 60;
}

.top-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  position: relative;
}

.brand-monogram .dot {
  color: var(--ouro);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1.4rem 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ouro);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.circle-btn:hover {
  border-color: var(--ouro);
  color: var(--ouro);
  background: rgba(207, 158, 62, 0.08);
}

/* ==========================================================================
   3. HERO SECTION (DUAS COLUNAS + TYPEWRITER + 4 STATS + RETRATO COM PILLS)
   ========================================================================== */
.hero-sec {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.48fr 0.52fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 16, 21, 0.75);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.loc-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ouro);
  box-shadow: 0 0 10px var(--ouro);
}

.hero-name {
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 0.96;
  color: #ffffff;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.typewriter-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  overflow: hidden;
  white-space: nowrap;
}

.typewriter-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--ouro);
  background: rgba(207, 158, 62, 0.12);
  color: var(--ouro);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.typewriter-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.02rem, 1.85vw, 1.45rem);
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.typewriter-cursor {
  display: inline-block;
  width: 2.5px;
  height: 1.35em;
  background: var(--ouro);
  vertical-align: middle;
  margin-left: 3px;
  animation: blinkCursor 0.85s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  font-size: clamp(1.06rem, 1.25vw, 1.18rem);
  color: #e4e4e7;
  max-width: 720px;
  line-height: 1.78;
  margin-bottom: 2.2rem;
}

.hero-bio p + p {
  margin-top: 1rem;
}

.hero-bio strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-bio .bio-highlight {
  color: var(--ouro);
  font-weight: 600;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--brasa);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid var(--brasa-light);
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-solid:hover {
  background: #c13636;
  box-shadow: 0 8px 25px rgba(169, 45, 45, 0.45);
  transform: translateY(-1px);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: rgba(15, 16, 21, 0.65);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-line:hover {
  border-color: var(--ouro);
  color: var(--ouro);
  background: rgba(207, 158, 62, 0.1);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-item {
  border-left: 2px solid var(--ouro);
  padding-left: 0.85rem;
}

.metric-item.brasa-bar {
  border-left-color: var(--brasa-light);
}

.metric-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1.15;
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
}

/* Card de Retrato / Foto Oficial na Direita do Hero (Compacto para destacar o texto de apresentação) */
.hero-portrait-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(207, 158, 62, 0.32);
  background: #120e0c;
  aspect-ratio: 4 / 5;
  max-width: 280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.72);
}

.hero-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  z-index: 1;
  transition: transform 0.6s ease;
}

.hero-portrait-card:hover .hero-portrait-img {
  transform: scale(1.02);
}

.portrait-backdrop-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
  z-index: 2;
}

.portrait-Pills-row {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.portrait-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portrait-pill:hover {
  border-color: var(--ouro);
  transform: translateY(-2px);
}

/* ==========================================================================
   4. SEÇÃO VISÃO 360: RODA DE 8 PILARES + MAPA DE TRAJETÓRIA ("COMO CHEGUEI AQUI")
   ========================================================================== */
.visao-wheel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

@media (max-width: 960px) {
  .visao-wheel-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.ring-wrap {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48%;
  height: 48%;
  border-radius: 50%;
  background: rgba(16, 17, 22, 0.92);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.ring-hub-icon {
  width: 44px;
  height: 44px;
  color: var(--ouro);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-hub-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ring-node {
  position: absolute;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  margin-top: -27px;
  border-radius: 50%;
  background: #111318;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 3;
}

.ring-node svg {
  width: 22px;
  height: 22px;
}

.ring-node:hover {
  border-color: var(--ouro);
  color: #ffffff;
  transform: scale(1.08);
}

.ring-node[aria-pressed="true"][data-side="tech"] {
  background: var(--brasa);
  border-color: #ff8080;
  color: #ffffff;
  transform: scale(1.18);
  box-shadow: 0 0 25px rgba(169, 45, 45, 0.65);
}

.ring-node[aria-pressed="true"][data-side="human"] {
  background: var(--ouro);
  border-color: #fff0c2;
  color: #09090b;
  transform: scale(1.18);
  box-shadow: 0 0 25px rgba(207, 158, 62, 0.65);
}

.ring-copy-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ring-side-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ouro);
}

.ring-copy-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.ring-copy-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

.ring-nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* Duas Linhas do Tempo Organizadas e com Espaçamento Amplo ("Como cheguei aqui") */
.traj-header {
  margin-bottom: 2.25rem;
}

.traj-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.dual-timeline-block {
  background: rgba(13, 14, 19, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem 2rem;
  margin-bottom: 2.25rem;
}

.dual-tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.dual-tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
}

.dual-tl-badge.ouro {
  background: rgba(207, 158, 62, 0.14);
  color: var(--ouro);
  border: 1px solid rgba(207, 158, 62, 0.38);
}

.dual-tl-badge.brasa {
  background: rgba(224, 82, 82, 0.14);
  color: var(--brasa-light);
  border: 1px solid rgba(224, 82, 82, 0.38);
}

.dual-tl-track-wrap {
  position: relative;
  padding: 0.25rem 0 1.25rem 0;
}

.dual-tl-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  position: relative;
}

@media (max-width: 1024px) {
  .dual-tl-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dual-tl-steps {
    grid-template-columns: 1fr;
  }
  .dual-timeline-block {
    padding: 1.4rem 1.25rem;
  }
}

.dual-tl-steps::before {
  display: none;
}

.tl-step-btn {
  position: relative;
  z-index: 2;
  background: rgba(20, 22, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.15rem 1.2rem;
  gap: 0.45rem;
  color: var(--text);
  transition: all 0.22s ease;
  min-height: 126px;
}

.tl-step-btn[data-tl-group="1"]:hover {
  border-color: rgba(207, 158, 62, 0.45);
  background: rgba(26, 28, 38, 0.92);
  transform: translateY(-2px);
}

.tl-step-btn[data-tl-group="1"].active {
  border-color: var(--ouro);
  background: rgba(207, 158, 62, 0.11);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(207, 158, 62, 0.25);
}

.tl-step-btn[data-tl-group="2"]:hover {
  border-color: rgba(224, 82, 82, 0.45);
  background: rgba(26, 28, 38, 0.92);
  transform: translateY(-2px);
}

.tl-step-btn[data-tl-group="2"].active {
  border-color: var(--brasa-light);
  background: rgba(224, 82, 82, 0.11);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(224, 82, 82, 0.25);
}

.tl-step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #111218;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.tl-step-btn[data-tl-group="1"].active .tl-step-num,
.tl-step-btn[data-tl-group="1"]:hover .tl-step-num {
  background: var(--ouro);
  border-color: var(--ouro);
  color: #09090b;
  box-shadow: 0 0 14px rgba(207, 158, 62, 0.45);
}

.tl-step-btn[data-tl-group="2"].active .tl-step-num,
.tl-step-btn[data-tl-group="2"]:hover .tl-step-num {
  background: var(--brasa-light);
  border-color: var(--brasa-light);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(224, 82, 82, 0.45);
}

.tl-step-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--ouro);
  line-height: 1.35;
  display: block;
}

.tl-step-btn[data-tl-group="2"] .tl-step-tag {
  color: var(--brasa-light);
}

.tl-step-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e4e4e7;
  line-height: 1.4;
  display: block;
}

.tl-step-btn.active .tl-step-name {
  color: #ffffff;
}

.traj-detail-box {
  background: rgba(18, 20, 27, 0.95);
  border: 1px solid rgba(207, 158, 62, 0.38);
  border-radius: 18px;
  padding: 1.65rem 1.85rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.traj-detail-box.brasa-border {
  border-color: rgba(224, 82, 82, 0.42);
}

/* ==========================================================================
   5. METODOLOGIA DMAIC (4 CARDS CONECTADOS) + AS FRENTES DE ATUAÇÃO
   ========================================================================== */
.dmaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
  margin-top: 2.5rem;
  margin-bottom: 4.5rem;
}

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

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

.dmaic-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dmaic-card.active-step {
  border-color: var(--ouro);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(207, 158, 62, 0.14);
}

.dmaic-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brasa);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.dmaic-card.active-step .dmaic-num {
  background: var(--ouro);
  color: #09090b;
  box-shadow: 0 0 18px rgba(207, 158, 62, 0.6);
}

.dmaic-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.dmaic-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.pill-tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.dmaic-foot {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Frentes Cards */
.frentes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

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

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

.frente-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.frente-card:hover {
  border-color: var(--line-hover);
  transform: translateY(-3px);
}

.frente-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brasa);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.frente-icon.ouro {
  background: var(--ouro);
  color: #09090b;
}

/* ==========================================================================
   6. DIAGRAMA DE ISHIKAWA VISUAL (ESPINHA DE PEIXE INTERATIVA)
   ========================================================================== */
.ishikawa-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2rem 0;
}

.ishi-pill {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 16, 21, 0.75);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ishi-pill:hover {
  border-color: var(--ouro);
  color: #ffffff;
}

.ishi-pill.active {
  background: var(--brasa);
  border-color: var(--brasa-light);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(169, 45, 45, 0.4);
}

.fishbone-box {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
}

.fishbone-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.5rem;
  align-items: center;
}

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

.fishbone-ribs-top,
.fishbone-ribs-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .fishbone-ribs-top,
  .fishbone-ribs-bottom {
    grid-template-columns: 1fr;
  }
}

.fishbone-rib {
  position: relative;
  padding-right: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.fishbone-rib h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.fishbone-rib ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fishbone-rib li {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
  position: relative;
  padding-left: 0.9rem;
}

.fishbone-rib li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--ouro);
  font-weight: bold;
}

.fishbone-spine {
  height: 2px;
  background: linear-gradient(90deg, rgba(207, 158, 62, 0.25) 0%, var(--ouro) 100%);
  margin: 1.75rem 0;
  position: relative;
}

.fishbone-spine::after {
  content: '▶';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ouro);
  font-size: 0.85rem;
}

.fishbone-head {
  border: 1.5px solid var(--ouro);
  background: rgba(207, 158, 62, 0.08);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
}

.fishbone-head-lbl {
  font-size: 0.75rem;
  color: var(--ouro);
  display: block;
  margin-bottom: 0.25rem;
}

.fishbone-head-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

/* ==========================================================================
   7. SEÇÃO AO VIVO: SIMULAÇÃO EM CANVAS DE FLUXO DE PROCESSO
   ========================================================================== */
.sim-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
}

.sim-top-banner {
  background: rgba(20, 21, 28, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.sim-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.sim-toggle-group {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 999px;
  background: #090a0d;
  border: 1px solid var(--line);
}

.sim-toggle-btn {
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-toggle-btn.active {
  background: var(--brasa);
  color: #ffffff;
}

.sim-toggle-btn.active-good {
  background: var(--ouro);
  color: #09090b;
}

.sim-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.sim-kpi-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.sim-kpi-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.sim-canvas-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 18px;
  background: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: #07080b;
  border: 1px solid var(--line);
  overflow: hidden;
}

#flow-sim-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   8. PROJETOS EXPANSÍVEIS + CONSTRUTOR INTERATIVO
   ========================================================================== */
.proj-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-bottom: 1.1rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.proj-card.open,
.proj-card:hover {
  border-color: var(--line-hover);
}

.proj-head {
  width: 100%;
  padding: 1.6rem 2rem;
  background: transparent;
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: left;
  cursor: pointer;
}

.proj-head-left {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.proj-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(207, 158, 62, 0.1);
  color: var(--ouro);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.proj-toggle-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.proj-body {
  display: none;
  padding: 0 2rem 2rem 5.3rem;
}

@media (max-width: 720px) {
  .proj-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
}

.proj-card.open .proj-body {
  display: block;
}

.pipeline-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem 0;
}

.pipe-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.pipe-pill.highlight {
  border-color: var(--ouro);
  color: var(--ouro);
  background: rgba(207, 158, 62, 0.1);
}

.builder-box {
  background: rgba(9, 10, 14, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.choice-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-pill.active {
  border-color: var(--ouro);
  background: rgba(207, 158, 62, 0.16);
  color: #ffffff;
}

/* ==========================================================================
   9. CERTIFICAÇÕES (CARDS VISUAIS COM PLACA DE CERTIFICADO)
   ========================================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.cert-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cert-card:hover {
  border-color: var(--ouro);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.cert-plate {
  height: 165px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.cert-plate-seal {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  padding: 0.5rem;
}

.cert-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   10. PERGUNTAS FREQUENTES (LAYOUT SPLIT 2 COLUNAS IGUAL IMASSOLLA.COM)
   ========================================================================== */
.faq-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .faq-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.faq-row {
  border-bottom: 1px solid var(--line);
}

.faq-trigger {
  width: 100%;
  padding: 1.45rem 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-trigger:hover {
  color: var(--ouro);
}

.faq-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq-row.open .faq-plus {
  border-color: var(--ouro);
  color: var(--ouro);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1.5rem;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-row.open .faq-answer {
  display: block;
}

/* ==========================================================================
   11. CONTATO SPLIT 2 COLUNAS + FORMULÁRIO + TOAST FLUTUANTE
   ========================================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

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

.big-mail-link {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--ouro);
  text-underline-offset: 6px;
  margin: 0.5rem 0 1.5rem 0;
}

.form-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.25rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

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

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.field-input {
  width: 100%;
  background: rgba(7, 8, 11, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--ouro);
}

/* Toast Flutuante de Convite (Canto Inferior Direito) */
.floating-invite {
  position: fixed;
  bottom: 68px;
  right: 20px;
  z-index: 45;
  width: 285px;
  background: rgba(14, 15, 20, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.cosmic-video-controls {
  position: fixed;
  bottom: 18px;
  right: 20px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(207, 158, 62, 0.35);
  color: var(--text);
  font-size: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.cosmic-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ouro);
  box-shadow: 0 0 8px var(--ouro);
}

.cosmic-status-dot.paused {
  background-color: var(--brasa);
  box-shadow: none;
}