:root {
  --bg: #030712;
  --accent: #00E5FF;
  --text: #F3F4F6;
  --muted: #9CA3AF;
  --border: rgba(255, 255, 255, 0.08);
}

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

html {
  font-size: 16px;
}

body {
  background: #000000;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  transition: padding 0.3s, background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s;
}

#nav.nav-scrolled {
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#nav.nav-scrolled .nav-inner {
  padding: 1.2rem 5%;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.logo:hover {
  opacity: 0.7;
}

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

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 300;
  letter-spacing: .04em;
  transition: color .3s;
}

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

/* ── Scroll bar ── */
#scroll-track {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 140px;
  background: rgba(255, 255, 255, .07);
  border-radius: 2px;
  z-index: 100;
}

#scroll-thumb {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent), #1a6fa8);
  border-radius: 2px;
  transition: height .12s linear;
}

/* ── Hero ── */
#hero {
  position: relative;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
}

#hero-text {
  position: absolute;
  inset: 0;
  margin: auto;
  height: fit-content;
  text-align: center;
  width: 90%;
  max-width: 860px;
  pointer-events: auto;
}

.hero-parallax {
  will-change: transform, opacity;
  animation: fadeUp .9s ease both .2s;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .8;
  margin-bottom: 1.4rem;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  /* larger, like Infracorp */
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 1.4rem;
}

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

.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(180, 210, 235, .7);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Buttons ── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--text);
  padding: .8rem 2rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 300;
  cursor: pointer;
  transition: background .3s, color .3s;
}

.btn-outline:hover {
  background: var(--text);
  color: #000;
}

.btn-filled {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #E5E7EB, #FFFFFF);
  border: none;
  color: #030712;
  padding: 1.1rem 2.2rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  z-index: 1;
}

.btn-filled::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
  z-index: -1;
}

@keyframes shimmer {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.btn-filled:hover {
  transform: scale(1.05);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.1), 0 5px 15px rgba(0, 229, 255, 0.3);
}

/* ── Elegant Animated Border Button (#btn-explore) ── */
#btn-explore:not(.btn-filled) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.6rem;
  border-radius: 100px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotating gradient border layer */
#btn-explore:not(.btn-filled)::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg,
    #00E5FF 60deg,
    #ffffff 120deg,
    #00E5FF 180deg,
    transparent 240deg,
    transparent 360deg
  );
  animation: border-spin 3s linear infinite;
  z-index: -1;
  opacity: 0.9;
}

/* Inner background fill */
#btn-explore:not(.btn-filled)::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 100px;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
  transition: background 0.3s ease;
}

#btn-explore:not(.btn-filled):hover::before {
  animation-duration: 1.2s;
  opacity: 1;
}

#btn-explore:not(.btn-filled):hover::after {
  background: rgba(0, 229, 255, 0.1);
}

#btn-explore:not(.btn-filled):hover {
  transform: scale(1.05);
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(0, 229, 255, 1),
    0 0 20px rgba(0, 229, 255, 0.7),
    0 0 40px rgba(0, 229, 255, 0.4);
  letter-spacing: 0.02em;
}

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

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

/* Outer glow ring (subtle idle pulse) */
#btn-explore:not(.btn-filled) {
  box-shadow:
    0 0 0 0 rgba(0, 229, 255, 0),
    0 0 20px rgba(0, 229, 255, 0.12);
  animation: explore-glow-pulse 3s ease-in-out infinite alternate;
}

#btn-explore.btn-hidden {
  animation: none !important;
}

@keyframes explore-glow-pulse {
  0%   { box-shadow: 0 0 12px rgba(0, 229, 255, 0.1), 0 0 30px rgba(0, 229, 255, 0.05); }
  100% { box-shadow: 0 0 22px rgba(0, 229, 255, 0.22), 0 0 60px rgba(0, 229, 255, 0.12); }
}

/* ── Hero Transitions & Service Cards ── */
.btn-hidden {
  opacity: 0 !important;
  transform: scale(0.8) !important;
  pointer-events: none;
}

.cards-visible {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

/* ── Service Cards Premium Borders ── */
.sc-card {
  position: relative;
  background: rgba(10, 16, 26, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px; /* Formato pílula premium */
  padding: 1rem 2.2rem;
  cursor: pointer;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap; /* Impede a quebra de linha de "Recuperação de Crédito" */
  min-width: max-content;
  flex: 0 1 auto;
}

.sc-card::before {
  display: none; /* Desativa a máscara de borda anterior para manter as bordas arredondadas limpas */
}

.sc-card h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.4s ease;
}

.sc-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(10, 14, 22, 0.95);
}

/* Card 1: Secretária IA (Roxo) */
.sc-card:first-child:hover::before {
  background: linear-gradient(135deg, #b066ff, #8000ff);
}
.sc-card:first-child:hover h3 {
  color: #d4aaff;
}
.sc-card:first-child:hover {
  box-shadow: 0 15px 35px rgba(176, 102, 255, 0.25), 0 0 2px rgba(176, 102, 255, 0.5);
  border-color: rgba(176, 102, 255, 0.3);
}

/* Card 2: Página Advogados (Laranja/Ouro) */
.sc-card:nth-child(2):hover::before {
  background: linear-gradient(135deg, #ffb380, #8b4513);
}
.sc-card:nth-child(2):hover h3 {
  color: #ffb380;
}
.sc-card:nth-child(2):hover {
  box-shadow: 0 15px 35px rgba(255, 179, 128, 0.25), 0 0 2px rgba(255, 179, 128, 0.5);
  border-color: rgba(255, 179, 128, 0.3);
}

/* Card 3: Recuperação de Crédito (Ciano/Teal) */
.sc-card:nth-child(3):hover::before {
  background: linear-gradient(135deg, #00e6e6, #008080);
}
.sc-card:nth-child(3):hover h3 {
  color: #00e6e6;
}
.sc-card:nth-child(3):hover {
  box-shadow: 0 15px 35px rgba(0, 230, 230, 0.25), 0 0 2px rgba(0, 230, 230, 0.5);
  border-color: rgba(0, 230, 230, 0.3);
}

/* ── Side Floating Buttons Glow Effects ── */
#btn-advogados:hover {
  background: rgba(139, 69, 19, 0.35) !important;
  border-color: #ffb380 !important;
  box-shadow: -5px 0 20px rgba(255, 179, 128, 0.3);
}

#btn-secretaria:hover {
  background: rgba(128, 0, 255, 0.35) !important;
  border-color: #b066ff !important;
  box-shadow: -5px 0 20px rgba(176, 102, 255, 0.3);
}

#btn-credito:hover {
  background: rgba(0, 179, 179, 0.35) !important;
  border-color: #00e6e6 !important;
  box-shadow: -5px 0 20px rgba(0, 230, 230, 0.3);
}

/* ── Tech Grid & Mouse Glow ── */
.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  /* Fade out grid at the top (hero transition) and aggressively before footer section using smooth percentages */
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Bright highlighting of grid lines near the mouse position */
.tech-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.14) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle 350px at var(--mouse-x, -9999px) var(--mouse-y, -9999px), black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle 350px at var(--mouse-x, -9999px) var(--mouse-y, -9999px), black 0%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.tech-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.05), transparent);
  animation: scanLine 6s infinite linear;
  z-index: 2;
}

@keyframes scanLine {
  0% { transform: translateY(-250px); }
  100% { transform: translateY(100vh); }
}

#mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.14) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1; /* stay behind cards but over background */
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

/* .sc-card duplicate removed — premium version defined above at line 347 */
.sc-card { text-align: center; }

/* ── Niche Pages: Overlay UI ── */
/* Content sections inside niche pages sit ABOVE the WebGL canvas */
.overlay-ui {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Niche page hero: transparent so planet shows through */
#hero-secretary,
#hero-advogados,
#hero-credit {
  position: relative;
  z-index: 2; /* above canvas (z-index:0) but keeps transparent bg */
  background: transparent;
}

/* Niche hero text fade-in animation */
.lawyer-hero-visible {
  animation: fadeUp 0.9s ease both;
}

@keyframes lawyer-hero-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll cue ── */
#scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.cue-circle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--text);
  animation: floatY 2.5s ease-in-out infinite;
}

/* ── Content sections ── */
#content {
  position: relative;
  z-index: 10;
}

.ic-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: transparent; /* Let #content bg show through */
}

.section-inner {
  max-width: 520px;
  background: rgba(6, 12, 18, .65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.8rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s ease, transform .9s ease;
}

.section-inner.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-inner.center {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.sec-num {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .65;
  margin-bottom: .9rem;
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.section-inner p {
  font-size: .93rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.section-inner p strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Feature list ── */
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.feat-list li {
  font-size: .84rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .55rem .9rem;
  transition: border-color .35s, background .35s, color .35s, box-shadow .35s, transform .35s cubic-bezier(.4, 0, .2, 1);
  cursor: default;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(-20px);
}

.feat-list li.feat-visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .5s ease, transform .5s cubic-bezier(.4, 0, .2, 1);
  transition-delay: var(--delay, 0s);
}

.feat-list li::before {
  content: '→';
  display: inline-block;
  font-family: monospace;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0;
  width: 0px;
  transform: translateX(-10px);
  transition: opacity .35s, transform .35s, width .35s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
  white-space: nowrap;
}

.feat-list li:hover {
  background: rgba(79, 173, 232, .05);
  border-color: rgba(79, 173, 232, .2);
  color: var(--text);
}

/* ── Active feat-list item (scroll-driven glow + shimmer) ── */
.feat-list li.feat-active {
  background: rgba(79, 173, 232, .12);
  border-color: rgba(79, 173, 232, .6);
  color: var(--text);
  box-shadow: 0 0 22px rgba(79, 173, 232, .18), inset 0 0 12px rgba(79, 173, 232, .06);
  position: relative;
  overflow: hidden;
  transform: scale(1.03) translateX(6px);
}

.feat-list li.feat-active::before {
  opacity: 1;
  width: 22px;
  transform: translateX(0);
}

/* Shimmer sweep on active */
.feat-list li.feat-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 173, 232, .18), transparent);
  animation: shimmerSweep 1.6s ease infinite;
}

