/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --mint:    #6EE8D4;
  --lime:    #A8F590;
  --dark:    #191919;
  --neon:    #4DF5A0;
  --orange:  #E07828;
  --cream:   #E8E49A;
  --forest:  #1A4D38;
  --offwhite:#F4F4EE;
  --muted:   rgba(244,244,238,0.5);
  --grad:    linear-gradient(148deg, #6EE8D4 0%, #A8F590 100%);
  --sans:    'Public Sans', system-ui, sans-serif;
  --serif:   'Fraunces', Georgia, serif;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--offwhite);
  overflow-x: clip;
}
img { display: block; max-width: 100%; }

/* ─── Grain overlay ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.028;
  mix-blend-mode: overlay;
}

/* ─── Label ──────────────────────────────────────────────── */
.label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.45;
  display: block;
  margin-bottom: 20px;
}

/* ─── Reveal animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.up { transform: translateY(40px); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.40s; }

/* ─── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
  display: flex;
  align-items: center;
  padding: 48px 6% 22px;
}


/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: radial-gradient(ellipse 90% 90% at var(--hero-cx, 50%) var(--hero-cy, 50%), #A8F590 0%, #6EE8D4 100%);
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  overflow: hidden;
  padding: 0 6%;
}
.hero-spacer {
  height: 100vh;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  grid-row: 2;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 24px 0 48px;
}
.hero-logo {
  display: block;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1),
              transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.hero-logo.in {
  opacity: 1;
  transform: none;
}
.hero-logo-svg {
  width: clamp(255px, 47vw, 646px);
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero-headline {
  font-family: var(--serif);
  font-style: normal;
  font-optical-sizing: auto;
  font-size: clamp(20px, 5.5vw, 40px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.2;
  text-align: center;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s 0.7s ease, transform 0.7s 0.7s ease;
}
.hero-headline.in { opacity: 0.4; transform: none; }

/* ─── Shared sections ────────────────────────────────────── */
.sec {
  padding: 112px 6%;
  position: relative;
  z-index: 1;
}
.sec-dark  { background: var(--dark); color: var(--offwhite); }
.sec-light { background: var(--grad); color: var(--dark); }
.sec-forest{ background: #0C2119; color: var(--offwhite); }
/* Variações de ritmo — evita o feel de slides uniformes */
.sec.tight  { padding-block: 72px; }
.sec.loose  { padding-block: 148px; }
.sec.divider-top { border-top: 1px solid rgba(244,244,238,0.08); }
.inner {
  max-width: 1160px;
  margin: 0 auto;
}
.sec-title {
  font-family: var(--sans);
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}
.sec-title.neon { color: var(--neon); }
.sec-title.dark { color: var(--dark); }
.sec-body {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.72;
  max-width: 760px;
}

/* ─── CTA button ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 14px 32px;
  border: none;
  background: #191919;
  color: #fff;
  cursor: pointer;
  border-radius: 400px;
  transition: background 0.18s;
}
.btn:hover { background: #1c1c1c; }
.btn-onlight { background: #191919; color: #fff; }
.btn-onneon  { background: #191919; color: #fff; }

/* ─── MARQUEE ───────────────────────────────────────────── */
.marquee-wrapper {
  background: var(--dark);
  position: relative;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(77,245,160,0.12);
  border-bottom: 1px solid rgba(77,245,160,0.12);
  padding-block: 18px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marquee 60s linear infinite;
}
.matom {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding-inline: 36px;
  vertical-align: middle;
}
.matom-pills {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mpill {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--forest);
  border-radius: 20px;
  padding: 4px 8px;
}
.mpill.solo {
  padding: 4px 6px;
}
.mnode {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
}
.mnode.h {
  background: var(--cream);
  color: var(--dark);
}
.mnode.m {
  background: var(--neon);
  color: var(--dark);
}
.matom-label {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,244,238,0.4);
  white-space: nowrap;
}
.msep {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: rgba(77,245,160,0.2);
  vertical-align: middle;
  flex-shrink: 0;
}

/* ─── PONTO DE PARTIDA ───────────────────────────────────── */
.partida-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
}
@media(max-width:720px) {
  .partida-layout { grid-template-columns: 1fr; }
  .partida-spacer  { display: none; }
  .sec.loose { padding-block: 64px; }
}

.partida-content .sec-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
}

