/* ==========================================================================
   HERO
   Desktop: o palco (.hero-stage) fica fixo enquanto o .hero-scroller rola
   100svh extras. Nesse trecho, o JS (hero.js) dispersa as etiquetas, leva o
   notebook ao centro e escurece a cena até o tom da jornada.
   Mobile, telas baixas e movimento reduzido: hero estático (sem sticky).
   ========================================================================== */

.hero {
  position: relative;
  background: var(--deep-800);
}

.hero-scroller {
  position: relative;
  height: calc(200svh - var(--header-h));
}

.hero-stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  /* Camada própria: o sticky acompanha a rolagem no compositor, sem atrasar
     um quadro quando a thread principal está ocupada com as animações. */
  will-change: transform;
}

/* ---------- Fundo ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
}

.hero-aurora {
  position: absolute;
  width: 78vmax;
  height: 78vmax;
  right: -30vmax;
  top: -34vmax;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      rgba(83, 160, 221, 0.38),
      rgba(249, 182, 85, 0.28),
      rgba(83, 160, 221, 0.06),
      rgba(83, 160, 221, 0.38));
  filter: blur(70px);
  animation: hero-aurora 38s linear infinite;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-blob--blue {
  width: 48vw;
  height: 48vw;
  right: -8vw;
  top: 4%;
  background: radial-gradient(circle, rgba(83, 160, 221, 0.42), transparent 64%);
}

.hero-blob--orange {
  width: 30vw;
  height: 30vw;
  right: 20vw;
  bottom: -14vw;
  background: radial-gradient(circle, rgba(249, 182, 85, 0.34), transparent 64%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 108, 169, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 108, 169, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 72% 45%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 55% 60% at 72% 45%, #000 0%, transparent 100%);
}

/* Camada que escurece a cena no fim da rolagem do hero (opacity via JS) */
.hero-dusk {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 60% 55% at 62% 45%, rgba(40, 104, 154, 0.85), transparent 70%),
    var(--deep-800);
}

/* ---------- Grade principal ---------- */
.hero-inner {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding-block: clamp(12px, 3vh, 36px) 8px;
}

/* ---------- Texto ---------- */
.hero-copy {
  position: relative;
  z-index: 5;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-s);
  backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.3;
}

.hero-badge-dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
}

.hero-title {
  margin: clamp(14px, 2.4vh, 26px) 0 clamp(14px, 2.2vh, 22px);
  font-size: min(4rem, 10svh, 4.5vw);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.038em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-title .line > span {
  display: inline-block;
  will-change: transform;
}

.hero-title em {
  font-style: italic;
  font-weight: 800;
  padding-right: 0.06em;
  background: linear-gradient(100deg, var(--action) 0%, var(--brand-blue) 45%, var(--action) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-shine 9s ease-in-out infinite;
}

.hero-title .line--soft {
  margin-top: 0.14em;
  font-size: 0.56em;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-3);
}

.hero-lede {
  max-width: 34em;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3.4vh, 34px);
}

