/* Escala fluida: tudo no hero é em rem, então cresce junto com a largura da tela. */
html { font-size: clamp(15px, 0.5vw + 8.8px, 24px); }

/* ───────── Menu ───────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem clamp(1.1rem, 3.2vw, 3rem);
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.site-header.is-on { opacity: 1; transform: none; pointer-events: auto; }
.site-header > :last-child { justify-self: end; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; justify-self: start; }
.brand__mark { width: 3.3rem; height: 3.3rem; object-fit: contain; }
.brand__word { width: 6.4rem; height: auto; opacity: .94; }

.glass-pill {
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
}

.nav { display: flex; gap: .24rem; padding: .3rem; }
.nav a {
  padding: .58rem 1.2rem;
  border-radius: 999px;
  color: rgba(229, 229, 229, .76);
  font-size: .85rem;
  text-decoration: none;
  transition: color .25s ease, background .25s ease;
}
/* hover igual à etiqueta "Novo": pílula no degradê azul da marca, texto escuro */
.nav a { position: relative; isolation: isolate; }
.nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: var(--hydr-brand-gradient);
  opacity: 0;
  transition: opacity .35s ease;
}
.nav a:hover { color: var(--hydr-black); }
.nav a:hover::before { opacity: 1; }
.nav a:focus-visible, .btn:focus-visible, .brand:focus-visible { outline: 1px solid var(--hydr-blue); outline-offset: 3px; }

/* ───────── Botões ───────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.2rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font: 500 1.02rem/1 var(--hydr-font);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, background .35s ease, border-color .35s ease;
}
.btn span { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.btn:hover span { transform: translateX(4px); }
.btn--sm { min-height: 2.32rem; padding: 0 1.2rem; font-size: .82rem; }
.btn--primary {
  color: var(--hydr-black);
  background: linear-gradient(180deg, #fff, #d9e2ea);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 10px 40px -10px rgba(163, 190, 212, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff, 0 16px 50px -8px rgba(163, 190, 212, .95); }
.btn--ghost {
  color: var(--hydr-silver);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }
/* o planeta gira arrastando com o mouse (fora de links, botões e cards) */
.hero { cursor: grab; }
.hero.is-drag { cursor: grabbing; user-select: none; }
.hero__cards, .hero__chips { cursor: default; }

/* entrada em cascata, disparada quando o feixe sobe */
.hero [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);
}
.hero.is-on [data-in] { opacity: 1; translate: 0 0; filter: none; }

.hero__copy {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(5.6rem, 13vh, 9rem) 1.5rem 0;
  isolation: isolate;
}
/* sombra escura e suave atrás do texto, só para dar contraste */
.hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 34%;
  width: min(72rem, 96vw);
  height: 84%;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .78), rgba(0, 0, 0, .5) 48%, transparent 100%);
  filter: blur(26px);
  opacity: 0;
  transition: opacity 1.4s ease 1s;
  pointer-events: none;
}
.hero.is-on .hero__copy::before { opacity: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  padding: .36rem 1.15rem .36rem .36rem;
  font-size: .95rem;
  color: rgba(229, 229, 229, .84);
}
.eyebrow__tag {
  padding: .3rem .72rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--hydr-black);
  background: var(--hydr-brand-gradient);
}

