@import url('./assets/Elementos/cores.css');

:root {
  --bg-ameixa: var(--controle-ameixa, #291022);
  --bg-marfim: var(--controle-marfim, #FAEBDD);
  --color-champagne: var(--controle-champagne, #B39472);
  --color-lavanda: var(--controle-lavanda, #AA88C4);
  --color-verde: var(--controle-verde, #BBD36D);
  --color-malva: var(--controle-malva, #69445F);

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1180px;
  --container-pad: clamp(1.25rem, 4vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-ameixa);
  color: var(--bg-marfim);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-ameixa);
  color: var(--bg-marfim);
  line-height: 1.55;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--color-verde);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-marfim :focus-visible {
  outline: 2px solid var(--bg-ameixa);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ==========================================================================
   DECORATIVE BACKGROUNDS & AMBIENT LIGHTS (AMEIXA SECTIONS)
   ========================================================================== */
.section-ameixa {
  position: relative;
  background-color: var(--bg-ameixa);
  color: var(--bg-marfim);
  overflow: hidden;
  isolation: isolate;
}

.bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Edge-concentrated lavender & mauve ambient glow */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.42;
  will-change: transform, opacity;
  animation: lavenderPulse 16s ease-in-out infinite alternate;
}

.ambient-glow--hero-top-right {
  width: 620px;
  height: 480px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(170, 136, 196, 0.32) 0%, rgba(105, 68, 95, 0.2) 48%, rgba(41, 16, 34, 0) 75%);
}

.ambient-glow--hero-bottom-right {
  width: 520px;
  height: 380px;
  bottom: -90px;
  right: -80px;
  background: radial-gradient(circle, rgba(179, 148, 114, 0.22) 0%, rgba(105, 68, 95, 0.16) 52%, rgba(41, 16, 34, 0) 76%);
  animation-delay: -6s;
}

.ambient-glow--flow-left {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(170, 136, 196, 0.48) 0%, rgba(105, 68, 95, 0.28) 46%, rgba(41, 16, 34, 0) 74%);
}

.ambient-glow--flow-right {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle, rgba(170, 136, 196, 0.46) 0%, rgba(105, 68, 95, 0.26) 46%, rgba(41, 16, 34, 0) 74%);
  animation-delay: -8s;
}

.ambient-glow--closing-left {
  width: 460px;
  height: 340px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(179, 148, 114, 0.36) 0%, rgba(105, 68, 95, 0.24) 48%, rgba(41, 16, 34, 0) 75%);
}

.ambient-glow--closing-right {
  width: 580px;
  height: 380px;
  bottom: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(170, 136, 196, 0.42) 0%, rgba(187, 211, 109, 0.16) 45%, rgba(41, 16, 34, 0) 75%);
  animation-delay: -5s;
}

@keyframes lavenderPulse {
  0% {
    opacity: 0.34;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.54;
    transform: translate3d(-8px, 6px, 0) scale(1.04);
  }
  100% {
    opacity: 0.38;
    transform: translate3d(6px, -6px, 0) scale(0.98);
  }
}

/* Champagne Arc SVGs with traveling light reflection (18-24s cycle with pause) */
.arc-svg {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}

.arc-base {
  fill: none;
  stroke: var(--color-champagne);
  stroke-opacity: 0.48;
  stroke-width: 1.5;
}

.arc-glow-soft {
  fill: none;
  stroke: var(--color-champagne);
  stroke-opacity: 0.22;
  stroke-width: 6;
  filter: blur(4px);
}