.hero-proof {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof svg {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  color: var(--ok);
  background: var(--ok-soft);
}

/* ---------- Composição visual ---------- */
.hero-visual {
  position: relative;
  height: 100%;
  max-height: 640px;
  min-height: 420px;
  min-width: 0;
}

.layer {
  position: absolute;
  will-change: transform;
}

.hero-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

.hero-links path {
  fill: none;
  stroke: url(#link-grad);
  stroke-width: 1.6;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
  animation: hero-dash 1.4s linear infinite;
}

.hero-links circle {
  fill: #fff;
  stroke: var(--brand-blue);
  stroke-width: 2;
}

.layer--ring {
  inset: 2% 6% 4%;
  z-index: 0;
}

.hero-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(83, 160, 221, 0.28);
  box-shadow:
    0 0 0 44px rgba(83, 160, 221, 0.05),
    0 0 0 96px rgba(83, 160, 221, 0.035);
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1.5px dashed rgba(33, 108, 169, 0.22);
  animation: hero-spin 60s linear infinite;
}

/* Notebook
   Centralizado por flexbox (e não por translate): o GSAP anima transform nas
   .layer e incorporaria um translate CSS, deslocando o notebook. */
.layer--laptop {
  z-index: 2;
  left: 3%;
  right: 6%;
  top: 0;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.device-laptop {
  position: relative;
  filter: drop-shadow(0 40px 60px rgba(12, 36, 64, 0.22));
}

.laptop-lid {
  position: relative;
  padding: 1.7% 1.7% 2.2%;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #22364d, #0e1b2b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.laptop-cam {
  position: absolute;
  top: 0.65%;
  left: 50%;
  width: 6px;
  height: 6px;
  translate: -50% 0;
  border-radius: 50%;
  background: #3a4f66;
}

.laptop-base {
  position: relative;
  height: 16px;
  margin: 0 -7%;
  border-radius: 2px 2px 18px 18px;
  background: linear-gradient(180deg, #e6edf4 0%, #b8c6d5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.laptop-base span {
  display: block;
  width: 15%;
  height: 6px;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: #a6b5c5;
}

/* Tela do app (escala como imagem graças às unidades cqw) */
.laptop-lid,
.device-phone {
  container-type: inline-size;
}

.screen {
  overflow: hidden;
  font-family: var(--f-body);
  color: var(--ink);
  line-height: 1.3;
}

.screen svg {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}

.screen--app {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #f5f8fc;
  font-size: 1.6cqw;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 1.4em;
  padding: 0.85em 1.4em;
  background: #fff;
  border-bottom: 1px solid #e6eef5;
}

.app-logo {
  width: 8.5em;
  height: auto;
}

.app-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 1em;
  border-radius: 2em;
  background: #f1f6fb;
  color: #7d90a3;
  font-size: 0.95em;
}

.app-search svg {
  color: var(--brand-orange);
}

.app-user {
  display: flex;
  align-items: center;
  gap: 0.9em;
  color: var(--ink-3);
}

.app-bell svg {
  width: 1.4em;
  height: 1.4em;
}

.app-avatar {
  display: inline-grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-600), var(--action));
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
}

.app-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 11.5em minmax(0, 1fr);
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding: 1.1em 0.8em;
  background: #fff;
  border-right: 1px solid #e6eef5;
}

.app-side span {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.62em 0.8em;
  border-radius: 0.7em;
  color: #5d7186;
  font-weight: 500;
}

.app-side .is-active {
  background: var(--action-soft);
  color: var(--action);
  font-weight: 650;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1.2em 1.5em 1.3em;
}

.app-hello {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1em;
}

.app-hello small {
  display: block;
  font-size: 0.85em;
  color: #7d90a3;
}

.app-hello b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.75em;
  letter-spacing: -0.02em;
}

.app-demo-tag {
  flex: none;
  padding: 0.35em 0.85em;
  border-radius: 2em;
  background: #fff4e0;
  color: #9a5f04;
  font-size: 0.78em;
  font-weight: 650;
}

.app-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8em;
}

.kpi {
  padding: 0.85em 1em;
  border-radius: 0.9em;
  background: #fff;
  border: 1px solid #e6eef5;
}

.kpi small {
  display: block;
  font-size: 0.8em;
  color: #7d90a3;
}

.kpi b {
  display: block;
  margin: 0.12em 0 0.05em;
  font-family: var(--f-display);
  font-size: 2.1em;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.kpi em {
  font-style: normal;
  font-size: 0.76em;
  font-weight: 600;
  color: var(--ok);
}

.kpi--accent {
  border-color: transparent;
  background: linear-gradient(135deg, var(--action), var(--brand-blue));
  color: #fff;
}

.kpi--accent small,
.kpi--accent em {
  color: rgba(255, 255, 255, 0.86);
}

.app-panels {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0.8em;
}

.panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.95em 1.1em;
  border-radius: 0.9em;
  background: #fff;
  border: 1px solid #e6eef5;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5em;
}

.panel-head small {
  font-size: 0.8em;
  color: #7d90a3;
}

.screen .chart {
  flex: 1 1 0;
  width: 100%;
  height: auto;
  min-height: 0;
  margin-top: 0.6em;
  overflow: visible;
}