.hero__title {
  margin: clamp(.9rem, 2.4vh, 1.5rem) 0 0;
  font-weight: 400;
  font-size: clamp(2.1rem, 5.1vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__title span { display: block; background-clip: text; -webkit-background-clip: text; color: transparent; padding-bottom: .06em; }
.hero__title span:first-child { background-image: linear-gradient(100deg, #7d8994 0%, #d2dbe2 60%, #f2f5f7 100%); }
.hero__title span:last-child { background-image: linear-gradient(100deg, #9aa6b0 0%, #ffffff 42%, #cbd9e3 100%); }

.hero__sub {
  max-width: 36rem;
  margin: clamp(.75rem, 2vh, 1.25rem) 0 0;
  font-size: clamp(.92rem, 1.15vw, 1.08rem);
  line-height: 1.55;
  color: rgba(229, 229, 229, .7);
  text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: clamp(1.1rem, 3vh, 1.9rem); }

/* etiquetas flutuantes */
.hero__chips { list-style: none; margin: 0; padding: 0; }
.float-chip {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.08rem;
  color: rgba(229, 229, 229, .9);
  animation: chip-float 7s ease-in-out infinite;
}
.float-chip b { position: relative; display: block; padding-left: 1.15rem; font-weight: 500; white-space: nowrap; }
.float-chip small { display: block; margin-top: .2rem; padding-left: 1.15rem; font-size: .86rem; color: rgba(229, 229, 229, .5); white-space: nowrap; }
/* mesmo ping dos pinos do mapa: ponto branco com brilho + anel que se expande */
.float-chip b::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: .56rem; height: .56rem;
  margin-top: -.28rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 2px rgba(163, 190, 212, .9);
}
.float-chip b::after {
  content: "";
  position: absolute;
  left: -.3rem; top: 50%;
  width: 1.16rem; height: 1.16rem;
  margin-top: -.58rem;
  border-radius: 50%;
  border: 1px solid rgba(209, 222, 232, .7);
  animation: pin-ping 2.8s ease-out infinite;
}
.float-chip--b b::after { animation-delay: -.7s; }
.float-chip--c b::after { animation-delay: -1.4s; }
.float-chip--d b::after { animation-delay: -2.1s; }
.ico {
  flex: none;
  width: 2.8rem; height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06) center / 1.35rem no-repeat;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ico--ads { background-image: url("../assets/img/ico-ads.svg"); }
.ico--shield { background-image: url("../assets/img/ico-shield.svg"); }
.float-chip--a { left: 3.6%; top: 25%; }
.float-chip--b { left: 15.5%; top: 13%; animation-delay: -2s; }
.float-chip--c { right: 15.5%; top: 12%; animation-delay: -4s; }
.float-chip--d { right: 5%; top: 27%; animation-delay: -1s; }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ───────── Vidro ───────── */
@property --gx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --gy { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.glass {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .11);
  background:
    radial-gradient(120% 90% at var(--gx, 50%) var(--gy, 0%), rgba(209, 222, 232, .13), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02) 55%, rgba(8, 10, 13, .35));
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .02),
    0 40px 80px -30px rgba(0, 0, 0, .9);
}
/* fio de luz prismático na borda de cima */
.glass::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 1px;
  border-radius: 1.5rem;
  background: linear-gradient(90deg, transparent 8%, rgba(255, 150, 156, .5) 30%, rgba(255, 255, 255, .95) 50%, rgba(163, 190, 212, .7) 68%, transparent 92%);
  opacity: .55;
  pointer-events: none;
}

.hero__cards {
  --wc: min(37rem, 38vw);
  --ws: min(26rem, 26vw);
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 13rem;
  margin-top: clamp(3.8rem, 12vh, 8rem);
  perspective: 1700px;
  --cs: .8;                      /* escala geral dos cards */
  transform-origin: 50% 0;
  transform: scale(var(--cs));
}
.card {
  position: absolute;
  top: 0;
  padding: 1.25rem 1.4rem 1.5rem;
  font-size: .9rem;
  color: rgba(229, 229, 229, .82);
  will-change: transform;
}
.hero .card[data-in] {
  transition:
    transform .9s cubic-bezier(.4, 0, .2, 1),
    box-shadow .9s ease,
    --gx .5s ease-out, --gy .5s ease-out,
    opacity .9s ease var(--d, 0s),
    translate 1.2s cubic-bezier(.2, .7, .2, 1) var(--d, 0s),
    filter .9s ease var(--d, 0s);
}
.hero .card[data-in] { translate: 0 90px; }
.hero.is-on .card[data-in] { translate: 0 0; }

.card--center {
  left: calc(50% - var(--wc) / 2); width: var(--wc); height: 150%; z-index: 2;
  background:
    radial-gradient(120% 90% at var(--gx, 50%) var(--gy, 0%), rgba(209, 222, 232, .09), transparent 60%),
    linear-gradient(180deg, rgba(6, 9, 13, .32), rgba(6, 9, 13, .46));
  -webkit-backdrop-filter: blur(26px) brightness(.82) saturate(1.25);
  backdrop-filter: blur(26px) brightness(.82) saturate(1.25);
}
.card--left, .card--right { top: 11%; width: var(--ws); height: 150%; }
.card--left {
  left: calc(50% - var(--wc) / 2 - var(--ws) - 1.1rem);
  transform: translateY(0) rotateY(22deg) rotateZ(-4.5deg);
  transform-origin: 100% 40%;
}
.card--right {
  left: calc(50% + var(--wc) / 2 + 1.1rem);
  transform: translateY(0) rotateY(-22deg) rotateZ(4.5deg);
  transform-origin: 0% 40%;
}
/* hover: o card só sobe um pouco, sem girar */
.card--left:hover { transform: translateY(-.75rem) rotateY(22deg) rotateZ(-4.5deg); }
.card--right:hover { transform: translateY(-.75rem) rotateY(-22deg) rotateZ(4.5deg); }
.card--center { transform: translateY(0); }
.card--center:hover { transform: translateY(-.75rem); }
.card:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .03), 0 50px 90px -30px rgba(0, 0, 0, .95), 0 0 60px -20px rgba(163, 190, 212, .35); }

