/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #1c1c1c;
  --color-text: #ffffff;
  --color-accent: #4ade80;
  /* neon green for the + in logo */
  --color-muted: rgba(255, 255, 255, 0.45);
  --color-line: rgba(255, 255, 255, 0.20);

  --font: 'Inter', sans-serif;

  --nav-height: 72px;
  --bottom-height: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
  height: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 clamp(1.5rem, 8vw, 15rem) 4rem;
}

/* ── NAV ── */
.hero__nav {
  position: absolute;
  top: 3.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 10;
}

.hero__logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0;
  transition: opacity 0.2s ease;
}

.hero__logo:hover {
  opacity: 0.75;
}

.hero__logo-img {
  height: 80px;
  /* increased logo size */
  width: auto;
  object-fit: contain;
}

/* ── HERO CONTENT (title area) ── */
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 3rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ── INNER: text left + anim right ── */
.hero__content-inner {
  display: flex;
  align-items: flex-end;
  gap: 4rem;
  width: 100%;
}

.hero__text {
  flex: 1;
  min-width: 0;
}

/* ── ANIMATION PANEL ── */
.hero__anim {
  position: relative;
  top: -100px;
  flex: 0 0 660px;
  /* flex: 0 0 540px; */
  width: 660px;
  /* width: 540px; */
  height: 660px;
  /* height: 540px; */
  display: flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  margin-left: -8rem;
  /* margin-left: -3rem; */
  margin-top: 2rem;
  /* margin-top: -3rem; */
  margin-bottom: -6rem;

  /* Entrance animation */
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s var(--ease-out) 0.3s, transform 1s var(--ease-out) 0.3s;
}

.hero__anim.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.diagram-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#diagram-canvas {
  display: block;
  width: 100%;
  max-width: 660px;
  /* max-width: 540px; */
  height: auto;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);

  /* Animate in */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.hero__title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: var(--color-muted);
  margin-top: 1.5rem;
  max-width: 550px;
  line-height: 1.5;

  /* Animate in */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out) 0.15s, transform 0.9s var(--ease-out) 0.15s;
}

.hero__subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BOTTOM BAR ── */
.hero__bottom {
  height: var(--bottom-height);
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* CTA shared */
.hero__cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease, gap 0.25s ease;

  /* Animate in */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease-out) 0.35s,
    transform 0.7s var(--ease-out) 0.35s,
    color 0.2s ease;
}

.hero__cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__cta:hover {
  color: var(--color-muted);
}

.hero__cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.hero__cta--left:hover .hero__cta-arrow {
  transform: translateY(3px);
}

.hero__cta--right:hover .hero__cta-arrow {
  transform: translateX(3px);
}

/* ── HERO RESPONSIVE ── */
@media (max-width: 900px) {
  .hero__content-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .hero__anim {
    position: static;
    top: auto;
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
    transform: translateY(20px);
    align-self: center;
  }

  .hero__anim.is-visible {
    transform: translateY(0);
  }

  .hero__bottom {
    display: none;
  }
}

/* Line and See batteries removed  */

/* ═══════════════════════════════════════════════
   WHAT WE DO (BLOCO 2)
   ═══════════════════════════════════════════════ */
.what-we-do {
  padding: 8rem clamp(1.5rem, 8vw, 15rem);
  background-color: var(--color-bg);
}

.what-we-do__container {
  max-width: 1400px;
  margin: 0 auto;
}

.what-we-do__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6rem;
  gap: 2rem;
}

.what-we-do__header-left {
  flex: 1;
}