@keyframes shimmerSweep {
  0% {
    left: -100%;
  }

  100% {
    left: 160%;
  }
}

/* ══════════════════════════════════════════
   SCROLLYTELLING (Section 1 & 2 & 3)
══════════════════════════════════════════ */
#s1,
#s2,
#s4 {
  height: 500vh;
  position: relative;
  padding: 0;
  display: block;
}

#s3 {
  height: 500vh;
  position: relative;
  padding: 0;
  display: block;
  z-index: 5;
}

/* The sticky container that holds content + modal */
.feat-sticky-track {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: 100%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* To ensure it stays above the background canvas */
  z-index: 10;
}



#s3 .section-inner {
  position: relative;
  z-index: 5;
}

/* ══════════════════════════════════════════
   FEATURE MODAL (Targeted inside right half)
══════════════════════════════════════════ */
#feat-modal,
#feat-modal-s2,
#feat-modal-s3,
#feat-modal-s4 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 5%;
  width: clamp(600px, 52vw, 1000px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

#feat-modal-inner,
#feat-modal-inner-s2,
#feat-modal-inner-s3,
#feat-modal-inner-s4 {
  position: relative;
  width: 100%;
  background: rgba(5, 12, 22, .88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(79, 173, 232, .2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(79, 173, 232, .08), 0 40px 80px rgba(0, 0, 0, .5);

  /* Start tucked away to the left (where the button is) and scaled down */
  transform-origin: left center;
  opacity: 0;
  transform: translateX(-100px) scale(0.7);

  /* Elastic spring curve for the slide-out effect */
  transition: opacity .45s ease, transform .55s cubic-bezier(.175, 0.885, .32, 1.15);
}

#feat-modal.modal-active,
#feat-modal-s2.modal-active,
#feat-modal-s3.modal-active,
#feat-modal-s4.modal-active {
  pointer-events: auto;
}

#feat-modal.modal-active #feat-modal-inner,
#feat-modal-s2.modal-active #feat-modal-inner-s2,
#feat-modal-s3.modal-active #feat-modal-inner-s3,
#feat-modal-s4.modal-active #feat-modal-inner-s4 {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Top accent line */
#feat-modal-inner::before,
#feat-modal-inner-s2::before,
#feat-modal-inner-s3::before,
#feat-modal-inner-s4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── Feature Panel (two column) ── */
.feat-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2.8rem 3rem;
  align-items: center;
}

.feat-panel.panel-active {
  display: grid;
  animation: panelIn .4s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tag */
.fp-tag {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 173, 232, .1);
  border: 1px solid rgba(79, 173, 232, .25);
  border-radius: 100px;
  padding: .24rem .8rem;
  margin-bottom: 1rem;
}

/* Title */
.feat-panel h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: .8rem;
}

/* Body text */
.fp-left>p {
  font-size: .86rem;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* Bullets */
.fp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.4rem;
}

.fp-bullets li {
  font-size: .8rem;
  color: rgba(180, 210, 235, .65);
}

/* Stat */
.fp-stat {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  background: rgba(79, 173, 232, .07);
  border: 1px solid rgba(79, 173, 232, .15);
  border-radius: 12px;
  padding: .7rem 1.1rem;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.3;
}

.fp-stat span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PHONE MOCKUP (Feat 0 — Chatbot)
══════════════════════════════════════════ */
#phone-mock {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 250px;
  background: #0d1820;
  border-radius: 36px;
  border: 2px solid rgba(79, 173, 232, .25);
  box-shadow:
    0 0 0 6px rgba(5, 12, 20, .8),
    0 0 0 8px rgba(79, 173, 232, .08),
    0 30px 60px rgba(0, 0, 0, .6);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 60px;
  height: 10px;
  background: #060c14;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 420px;
  background: #111c27;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .8rem;
  background: #0f1e2d;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  flex-shrink: 0;
}

