/* ───────── 03 · Recursos (mão + cubo de vidro + prisma) ───────── */
html { scroll-behavior: smooth; }

.feat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6.5rem clamp(1.4rem, 5.5vw, 7rem) 3.5rem;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.feat__stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 100%);
}
.feat__canvas { width: 100%; height: 100%; display: block; }

/* entrada em cascata quando a seção aparece */
.feat [data-in] {
  opacity: 0;
  translate: 0 22px;
  filter: blur(8px);
  transition: opacity .9s ease var(--d, 0s), translate 1.1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), filter .9s ease var(--d, 0s);
}
/* a coluna da esquerda sobe; os recursos da direita entram pela lateral */
.feat__copy [data-in] { translate: 0 4.5rem; }
.feat__list [data-in] { translate: 7rem 0; }
.feat.is-on [data-in] { opacity: 1; translate: 0 0; filter: none; }

/* cristal: tela por cima dos textos + área de agarrar */
.feat__glass { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; pointer-events: none; }
.feat__grab {
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  border-radius: 45%;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  will-change: transform;
}
.feat__grab.is-grabbing { cursor: grabbing; }

/* emenda entre seções: a borda que está saindo/entrando some num degradê enquanto a página rola */
body > section.is-fading {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft, 0%), #000 calc(100% - var(--fb, 0%)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft, 0%), #000 calc(100% - var(--fb, 0%)), transparent 100%);
}

/* ── coluna esquerda ── */
.feat__copy { grid-column: 1; max-width: 36rem; }
.feat__kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(229, 229, 229, .62);
}
.feat__kicker::before { content: "✦"; color: var(--hydr-blue-light); letter-spacing: 0; }
.feat__kicker::after { content: ""; order: -1; display: none; }
.feat__kicker i { width: 1.4rem; height: 1px; background: rgba(229, 229, 229, .4); }