.chart-grid path {
  stroke: #edf2f7;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.panel--list ul {
  list-style: none;
  margin: 0.7em 0 0;
  padding: 0;
  display: grid;
  gap: 0.6em;
}

.panel--list li {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.panel--list li div {
  flex: 1;
  min-width: 0;
}

.panel--list li b {
  display: block;
  font-size: 0.92em;
}

.panel--list li small {
  font-size: 0.78em;
  color: #7d90a3;
}

.panel--list li i {
  flex: none;
  padding: 0.3em 0.7em;
  border-radius: 2em;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 650;
}

.panel--list li i.is-pending {
  background: #fff4e0;
  color: #9a5f04;
}

.av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
}

.av--a { background: linear-gradient(135deg, var(--brand-blue), var(--action)); }
.av--b { background: linear-gradient(135deg, var(--brand-orange), #e08a17); }
.av--c { background: linear-gradient(135deg, #7cc4a4, #2f9a6c); }

/* Celular */
.layer--phone {
  z-index: 3;
  right: -3%;
  bottom: 1%;
  width: 29%;
}

.device-phone {
  padding: 3.4%;
  border-radius: 14% / 6.6%;
  background: linear-gradient(160deg, #24384f, #0d1a29);
  box-shadow: var(--shadow-l), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}

.screen--phone {
  position: relative;
  aspect-ratio: 9 / 19;
  display: flex;
  flex-direction: column;
  gap: 0.65em;
  padding: 0.75em 0.85em 0.85em;
  border-radius: 11% / 5.2%;
  background: linear-gradient(180deg, #eaf3fc 0%, #f8fbfe 45%);
  font-size: 5.4cqw;
}

.ph-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1.6em;
  font-size: 0.8em;
}

.ph-status span {
  position: absolute;
  top: 0.55em;
  left: 50%;
  width: 34%;
  height: 1.5em;
  translate: -50% 0;
  border-radius: 1em;
  background: #0d1a29;
}

.ph-head small {
  display: block;
  font-size: 0.74em;
  color: #7d90a3;
}

.ph-head b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.35em;
  letter-spacing: -0.02em;
}

.ph-child {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.45em;
  padding: 0.22em 0.65em 0.22em 0.22em;
  border-radius: 2em;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e3ecf4;
  font-size: 0.72em;
  font-weight: 650;
}

.ph-child .av {
  width: 1.9em;
  height: 1.9em;
  font-size: 0.72em;
}

.ph-card {
  padding: 0.8em 0.9em;
  border-radius: 1em;
  background: #fff;
  box-shadow: 0 0.4em 1.2em rgba(20, 52, 86, 0.08);
}

.ph-card small {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.7em;
  font-weight: 650;
  color: #7d90a3;
}

.ph-card--notice {
  color: #fff;
  background: linear-gradient(140deg, var(--deep-800), var(--deep-600));
}

.ph-card--notice small {
  color: var(--brand-orange);
}

.ph-card--notice b {
  display: block;
  margin: 0.35em 0 0.15em;
  font-size: 1em;
  line-height: 1.2;
}

.ph-card--notice span {
  font-size: 0.72em;
  color: rgba(255, 255, 255, 0.75);
}

.ph-card--notice em {
  display: inline-block;
  margin-top: 0.65em;
  padding: 0.45em 0.85em;
  border-radius: 2em;
  background: var(--brand-orange);
  color: var(--deep-800);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 700;
}

.ph-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}

.ph-card--stat {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.ph-card--stat span {
  font-size: 0.7em;
  font-weight: 650;
  color: var(--ok);
}

.ph-big {
  font-family: var(--f-display);
  font-size: 1.1em;
}

.ph-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.3em;
  height: 3.3em;
  border-radius: 50%;
  background: conic-gradient(var(--brand-blue) calc(var(--p) * 1%), #e6eef5 0);
}

.ph-ring::before {
  content: "";
  position: absolute;
  inset: 0.38em;
  border-radius: 50%;
  background: #fff;
}

.ph-ring b {
  position: relative;
  font-size: 0.78em;
}

.ph-card--agenda {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.ph-date {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6em;
  height: 2.8em;
  border-radius: 0.7em;
  background: var(--action-soft);
  color: var(--action);
  line-height: 1;
}

.ph-date b {
  font-family: var(--f-display);
  font-size: 1.05em;
}

.ph-date small {
  font-size: 0.6em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--action);
}

.ph-card--agenda div:last-child small {
  color: #7d90a3;
}

.ph-card--agenda div:last-child b {
  display: block;
  font-size: 0.82em;
}

.ph-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 0.6em;
  border-radius: 1.2em;
  background: #fff;
  box-shadow: 0 0.3em 1em rgba(20, 52, 86, 0.08);
  color: #9fb1c3;
}

.ph-tabs svg {
  width: 1.35em;
  height: 1.35em;
}

.ph-tabs .is-active {
  color: var(--action);
}

/* Etiquetas flutuantes */
.layer--chip {
  z-index: 4;
}

.chip-pos-1 { left: -7%; top: 7%; }
.chip-pos-2 { right: -2%; top: 0%; }
.chip-pos-3 { left: -10%; bottom: 17%; }
.chip-pos-4 { left: 26%; bottom: 1%; }

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 16px 36px rgba(20, 52, 86, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  white-space: nowrap;
}

/* Flutuação em elemento próprio: o GSAP anima .chip (entrada), o wrapper
   [data-scroll] (rolagem) e a .layer (parallax); nenhum deles usa translate CSS. */
.chip-float {
  animation: hero-float 6.5s ease-in-out infinite;
}

.chip-pos-2 .chip-float { animation-delay: -1.6s; }
.chip-pos-3 .chip-float { animation-delay: -3.2s; }
.chip-pos-4 .chip-float { animation-delay: -4.8s; }

.chip-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.chip-icon svg {
  width: 21px;
  height: 21px;
}

.chip-icon--blue { background: var(--action-soft); color: var(--action); }
.chip-icon--orange { background: #fff1dc; color: #c27509; }
.chip-icon--green { background: var(--ok-soft); color: var(--ok); }
.chip-icon--ai {
  background: linear-gradient(135deg, var(--brand-orange), #f39b2a);
  color: var(--deep-800);
}

.chip-text b {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink);
}

.chip-text small {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.chip--ai {
  background: linear-gradient(135deg, rgba(16, 36, 59, 0.94), rgba(29, 60, 99, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 40px rgba(12, 36, 64, 0.32);
}

.chip--ai b { color: #fff; }
.chip--ai small { color: rgba(255, 255, 255, 0.7); }

/* ---------- Barra inferior ---------- */
.hero-bar-wrap {
  position: relative;
  z-index: 6;
  padding-bottom: clamp(14px, 2.4vh, 24px);
}

.hero-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px 12px 24px;
  border-radius: 20px;
  color: #fff;
  background: rgba(16, 36, 59, 0.94);
  box-shadow: 0 22px 50px rgba(12, 36, 64, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-bar-label {
  flex: none;
  max-width: 13em;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.68);
}

.hero-bar-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 4px;
}

.hero-bar-steps a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.25s;
}

.hero-bar-steps a:hover {
  background: rgba(255, 255, 255, 0.09);
}

.hero-bar-steps span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-orange);
}

.hero-scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.hero-scroll-cue i {
  position: relative;
  width: 20px;
  height: 30px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.hero-scroll-cue i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--brand-orange);
  animation: hero-cue 1.8s var(--ease-in-out) infinite;
}

/* ---------- Frase de transição (fim da rolagem do hero) ---------- */
.hero-outro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-inline: var(--gutter);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.hero-outro p {
  max-width: 30em;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 0.8rem + 1.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.hero-outro span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

/* ---------- Zoom através da tela (modo cinematográfico) ----------
   A classe .cinematic só existe quando hero.js ativa a rolagem cinematográfica
   (desktop, sem movimento reduzido). O hero ganha mais 1 tela de rolagem e a
   jornada sobe para ficar por cima dele nessas 2 telas finais. A jornada fica
   invisível (recortada) até a fase de zoom, quando aparece dentro da tela do
   notebook e cresce com ela. */
.cinematic .hero-scroller {
  height: calc(300svh - var(--header-h));
}

.cinematic .journey {
  margin-top: calc(var(--header-h) - 200svh);
  height: calc(360vh + 100svh);
  background: transparent;
  pointer-events: none;
}

.cinematic .journey-stage {
  clip-path: inset(50% 50% 50% 50%);
  opacity: 0;
  /* .journey não recebe cliques (fica sobre o hero); o palco volta a receber
     quando revelado. O JS aplica pointer-events: none enquanto está oculto. */
  pointer-events: auto;
}

.cinematic .journey-frame {
  will-change: transform;
}

/* Rede de segurança: fundo escuro atrás da jornada a partir do fim do hero.
   A seção é transparente (precisa mostrar o hero durante a fase A); sem isto,
   qualquer descompasso de um quadro revelaria o fundo branco da página. */
.cinematic .journey::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(200svh - var(--header-h));
  bottom: 0;
  background: var(--deep-800);
}

/* ---------- Estado inicial da entrada (somente com JS) ---------- */
.js:not(.intro-ready) .hero [data-intro],
.js:not(.intro-ready) .hero [data-line],
.js:not(.intro-ready) .hero [data-intro-device],
.js:not(.intro-ready) .hero [data-chip],
.js:not(.intro-ready) .hero .hero-links {
  opacity: 0;
}

/* ---------- Animações ---------- */
@keyframes hero-aurora { to { rotate: 360deg; } }
@keyframes hero-spin { to { rotate: 360deg; } }
@keyframes hero-shine { 50% { background-position: 100% 0; } }
@keyframes hero-float { 50% { translate: 0 -9px; } }
@keyframes hero-dash { to { stroke-dashoffset: -20; } }
@keyframes hero-cue {
  0% { opacity: 0; translate: -50% 0; }
  30% { opacity: 1; }
  100% { opacity: 0; translate: -50% 10px; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .hero-bar-label { display: none; }
  .chip-pos-1 { left: -4%; }
  .chip-pos-3 { left: -5%; }
  .chip { padding: 8px 14px 8px 8px; gap: 10px; }
  .chip-icon { width: 34px; height: 34px; border-radius: 10px; }
  .chip-icon svg { width: 18px; height: 18px; }
}

/* Hero estático: celular/tablet, telas baixas e movimento reduzido */
@media (max-width: 900px), (max-height: 640px), (prefers-reduced-motion: reduce) {
  .hero-scroller { height: auto; }

  .hero-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
  }

  .hero-dusk,
  .hero-outro { display: none; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 28px 0;
  }

  .hero-title {
    font-size: clamp(2.35rem, 1rem + 6.4vw, 4rem);
  }

  .hero-visual {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 0.86;
    margin: 18px 0 8px;
  }

  .layer--ring { inset: 6% 4%; }
  .layer--laptop { left: 4%; right: 14%; top: 0; bottom: 16%; }
  .layer--phone { right: 0; bottom: 2%; width: 31%; }

  .chip-pos-1 { left: 0; top: 0; }
  .chip-pos-2 { display: none; }
  .chip-pos-3 { display: none; }
  .chip-pos-4 { left: 2%; bottom: 3%; }

  .hero-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
  }

  .hero-bar-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-bar-steps a {
    padding: 10px;
    font-size: 0.8125rem;
    white-space: normal;
  }

  .hero-scroll-cue { display: none; }
}

@media (max-width: 520px) {
  .hero-badge {
    font-size: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn--lg {
    justify-content: space-between;
  }

  .hero-actions .btn--ghost {
    justify-content: center;
  }

  .chip { padding: 6px 12px 6px 6px; border-radius: 14px; }
  .chip-icon { width: 30px; height: 30px; }
  .chip-icon svg { width: 16px; height: 16px; }
  .chip-text b { font-size: 0.78rem; }
  .chip-text small { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora,
  .hero-ring::before,
  .hero-title em,
  .chip-float,
  .hero-links path,
  .hero-scroll-cue i::after {
    animation: none;
  }

  .hero-links circle { display: none; }
}