.chat-avatar {
  font-size: 1.2rem;
  width: 28px;
  height: 28px;
  background: rgba(79, 173, 232, .15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-info {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.chat-name {
  font-size: .65rem;
  font-weight: 500;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.chat-status {
  font-size: .52rem;
  color: #4edb78;
}

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: .6rem .6rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

/* Individual bubble */
.chat-bubble {
  max-width: 80%;
  padding: .38rem .62rem;
  border-radius: 12px;
  font-size: .6rem;
  line-height: 1.45;
  animation: bubbleIn .3s ease both;
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bubble-client {
  align-self: flex-end;
  background: #1a6fa8;
  color: #e2f0f9;
  border-bottom-right-radius: 3px;
}

.bubble-bot {
  align-self: flex-start;
  background: #162233;
  color: #c8dce9;
  border-bottom-left-radius: 3px;
  border: 1px solid rgba(79, 173, 232, .12);
}

/* Typing dots */
.typing-indicator {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: .45rem .62rem;
  background: #162233;
  border: 1px solid rgba(79, 173, 232, .12);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
}

.typing-indicator span {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingBounce 1.2s ease infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: .18s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: .36s;
}

@keyframes typingBounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: .5;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ── Lawyer page chat bubbles ── */
.lchat-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 85%;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(8px);
}
.lchat-client {
  align-self: flex-end;
  background: #d9fdd3;
  color: #111b21;
  border-bottom-right-radius: 3px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}
.lchat-bot {
  align-self: flex-start;
  background: #f4efe6;
  color: #111b21;
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}
.lchat-bubble.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Lawyer typing dots */
.lchat-typing {
  display: flex !important;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  height: 20px;
}
.lchat-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: typingBounce 1.2s ease infinite;
}
.lchat-client.lchat-typing span { background: #111b21; }
.lchat-bot.lchat-typing span { background: #111b21; }
.lchat-typing span:nth-child(2) { animation-delay: 0.2s; }
.lchat-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Lawyer hero fade-in */
@keyframes lawyerHeroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lawyer-hero-visible {
  animation: lawyerHeroFadeUp 0.9s ease both;
}

@keyframes typingBounce {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* Proactive notification mockup specific */
.phone-container {
  transition: transform 0.3s ease;
}
.phone-container:hover {
  transform: scale(1.02);
}

#lawyer-phone-notif #notif-bubble {
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

#phone-lockscreen {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Input bar */

.chat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .8rem;
  background: #0f1e2d;
  border-top: 1px solid rgba(255, 255, 255, .05);
  flex-shrink: 0;
}

.chat-bar-input {
  font-size: .58rem;
  color: rgba(180, 210, 235, .35);
}

.chat-bar-send {
  font-size: .7rem;
  color: var(--accent);
}

/* ══════════════════════════════════════════
   EMAIL INBOX (Feat 1)
══════════════════════════════════════════ */
.email-inbox {
  background: rgba(10, 20, 32, .7);
  border: 1px solid rgba(79, 173, 232, .15);
  border-radius: 16px;
  overflow: hidden;
}

.inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 1.1rem;
  background: rgba(79, 173, 232, .07);
  border-bottom: 1px solid rgba(79, 173, 232, .1);
  font-size: .75rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.inbox-badge {
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 100px;
  min-width: 18px;
  text-align: center;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  height: 240px;
  overflow-y: auto;
  scrollbar-width: none;
}

.inbox-list::-webkit-scrollbar {
  display: none;
}

.inbox-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  animation: bubbleIn .35s ease both;
  cursor: default;
  transition: background .2s;
}

.inbox-item:hover {
  background: rgba(79, 173, 232, .05);
}

.inbox-label {
  font-size: .58rem;
  font-weight: 600;
  padding: .12rem .42rem;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: .1rem;
}

.label-urgent {
  background: rgba(255, 80, 80, .15);
  color: #ff8888;
}

.label-auto {
  background: rgba(79, 173, 232, .15);
  color: var(--accent);
}

.label-support {
  background: rgba(100, 220, 150, .12);
  color: #6ee0a0;
}

.inbox-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.inbox-from {
  font-size: .64rem;
  color: var(--text);
  font-weight: 500;
}

.inbox-subj {
  font-size: .6rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   RECOVERY DASHBOARD (Feat 2)
══════════════════════════════════════════ */
.recovery-dash {
  background: rgba(10, 20, 32, .7);
  border: 1px solid rgba(79, 173, 232, .15);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
}

.rec-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: .05em;
}

.rec-bars {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1rem;
}

.rec-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.rec-label {
  font-size: .62rem;
  color: var(--muted);
  width: 60px;
  flex-shrink: 0;
}

.rec-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  overflow: hidden;
}

.rec-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a6fa8, var(--accent));
  border-radius: 10px;
  width: 0%;
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

.rec-pct {
  font-size: .62rem;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  width: 28px;
  flex-shrink: 0;
  text-align: right;
}

.rec-total {
  font-size: .72rem;
  color: var(--muted);
  padding-top: .8rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.rec-total strong {
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
}

/* ══════════════════════════════════════════
   TICKET QUEUE (Feat 3)
══════════════════════════════════════════ */
.ticket-queue {
  background: rgba(10, 20, 32, .7);
  border: 1px solid rgba(79, 173, 232, .15);
  border-radius: 16px;
  overflow: hidden;
}

.tq-header {
  padding: .8rem 1.1rem;
  background: rgba(79, 173, 232, .07);
  border-bottom: 1px solid rgba(79, 173, 232, .1);
  font-size: .75rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.tq-list {
  display: flex;
  flex-direction: column;
  height: 200px;
  overflow: hidden;
}

.tq-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  font-size: .65rem;
  color: var(--muted);
  animation: bubbleIn .3s ease both;
}

.tq-status {
  font-size: .58rem;
  padding: .1rem .4rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.status-ai {
  background: rgba(79, 173, 232, .15);
  color: var(--accent);
}

.status-solved {
  background: rgba(100, 220, 150, .12);
  color: #6ee0a0;
}

.status-wait {
  background: rgba(255, 200, 80, .1);
  color: #f5c842;
}

.tq-footer {
  padding: .65rem 1rem;
  font-size: .68rem;
  color: var(--muted);
  background: rgba(79, 173, 232, .04);
  border-top: 1px solid rgba(79, 173, 232, .08);
}

.tq-footer strong {
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
}


/* ── CTA form ── */
#cta-form,
#cta-form-advogados,
#cta-form-secretaria,
#cta-form-credito {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: 1.5rem;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

#cta-form input,
#cta-form textarea,
#cta-form-advogados input,
#cta-form-advogados textarea,
#cta-form-secretaria input,
#cta-form-secretaria textarea,
#cta-form-credito input,
#cta-form-credito textarea {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: .87rem;
  font-weight: 300;
  padding: .78rem 1rem;
  outline: none;
  resize: none;
  transition: border-color .3s;
  width: 100%;
}

#cta-form input:focus,
#cta-form textarea:focus,
#cta-form-advogados input:focus,
#cta-form-advogados textarea:focus,
#cta-form-secretaria input:focus,
#cta-form-secretaria textarea:focus,
#cta-form-credito input:focus,
#cta-form-credito textarea:focus {
  border-color: var(--accent);
}

#cta-form input::placeholder,
#cta-form textarea::placeholder,
#cta-form-advogados input::placeholder,
#cta-form-advogados textarea::placeholder,
#cta-form-secretaria input::placeholder,
#cta-form-secretaria textarea::placeholder,
#cta-form-credito input::placeholder,
#cta-form-credito textarea::placeholder {
  color: var(--muted);
}


/* ── Hide scrollbars in all phone mockup chat containers ── */
#credit-chat-messages,
#credit-notif-chat-messages,
#sec-notif-chat-messages,
#lawyer-phone-split .lchat-bubble,
[id$="-chat-messages"] {
  scrollbar-width: none;
}
#credit-chat-messages::-webkit-scrollbar,
#credit-notif-chat-messages::-webkit-scrollbar,
#sec-notif-chat-messages::-webkit-scrollbar,
[id$="-chat-messages"]::-webkit-scrollbar {
  display: none;
}

/* Overarching rule: any scrollable div inside a phone-container */
.phone-container * {
  scrollbar-width: none;
}
.phone-container *::-webkit-scrollbar {
  display: none;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 5%;
  border-top: 1px solid var(--border);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ══════════════════════════════════════════════════
   MOBILE BREAKPOINT (max-width: 768px)
   - Scrollytelling → swipeable horizontal carousel
   - Niche pages → stacked text + phone mockup
   - Disable mouse glow + earth WebGL
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav ── */
  #nav {
    padding: 1rem 1.2rem;
  }
  #nav .nav-inner,
  #nav > div {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nav-link {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  /* ── Hero ── */
  #hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.2rem) !important;
  }
  .hero-sub {
    font-size: 1rem !important;
    padding: 0 1rem;
  }
  /* Hide WebGL earth on mobile, rely on video bg */
  #earth-canvas { display: none !important; }
  #planet-bottom-fade { display: none !important; }

  /* Niche pages: static earth background fallback (WebGL disabled) */
  #hero-advogados,
  #hero-secretary,
  #hero-credit {
    background-image: linear-gradient(to bottom, rgba(3,7,18,0.4), rgba(3,7,18,0.85)),
      url('Public/earth_night.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  /* ── Disable desktop-only effects ── */
  #mouse-glow { display: none !important; }
  .tech-grid::before { display: none !important; }

  /* ── Scroll progress track → bottom horizontal ── */
  #scroll-track {
    right: 1rem;
    left: 1rem;
    top: auto;
    bottom: 1rem;
    transform: none;
    width: auto;
    height: 2px;
  }

  /* ── Service cards (hero reveal) ── */
  .sc-card {
    min-width: 0 !important;
    white-space: normal !important;
    padding: 1rem 1.2rem !important;
  }
  #service-cards {
    flex-direction: column !important;
    gap: 0.8rem !important;
    width: 100% !important;
    padding: 0 1rem !important;
  }

  /* ── Section inner (text col) ── */
  .section-inner {
    padding: 1.5rem 1.2rem !important;
    max-width: 100% !important;
  }
  .section-inner h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }
  .frow {
    grid-template-columns: 1fr;
  }

  /* ═══ SCROLLYTELLING → PILLS + MODAL VIEW ═══ */
  /* Each #sN collapses to natural height (no more 500vh virtual scroll) */
  .ic-section {
    height: auto !important;
    min-height: 0 !important;
  }
  .feat-sticky-track {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
  }

  /* Text column flows first */
  .ic-section .section-inner {
    order: 1;
  }

  /* Pills list: visible, tappable, tight grid filling space */
  .feat-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    list-style: none;
    padding: 0 !important;
    margin: 0.75rem 0 0 !important;
    order: 2;
    width: 100%;
  }
  .feat-list li {
    padding: 0.6rem 0.5rem !important;
    font-size: 0.72rem !important;
    line-height: 1.15;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.06);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.12), inset 0 0 6px rgba(0, 229, 255, 0.05);
    animation: pillPulse 2.8s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
  }
  .feat-list li:nth-child(2) { animation-delay: 0.4s; }
  .feat-list li:nth-child(3) { animation-delay: 0.8s; }
  .feat-list li:nth-child(4) { animation-delay: 1.2s; }
  @keyframes pillPulse {
    0%, 100% {
      box-shadow: 0 0 8px rgba(0, 229, 255, 0.12), inset 0 0 6px rgba(0, 229, 255, 0.05);
      border-color: rgba(0, 229, 255, 0.35);
    }
    50% {
      box-shadow: 0 0 18px rgba(0, 229, 255, 0.35), inset 0 0 10px rgba(0, 229, 255, 0.12);
      border-color: rgba(0, 229, 255, 0.7);
    }
  }
  .feat-list li:active {
    background: rgba(0, 229, 255, 0.18);
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.5);
    animation: none;
  }

  /* Modal: fullscreen popup overlay */
  #feat-modal,
  #feat-modal-s2,
  #feat-modal-s3,
  #feat-modal-s4 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    z-index: 2147483647;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(3,7,18,0.98);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
    display: none;
  }
  #feat-modal.modal-open,
  #feat-modal-s2.modal-open,
  #feat-modal-s3.modal-open,
  #feat-modal-s4.modal-open {
    display: block;
    padding-top: 3.5rem !important;
    padding-bottom: 6rem !important;
  }

  /* Hide header when any feat popup is open */
  body.feat-popup-open #nav {
    display: none !important;
  }

  /* Hide sections that bleed over the modal due to stacking contexts */
  body.feat-popup-open #s5,
  body.feat-popup-open .logo-carousel-section,
  body.feat-popup-open .platform-carousel-section,
  body.feat-popup-open footer {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Inner: no transform, block, reset desktop overflow */
  #feat-modal-inner,
  #feat-modal-inner-s2,
  #feat-modal-inner-s3,
  #feat-modal-inner-s4 {
    transform: none !important;
    opacity: 1 !important;
    width: 100%;
    display: block;
    overflow: visible !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Each panel: full width, only .panel-active is visible */
  .feat-panel {
    min-width: 0 !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
    padding: 1rem 1.2rem 2rem !important;
    display: none;
  }
  .feat-panel.panel-active {
    display: grid;
    animation: none !important;
  }
  .feat-panel h3 {
    font-size: clamp(1.05rem, 5vw, 1.35rem) !important;
  }
  .fp-left > p,
  .fp-bullets li {
    font-size: 0.85rem !important;
  }

  /* Back button: fixed top bar always visible inside popup */
  .feat-back-btn {
    display: flex !important;
    align-items: center;
    gap: 0.3rem;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10001 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent) !important;
    background: rgba(3,7,18,0.98) !important;
    backdrop-filter: blur(8px);
    border: none !important;
    border-bottom: 1px solid rgba(0,229,255,0.3) !important;
    cursor: pointer;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    text-align: left;
    font-family: inherit;
    box-sizing: border-box;
  }
  .feat-back-btn:active {
    background: rgba(0,229,255,0.15) !important;
  }

  /* Sec-num smaller */
  .sec-num {
    font-size: 0.7rem !important;
  }

  /* ═══ NICHE PAGES: stack text + phone ═══ */
  /* Override inline grid 1fr auto 1fr */
  #lawyer-page [style*="grid-template-columns: 1fr auto 1fr"],
  #secretary-page [style*="grid-template-columns: 1fr auto 1fr"],
  #credit-page [style*="grid-template-columns: 1fr auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }
  /* Text columns: remove side alignment, stack centered */
  #lawyer-page [style*="text-align: right"],
  #secretary-page [style*="text-align: right"],
  #credit-page [style*="text-align: right"] {
    text-align: left !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  /* Phone mockups: center */
  #lawyer-phone,
  #lawyer-phone-notif,
  #secretary-phone,
  #secretary-phone-notif,
  #credit-phone,
  #credit-phone-notif {
    margin: 1rem auto !important;
    width: 280px !important;
  }
  /* Back button: smaller, top-left corner */
  #btn-voltar-advogados,
  #btn-voltar-secretaria,
  #btn-voltar-cobranca {
    top: 1rem !important;
    left: 0.5rem !important;
    transform: none !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.75rem !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
  }

  /* Hero niche: smaller h1 */
  #hero-advogados h1,
  #hero-secretary h1,
  #hero-credit h1 {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }
  #lawyer-content h2,
  #secretary-content h2,
  #credit-content h2 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
  }
  /* Niche content padding */
  #lawyer-content,
  #secretary-content,
  #credit-content {
    padding-top: 4rem !important;
  }
  /* Niche subtitle boxes */
  #lawyer-content [style*="max-width: 900px"],
  #secretary-content [style*="max-width: 900px"],
  #credit-content [style*="max-width: 900px"],
  #lawyer-content [style*="max-width: 800px"],
  #secretary-content [style*="max-width: 800px"],
  #credit-content [style*="max-width: 800px"] {
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
  }

  /* ═══ GRIDS: collapse to single column ═══ */
  .vision-grid,
  .pipeline-board,
  .roi-breakdown-grid,
  .calculator-block {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
  .vision-grid {
    grid-template-rows: auto !important;
  }

  /* Calculator sliders full width */
  .calculator-block input[type="range"] {
    width: 100% !important;
  }

  /* ROI result boxes stack */
  .roi-breakdown-grid > div {
    min-width: 0 !important;
  }

  /* ── Platform carousel (marquee) — keep, but smaller ── */
  .plat-track {
    height: 50px !important;
  }
  .plat-track img {
    height: 28px !important;
  }

  /* ── Logo carousel (customers) ── */
  .logo-carousel-track {
    gap: 1rem !important;
  }
  .logo-carousel-track img {
    height: 32px !important;
  }

  /* ── CTA section ── */
  #s5 {
    padding: 2rem 1rem !important;
  }
  #s5 h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }
  #cta-video-container {
    height: 50vh !important;
  }

  /* ── Footer ── */
  footer {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
    padding: 2rem 1.2rem !important;
  }
  footer .logo {
    font-size: 0.9rem !important;
    opacity: 0.5 !important;
    letter-spacing: 0.22em !important;
  }
  footer > span:last-of-type {
    font-size: 0.68rem !important;
  }
  footer > div {
    margin-top: 0.8rem !important;
    padding-top: 0.8rem !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  footer > div p {
    font-size: 0.68rem !important;
    line-height: 1.6 !important;
  }

  /* ── Phone container base ── */
  .phone-container {
    width: 280px !important;
  }

  /* ── Flow diagram (S2 panel 0) ── */
  .flow-diagram {
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    padding: 1rem !important;
  }
  .flow-diagram .flow-node,
  .flow-diagram > div {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.6rem !important;
  }

  /* ── Email/inbox/recovery/ticket mockups ── */
  .email-mockup,
  .inbox-mockup,
  .recovery-mockup,
  .ticket-mockup {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* ── CTA form ── */
  #s5 form,
  #cta-form {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  #s5 form input,
  #s5 form button,
  #cta-form input,
  #cta-form button {
    width: 100% !important;
  }

  /* Mockup containers height & layout adjustments on mobile to show all contents */
  #s4-mock-voice,
  #s4-mock-vision {
    height: auto !important;
    min-height: 250px !important;
    padding-bottom: 1.5rem !important;
    overflow: visible !important;
  }

  #s4-mock-docs {
    height: auto !important;
    flex-direction: column !important;
    min-height: 250px !important;
    padding-bottom: 1.5rem !important;
    gap: 1.5rem !important;
    overflow: visible !important;
  }

  .docs-document-view {
    min-height: 140px !important;
  }
}