.card__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.card__title { margin: 0; font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; color: var(--hydr-ice); }
.tag {
  padding: .28rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  font-size: .76rem;
  color: rgba(229, 229, 229, .68);
  white-space: nowrap;
}
.tag--ok { color: #64EDAC; border-color: rgba(100, 237, 172, .28); background: rgba(100, 237, 172, .08); }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .72rem .85rem;
  border-radius: .8rem;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
}
.rows li > div { flex: 1; min-width: 0; }
.rows b { display: block; font-weight: 500; color: var(--hydr-ice); }
.rows small { display: block; margin-top: .15rem; font-size: .76rem; color: rgba(229, 229, 229, .48); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { font-size: .78rem; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: .4rem; height: .4rem; margin-right: .4rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status--ok { color: #64EDAC; }
.status--warn { color: #FFD17A; }
.status--idle { color: #B1BCFF; }
.bar { display: block; height: 3px; margin-top: .45rem; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, #627F92, #B1BCFF); animation: bar-pulse 2.6s ease-in-out infinite; }
@keyframes bar-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

/* mapa */
.card__body { display: grid; grid-template-columns: 1fr 9.2rem; gap: 1rem; align-items: center; }
.map { position: relative; aspect-ratio: 86 / 38; }
.map__dots {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(209, 222, 232, .55), rgba(98, 127, 146, .36));
  -webkit-mask: url("../assets/img/world-dots.svg") center / 100% 100% no-repeat;
  mask: url("../assets/img/world-dots.svg") center / 100% 100% no-repeat;
}
.pin { position: absolute; width: .56rem; height: .56rem; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 2px rgba(163, 190, 212, .9); cursor: default; }
.pin::after { content: ""; position: absolute; inset: -.3rem; border-radius: 50%; border: 1px solid rgba(209, 222, 232, .7); animation: pin-ping 2.8s ease-out infinite; }
.pin--lg { width: .75rem; height: .75rem; }
.pin--sm { width: .42rem; height: .42rem; opacity: .8; }
.pin:nth-of-type(2)::after { animation-delay: -.9s; }
.pin:nth-of-type(3)::after { animation-delay: -1.7s; }
.pin em {
  position: absolute;
  left: 50%; bottom: 1rem;
  translate: -50% 4px;
  padding: .28rem .6rem;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(8, 10, 13, .82);
  font-style: normal;
  font-size: .76rem;
  white-space: nowrap;
  color: var(--hydr-ice);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, translate .3s ease;
}
.pin:hover em, .pin--lg em { opacity: 1; translate: -50% 0; }
@keyframes pin-ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

.stats { display: grid; gap: .5rem; margin: 0; }
.stats > div { padding: .55rem .8rem; border-radius: .8rem; border: 1px solid rgba(255, 255, 255, .07); background: rgba(6, 9, 13, .4); }
.stats dt { font-size: .76rem; color: rgba(229, 229, 229, .48); }
.stats dd { margin: .15rem 0 0; font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; color: var(--hydr-ice); font-variant-numeric: tabular-nums; }

/* tela alta: mapa em largura total e números embaixo */
@media (min-height: 1000px) {
  .card__body { grid-template-columns: 1fr; gap: .7rem; }
  .card__body .map { width: 84%; margin: 0 auto; }
  .stats { grid-template-columns: repeat(3, 1fr); }

}

/* regras — medidor adaptado do gauge "Taxa de Preenchimento" do NewOne MAB */
.split { display: flex; align-items: center; gap: 1.3rem; }
.gauge { --g: 13.5rem; position: relative; flex: none; width: var(--g); height: var(--g); }
.gauge svg { position: absolute; display: block; pointer-events: none; }
.gauge__orb { inset: 0; width: 100%; height: 100%; overflow: visible; }
.gauge__orb g { opacity: .2; animation: owave 2.4s ease-in-out infinite; }
.gauge__orb g:nth-child(2) { animation-delay: .35s; }
.gauge__orb g:nth-child(3) { animation-delay: .7s; }
@keyframes owave { 0% { opacity: .2; } 12% { opacity: 1; } 34% { opacity: .2; } 100% { opacity: .2; } }
.gauge__arc { left: 14.18%; top: 8.88%; width: 71.68%; height: 82.2%; filter: drop-shadow(0 0 .35rem rgba(163, 190, 212, .35)); }
.gauge__center { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; }
.gauge__big { font-weight: 300; font-size: 1.75rem; line-height: 1.15; letter-spacing: -.03em; color: var(--hydr-ice); font-variant-numeric: tabular-nums; }
.gauge__pill { margin-top: .4rem; padding: 2px; border-radius: 999px; border: 1px solid rgba(209, 222, 232, .45); background: rgba(209, 222, 232, .16); }
.gauge__pill span { display: block; padding: .12rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: .64rem; font-weight: 500; line-height: 1.4; white-space: nowrap; color: var(--hydr-silver); }
.gauge__top, .gauge__bottom { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; }
.gauge__top { top: 18.5%; }
.gauge__bottom { bottom: 18.5%; }
.gauge__label { font-weight: 700; font-size: .58rem; line-height: 1.25; letter-spacing: .04em; color: rgba(229, 229, 229, .55); }
.gauge__value { font-size: 1rem; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gauge__value--ok { color: #64EDAC; }
.gauge__value--bad { color: #FF969C; }
.split__side { flex: 1; min-width: 0; display: grid; gap: .6rem; }
.split__side small { font-size: .76rem; color: rgba(229, 229, 229, .48); }
.split__side .rules { margin: 0; flex-direction: column; align-items: flex-start; }
@media (prefers-reduced-motion: reduce) { .gauge__orb g { animation: none; opacity: .7; } }
.rules { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.rules span { white-space: nowrap; padding: .34rem .7rem; border-radius: .5rem; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); font-size: .76rem; color: rgba(229, 229, 229, .72); }

.hero__note {
  position: absolute;
  left: 0; right: 0; bottom: .7rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin: 0;
  font-size: .76rem;
  letter-spacing: .02em;
  color: rgba(229, 229, 229, .62);
  pointer-events: none;
}
.hero__note span {
  padding: .34rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(4, 6, 8, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ───────── telas menores ───────── */
@media (max-width: 900px) {
  .nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero__chips { display: none; }
  .card--left, .card--right { display: none; }
  .hero__cards { --wc: min(34rem, 92vw); --cs: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .float-chip, .float-chip b::after, .pin::after, .bar i { animation: none; }
  .hero [data-in] { transition-duration: .01ms; transition-delay: 0s; }
}

/* tela baixa: os cards descem menos para o conteúdo não cortar */
@media (max-height: 900px) {
  .hero__cards { margin-top: clamp(2.2rem, 6vh, 3.4rem); }
}

/* "Entrar": mesmo hover azul do menu */
.site-header .btn { isolation: isolate; transition: transform .35s cubic-bezier(.2, .7, .2, 1), color .35s ease, border-color .35s ease; }
.site-header .btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 999px;
  background: var(--hydr-brand-gradient);
  opacity: 0;
  transition: opacity .35s ease;
}
.site-header .btn:hover { color: var(--hydr-black); border-color: transparent; }
.site-header .btn:hover::before { opacity: 1; }

/* saída do hero (de volta à abertura): tudo some na hora, sem os atrasos da entrada */
.hero:not(.is-on) [data-in], .hero:not(.is-on) .card[data-in] { transition-duration: .01s; transition-delay: 0s; }