.sec-title {
  margin: clamp(1rem, 2.4vh, 1.5rem) 0 0;
  font-weight: 400;
  font-size: clamp(1.9rem, 2.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.sec-title span { display: block; background-clip: text; -webkit-background-clip: text; color: transparent; padding-bottom: .06em; }
.sec-title span:first-child { background-image: linear-gradient(100deg, #7d8994 0%, #d2dbe2 60%, #f2f5f7 100%); }
.sec-title span:last-child { background-image: linear-gradient(100deg, #9aa6b0 0%, #ffffff 42%, #cbd9e3 100%); font-weight: 500; }
.sec-sub {
  max-width: 25rem;
  margin: clamp(.9rem, 2vh, 1.3rem) 0 0;
  font-size: clamp(.95rem, 1.1vw, 1.08rem);
  line-height: 1.55;
  color: rgba(229, 229, 229, .7);
  text-wrap: pretty;
}
.feat__cta { display: flex; align-items: center; gap: .8rem; margin-top: clamp(1.4rem, 3.4vh, 2.2rem); }
.btn--round { width: 3.2rem; min-height: 3.2rem; padding: 0; justify-content: center; }

.feat__inside { display: flex; align-items: center; gap: 1.1rem; margin-top: clamp(2rem, 6vh, 4rem); }
.feat__inside small { font-size: .88rem; color: rgba(229, 229, 229, .62); }
.feat__inside ul { list-style: none; display: flex; gap: .55rem; margin: 0; padding: 0; }
.feat__inside .ico { display: block; width: 2.5rem; height: 2.5rem; background-size: 1.15rem; }
/* seta do botão redondo: fica descendo e voltando, chamando para a próxima seção */
.btn--round span { animation: arrow-bob 1.7s ease-in-out infinite; }
.btn--round:hover span { animation-duration: 1s; }
@keyframes arrow-bob { 0%, 100% { transform: translateY(-.2rem); } 50% { transform: translateY(.26rem); } }

/* ícones: passando o mouse, o ícone acende e sobe um pouco e uma etiqueta diz o que ele é */
.feat__inside li { position: relative; border-radius: 50%; outline: 0; cursor: default; }
.feat__inside .ico { transition: transform .5s cubic-bezier(.4, 0, .2, 1), border-color .45s ease, background-color .45s ease, box-shadow .45s ease; }
.feat__inside li:hover .ico, .feat__inside li:focus-visible .ico {
  transform: translateY(-.22rem);
  border-color: rgba(209, 222, 232, .55);
  background-color: rgba(163, 190, 212, .2);
  box-shadow: 0 8px 26px -8px rgba(163, 190, 212, .8);
}
.feat__inside li::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + .75rem);
  translate: -50% .4rem;
  padding: .36rem .75rem;
  border-radius: 999px;
  background: var(--hydr-brand-gradient);
  font-size: .76rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--hydr-black);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, translate .45s cubic-bezier(.2, .7, .2, 1);
}
.feat__inside li:hover::after, .feat__inside li:focus-visible::after { opacity: 1; translate: -50% 0; }
@media (prefers-reduced-motion: reduce) { .btn--round span { animation: none; } }

.ico--globe { background-image: url("../assets/img/ico-globe.svg"); }
.ico--chart { background-image: url("../assets/img/ico-chart.svg"); }
.ico--rocket { background-image: url("../assets/img/ico-rocket.svg"); }

/* ── coluna direita: os três recursos (escolher um muda a cor da cena) ── */
.feat__list {
  grid-column: 3;
  justify-self: end;
  list-style: none;
  display: grid;
  gap: clamp(1.1rem, 3vh, 2rem);
  width: min(24rem, 100%);
  margin: 0;
  padding: 0;
}
.feat-card {
  position: relative;
  display: grid;
  gap: .4rem;
  width: 100%;
  padding: .2rem 0 .3rem 1.5rem;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .12);
  background: none;
  font: inherit;
  text-align: left;
  color: rgba(229, 229, 229, .8);
  cursor: pointer;
  opacity: .42;
  transition: opacity .6s ease;
}
.feat-card.is-active { opacity: 1; }
.feat-card:hover { opacity: 1; }
.feat-card:focus-visible { outline: 1px solid var(--hydr-blue); outline-offset: 6px; }
.feat-card__tag { font-size: .78rem; font-weight: 500; letter-spacing: .04em; color: var(--hydr-blue); font-variant-numeric: tabular-nums; }
.feat-card strong { font-size: clamp(1.25rem, 1.5vw, 1.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: #fff; }
.feat-card__p { font-size: .92rem; line-height: 1.5; color: rgba(229, 229, 229, .66); text-wrap: pretty; }
.feat-card__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.feat-card__chips em {
  padding: .22rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  font-style: normal;
  font-size: .74rem;
  white-space: nowrap;
  color: rgba(229, 229, 229, .74);
}

/* linha de tempo do recurso ativo: quando enche, passa para o próximo */
.feat-card__bar {
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #fff, var(--hydr-blue));
  box-shadow: 0 0 10px rgba(163, 190, 212, .8);
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.feat-card.is-active .feat-card__bar { animation: feat-progress 6.5s linear forwards; }
.feat__list.is-paused .feat-card__bar { animation-play-state: paused; }
@keyframes feat-progress { to { transform: scaleY(1); } }

@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; row-gap: 1rem; padding-top: 5.5rem; }
  .feat__copy { grid-column: 1; grid-row: 1; }
  .feat__stage { position: relative; inset: auto; grid-column: 1; grid-row: 2; height: 62svh; margin: 0 -1.4rem; }
  .feat__list { grid-column: 1; grid-row: 3; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feat [data-in] { transition-duration: .01ms; transition-delay: 0s; }
  .feat-card.is-active .feat-card__bar { animation: none; transform: scaleY(1); }
}

/* chips dos recursos: no hover viram a pílula azul da marca (mesmo hover do menu) e sobem um pouquinho */
.feat-card__chips em {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  cursor: default;
  transition: color .35s ease, border-color .35s ease, transform .45s cubic-bezier(.4, 0, .2, 1), box-shadow .45s ease;
}
.feat-card__chips em::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hydr-brand-gradient);
  opacity: 0;
  transition: opacity .35s ease;
}
.feat-card__chips em:hover { color: var(--hydr-black); border-color: transparent; transform: translateY(-.14rem); box-shadow: 0 8px 22px -10px rgba(163, 190, 212, .9); }
.feat-card__chips em:hover::before { opacity: 1; }