/* (Feature panels layout shared above) */


/* ── Flow Diagram (S2 panel 0) ── */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 20, 60, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(80, 160, 255, 0.15);
}

.flow-node {
  background: rgba(20, 50, 100, 0.8);
  border: 1px solid rgba(80, 160, 255, 0.3);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: #a0aec0;
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.flow-node.fn-active {
  background: rgba(30, 100, 220, 0.6);
  border-color: #4fade8;
  color: #fff;
  box-shadow: 0 0 20px rgba(79, 173, 232, 0.5);
}

.flow-arrow {
  color: rgba(80, 160, 255, 0.3);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.flow-arrow.fa-active {
  color: #4fade8;
}

/* ── Webhook Log (S2 panel 1) ── */
.webhook-log {
  background: rgba(0, 10, 30, 0.7);
  border: 1px solid rgba(80, 160, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

.wh-header {
  padding: 0.6rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4fade8;
  background: rgba(10, 30, 70, 0.6);
  border-bottom: 1px solid rgba(80, 160, 255, 0.1);
  letter-spacing: 0.08em;
}

.wh-list {
  padding: 0.4rem;
}

.wh-row {
  display: grid;
  grid-template-columns: 52px 1fr 42px 52px;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.68rem;
  color: #8ab8d8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: fadeUp 0.3s ease both;
}

.wh-method {
  color: #4fade8;
  font-weight: 700;
}

.wh-path {
  color: #c0d8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-status {
  color: #3ef0a0;
  font-weight: 600;
  text-align: center;
}

.wh-ms {
  color: #7090a0;
  text-align: right;
}

/* ── Pipeline Board (S2 panel 2) ── */
.pipeline-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.pb-col {
  background: rgba(0, 15, 40, 0.6);
  border: 1px solid rgba(80, 160, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  min-height: 120px;
}

.pb-col-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4fade8;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: center;
}

.pb-card {
  background: rgba(20, 50, 100, 0.6);
  border: 1px solid rgba(80, 160, 255, 0.15);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  font-size: 0.65rem;
  color: #c0d8f0;
  margin-bottom: 0.35rem;
  animation: fadeUp 0.35s ease both;
  line-height: 1.4;
}

/* ── API Monitor (S2 panel 3) ── */
.api-monitor {
  background: rgba(0, 10, 30, 0.7);
  border: 1px solid rgba(80, 160, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
}

.am-header {
  padding: 0.6rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4fade8;
  background: rgba(10, 30, 70, 0.6);
  border-bottom: 1px solid rgba(80, 160, 255, 0.1);
  letter-spacing: 0.08em;
}

.am-bars {
  padding: 0.6rem 0.8rem;
}

.am-row {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.am-label {
  font-size: 0.7rem;
  color: #8ab8d8;
  font-family: monospace;
}

.am-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.am-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a7aff, #4fade8);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.am-ms {
  font-size: 0.68rem;
  color: #3ef0a0;
  text-align: right;
  font-family: monospace;
}

.am-footer {
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  color: #7090a0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: right;
}

.am-footer strong {
  color: #3ef0a0;
}


/* ══════════════════════════════════════════
   S3 MOCK ANIMATIONS (Popup Right Side)
══════════════════════════════════════════ */
.s3-mock-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

/* --- Panel 0: Agro B2B --- */
.agro-card {
  width: 250px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.agro-header {
  height: 12px;
  width: 40px;
  background: #e2e8f0;
  border-radius: 4px;
}

.agro-lines .aline {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  margin-bottom: 4px;
}

.agro-lines .w-80 {
  width: 80%;
}

.agro-lines .w-60 {
  width: 60%;
}

.agro-graph {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.agro-graph .bar {
  flex: 1;
  background: #10b981;
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
}

.panel-active .agro-graph .bar {
  animation: growBar 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.panel-active .agro-graph .bar:nth-child(1) {
  animation-delay: 0.1s;
}

.panel-active .agro-graph .bar:nth-child(2) {
  animation-delay: 0.2s;
}

.panel-active .agro-graph .bar:nth-child(3) {
  animation-delay: 0.3s;
}

.panel-active .agro-graph .bar:nth-child(4) {
  animation-delay: 0.4s;
}

.panel-active .agro-graph .bar:nth-child(5) {
  animation-delay: 0.5s;
}

.agro-graph .h-30 {
  height: 30%;
}

.agro-graph .h-70 {
  height: 70%;
}

.agro-graph .h-50 {
  height: 50%;
}

.agro-graph .h-90 {
  height: 90%;
}

.agro-graph .h-40 {
  height: 40%;
}

@keyframes growBar {
  to {
    transform: scaleY(1);
  }
}

/* --- Panel 1: Atas IA --- */
.ata-doc {
  width: 230px;
  height: 265px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ata-title {
  height: 8px;
  width: 60%;
  background: #cbd5e1;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.ata-text {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-bottom: 6px;
  width: 0%;
}

.ata-check {
  height: 12px;
  width: 12px;
  border-radius: 3px;
  border: 2px solid #3b82f6;
  margin-top: 8px;
  opacity: 0;
}

.ata-bot {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #3b82f6;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
}

.panel-active .ata-text.t-1 {
  animation: typeText 0.5s ease forwards 0.3s;
  width: 100%;
}

.panel-active .ata-text.t-2 {
  animation: typeText 0.5s ease forwards 0.6s;
  width: 85%;
}

.panel-active .ata-text.t-3 {
  animation: typeText 0.5s ease forwards 0.9s;
  width: 40%;
}

.panel-active .ata-check.c-1 {
  animation: popCheck 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1.3s;
}

.panel-active .ata-check.c-2 {
  animation: popCheck 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1.5s;
}

.panel-active .ata-bot {
  animation: fadeUpIn 0.5s ease forwards 0.1s;
}

@keyframes typeText {
  from {
    width: 0%;
  }
}

@keyframes popCheck {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
    background: transparent;
  }

  100% {
    opacity: 1;
    transform: scale(1);
    background: #3b82f6;
  }
}

/* --- Panel 2: Supabase --- */
.supa-db {
  display: flex;
  flex-direction: column;
  gap: 8px;
  perspective: 500px;
}

.db-layer {
  width: 180px;
  height: 52px;
  background: #3ecf8e;
  /* Supabase green */
  border-radius: 50% 50% 10% 10% / 30% 30% 10% 10%;
  border: 2px solid #24b47e;
  position: relative;
  box-shadow: 0 4px 0 #24b47e;
  transform: rotateX(20deg) translateY(0);
  opacity: 0.2;
}

.panel-active .db-layer.l-1 {
  animation: dbPulse 2s infinite ease-in-out 0s;
  opacity: 1;
}

.panel-active .db-layer.l-2 {
  animation: dbPulse 2s infinite ease-in-out 0.2s;
  opacity: 1;
}

.panel-active .db-layer.l-3 {
  animation: dbPulse 2s infinite ease-in-out 0.4s;
  opacity: 1;
}

.supa-conn {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  color: #24b47e;
  font-family: monospace;
  opacity: 0;
}

.panel-active .supa-conn {
  animation: fadeUpIn 0.5s ease forwards 0.8s, blinkText 1s infinite alternate 1.3s;
}

@keyframes dbPulse {

  0%,
  100% {
    transform: rotateX(20deg) translateY(0);
    filter: brightness(1);
  }

  50% {
    transform: rotateX(20deg) translateY(-4px);
    filter: brightness(1.2);
  }
}

@keyframes blinkText {
  to {
    opacity: 0.5;
  }
}

/* --- Panel 3: DevOps --- */
.s3-mock-container #s3-mock-dev {
  gap: 15px;
}

.dev-server {
  width: 200px;
  height: 42px;
  background: #1e293b;
  border-radius: 6px;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  opacity: 0;
  transform: translateX(-20px);
}

.dev-server::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.panel-active .dev-server.s-1 {
  animation: slideRightIn 0.5s ease forwards 0.1s;
}

.panel-active .dev-server.s-2 {
  animation: slideRightIn 0.5s ease forwards 0.3s;
}

.panel-active .dev-server.s-3 {
  animation: slideRightIn 0.5s ease forwards 0.5s;
}

.panel-active .dev-server.s-1::before {
  animation: blinkGreen 1s infinite step-end 0.6s;
  background: #10b981;
}

.panel-active .dev-server.s-2::before {
  animation: blinkGreen 1s infinite step-end 0.8s;
  background: #10b981;
}

.panel-active .dev-server.s-3::before {
  animation: blinkGreen 1s infinite step-end 1.0s;
  background: #10b981;
}

.dev-load {
  width: 140px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}

.dev-bar {
  height: 100%;
  width: 0%;
  background: #3b82f6;
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-active .dev-bar {
  width: 100%;
  transition-delay: 0.8s;
}

@keyframes slideRightIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes blinkGreen {
  50% {
    opacity: 0.4;
  }
}

@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ------------------------------------------
   SECRETARY PAGE SPECIFIC STYLES
------------------------------------------ */
#secretary-phone-split .lchat-bubble, #secretary-phone-notif .lchat-bubble {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 85%;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

#secretary-phone-split .lchat-bubble.visible, #secretary-phone-notif .lchat-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

#secretary-phone-split .lchat-bot, #secretary-phone-notif .lchat-bot {
    align-self: flex-start;
    background: #f4efe6;
    color: #111b21;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

#secretary-phone-split .lchat-client, #secretary-phone-notif .lchat-client {
    align-self: flex-end;
    background: #d9fdd3;
    color: #111b21;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

/* Typing animation specific to sec chat */
#secretary-phone-split .lchat-typing, #secretary-phone-notif .lchat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #f4efe6;
    width: fit-content;
}

#secretary-phone-split .lchat-typing span, #secretary-phone-notif .lchat-typing span {
    width: 6px;
    height: 6px;
    background: #111b21;
    border-radius: 50%;
    animation: bounceSec 1.4s infinite ease-in-out both;
}

#secretary-phone-split .lchat-typing span:nth-child(1), #secretary-phone-notif .lchat-typing span:nth-child(1) { animation-delay: -0.32s; }
#secretary-phone-split .lchat-typing span:nth-child(2), #secretary-phone-notif .lchat-typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceSec {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Action button inside chat */
.btn-wa {
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    background: #1c2333 !important;
    border: 1px solid rgba(128, 0, 255, 0.5) !important;
    color: #b066ff !important;
    transition: all 0.2s ease !important;
}

.btn-wa:hover {
    background: rgba(128, 0, 255, 0.2) !important;
}

/* Fixes for Mockup Alignment */
#secretary-phone-notif {
  align-items: center; /* keep to center */
}

#sec-phone-lockscreen {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0e111a;
  display: flex;
  flex-direction: column;
  padding: 30px 15px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

#sec-notif-bubble {
  background: rgba(40, 48, 70, 0.95);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notif-icon-sec {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #a03cff, #6400ff);
  border-radius: 8px;
  display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}

.notif-icon-sec svg {
  width: 18px; height: 18px; color: #fff;
}

.notif-content-sec { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.notif-title-sec { font-size: 0.75rem; color: #fff; font-weight: 600; display: flex; justify-content: space-between; }
.notif-time-sec { font-size: 0.6rem; color: #8ab8d8; font-weight: 400; }
.notif-text-sec { font-size: 0.7rem; color: rgba(255,255,255,0.8); line-height: 1.3; }

#sec-phone-chat-screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #050c14;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 3;
}

/* =========================================================================
   ROI CALCULATOR STYLES
   ========================================================================= */

.roi-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.roi-header-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.roi-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.roi-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roi-desc {
  color: #888;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Calculator Block */
.calculator-block {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* LEFT SIDE: CONTROL PANEL */
.roi-control-panel {
  background: rgba(10, 14, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}

.roi-panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.lawyer-theme .roi-panel-title { color: #ffb380; }
.secretary-theme .roi-panel-title { color: #b066ff; }

.roi-slider-box {
  margin-bottom: 2.5rem;
}

.roi-slider-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.roi-slider-label {
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 500;
}

.roi-slider-val-bubble {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.lawyer-theme .roi-slider-val-bubble { color: #ffb380; text-shadow: 0 0 15px rgba(255, 179, 128, 0.4); }
.secretary-theme .roi-slider-val-bubble { color: #b066ff; text-shadow: 0 0 15px rgba(176, 102, 255, 0.4); }

.roi-slider-desc {
  font-size: 0.85rem;
  color: #bbb;
  margin-top: 10px;
}

/* Custom Slider */
.roi-slider-box input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  outline: none;
}

.roi-slider-box input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}
.lawyer-theme .roi-slider-box input[type=range]::-webkit-slider-thumb { border: 3px solid #ffb380; box-shadow: 0 0 12px rgba(255, 179, 128, 0.4); }
.secretary-theme .roi-slider-box input[type=range]::-webkit-slider-thumb { border: 3px solid #b066ff; box-shadow: 0 0 12px rgba(176, 102, 255, 0.4); }

/* RIGHT SIDE: DASHBOARD */
.roi-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.roi-big-card {
  background: rgba(10, 14, 22, 0.75);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lawyer-theme .roi-big-card { border-top: 1px solid rgba(255, 179, 128, 0.3); border-left: 1px solid rgba(255, 179, 128, 0.1); }
.secretary-theme .roi-big-card { border-top: 1px solid rgba(176, 102, 255, 0.3); border-left: 1px solid rgba(176, 102, 255, 0.1); }

.roi-big-label {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.roi-ticker-wrapper {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.roi-ticker-unit {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.8;
}
.lawyer-theme .roi-ticker-unit { color: #ffb380; }
.secretary-theme .roi-ticker-unit { color: #b066ff; }

.roi-card-desc {
  color: #aaa;
  font-size: 0.95rem;
}

.roi-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.roi-mini-card {
  background: rgba(10, 14, 22, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.3s;
}
.roi-mini-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.15); }

.roi-mini-label { font-size: 0.7rem; color: #777; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.5rem; display: block; }
.roi-mini-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 600; color: #fff; }

.roi-insight-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.roi-insight-icon { font-size: 2rem; }
.roi-insight-text h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; margin-bottom: 0.2rem; color: #fff; opacity: 0.9; }
.secretary-theme .roi-insight-text h4 { color: #b066ff; }
.roi-insight-text p { color: #888; font-size: 0.9rem; line-height: 1.4; }

@media (max-width: 1024px) {
}

/* ------------------------------------------
   CREDIT PAGE SPECIFIC STYLES
------------------------------------------ */
#credit-phone-split .lchat-bubble, #credit-phone-notif .lchat-bubble {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 85%;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

#credit-phone-split .lchat-bubble.visible, #credit-phone-notif .lchat-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

#credit-phone-split .lchat-bot, #credit-phone-notif .lchat-bot {
    align-self: flex-start;
    background: #f4efe6;
    color: #111b21;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

#credit-phone-split .lchat-client, #credit-phone-notif .lchat-client {
    align-self: flex-end;
    background: #d9fdd3;
    color: #111b21;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

/* Credit page typing dots */
#credit-phone-split .lchat-typing, #credit-phone-notif .lchat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #f4efe6;
    width: fit-content;
}

#credit-phone-split .lchat-typing span, #credit-phone-notif .lchat-typing span {
    width: 6px;
    height: 6px;
    background: #111b21;
    border-radius: 50%;
    animation: typingBounce 1.2s ease infinite;
}

/* ── WhatsApp Background for Mockups on Planet Pages ── */
#lawyer-chat-messages,
#notif-chat-messages,
#sec-chat-messages,
#sec-notif-chat-messages,
#credit-chat-messages,
#credit-notif-chat-messages {
  background-image: url('Public/fundowhatsapp.jpg') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

}

.lawyer-theme .roi-slider-val-bubble { color: #ffb380; text-shadow: 0 0 15px rgba(255, 179, 128, 0.4); }
.secretary-theme .roi-slider-val-bubble { color: #b066ff; text-shadow: 0 0 15px rgba(176, 102, 255, 0.4); }

.roi-slider-desc {
  font-size: 0.85rem;
  color: #bbb;
  margin-top: 10px;
}

/* Custom Slider */
.roi-slider-box input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  outline: none;
}

.roi-slider-box input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}
.lawyer-theme .roi-slider-box input[type=range]::-webkit-slider-thumb { border: 3px solid #ffb380; box-shadow: 0 0 12px rgba(255, 179, 128, 0.4); }
.secretary-theme .roi-slider-box input[type=range]::-webkit-slider-thumb { border: 3px solid #b066ff; box-shadow: 0 0 12px rgba(176, 102, 255, 0.4); }

/* RIGHT SIDE: DASHBOARD */
.roi-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.roi-big-card {
  background: rgba(10, 14, 22, 0.75);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lawyer-theme .roi-big-card { border-top: 1px solid rgba(255, 179, 128, 0.3); border-left: 1px solid rgba(255, 179, 128, 0.1); }
.secretary-theme .roi-big-card { border-top: 1px solid rgba(176, 102, 255, 0.3); border-left: 1px solid rgba(176, 102, 255, 0.1); }

.roi-big-label {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.roi-ticker-wrapper {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.roi-ticker-unit {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.8;
}
.lawyer-theme .roi-ticker-unit { color: #ffb380; }
.secretary-theme .roi-ticker-unit { color: #b066ff; }

.roi-card-desc {
  color: #aaa;
  font-size: 0.95rem;
}

.roi-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.roi-mini-card {
  background: rgba(10, 14, 22, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.3s;
}
.roi-mini-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.15); }

.roi-mini-label { font-size: 0.7rem; color: #777; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.5rem; display: block; }
.roi-mini-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 600; color: #fff; }

.roi-insight-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.roi-insight-icon { font-size: 2rem; }
.roi-insight-text h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; margin-bottom: 0.2rem; color: #fff; opacity: 0.9; }
.secretary-theme .roi-insight-text h4 { color: #b066ff; }
.roi-insight-text p { color: #888; font-size: 0.9rem; line-height: 1.4; }

@media (max-width: 1024px) {
}

/* ------------------------------------------
   CREDIT PAGE SPECIFIC STYLES
------------------------------------------ */
#credit-phone-split .lchat-bubble, #credit-phone-notif .lchat-bubble {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 85%;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

#credit-phone-split .lchat-bubble.visible, #credit-phone-notif .lchat-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

#credit-phone-split .lchat-bot, #credit-phone-notif .lchat-bot {
    align-self: flex-start;
    background: #f4efe6;
    color: #111b21;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

#credit-phone-split .lchat-client, #credit-phone-notif .lchat-client {
    align-self: flex-end;
    background: #d9fdd3;
    color: #111b21;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

/* Credit page typing dots */
#credit-phone-split .lchat-typing, #credit-phone-notif .lchat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #f4efe6;
    width: fit-content;
}

#credit-phone-split .lchat-typing span, #credit-phone-notif .lchat-typing span {
    width: 6px;
    height: 6px;
    background: #111b21;
    border-radius: 50%;
    animation: typingBounce 1.2s ease infinite;
}

/* ── WhatsApp Background for Mockups on Planet Pages ── */
#lawyer-chat-messages,
#notif-chat-messages,
#sec-chat-messages,
#sec-notif-chat-messages,
#credit-chat-messages,
#credit-notif-chat-messages {
  background-image: url('Public/fundowhatsapp.jpg') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ══════════════════════════════════════════
   SECTION 04 ANIMATIONS (IMPACTO EM PROD)
   ══════════════════════════════════════════ */

/* Panel 0: Voice Waveform */
#s4-mock-voice {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 280px;
  max-width: 320px;
  margin: 0 auto;
  padding: 1.5rem;
  gap: 1rem;
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(79, 173, 232, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
}
.voice-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 70px;
  width: 100%;
}
.voice-bar {
  width: 4px;
  height: 12px;
  background: linear-gradient(to top, var(--accent), #94d2ff);
  border-radius: 4px;
  transition: height 0.08s ease;
  box-shadow: 0 0 8px rgba(79, 173, 232, 0.4);
}
.voice-transcript {
  width: 100%;
  height: 120px;
  background: rgba(10, 16, 26, 0.65);
  border: 1px solid rgba(79, 173, 232, 0.15);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e2e8f0;
  text-align: left;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}
.voice-transcript::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.voice-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translate(-50%, 15px);
  width: calc(100% - 2.4rem);
  text-align: center;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.78rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.voice-badge.visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* Panel 1: Vision Scanner */
#s4-mock-vision {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  height: 250px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(6, 9, 19, 0.95);
  border: 1px solid rgba(79, 173, 232, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  height: 100%;
}
.vision-cell {
  background: #0c1222;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
}
.vision-cell::before {
  content: 'CAM 0' attr(class);
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}
.vision-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(239, 68, 68, 0.6), transparent);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  pointer-events: none;
  animation: scanLineAnim 3.5s linear infinite;
  z-index: 5;
}
@keyframes scanLineAnim {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}
.vision-detection-box {
  position: absolute;
  border: 2px solid #ef4444;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
}
.vision-detection-box.visible {
  opacity: 1;
  transform: scale(1);
}
.vision-detection-box .label {
  position: absolute;
  top: -18px;
  left: -2px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 3px 3px 0 0;
  white-space: nowrap;
  font-family: sans-serif;
  font-weight: bold;
}

/* Panel 2: Hermes Agent */
#s4-mock-hermes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  height: auto;
  max-width: 450px;
  margin: 0 auto;
  gap: 12px;
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(79, 173, 232, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hermes-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.hermes-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 20, 35, 0.65);
  border: 1px solid rgba(79, 173, 232, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  transform: translateX(15px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hermes-card.visible {
  transform: translateX(0);
  opacity: 1;
}
.hermes-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hermes-icon {
  font-size: 1.1rem;
}
.hermes-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: #e2e8f0;
}
.hermes-status {
  font-size: 0.65rem;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: bold;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.25s ease;
  width: 95px;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.hermes-status.pending {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #f59e0b;
}
.hermes-status.running {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #3b82f6;
}
.hermes-status.done {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
}

/* Panel 3: Document Extractor */
#s4-mock-docs {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 250px;
  max-width: 400px;
  margin: 0 auto;
  padding: 1rem;
  gap: 1rem;
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(79, 173, 232, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.docs-queue {
  flex: 1.2;
  position: relative;
  border: 1px solid rgba(79, 173, 232, 0.12);
  border-radius: 12px;
  background: rgba(12, 20, 35, 0.55);
  overflow: hidden;
}
.docs-scanner {
  position: relative;
  width: 100%;
  height: 100%;
}
.doc-preview {
  width: 85%;
  height: 85%;
  margin: 7.5% auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  position: relative;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  width: 100%;
}
.doc-line.short {
  width: 65%;
}
.doc-field-highlight {
  position: absolute;
  border: 1.5px solid var(--accent);
  background: rgba(79, 173, 232, 0.12);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.scan-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  box-shadow: 0 0 6px var(--accent);
  opacity: 0;
  pointer-events: none;
}
.docs-table-wrapper {
  flex: 1.8;
  background: rgba(10, 16, 26, 0.75);
  border: 1px solid rgba(79, 173, 232, 0.12);
  border-radius: 12px;
  padding: 8px;
  z-index: 2;
}
.vision-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(239, 68, 68, 0.6), transparent);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  pointer-events: none;
  animation: scanLineAnim 3.5s linear infinite;
  z-index: 5;
}
@keyframes scanLineAnim {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}
.vision-detection-box {
  position: absolute;
  border: 2px solid #ef4444;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
}
.vision-detection-box.visible {
  opacity: 1;
  transform: scale(1);
}
.vision-detection-box .label {
  position: absolute;
  top: -18px;
  left: -2px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 3px 3px 0 0;
  white-space: nowrap;
  font-family: sans-serif;
  font-weight: bold;
}

/* Panel 2: Hermes Agent */
#s4-mock-hermes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  height: auto;
  max-width: 450px;
  margin: 0 auto;
  gap: 12px;
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(79, 173, 232, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hermes-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.hermes-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 20, 35, 0.65);
  border: 1px solid rgba(79, 173, 232, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  transform: translateX(15px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hermes-card.visible {
  transform: translateX(0);
  opacity: 1;
}
.hermes-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hermes-icon {
  font-size: 1.1rem;
}
.hermes-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: #e2e8f0;
}
.hermes-status {
  font-size: 0.65rem;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: bold;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.25s ease;
  width: 95px;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.hermes-status.pending {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #f59e0b;
}
.hermes-status.running {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #3b82f6;
}
.hermes-status.done {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
}

/* Panel 3: Document Extractor */
#s4-mock-docs {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 250px;
  max-width: 400px;
  margin: 0 auto;
  padding: 1rem;
  gap: 1rem;
  background: rgba(10, 16, 26, 0.7);
  border: 1px solid rgba(79, 173, 232, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.docs-queue {
  flex: 1.2;
  position: relative;
  border: 1px solid rgba(79, 173, 232, 0.12);
  border-radius: 12px;
  background: rgba(12, 20, 35, 0.55);
  overflow: hidden;
}
.docs-scanner {
  position: relative;
  width: 100%;
  height: 100%;
}
.doc-preview {
  width: 85%;
  height: 85%;
  margin: 7.5% auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  position: relative;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-line {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  width: 100%;
}
.doc-line.short {
  width: 65%;
}
.doc-field-highlight {
  position: absolute;
  border: 1.5px solid var(--accent);
  background: rgba(79, 173, 232, 0.12);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.scan-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  box-shadow: 0 0 6px var(--accent);
  opacity: 0;
  pointer-events: none;
}
.docs-table-wrapper {
  flex: 1.8;
  background: rgba(10, 16, 26, 0.75);
  border: 1px solid rgba(79, 173, 232, 0.12);
  border-radius: 12px;
  padding: 8px;
  overflow-y: auto;
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  color: #e2e8f0;
  text-align: left;
}
.docs-table th {
  color: #718096;
  font-weight: 600;
  padding: 5px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.docs-table td {
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.docs-table tr {
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
}
.docs-table tr.visible {
  opacity: 1;
  transform: translateY(0);
}
.docs-table td.status-col {
  color: #34d399;
}

/* ══════════════════════════════════════════
   PLATFORM INTEGRATIONS — 3-ROW SVG CAROUSEL
══════════════════════════════════════════ */
.platform-carousel-section {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.platform-carousel-section .eyebrow {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Each horizontal row */
.plat-row {
  overflow: hidden;
  padding: 0.8rem 0;
  position: relative;
}
/* Fade edges */
.plat-row::before,
.plat-row::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.plat-row::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.plat-row::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* The scrolling track */
.plat-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
}
.plat-row-fwd .plat-track   { animation: platScrollFwd  90s linear infinite; }
.plat-row-rev .plat-track   { animation: platScrollRev  90s linear infinite; }

@keyframes platScrollFwd {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes platScrollRev {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Individual logo column */
.plat-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.plat-logo:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  transform: scale(1.15);
}
.plat-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  opacity: 0.95;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.plat-logo:hover img {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(79, 173, 232, 0.55));
}
.plat-logo span {
  font-size: 0.72rem;
  font-family: 'Space Grotesk', sans-serif;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.plat-logo:hover span {
  color: rgba(255,255,255,0.9);
}

/* ══════════════════════════════════════════
   REDESIGNED S3 ANIMATIONS
══════════════════════════════════════════ */
.crm-reactivation {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.crm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: rgba(79, 173, 232, 0.08);
  border: 1px solid rgba(79, 173, 232, 0.15);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}
.panel-active .crm-header { opacity: 1; transform: translateY(0); }
.crm-header .crm-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.crm-header .crm-count {
  font-size: 0.65rem;
  color: #34d399;
  padding: 2px 8px;
  background: rgba(52, 211, 153, 0.1);
  border-radius: 20px;
}
.crm-lead-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 112px;
  overflow-y: auto;
  scrollbar-width: none;
}
.crm-lead-list::-webkit-scrollbar {
  display: none;
}
.crm-lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s ease;
}
.crm-lead.visible { opacity: 1; transform: translateX(0); }
.crm-lead .lead-name { display: flex; align-items: center; gap: 0.4rem; }
.crm-lead .lead-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; color: #fff; font-weight: 600; flex-shrink: 0;
}
.crm-lead .lead-status {
  font-size: 0.6rem; padding: 2px 8px; border-radius: 12px;
  font-weight: 500; white-space: nowrap;
}
.crm-lead .lead-status.sending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.crm-lead .lead-status.sent    { background: rgba(79, 173, 232, 0.15); color: var(--accent); }
.crm-lead .lead-status.replied { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.crm-whatsapp-preview {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.6rem;
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.15);
  border-radius: 10px;
  opacity: 0; transform: scale(0.95);
  transition: all 0.5s ease 0.4s;
}
.panel-active .crm-whatsapp-preview { opacity: 1; transform: scale(1); }
.crm-whatsapp-preview .wa-header {
  font-size: 0.6rem; color: #25d366;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.crm-whatsapp-preview .wa-message {
  font-size: 0.68rem; color: var(--muted);
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  opacity: 0; transition: opacity 0.4s ease;
}
.crm-whatsapp-preview .wa-message.visible { opacity: 1; }

/* S3-1: Atas IA */
.ata-meeting-sim {
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.ata-meeting-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  /* Fixed header - no animation */
  opacity: 1;
}
.ata-meeting-header .meet-dot {
  width: 8px; height: 8px; background: #ef4444;
  border-radius: 50%; animation: meetPulse 1.5s infinite;
}
@keyframes meetPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.ata-meeting-header .meet-label { font-size: 0.7rem; color: #a78bfa; font-weight: 500; }
.ata-meeting-header .meet-time {
  margin-left: auto; font-size: 0.6rem; color: var(--muted);
  font-family: 'Space Grotesk', monospace;
}
.ata-animation-body {
  height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.ata-speakers {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100px;
  overflow-y: auto;
  scrollbar-width: none;
}
.ata-speakers::-webkit-scrollbar {
  display: none;
}
.ata-speaker-bubble {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}
.ata-speaker-bubble.visible { opacity: 1; transform: translateY(0); }
.ata-speaker-bubble .spk-icon { font-size: 0.8rem; flex-shrink: 0; }
.ata-speaker-bubble .spk-name {
  font-weight: 600; color: var(--text); margin-right: 0.3rem;
}
.ata-ai-output {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 0.6rem;
  background: rgba(79, 173, 232, 0.06);
  border: 1px solid rgba(79, 173, 232, 0.12);
  border-radius: 10px;
  height: 90px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s ease;
}
.ata-ai-output.visible { opacity: 1; transform: translateY(0); }
.ata-ai-output .ai-label {
  font-size: 0.6rem; color: var(--accent);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.ata-ai-output .ai-task {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}
.ata-ai-output .ai-task.visible { opacity: 1; transform: translateX(0); }
.ata-ai-output .ai-task .check { color: #34d399; }

/* Ata PDF result */
.ata-pdf-result {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(10, 16, 26, 0.95);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: pdfFadeIn 0.6s ease;
}
@keyframes pdfFadeIn { from { opacity:0; transform: scale(0.9); } to { opacity:1; transform: scale(1); } }
.ata-pdf-result .pdf-icon { font-size: 2.2rem; line-height: 1; }
.ata-pdf-result .pdf-title {
  font-size: 0.9rem; font-weight: 700; color: var(--text);
}
.ata-pdf-result .pdf-subtitle { font-size: 0.65rem; color: var(--muted); }
.ata-pdf-result .pdf-progress {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden;
}
.ata-pdf-result .pdf-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #34d399, var(--accent));
  border-radius: 2px;
}

/* S3-2: Agentes — scroll list + gold card */
.agents-showcase {
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.agents-scroll-list {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.agent-gold-card {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(245,158,11,0.06));
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 12px;
  margin-top: 0.3rem;
  animation: goldFadeIn 0.5s ease;
}
@keyframes goldFadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.agent-gold-card .gold-star {
  font-size: 1.2rem; color: #fbbf24; flex-shrink: 0;
}
.agent-gold-card .gold-title {
  font-size: 0.72rem; font-weight: 700;
  color: #fbbf24; text-transform: uppercase; letter-spacing: 0.08em;
}
.agent-gold-card .gold-sub {
  font-size: 0.6rem; color: rgba(251,191,36,0.7); margin-top: 1px;
}

.agent-card-s3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  opacity: 0;
  transform: translateX(-15px);
  transition: all 0.4s ease;
}
.agent-card-s3.fixed-agent {
  opacity: 1;
  transform: translateX(0);
}
.agent-card-s3.visible { opacity: 1; transform: translateX(0); }
.agent-card-s3 .agent-avatar-s3 {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.agent-card-s3 .agent-info-s3 { flex: 1; min-width: 0; }
.agent-card-s3 .agent-name-s3 { font-size: 0.72rem; font-weight: 600; color: var(--text); }
.agent-card-s3 .agent-sector-s3 { font-size: 0.6rem; color: var(--muted); }
.agent-card-s3 .agent-status-s3 {
  font-size: 0.55rem; padding: 2px 8px; border-radius: 12px;
  font-weight: 500; white-space: nowrap;
}
.agent-card-s3 .agent-status-s3.online { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.agent-pulse {
  width: 6px; height: 6px; background: #34d399; border-radius: 50%;
  display: inline-block; margin-right: 4px; animation: agentBlink 2s infinite;
}
@keyframes agentBlink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* S3-3: Plataforma Produtividade */
.prod-platform {
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.prod-module {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  opacity: 0; transform: scale(0.95);
  transition: all 0.4s ease;
}
.prod-module.fixed-module {
  opacity: 1;
  transform: scale(1);
}
.prod-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.prod-module .mod-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.prod-module .mod-info { flex: 1; }
.prod-module .mod-name { font-size: 0.72rem; font-weight: 600; color: var(--text); }
.prod-module .mod-desc { font-size: 0.6rem; color: var(--muted); }
.prod-module .mod-status {
  font-size: 0.6rem; padding: 2px 8px; border-radius: 12px;
  white-space: nowrap; font-weight: 500;
}
.prod-module .mod-status.active { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.prod-module .mod-status.processing { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.prod-ecosystem-bar {
  height: 3px; background: rgba(79, 173, 232, 0.1);
  border-radius: 2px; overflow: hidden; margin-top: 0.3rem;
}
.prod-ecosystem-bar .bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  border-radius: 2px; transition: width 1.5s ease;
}
.panel-active .prod-ecosystem-bar .bar-fill { width: 100%; }

.vision-cell {
  min-height: 110px;
  background-size: cover;
  background-position: center;
}
.vision-cell::before {
  content: attr(data-label);
  position: absolute;
  top: 4px; left: 6px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  padding: 1px 5px; border-radius: 3px;
}
.vision-cell::after {
  content: '';
  position: absolute;
  top: 4px; right: 6px;
  width: 6px; height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: recDot 1s infinite;
  z-index: 2;
}
@keyframes recDot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.vision-detection-box {
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}
.vision-scanline { display: none; }

/* Vision grid: larger cells */

/* Docs: hide old, show new scanner */
.docs-queue, .docs-scanner, .docs-table-wrapper { display: none !important; }

.docs-scanner-left {
  flex: 1;
  display: flex; flex-direction: column; gap: 0.4rem;
  position: relative;
}
.docs-document-view {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px; padding: 0.6rem;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.docs-document-view .doc-title-line {
  width: 60%; height: 8px;
  background: rgba(255, 255, 255, 0.12); border-radius: 4px;
}
.docs-document-view .doc-text-line {
  width: 90%; height: 5px;
  background: rgba(255, 255, 255, 0.06); border-radius: 3px;
}
.docs-document-view .doc-text-line.short { width: 65%; }
.docs-document-view .doc-text-line.med { width: 78%; }
.docs-laser-line {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent), 0 0 30px rgba(79, 173, 232, 0.3);
  opacity: 0; transition: opacity 0.3s ease; z-index: 2;
}
.docs-laser-line.active {
  opacity: 1;
  animation: laserSweep 2.5s ease-in-out infinite;
}
@keyframes laserSweep {
  0% { top: 10%; } 50% { top: 85%; } 100% { top: 10%; }
}
.docs-highlight-field {
  position: absolute;
  background: rgba(79, 173, 232, 0.12);
  border: 1px solid rgba(79, 173, 232, 0.3);
  border-radius: 3px;
  opacity: 0; transition: opacity 0.4s ease; z-index: 1;
}
.docs-highlight-field.visible { opacity: 1; }
.docs-scanner-right {
  flex: 1;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.docs-scanner-right .extracted-header {
  font-size: 0.6rem; color: var(--accent);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0;
}
.docs-extracted-field {
  display: flex; justify-content: space-between;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px; font-size: 0.62rem;
  opacity: 0; transform: translateX(10px);
  transition: all 0.35s ease;
}
.docs-extracted-field.visible { opacity: 1; transform: translateX(0); }
.docs-extracted-field .field-label { color: var(--muted); }
.docs-extracted-field .field-value {
  color: var(--text); font-weight: 500;
  font-family: 'Space Grotesk', monospace;
}
.docs-confidence-bar {
  margin-top: auto; padding: 0.4rem 0.5rem;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 6px;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.6rem; color: #34d399;
  opacity: 0; transition: opacity 0.5s ease;
}
.docs-confidence-bar.visible { opacity: 1; }
/* Vision grid: larger cells */

/* Docs: hide old, show new scanner */
.docs-queue, .docs-scanner, .docs-table-wrapper { display: none !important; }

.docs-scanner-left {
  flex: 1;
  display: flex; flex-direction: column; gap: 0.4rem;
  position: relative;
}
.docs-document-view {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px; padding: 0.6rem;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.docs-document-view .doc-title-line {
  width: 60%; height: 8px;
  background: rgba(255, 255, 255, 0.12); border-radius: 4px;
}
.docs-document-view .doc-text-line {
  width: 90%; height: 5px;
  background: rgba(255, 255, 255, 0.06); border-radius: 3px;
}
.docs-document-view .doc-text-line.short { width: 65%; }
.docs-document-view .doc-text-line.med { width: 78%; }
.docs-laser-line {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent), 0 0 30px rgba(79, 173, 232, 0.3);
  opacity: 0; transition: opacity 0.3s ease; z-index: 2;
}
.docs-laser-line.active {
  opacity: 1;
  animation: laserSweep 2.5s ease-in-out infinite;
}
@keyframes laserSweep {
  0% { top: 10%; } 50% { top: 85%; } 100% { top: 10%; }
}
.docs-highlight-field {
  position: absolute;
  background: rgba(79, 173, 232, 0.12);
  border: 1px solid rgba(79, 173, 232, 0.3);
  border-radius: 3px;
  opacity: 0; transition: opacity 0.4s ease; z-index: 1;
}
.docs-highlight-field.visible { opacity: 1; }
.docs-scanner-right {
  flex: 1;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.docs-scanner-right .extracted-header {
  font-size: 0.6rem; color: var(--accent);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0;
}
.docs-extracted-field {
  display: flex; justify-content: space-between;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px; font-size: 0.62rem;
  opacity: 0; transform: translateX(10px);
  transition: all 0.35s ease;
}
.docs-extracted-field.visible { opacity: 1; transform: translateX(0); }
.docs-extracted-field .field-label { color: var(--muted); }
.docs-extracted-field .field-value {
  color: var(--text); font-weight: 500;
  font-family: 'Space Grotesk', monospace;
}
.docs-confidence-bar {
  margin-top: auto; padding: 0.4rem 0.5rem;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 6px;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.6rem; color: #34d399;
  opacity: 0; transition: opacity 0.5s ease;
}
.docs-confidence-bar.visible { opacity: 1; }
.docs-confidence-bar .conf-fill {
  flex: 1; height: 3px;
  background: rgba(52, 211, 153, 0.15);
  border-radius: 2px; overflow: hidden;
}
.docs-confidence-bar .conf-fill-inner {
  height: 100%; width: 0;
  background: #34d399;
  border-radius: 2px; transition: width 1s ease;
}

/* ══════════════════════════════════════════
   CUSTOMER LOGO CAROUSEL (Marquee)
══════════════════════════════════════════ */
.logo-carousel-section {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.logo-carousel-section .eyebrow {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.logo-carousel-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: marqueeScroll 80s linear infinite;
  width: max-content;
}
.logo-carousel-track img {
  height: 48px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(35%);
  transition: filter 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
  user-select: none;
  pointer-events: auto;
}
.logo-carousel-track img:hover {
  filter: grayscale(0%) opacity(95%);
  transform: scale(1.08);
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* CRM Sync Widget - Aba 1 S2 */
.crm-sync-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
}
.sys-box {
  background: rgba(12, 20, 35, 0.65);
  border: 1px solid rgba(79, 173, 232, 0.2);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  width: 100px;
}
.sys-box.active {
  border-color: #4fade8;
  box-shadow: 0 0 20px rgba(79, 173, 232, 0.4);
  transform: translateY(-2px);
}
.sys-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.sys-box span {
  font-size: 0.65rem;
  font-family: 'Space Grotesk', sans-serif;
  color: #e2e8f0;
  text-align: center;
}
.sync-connector {
  position: relative;
  width: 40px;
  height: 2px;
  background: rgba(79, 173, 232, 0.2);
}
.sync-pulse {
  position: absolute;
  top: -1px;
  left: 0;
  width: 8px;
  height: 4px;
  background: #4fade8;
  border-radius: 2px;
  box-shadow: 0 0 10px #4fade8;
  opacity: 0;
  transition: all 0.3s ease;
}
.sync-pulse.animating {
  opacity: 1;
  transform: translateX(32px);
  transition: transform 0.6s linear, opacity 0.2s;
}
.crm-status-card {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  color: #10b981;
  font-size: 0.7rem;
  font-weight: bold;
  font-family: 'Space Grotesk', sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.crm-status-card.visible {
  opacity: 1;
}
/* Fix for Prod Module Visibility */
.prod-module.visible {
  opacity: 1;
  transform: scale(1);
}

/* Pipeline Card Animation to prevent abrupt jumping */
@keyframes cardEnterAnim {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.pb-card {
  animation: cardEnterAnim 0.4s ease forwards;
}

/* S2 Aba 1 - New Integration Animation */
.s2-integration-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 10px;
}
.int-inputs, .int-outputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.int-sys-box {
  background: rgba(12, 20, 35, 0.65);
  border: 1px solid rgba(79, 173, 232, 0.2);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  opacity: 0.5;
}
.int-sys-box.active {
  border-color: #4fade8;
  box-shadow: 0 0 20px rgba(79, 173, 232, 0.4);
  opacity: 1;
  transform: scale(1.1);
}
.int-sys-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.int-brain {
  background: linear-gradient(135deg, rgba(79, 173, 232, 0.3), rgba(139, 92, 246, 0.3));
  border: 1px solid rgba(79, 173, 232, 0.5);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
  transition: all 0.4s ease;
}
.int-brain.active {
  transform: scale(1.15);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.8), inset 0 0 20px rgba(79, 173, 232, 0.8);
}
.int-out-box {
  background: rgba(12, 20, 35, 0.65);
  border: 1px solid rgba(79, 173, 232, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
  color: #e2e8f0;
  transition: all 0.3s ease;
  opacity: 0.5;
  white-space: nowrap;
}
.int-out-box.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
  opacity: 1;
  transform: translateX(-5px);
}

/* Footer layout */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 5% 4rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 1200px;
  margin: 3rem auto 0 auto;
  gap: 2rem;
  width: 100%;
}

.footer-right {
  text-align: right;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 5% 3rem 5%;
  }
  .footer-right {
    text-align: center;
  }
}