.what-we-do__subtitle {
  font-size: 0.8rem;
  color: #ccc;
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.what-we-do__title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.what-we-do__header-right {
  flex: 0 1 450px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.what-we-do__crosshair {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.what-we-do__desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #dddddd;
}

/* ── ACCORDION ── */
.accordion {
  display: flex;
  height: 500px;
  width: 100%;
}

.acc-item {
  position: relative;
  display: flex;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  flex: 0 0 120px;
  /* Closed state */
}

.acc-item.is-active {
  flex: 1 1 0%;
  cursor: default;
}

.acc-line {
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 2rem;
  flex-shrink: 0;
}

/* Closed Content */
.acc-closed {
  position: absolute;
  top: 0;
  left: 3rem;
  /* After line */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.4s ease;
  width: 60px;
}

.acc-item.is-active .acc-closed {
  opacity: 0;
  pointer-events: none;
}

.acc-num {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.acc-title-vert {
  writing-mode: vertical-rl;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #ccc;
}

/* Open Content */
.acc-open {
  display: flex;
  gap: 3rem;
  min-width: 800px;
  /* Force width so content doesn't reflow during flex animation */
  padding-right: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.acc-item.is-active .acc-open {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.2s;
  /* Fade in after sliding starts */
}

/* Glowing Image Mock */
.acc-image {
  flex-shrink: 0;
  width: 350px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-orb-container {
  width: 300px;
  height: 300px;
  perspective: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-anim {
  display: none;
}

.ring {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateX(65deg);
  background: linear-gradient(135deg, #151515, #050505);
}

.ring-outer {
  width: 280px;
  height: 280px;
}

.ring-inner {
  width: 150px;
  height: 150px;
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.8), 0 10px 20px rgba(0, 0, 0, 0.8);
}

.orb {
  width: 24px;
  height: 24px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 20px 5px var(--color-accent), 0 0 50px 15px rgba(74, 222, 128, 0.4);
  transform: rotateX(-65deg);
  /* Face forward */
}

/* Open Text Content */
.acc-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 450px;
}

.acc-text .acc-num {
  margin-bottom: 0.5rem;
}

.acc-title {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.acc-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cccccc;
}

/* ═══════════════════════════════════════════════
   INDUSTRIES (BLOCO 3)
   ═══════════════════════════════════════════════ */
.industries {
  padding: 8rem clamp(1.5rem, 8vw, 15rem);
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
  /* For the glow */
}

/* Green top glow */
.industries::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(74, 222, 128, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.industries__container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.industries__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8rem;
  gap: 4rem;
}

.industries__top-left {
  flex: 1;
}

.industries__subtitle {
  font-size: 0.8rem;
  color: #ccc;
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.industries__title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.industries__top-right {
  flex: 0 1 500px;
  padding-bottom: 0.5rem;
}

.industries__top-right p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 1.5rem;
}

.industries__top-right p:last-child {
  margin-bottom: 0;
}

/* Accordion Layout */
.industries__accordion {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
}

.ind-item {
  position: relative;
  width: 100%;
}

.ind-item__header {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.ind-item:hover .ind-item__header {
  opacity: 1;
}

.ind-item__title {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.ind-item__line {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  width: 35%;
  /* Closed width */
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 1;
}

.ind-item:hover .ind-item__line {
  width: 100%;
  /* Open width */
}

.ind-item__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ind-item:hover .ind-item__content {
  grid-template-rows: 1fr;
}

.ind-item__content-inner {
  min-height: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, padding 0.6s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.ind-item:hover .ind-item__content-inner {
  opacity: 1;
  pointer-events: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
  transition-delay: 0.1s;
}

/* Left List */
.ind-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 0 0 35%;
  transform: translateX(-30px);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 5;
}

.ind-item:hover .ind-card__list {
  transform: translateX(0);
}

.ind-card__list li {
  font-size: 1rem;
  font-weight: 300;
  color: #eee;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ind-card__dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  flex-shrink: 0;
}

/* Right Image */
.ind-card__image {
  flex: 0 0 55%;
  height: 300px;
  border-radius: 4px;
  margin-top: 0;
  /* Removed negative margin to prevent overlapping the title/text */
  position: relative;
  z-index: 2;
  transform: translateX(30px);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ind-item:hover .ind-card__image {
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════
   METRICS SHOWCASE (BLOCO 4)
   ═══════════════════════════════════════════════ */
.metrics-showcase {
  display: flex;
  gap: 4rem;
  margin-top: 2rem;
  align-items: center;
}

/* Left: Big Display */
.metrics-display {
  flex: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 4rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Animated Grid Texture to justify the space */
.metrics-display::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: rotate(-15deg);
  opacity: 0.5;
  animation: panGrid 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes panGrid {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 40px 40px;
  }
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -60%) scale(1.15);
  }
}

.metrics-display__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  /* Smoothly move to new positions */
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.metrics-display__glow.pulse {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(1.3);
}

.metrics-display__content {
  position: relative;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.metrics-display__content.fade-out {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  filter: blur(8px);
}

.metrics-display__val {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
  font-variant-numeric: tabular-nums;
  min-height: 60px;
}

.metrics-display__desc {
  font-size: 1.2rem;
  color: var(--color-muted);
  font-weight: 400;
  min-height: 1.5em;
}

/* Cursor typewriter */
.metrics-display__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-accent);
  margin-left: 2px;
  vertical-align: -0.1em;
  animation: metrics-blink 0.8s steps(1) infinite;
}

@keyframes metrics-blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* Scan line animation */
.metrics-display__scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(74, 222, 128, 0.15);
  pointer-events: none;
  z-index: 5;
  animation: anim-scanline 0.9s linear forwards;
}

@keyframes anim-scanline {
  from {
    top: 0%;
  }

  to {
    top: 100%;
  }
}

/* Particles Canvas */
.metrics-display__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Right: Tabs */
.metrics-tabs {
  flex: 0 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metrics-tab {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.metrics-tab:hover {
  opacity: 0.8;
  transform: translateX(10px);
}

.metrics-tab.is-active {
  opacity: 1;
  transform: translateX(15px);
}

.metrics-tab__line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.metrics-tab__line-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--color-accent);
}

.metrics-tab span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════
   PASSOS / TIMELINE (BLOCO 5)
   ═══════════════════════════════════════════════ */
/* ── PROCESS SECTION (BLOCO 5 - REFERENCE) ── */
.processo-section {
  position: relative;
  width: 100%;
  padding: 8rem clamp(1.5rem, 8vw, 15rem);
  background-color: var(--color-bg);
}

.processo-inner {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 0;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

.processo-left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 6vw;
}

.label-processo {
  font-family: var(--font);
  font-size: 0.8rem;
  color: #ccc;
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.label-processo span {
  color: var(--color-accent);
  margin-right: 4px;
}

.titulo-processo {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.titulo-processo .destaque {
  color: var(--color-accent);
}

.linha-vertical-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.linha-vertical-track {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
}

.linha-vertical-fill {
  position: sticky;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

.linha-vertical-fill::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--color-accent) 20%, var(--color-accent) 80%, transparent 100%);
  transform: translateY(-100%);
  transition: transform 0.1s linear;
}

.processo-right {
  padding-left: 5vw;
  padding-top: 20vh;
  padding-bottom: 20vh;
}

.passo {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 0;
}

.passo-numero {
  font-family: 'Titillium Web', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  transition: all 0.6s var(--ease-out);
}

.passo-linha {
  width: 0;
  height: 1px;
  background: var(--color-accent);
  margin-bottom: 32px;
  transition: width 0.5s var(--ease-out) 0.2s;
}

.passo-titulo {
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  transition: color 0.5s ease 0.35s;
}

.passo-desc {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 300;
  color: #333;
  line-height: 1.7;
  max-width: 420px;
  transition: color 0.5s ease 0.45s;
}

.passo.ativo .passo-numero {
  color: #ffffff;
  font-size: 4rem;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.passo.ativo .passo-linha {
  width: 80px;
}

.passo.ativo .passo-titulo {
  color: #ffffff;
}

.passo.ativo .passo-desc {
  color: var(--color-muted);
}

.passo.passado .passo-numero {
  color: #333;
}

.passo.passado .passo-linha {
  width: 48px;
  background: #2a2a2a;
}

.passo.passado .passo-titulo {
  color: #2a2a2a;
}

.passo.passado .passo-desc {
  color: #2a2a2a;
}

@media (max-width: 768px) {

  /* Logo Mobile Layout */
  .hero__nav {
    position: relative;
    top: 0;
    padding: 2rem 0 0;
    margin: 0;
  }

  .hero__logo-img {
    height: 50px;
  }

  .hero__content {
    padding-top: 3rem;
  }

  .hero__content-inner {
    flex-direction: column;
  }

  /* Bloco 2 - Accordion Mobile Layout */
  .what-we-do {
    padding: 4rem 1.5rem;
  }

  .what-we-do__header {
    flex-direction: column;
    margin-bottom: 3rem;
  }

  .what-we-do__header-right {
    flex: 1;
  }

  /* Bloco 3 - Soluções header mobile */
  .industries {
    padding: 5rem 1.5rem;
  }

  .industries__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 4rem;
  }

  .industries__top-left {
    flex: none;
    width: 100%;
  }

  .industries__top-right {
    flex: none;
    width: 100%;
    padding-bottom: 0;
  }

  .industries__top-right p {
    font-size: 0.9rem;
  }

  .accordion {
    height: auto;
    flex-direction: column;
    gap: 3rem;
  }

  .acc-item {
    height: auto;
    flex: none !important;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* Mobile entrance animation */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .acc-item.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .acc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .acc-line,
  .acc-closed {
    display: none;
  }

  .acc-open {
    opacity: 1 !important;
    pointer-events: auto !important;
    min-width: 0;
    padding-right: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num image"
      "title title"
      "desc desc";
    gap: 0;
    align-items: end;
  }

  .acc-text {
    display: contents;
  }

  .acc-text .acc-num {
    grid-area: num;
    font-size: 5.5rem;
    font-weight: 600;
    line-height: 0.85;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .acc-text .acc-title {
    grid-area: title;
    font-size: 1.8rem;
    margin-bottom: 0;
    margin-top: 1rem;
  }

  .acc-text .acc-desc {
    grid-area: desc;
  }

  .acc-image {
    grid-area: image;
    width: 100%;
    height: 200px;
    margin: 0;
    padding: 0;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
  }

  .glow-orb-container {
    transform: scale(0.7) translateY(40px);
    transform-origin: center center;
  }

  .acc-item:nth-child(1) .glow-orb-container {
    transform: scale(0.6) translateY(40px);
  }

  .desktop-anim {
    display: none !important;
  }

  .mobile-anim {
    display: flex !important;
  }

  /* Item 3 Mobile Layout */
  .acc-item:nth-child(3) .acc-open {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "title"
      "image"
      "desc";
    align-items: start;
    gap: 0.5rem 0;
  }

  .acc-item:nth-child(3) .acc-text .acc-title {
    margin-top: 0;
  }

  .acc-item:nth-child(3) .acc-image {
    height: 150px;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .acc-item:nth-child(3) .glow-orb-container.mobile-anim {
    transform: scale(0.9);
    transform-origin: center center;
  }

  /* Bloco 4 - Metrics Mobile Layout */
  .metrics-showcase {
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .metrics-display {
    flex: none;
    width: 100%;
    min-height: 260px;
    padding: 2.5rem 2rem;
    order: 0;
  }

  .metrics-display__val {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .metrics-tabs {
    flex: none;
    width: 100%;
    order: 1;
    flex-direction: column;
    gap: 0;
  }

  .metrics-tab {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: none !important;
  }

  .metrics-tab:hover {
    transform: none !important;
    opacity: 0.8;
  }

  .metrics-tab.is-active {
    transform: none !important;
    opacity: 1;
  }

  .metrics-tab span {
    font-size: 1rem;
  }

  /* Bloco 5 - Timeline */
  .processo-inner {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
  }

  .processo-left {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative;
    height: auto;
    padding: 60px 0 40px;
  }

  /* Restaura a linha vertical na coluna esquerda */
  .linha-vertical-wrap {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    position: relative;
    justify-content: center;
  }

  .linha-vertical-fill {
    left: auto;
    transform: none;
  }

  .processo-right {
    grid-column: 2;
    grid-row: 2;
    padding-left: 1.5rem;
    padding-top: 0;
  }

  .passo {
    min-height: auto;
    padding: 40px 0;
  }
}

@media (max-width: 640px) {
  .hero__bottom {
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 2rem;
    gap: 1rem;
  }

  .hero__cta--right {
    margin-left: auto;
  }
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  animation: revealFallback 1s cubic-bezier(0.16, 1, 0.3, 1) 4s forwards;
}

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

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.footer {
  padding: 6rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, var(--color-bg) 0%, #151515 100%);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Canvas for the circuit grid */
.footer__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
  animation: footerGlow 4s ease-in-out infinite;
}

@keyframes footerGlow {

  0%,
  100% {
    opacity: 0.1;
    width: 60%;
  }

  50% {
    opacity: 0.4;
    width: 100%;
  }
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer:hover .footer__copyright {
  color: var(--color-text);
}

.footer__logo-img {
  height: 55px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.2s ease;
  animation: float 6s ease-in-out infinite;
  display: block;
}

.footer__logo-img.is-glitching {
  animation: anim-logo-glitch 0.45s steps(1) forwards;
}

@keyframes anim-logo-glitch {
  0% {
    filter: none;
    transform: translateX(0);
  }

  15% {
    filter: hue-rotate(90deg) saturate(2);
    transform: translateX(-2px);
  }

  30% {
    filter: hue-rotate(200deg) saturate(3);
    transform: translateX(2px);
  }

  50% {
    filter: hue-rotate(0deg) brightness(2);
    transform: translateX(-1px);
  }

  65% {
    filter: hue-rotate(320deg) saturate(2);
    transform: translateX(1px);
  }

  80% {
    filter: none;
    transform: translateX(0);
  }

  100% {
    filter: none;
    transform: translateX(0);
  }
}

.footer__logo-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer__copyright {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

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

@keyframes float {

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

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@media (max-width: 640px) {
  .footer__container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}