.arc-reflection {
  fill: none;
  stroke: #FAEBDD;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 140 1200;
  stroke-dashoffset: 1340;
  filter: drop-shadow(0 0 6px rgba(250, 235, 221, 0.9)) drop-shadow(0 0 14px rgba(179, 148, 114, 0.85));
  animation: champagneArcSweep 21s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.arc-reflection--hero {
  stroke-width: 3;
  filter: blur(0.5px) drop-shadow(0 0 8px rgba(250, 235, 221, 0.95)) drop-shadow(0 0 18px rgba(179, 148, 114, 0.9));
}

.arc-reflection--delayed {
  animation-duration: 22s;
  animation-delay: -7s;
}

/* 0% to 68% (~14.3s) sweeps along the arc; 68% to 100% (~6.7s) pauses between cycles */
@keyframes champagneArcSweep {
  0% {
    stroke-dashoffset: 1340;
    opacity: 0;
  }
  6% {
    opacity: 0.95;
  }
  60% {
    opacity: 0.95;
  }
  68% {
    stroke-dashoffset: -220;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: -220;
    opacity: 0;
  }
}

/* ==========================================================================
   HEADER (CABEÇALHO)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(41, 16, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(179, 148, 114, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-svg {
  height: 32px;
  width: auto;
}

.header-nav-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2.1rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(250, 235, 221, 0.9);
  transition: color 180ms ease;
  position: relative;
  padding-block: 0.25rem;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background-color: var(--color-champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #FFFFFF;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.header-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(179, 148, 114, 0.36);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background-color: var(--color-verde);
  color: var(--bg-ameixa);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.btn-primary--sm {
  font-size: 0.84rem;
  padding: 0.62rem 1.15rem;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #cbe17d;
  box-shadow: 0 6px 22px rgba(187, 211, 109, 0.25);
  transform: translateY(-1px);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 180ms ease;
}

.btn-primary:hover .btn-arrow,
.btn-primary:focus-visible .btn-arrow,
.btn-secondary:hover .btn-arrow,
.btn-secondary:focus-visible .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bg-marfim);
  padding-block: 0.35rem;
  border-bottom: 1.5px solid rgba(250, 235, 221, 0.72);
  transition: color 180ms ease, border-color 180ms ease;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--color-lavanda);
  border-bottom-color: var(--color-lavanda);
}

/* ==========================================================================
   HERO (ABERTURA) — FUNDO RESPONSIVO EM 4 VARIAÇÕES WEBP (Antigravity.md)
   ========================================================================== */
.controle-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #180718;
  color: #FAEBDD;
  display: grid;
  align-items: center;
  min-height: clamp(600px, 46vw, 900px);
  padding: 64px clamp(24px, 5vw, 100px);
}

.controle-hero__fundo {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.controle-hero__fundo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 64%;
  transform: scale(1.03) translate3d(0, var(--notebook-parallax, 0px), 0);
  transform-origin: right bottom;
  transition: transform 90ms linear;
  will-change: transform;
}

.controle-hero__luz {
  z-index: -1;
}