.partida-timeline {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.partida-step {
  padding-bottom: 56px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.partida-step:last-child { padding-bottom: 0; }
.partida-step.in { opacity: 1; transform: none; }

.problema-text {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--muted);
}
.problema-q {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  margin-top: 16px;
  color: var(--offwhite);
}

/* ─── ABORDAGEM phase bar ────────────────────────────────── */
.phase-wrap {
  margin-top: 112px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.phase-inner { width: 100%; }
.phase-stages {
  display: flex;
  margin-bottom: 14px;
}
.phase-stage {
  flex: 1;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(244,244,238,0.1);
  position: relative;
}
.phase-stage::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(244,244,238,0.25);
}
.phase-track {
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--neon) 0%, #30c87a 35%, #7a6020 65%, #6b1010 100%);
  position: relative;
}
.phase-movement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-top: 28px;
}
.pm-left, .pm-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pm-label.neon { color: var(--neon); }
.pm-label.red  { color: #d45050; justify-content: flex-end; }
.pm-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.pm-right .pm-desc { text-align: right; }

@media(max-width:720px) {
  .phase-stages { display: none; }
  .phase-movement-grid {
    grid-template-columns: 1fr;
    gap: 24px 0;
  }
  .pm-label.red { justify-content: flex-start; }
  .pm-right .pm-desc { text-align: left; }
}

/* ─── Robots panorama (legacy) ───────────────────────────── */
.robots-strip {
  width: calc(100% + 12%);
  margin-left: -6%;
  margin-top: 56px;
  overflow: hidden;
  max-height: 200px;
}
.robots-strip img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

/* ─── ESTEIRAS AGÊNTICAS — scroll reveal ─────────────────── */
.esteiras-scroll {
  position: relative;
  z-index: 1;
  min-height: 220vh;
  background: linear-gradient(180deg, #6EE8D4 0%, #A8F590 100%);
}
.esteiras-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 40px;
  overflow: hidden;
}
.esteiras-text {
  font-size: 64px;
  font-weight: 300;
  line-height: 1.2;
  text-align: left;
  color: var(--dark);
  max-width: 55%;
  position: relative;
  z-index: 1;
}
.w {
  display: inline;
  opacity: 0.12;
}
.esteiras-infographic {
  position: absolute;
  top: 40px;
  right: 40px;
  width: clamp(260px, 38vw, 520px);
  opacity: 0.6;
}
.esteiras-infographic svg {
  width: 100%;
  height: auto;
}
/* Per-node reveal */
.node {
  opacity: 0;
  transition: opacity 0.2s ease;
}
@keyframes spin-once {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
.agent-arrow-img {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.3s ease;
}
.agent-group.active .agent-arrow-img {
  opacity: 1;
  animation: spin-once 1.2s ease-out 0.3s 1 both;
}
/* esteiras-strip — comentado no HTML, regras preservadas para reversão */
.esteiras-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.esteiras-strip.visible { opacity: 1; }
.esteiras-strip img { width: 100%; height: 180px; object-fit: cover; }
@media(max-width:900px){
  .esteiras-sticky { padding: 48px 6%; }
  .esteiras-text { max-width: 100%; font-size: 48px; }
  .esteiras-infographic { display: none; }
}

/* ─── Trio (Características) ─────────────────────────────── */
.hybrid-block {
  background: linear-gradient(180deg, #A8F590 0%, #6EE8D4 100%);
  padding: clamp(48px,7vh,88px) clamp(40px,6%,120px) clamp(64px,9vh,112px);
  position: relative;
  z-index: 1;
  color: #0A0A0A;
}
.trio-header {
  max-width: 1080px;
  margin: 0 auto clamp(40px, 6vh, 72px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.trio-header.in { opacity: 1; transform: none; }
.trio-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.55);
}
.trio-section-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  color: #0A0A0A;
  max-width: 16ch;
}
.trio-section-title em {
  font-style: italic;
  font-weight: 400;
}
.trio {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.trio::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(10,10,10,0.18);
  z-index: 0;
}
.trio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 1 320px;
  max-width: 320px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.trio-card.in { opacity: 1; transform: none; }
.trio-num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(10,10,10,0.7);
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}
.trio-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  flex-shrink: 0;
  align-self: flex-start;
}
.trio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.trio-text { padding-top: 24px; max-width: 320px; }
.trio-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  color: #0A0A0A;
  margin-bottom: 12px;
}
.trio-body {
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(10,10,10,0.65);
}
.trio-body + .trio-body { margin-top: 10px; }
.trio-body strong { color: #0A0A0A; font-weight: 600; }
@media(max-width:768px){
  .trio { flex-direction: column; gap: 56px; }
  .trio::before { display: none; }
  .trio-card { flex: 1 1 auto; max-width: 100%; }
  .trio-img { aspect-ratio: 4 / 3; max-width: 100%; }
  .trio-text { max-width: 100%; }
  .trio-num { margin-bottom: 16px; }
  .trio-section-title { font-size: 38px; }
  .trio-title { font-size: 22px; }
  .trio-body { font-size: 15px; }
}

/* ─── Split sections ─────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

@media(max-width:720px){
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.img-left .split-img  { order: -1; }
}
.split-img img {
  width: 100%;
  height: auto;
  display: block;
}
/* Heart: keep the existing neon treatment but enhance position */
.split-heart {
  display: flex;
  justify-content: center;
}
.split-heart img {
  max-width: 380px;
  width: 100%;
}
.split-text-title {
  font-family: var(--sans);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
}
.split-text-body {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.72;
}
.split-text-body + .split-text-body { margin-top: 18px; }
.split-text-big {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 900;
  line-height: 1.2;
}

/* ─── ÁTOMO + LOOPS STICKY ───────────────────────────────── */
.al-sticky {
  position: relative;
  background: var(--dark);
  height: 280vh;
  z-index: 1;
}
.al-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.al-canvas {
  --p: 0;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 82px) 4% clamp(48px, 7vh, 82px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.4vh, 8px);
  height: 100%;
}
.al-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.45;
  flex-shrink: 0;
  margin-bottom: clamp(8px, 1.2vh, 14px);
}