.hero-arc-decor {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.controle-hero__container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.controle-hero__conteudo {
  width: min(100%, 620px, 42vw);
  position: relative;
  z-index: 2;
}

.hero-logo-wrap {
  margin-bottom: 1.5rem;
}

.hero-brand-logo {
  height: clamp(42px, 4.2vw, 54px);
  width: auto;
  display: block;
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .controle-hero__fundo img {
    object-position: right 78%;
  }
}

@media (max-width: 1023px) {
  .controle-hero {
    min-height: 0;
    padding: clamp(48px, 8vw, 84px) clamp(22px, 6vw, 60px) 68vw;
  }

  .controle-hero__fundo {
    display: flex;
    align-items: flex-end;
  }

  .controle-hero__fundo img {
    height: auto;
    transform: none !important;
    -webkit-mask-image: linear-gradient(transparent, #000 18%);
    mask-image: linear-gradient(transparent, #000 18%);
  }

  .controle-hero__conteudo {
    width: min(100%, 680px);
  }
}

@media (max-width: 767px) {
  .controle-hero {
    padding-bottom: 87vw;
  }

  .hero-logo-wrap {
    display: flex;
    justify-content: center;
  }

  .hero-brand-logo {
    margin-inline: auto;
  }
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 235, 221, 0.92);
  margin-bottom: 0.5rem;
}

.brand-divider {
  width: min(100%, 380px);
  height: 8px;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.65rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--bg-marfim);
  margin-bottom: 1.05rem;
}

.hero-title em {
  font-style: italic;
  color: var(--color-lavanda);
}

.hero-description {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: clamp(0.92rem, 1.02vw, 1rem);
  line-height: 1.52;
  color: rgba(250, 235, 221, 0.88);
  margin-bottom: 1.55rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

/* Hero Entry Reveal (450ms, <=12px shift, content available from load) */
.hero-entry {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-motion-ready .hero-entry {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

.js-motion-ready.hero-loaded .hero-entry {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.js-motion-ready.hero-loaded .hero-entry--delay-1 {
  transition-delay: 110ms;
}

.js-motion-ready.hero-loaded .hero-entry--delay-2 {
  transition-delay: 220ms;
}

/* ==========================================================================
   MARFIM SECTIONS COMMON
   ========================================================================== */
.section-marfim {
  position: relative;
  background-color: var(--bg-marfim);
  color: var(--bg-ameixa);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
}

/* Scroll reveal animations (350-500ms, small displacements, once per section) */
.reveal-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-motion-ready .reveal-item {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

.js-motion-ready .is-visible .reveal-item,
.js-motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-divider {
  transform-origin: left center;
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

.js-motion-ready .reveal-divider {
  opacity: 0;
  transform: scaleX(0.92);
}

.js-motion-ready .is-visible .reveal-divider,
.js-motion-ready .reveal-divider.is-visible {
  opacity: 1;
  transform: scaleX(1);
}

/* ==========================================================================
   SOLUÇÕES (SOLUTIONS TABS SECTION — MARFIM)
   ========================================================================== */
.solutions-section {
  padding-block: clamp(3rem, 5.5vw, 4.5rem);
}

.solutions-header {
  margin-bottom: 1.65rem;
}

.solutions-header .section-title {
  margin-bottom: 0.35rem;
}

.solutions-subtitle {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: rgba(41, 16, 34, 0.84);
}

/* Tabs Bar */
.tabs-scroll-container {
  position: relative;
  margin-bottom: 1.85rem;
}

.solutions-tablist {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid rgba(179, 148, 114, 0.68);
  border-radius: 10px;
  background-color: rgba(250, 235, 221, 0.7);
  overflow: hidden;
  isolation: isolate;
}

/* Sliding Active Indicator */
.tab-active-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / 6);
  height: 100%;
  background-color: var(--bg-ameixa);
  border-radius: 8px;
  z-index: 0;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
              width 200ms cubic-bezier(0.22, 1, 0.36, 1),
              height 200ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.solution-tab {
  position: relative;
  z-index: 1;
  padding: 0.84rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bg-ameixa);
  text-align: center;
  border-right: 1px solid rgba(179, 148, 114, 0.45);
  transition: color 180ms ease, background-color 180ms ease;
  white-space: nowrap;
}

.solution-tab:last-of-type {
  border-right: none;
}

.solution-tab[aria-selected="true"] {
  color: var(--bg-marfim);
  font-weight: 600;
}

.solution-tab:not([aria-selected="true"]):hover {
  background-color: rgba(179, 148, 114, 0.14);
}

/* Tab Panels & 200ms Transition */
.solutions-panels-wrapper {
  position: relative;
}

.solution-panel {
  transition: opacity 200ms ease, transform 200ms ease;
}

.solution-panel[hidden] {
  display: none;
}

.solution-panel.panel-entering {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
}

.area-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.65rem;
}

.area-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  line-height: 1.15;
  color: var(--bg-ameixa);
}

.area-count-badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-malva);
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(179, 148, 114, 0.55);
  border-radius: 999px;
  background-color: rgba(179, 148, 114, 0.1);
}

/* Architectural Solutions Grid with Row & Column Dividers */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 0;
}

.solutions-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 460px));
}

.solution-card {
  position: relative;
  padding-inline: 1.85rem;
  padding-block: 1.15rem;
  border-left: 1px solid rgba(179, 148, 114, 0.5);
  border-bottom: 1px solid rgba(179, 148, 114, 0.28);
  transition: background-color 200ms ease, transform 200ms ease;
}

/* Remove top padding on first row so single-row Gestão matches reference board proportions */
.solutions-grid:not(.solutions-grid--2col) .solution-card:nth-child(-n + 3),
.solutions-grid--2col .solution-card:nth-child(-n + 2) {
  padding-top: 0.2rem;
}

/* Remove bottom border on the last row of each grid */
.solutions-grid--gestao .solution-card,
.solutions-grid--2col .solution-card {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.solutions-grid--vendas .solution-card:nth-child(n + 7),
.solutions-grid--marketing .solution-card:nth-child(n + 4),
.solutions-grid--atendimento .solution-card:nth-child(n + 4) {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

/* Remove left border on first item of each row (cols 1, 4, 7) */
.solutions-grid:not(.solutions-grid--2col) .solution-card:nth-child(3n + 1) {
  padding-left: 0;
  border-left: none;
}

.solutions-grid--2col .solution-card:nth-child(2n + 1) {
  padding-left: 0;
  border-left: none;
}

.solution-card:last-child {
  padding-right: 0;
}

/* Icon & Dual-Tone Technological Accents */
.solution-icon {
  width: 42px;
  height: 42px;
  color: var(--bg-ameixa);
  margin-bottom: 0.65rem;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms ease;
}

.solution-icon svg,
.solution-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Converte a logo branca do WhatsApp para o tom ameixa (#291022) sobre o fundo claro marfim */
.solution-icon-img--dark {
  filter: brightness(0) saturate(100%) invert(8%) sepia(35%) saturate(2650%) hue-rotate(288deg) brightness(92%) contrast(98%);
}

.solution-icon .icon-accent {
  stroke: var(--color-champagne);
  transition: stroke 220ms ease, fill 220ms ease;
}

.solution-icon .icon-accent-fill {
  fill: var(--color-champagne);
  stroke: none;
  transition: fill 220ms ease;
}

.solution-card:hover .solution-icon {
  transform: translateY(-2px) scale(1.04);
}

.solution-card:hover .solution-icon .icon-accent {
  stroke: var(--color-malva);
}

.solution-card:hover .solution-icon .icon-accent-fill {
  fill: var(--color-malva);
}

.solution-name {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bg-ameixa);
  margin-bottom: 0.35rem;
  line-height: 1.28;
  transition: color 180ms ease;
}

.solution-desc {
  font-size: 0.92rem;
  line-height: 1.48;
  color: rgba(41, 16, 34, 0.84);
}

/* ==========================================================================
   EXEMPLO DE APLICAÇÃO (FLOW SECTION — AMEIXA)
   ========================================================================== */
.flow-section {
  padding-block: clamp(3rem, 5.5vw, 4.35rem);
}

.flow-arc-top-left {
  top: -8px;
  left: -8px;
  width: 210px;
  height: 185px;
}

.flow-arc-bottom-right {
  bottom: -8px;
  right: -8px;
  width: 210px;
  height: 185px;
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.flow-copy {
  max-width: 440px;
}

.flow-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  line-height: 1.04;
  color: var(--bg-marfim);
  margin-bottom: 1rem;
}

.flow-title em {
  font-style: italic;
}

.flow-divider {
  width: min(100%, 240px);
  height: 8px;
  margin-bottom: 1.15rem;
}

.flow-text {
  font-size: 0.9375rem;
  line-height: 1.56;
  color: rgba(250, 235, 221, 0.84);
}

/* 4-Node Sequential Flow Diagram with Continuous Data Packet Pulse */
.flow-diagram {
  position: relative;
  padding-left: 2.35rem;
}

/* Vertical track & animated advancing champagne line */
.flow-line-track {
  position: absolute;
  left: 6px;
  top: 26px;
  bottom: 26px;
  width: 1.5px;
  background-color: rgba(179, 148, 114, 0.24);
  overflow: hidden;
}

.flow-line-progress {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #FAEBDD 0%, var(--color-champagne) 100%);
  box-shadow: 0 0 8px rgba(179, 148, 114, 0.65);
  transform-origin: top center;
  transform: scaleY(1);
  transition: transform 950ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Technological traveling light packet along the completed champagne line */
.flow-line-progress::after {
  content: '';
  position: absolute;
  left: -1px;
  top: -28%;
  width: 3.5px;
  height: 28%;
  background: linear-gradient(180deg, rgba(250, 235, 221, 0) 0%, #FFFDF9 55%, var(--color-verde) 100%);
  box-shadow: 0 0 10px #FAEBDD;
  animation: flowPacketTravel 4.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 1.2s;
}

@keyframes flowPacketTravel {
  0% {
    top: -28%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  75% {
    top: 100%;
    opacity: 1;
  }
  85%, 100% {
    top: 105%;
    opacity: 0;
  }
}

.js-motion-ready .flow-diagram:not(.is-visible) .flow-line-progress {
  transform: scaleY(0);
}

.flow-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.flow-step {
  position: relative;
  display: flex;
  align-items: center;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-motion-ready .flow-diagram:not(.is-visible) .flow-step {
  opacity: 0;
  transform: translate3d(10px, 0, 0);
}

.js-motion-ready .flow-diagram.is-visible .flow-step:nth-child(1) {
  transition-delay: 60ms;
}
.js-motion-ready .flow-diagram.is-visible .flow-step:nth-child(2) {
  transition-delay: 280ms;
}
.js-motion-ready .flow-diagram.is-visible .flow-step:nth-child(3) {
  transition-delay: 500ms;
}
.js-motion-ready .flow-diagram.is-visible .flow-step:nth-child(4) {
  transition-delay: 720ms;
}

/* Glowing circular node on the vertical champagne line */
.flow-node-dot {
  position: absolute;
  left: -2.35rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFDF9 25%, #E8C79E 70%, var(--color-champagne) 100%);
  box-shadow: 0 0 10px rgba(250, 235, 221, 0.8), 0 0 18px rgba(179, 148, 114, 0.65);
  z-index: 2;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

/* Horizontal connector from node to card */
.flow-node-connector {
  position: absolute;
  left: calc(-2.35rem + 12px);
  width: calc(2.35rem - 12px);
  height: 1px;
  background-color: rgba(179, 148, 114, 0.65);
  transition: background-color 200ms ease;
}

.flow-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  border: 1px solid rgba(179, 148, 114, 0.5);
  background: linear-gradient(90deg, rgba(105, 68, 95, 0.25) 0%, rgba(41, 16, 34, 0.68) 100%);
  box-shadow: inset 0 1px 0 rgba(250, 235, 221, 0.08);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.flow-step:hover .flow-card {
  transform: translateX(4px);
  border-color: rgba(170, 136, 196, 0.78);
  box-shadow: 0 8px 24px rgba(18, 5, 15, 0.35), inset 0 1px 0 rgba(250, 235, 221, 0.14);
}

.flow-step:hover .flow-node-dot {
  transform: scale(1.22);
  box-shadow: 0 0 14px #FFFDF9, 0 0 24px var(--color-verde);
}

.flow-step:hover .flow-node-connector {
  background-color: var(--color-lavanda);
}

.flow-card-icon {
  width: 28px;
  height: 28px;
  color: var(--bg-marfim);
  flex-shrink: 0;
  transition: transform 200ms ease, color 200ms ease;
}

.flow-step:hover .flow-card-icon {
  transform: scale(1.06);
  color: var(--color-lavanda);
}

.flow-card-icon svg,
.flow-card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow-card-icon-img {
  opacity: 0.95;
  transition: transform 200ms ease, opacity 200ms ease;
}

.flow-step:hover .flow-card-icon-img {
  opacity: 1;
}

.flow-card-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--bg-marfim);
}

/* ==========================================================================
   IMPLEMENTAÇÃO E DÚVIDAS (PROCESS + FAQ — MARFIM)
   ========================================================================== */
.implementation-section {
  padding-block: clamp(3rem, 5.5vw, 4.5rem);
}

.implementation-header {
  margin-bottom: 1.35rem;
}

.process-band {
  border-top: 1px solid rgba(179, 148, 114, 0.58);
  border-bottom: 1px solid rgba(179, 148, 114, 0.58);
  padding-block: 1.5rem;
  margin-bottom: 2.35rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-step {
  padding-inline: 1.85rem;
  border-left: 1px solid rgba(179, 148, 114, 0.48);
}

.process-step:first-child {
  padding-left: 0;
  border-left: none;
}

.process-step:last-child {
  padding-right: 0;
}

.process-step-top {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
}

.process-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.4rem, 3.5vw, 3.1rem);
  line-height: 0.95;
  color: var(--color-champagne);
}

.process-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-ameixa);
}

.process-desc {
  font-size: 0.91rem;
  line-height: 1.5;
  color: rgba(41, 16, 34, 0.84);
}

/* FAQ Block */
.faq-block {
  max-width: 100%;
}

.faq-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--bg-ameixa);
  margin-bottom: 0.75rem;
}