/* Titles: atom and loops share same slot, cross-fade */
.al-titles {
  position: relative;
  width: 100%;
  text-align: center;
  min-height: clamp(44px, 5vh, 60px);
  flex-shrink: 0;
}
.al-title-atom,
.al-title-loops {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  text-align: center;
  line-height: 1;
}
.al-title-atom {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  color: var(--offwhite);
  opacity: calc(1 - clamp(0, (var(--p) - 0.18) / 0.10, 1));
}
.al-title-atom em {
  font-style: italic;
  font-weight: 400;
  color: var(--neon);
}
.al-title-loops {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  color: var(--offwhite);
  opacity: clamp(0, (var(--p) - 0.46) / 0.10, 1);
}

/* Stage middle: side notes overlay + diagram (atom and row stacked) */
.al-stage-mid {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  max-height: clamp(300px, 48vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.al-side-note {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: rgba(244, 244, 238, 0.6);
  font-weight: 500;
  width: clamp(140px, 14vw, 200px);
  z-index: 2;
  opacity: calc(1 - clamp(0, (var(--p) - 0.15) / 0.10, 1));
}
.al-side-left  { right: calc(50% + clamp(180px, 22vw, 300px)); text-align: right; }
.al-side-right { left:  calc(50% + clamp(180px, 22vw, 300px)); text-align: left; }

.al-diagram {
  position: relative;
  width: 100%;
  max-width: clamp(800px, 96vw, 1280px);
  display: grid;
  grid-template-areas: 'stack';
  align-items: center;
  justify-items: center;
}
.al-atom,
.al-row {
  grid-area: stack;
  width: 100%;
  height: auto;
  display: block;
}
.al-atom {
  max-width: clamp(420px, 50vw, 680px);
  transform:
    translateX(calc(22% * clamp(0, (var(--p) - 0.18) / 0.30, 1)))
    scale(calc(1 - 0.79 * clamp(0, (var(--p) - 0.18) / 0.30, 1)));
  transform-origin: center center;
  opacity: calc(1 - clamp(0, (var(--p) - 0.46) / 0.14, 1));
  transition: none;
  z-index: 1;
}
.al-atom-detail {
  opacity: calc(1 - clamp(0, (var(--p) - 0.18) / 0.10, 1));
}
.al-row {
  max-width: clamp(800px, 96vw, 1280px);
  opacity: clamp(0, (var(--p) - 0.46) / 0.10, 1);
}
/* Central pod: appears only after atom has faded out */
.al-row .al-pod[data-central] {
  opacity: clamp(0, (var(--p) - 0.54) / 0.08, 1);
}
/* Sibling pods: fade in slightly later */
.al-row .al-pod:not([data-central]) {
  opacity: clamp(0, (var(--p) - 0.58) / 0.16, 1);
  transition: none;
}
/* Pod labels — slight separate fade so the type emerges last */
.al-pod-label {
  opacity: clamp(0, (var(--p) - 0.66) / 0.14, 1);
}
.al-row .al-pod[data-central] .al-pod-label {
  opacity: 1;
}

/* Bottom zone: caption (atom) and paragraphs (loops) share the slot */
.al-bottom {
  position: relative;
  width: 100%;
  max-width: clamp(800px, 96vw, 1280px);
  flex-shrink: 0;
  min-height: clamp(80px, 12vh, 130px);
}
.al-caption-atom {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 880px;
  text-align: center;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  opacity: calc(1 - clamp(0, (var(--p) - 0.16) / 0.12, 1));
}
.al-caption-atom strong { color: var(--offwhite); font-weight: 700; }

.al-paragraphs {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 244, 238, 0.1);
  opacity: clamp(0, (var(--p) - 0.68) / 0.08, 1);
  transform: translateY(calc(12px * (1 - clamp(0, (var(--p) - 0.68) / 0.08, 1))));
}
.al-paragraph {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(244, 244, 238, 0.52);
  padding: 4px 18px;
}
.al-paragraph:first-child { padding-left: 0; }
.al-paragraph:last-child { padding-right: 0; }

/* Mobile: drop sticky, show atom + loops stacked */
@media (max-width: 720px) {
  .al-sticky { height: auto; }
  .al-stage {
    position: static;
    height: auto;
    overflow: visible;
    padding: 80px 0;
  }
  .al-canvas {
    height: auto;
    --p: 1;
    gap: 32px;
  }
  .al-titles { min-height: 0; padding-top: 36px; }
  /* átomo oculto no mobile por ora — remover quando tratar o sticky */
  .al-title-atom { display: none; }
  .al-atom { display: none; }
  .al-caption-atom { display: none; }
  .al-title-loops { position: static; opacity: 1 !important; }
  .al-sub-loops { position: static; margin-top: 12px; }
  .al-stage-mid {
    max-height: none;
    flex: 0 0 auto;
  }
  .al-side-note { display: none; }
  .al-row { position: static; max-width: 100%; opacity: 1 !important; }
  .al-diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .al-diagram .al-row { min-width: 720px; }
  .al-bottom { min-height: 0; }
  .al-paragraphs {
    position: static;
    grid-template-columns: 1fr;
    gap: 16px;
    transform: none !important;
    opacity: 1 !important;
  }
  .al-paragraph {
    border-left: none;
    border-top: 1px solid rgba(244, 244, 238, 0.08);
    padding: 16px 0 0 0;
  }
  .al-paragraph:first-child { border-top: none; padding-top: 0; }
}

/* Reduced motion: collapse to final state */
@media (prefers-reduced-motion: reduce) {
  .al-canvas { --p: 1 !important; }
  .al-atom { display: none; }
  .al-side-note { display: none; }
  .al-caption-atom { display: none; }
}

/* ─── VANTAGENS ──────────────────────────────────────────── */
.vantagens-section {
  background: var(--dark);
  padding: 120px 6%;
  position: relative;
  z-index: 1;
}
.vantagens-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.vantagens-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 32px;
}
.vantagens-header .sec-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0;
}
.vantagens-count {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: rgba(244,244,238,0.35);
  padding-bottom: 8px;
  white-space: nowrap;
}
.vantagens-count b {
  color: var(--offwhite);
  font-weight: 700;
}
.vantagens-divider {
  height: 1px;
  background: rgba(244,244,238,0.1);
}
.vantagem-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 48px 0;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.vantagem-row.in {
  opacity: 1;
  transform: none;
}
.vantagem-ghost {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 300;
  font-style: italic;
  color: rgba(244,244,238,0.13);
  line-height: 1;
  user-select: none;
}
.vantagem-heading {
  font-family: var(--sans);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 700;
  color: var(--offwhite);
  line-height: 1.3;
  margin-bottom: 10px;
}
.vantagem-body {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
}
.vantagem-body strong { color: var(--offwhite); }
.vantagem-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: rgba(244,244,238,0.35);
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  padding-left: 20px;
}
@media(max-width:720px) {
  .vantagens-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 24px;
  }
  .vantagem-row {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  .vantagem-label {
    grid-column: 2;
    text-align: left;
    padding-left: 0;
    margin-top: 4px;
  }
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--grad);
  padding: 0 0 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  height: 80vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.footer-robots {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
.footer-content {
  text-align: center;
  padding: 0 6%;
}
.footer-logo {
  width: clamp(150px, 22vw, 300px);
  height: auto;
  display: block;
  margin: 0 auto 24px;
}
.footer-tag {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  color: rgba(8,8,8,0.55);
  margin-bottom: 44px;
}
.footer-legal {
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(8,8,8,0.35);
}

/* ─── MODAL ──────────────────────────────────────────────── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay.open { display: flex; }
.modal {
  background: var(--dark);
  border: 1px solid rgba(77,245,160,0.18);
  width: 100%;
  max-width: 440px;
  padding: 52px 44px 44px;
  position: relative;
  animation: modal-in 0.35s cubic-bezier(0.16,1,0.3,1);
}
@keyframes modal-in {
  from { opacity:0; transform:translateY(28px) scale(0.96); }
  to   { opacity:1; transform:none; }
}
.modal-x {
  position: absolute;
  top: 18px; right: 20px;
  background: none; border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.modal-x:hover { color: var(--offwhite); }
.modal-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 900;
  color: var(--offwhite);
  margin-bottom: 6px;
}
.modal-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  background: rgba(244,244,238,0.04);
  border: 1px solid rgba(244,244,238,0.12);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--offwhite);
  outline: none;
  transition: border-color 0.15s;
  border-radius: 1px;
}
.field input:focus { border-color: var(--neon); }
.field input::placeholder { color: rgba(244,244,238,0.2); }
.form-send {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  background: var(--neon);
  color: var(--dark);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  border-radius: 1px;
}
.form-send:hover { opacity: 0.85; }
.form-send:disabled { opacity: 0.45; cursor: not-allowed; }
.feedback {
  display: none;
  margin-top: 20px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 1px;
}
.feedback.ok {
  background: rgba(77,245,160,0.1);
  border: 1px solid rgba(77,245,160,0.25);
  color: var(--neon);
}
.feedback.err {
  background: rgba(224,120,40,0.1);
  border: 1px solid rgba(224,120,40,0.25);
  color: var(--orange);
}

/* ─── Widget ────────────────────────────────────────────── */
.widget-anchor {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
}
/* ── Confirmação overlay ──────────────────────────────────── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(48px, 6vw, 96px) clamp(40px, 6vw, 96px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.confirm-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.confirm-heading {
  font-family: var(--sans);
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 900;
  line-height: 1;
  color: var(--neon);
  margin: 0 0 clamp(20px, 3vw, 40px);
  letter-spacing: -0.02em;
}
.confirm-body {
  font-family: var(--sans);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: #fff;
  line-height: 1.45;
  margin: 0;
}

.widget-pill {
  position: relative;
  background: #000;
  border-radius: 20px;
  box-shadow: 0 0 0 1px #222222, 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* width + height set by JS after measuring trigger */
}
.widget-body {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 48px 40px 32px;
  box-sizing: border-box;
}
.widget-body.fadein {
  opacity: 1;
  transform: none;
}
.widget-title {
  font-family: var(--sans);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 32px;
}
.widget-input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  padding: 16px 0;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.widget-input:last-of-type { margin-bottom: 0; }
.widget-input::placeholder { color: rgba(255,255,255,0.3); }
.widget-input:focus { border-bottom-color: var(--neon); }
.widget-input:-webkit-autofill,
.widget-input:-webkit-autofill:hover,
.widget-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #000 inset;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
}
.widget-form-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 56px;
}
.widget-submit {
  background: var(--neon);
  color: #191919;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.18s;
}
.widget-submit:hover { background: #66F0A8; }
.widget-success {
  display: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--neon);
  padding-top: 16px;
}
.widget-trigger {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 8px 72px 8px 16px; /* right: espaço para o toggle (44 + 8 + 16 + 4) */
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.widget-label {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: opacity 0.25s ease;
  line-height: 1;
}
.widget-label-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-optical-sizing: auto;
  color: #A8F590;
  font-size: 17px;
}
.widget-toggle {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  z-index: 1;
}
.widget-toggle:hover {
  border-color: var(--neon);
  background: rgba(77,245,160,0.06);
  color: var(--neon);
}

/* ─── Responsive — mobile overrides (after base rules) ──── */
@media(max-width:720px){
  .partida-content .sec-title { font-size: clamp(32px, 9vw, 52px); }
  .vantagens-header .sec-title { font-size: clamp(36px, 10vw, 52px); }
}

@media(max-width:480px){
  .sec { padding: 72px 5%; }
  .modal { padding: 40px 24px 32px; }
  .robots-strip { width: calc(100% + 10%); margin-left: -5%; }

  /* Hero */
  .hero-logo-svg { width: 75vw; }
  .hero-headline { font-size: 24px; }

  /* Esteiras */
  .esteiras-text { font-size: 28px; }
  .esteiras-infographic { display: none; }

  /* Widget */
  .widget-body { padding: 32px 16px 24px; }
  .widget-title { font-size: 28px; margin-bottom: 20px; }
  .widget-label { font-size: 14px; }

  /* Footer */
  .footer { height: 65vh; padding-bottom: 110px; }
  .footer-robots { height: 185px; object-fit: cover; object-position: center center; }
}