.faq-list {
  border-top: 1px solid rgba(179, 148, 114, 0.45);
}

.faq-item {
  border-bottom: 1px solid rgba(179, 148, 114, 0.52);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.95rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-ameixa);
  transition: color 160ms ease;
}

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

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--bg-ameixa);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 200ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 180ms ease,
              visibility 200ms ease;
}

.faq-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-answer {
  padding-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(41, 16, 34, 0.85);
  max-width: 780px;
}

/* ==========================================================================
   ENCERRAMENTO E RODAPÉ (CLOSING CTA & FOOTER — AMEIXA)
   ========================================================================== */
.closing-section {
  padding-top: clamp(3.25rem, 6vw, 4.75rem);
  padding-bottom: 1.75rem;
}

.closing-arc-left {
  top: 0;
  left: 0;
  width: 340px;
  height: 220px;
}

.closing-arc-right {
  bottom: 0;
  right: 0;
  width: 560px;
  height: 240px;
}

.closing-cta-box {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.closing-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 3.7vw, 3.15rem);
  line-height: 1.1;
  color: var(--bg-marfim);
  margin-bottom: 0.85rem;
}

.closing-title em {
  font-style: italic;
}

.closing-text {
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(250, 235, 221, 0.84);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.site-footer {
  border-top: 1px solid rgba(179, 148, 114, 0.32);
  padding-top: 1.35rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-logo-svg {
  height: 28px;
  width: auto;
}

.footer-divider {
  width: 1px;
  height: 22px;
  background-color: rgba(179, 148, 114, 0.36);
}

.footer-domain {
  font-size: 0.95rem;
  color: rgba(250, 235, 221, 0.9);
  transition: color 160ms ease;
}

.footer-domain:hover,
.footer-domain:focus-visible {
  color: var(--color-verde);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 980px) {
  .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solutions-grid:not(.solutions-grid--2col) .solution-card:nth-child(3n + 1) {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(179, 148, 114, 0.5);
  }

  .solutions-grid .solution-card:nth-child(2n + 1) {
    padding-left: 0 !important;
    border-left: none !important;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .flow-copy {
    max-width: 580px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .process-step {
    padding-inline: 0;
    border-left: none;
    border-bottom: 1px solid rgba(179, 148, 114, 0.35);
    padding-bottom: 1.15rem;
  }

  .process-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: 0.7rem;
    gap: 0.55rem;
  }

  .brand-link {
    width: 100%;
    justify-content: center;
  }

  .brand-logo-svg {
    margin-inline: auto;
  }

  .header-divider {
    display: none;
  }

  .header-nav-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(0.35rem, 1.8vw, 0.75rem);
    border-top: 1px solid rgba(179, 148, 114, 0.18);
    padding-top: 0.55rem;
  }

  .nav-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(0.5rem, 2.4vw, 1.05rem);
  }

  .nav-link {
    font-size: clamp(0.75rem, 3.1vw, 0.86rem);
    white-space: nowrap;
  }

  .site-header .btn-primary--sm {
    font-size: clamp(0.72rem, 2.9vw, 0.82rem);
    padding: 0.48rem clamp(0.65rem, 2.4vw, 0.95rem);
    gap: 0.25rem;
    flex-shrink: 0;
  }

  @media (max-width: 410px) {
    .site-header .btn-primary--sm .btn-arrow {
      display: none;
    }
  }

  /* Grade 3x2 no mobile para exibir todas as 6 opções visíveis simultaneamente sem quebrar o layout */
  .tabs-scroll-container {
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .solutions-tablist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  .solution-tab {
    padding: 0.72rem 0.35rem;
    font-size: clamp(0.8rem, 3.4vw, 0.92rem);
    border-right: 1px solid rgba(179, 148, 114, 0.45);
  }

  .solution-tab:nth-of-type(3n) {
    border-right: none;
  }

  .solution-tab:nth-of-type(-n + 3) {
    border-bottom: 1px solid rgba(179, 148, 114, 0.45);
  }

  .solutions-grid,
  .solutions-grid--2col {
    grid-template-columns: 1fr;
    row-gap: 1.15rem;
  }

  .solution-card {
    padding-inline: 0 !important;
    border-left: none !important;
    border-bottom: 1px solid rgba(179, 148, 114, 0.38) !important;
    padding-bottom: 1.15rem !important;
  }

  .solution-card:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .ambient-glow,
  .arc-reflection,
  .flow-line-progress::after {
    animation: none !important;
    opacity: 0.25;
  }

  .js-motion-ready .hero-entry,
  .js-motion-ready .reveal-item,
  .js-motion-ready .reveal-divider,
  .js-motion-ready .flow-diagram:not(.is-visible) .flow-step,
  .js-motion-ready .flow-diagram:not(.is-visible) .flow-line-progress {
    opacity: 1 !important;
    transform: none !important;
  }

  .controle-hero__fundo img {
    transform: none !important;
  }
}
