/* ==========================================================================
   HERO 3D — layout, cena, linha do tempo e modo leve
   ========================================================================== */
.hx { min-height: 100svh; padding: 112px 0 28px; flex-direction: column; justify-content: center; align-items: stretch; }
.hx__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }

/* ---------- texto ---------- */
.hx__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-aqua-300); }
.hx__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-go-500); box-shadow: 0 0 0 0 rgba(43, 212, 109, .6); animation: pulse-dot 2s infinite; }
.hx h1 { color: #fff; margin: 18px 0 22px; font-size: clamp(2.7rem, 1.6rem + 4vw, 5.2rem); }
.hx__intro { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.35; }
.hx__description { margin-top: 16px; max-width: 520px; color: #B6CADC; font-size: var(--fs-lg); line-height: 1.6; }
.hx__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hx__explore { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; padding: 10px 0; border-bottom: 1.5px solid rgba(255, 255, 255, .22); transition: border-color var(--t-base), color var(--t-base); }
.hx__explore .icon { transition: transform var(--t-base) var(--ease-out); }
.hx__explore:hover { color: var(--c-aqua-300); border-color: var(--c-aqua-400); }
.hx__explore:hover .icon { transform: translateX(4px); }
.hx__assurance { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: #8FB0CC; font-size: var(--fs-sm); }
.hx__assurance .icon { color: var(--c-aqua-400); }

/* ---------- cena ---------- */
.hx__stage { position: relative; min-width: 0; }
.hx__scene { position: relative; width: 100%; aspect-ratio: 1 / .98; max-height: min(660px, calc(100svh - 250px)); min-height: 340px; isolation: isolate; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hx__glow { position: absolute; inset: 6% 4% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 184, 234, .22), rgba(28, 90, 140, .12) 55%, transparent 75%); filter: blur(10px); animation: hxGlow 7s var(--ease-in-out) infinite alternate; }
@keyframes hxGlow { to { transform: scale(1.06); opacity: .8; } }
.hx__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--ease-out); cursor: grab; }
.hx__scene.is-dragging .hx__canvas { cursor: grabbing; }
.hx__scene.is-3d .hx__canvas { opacity: 1; }
.hx__scene.is-3d.is-looping .hx__canvas { opacity: .25; transition-duration: .5s; }

.hx__lite { position: absolute; inset: 0; margin: auto; height: 100%; width: auto; max-width: 100%; opacity: 1; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }
.hx__scene.is-3d .hx__lite { opacity: 0; transform: scale(.96); pointer-events: none; }

.hx__labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s; overflow: hidden; }
.hx__scene.is-3d .hx__labels { opacity: 1; }
.hx-label { position: absolute; left: 0; top: 0; height: 16px; margin-top: -8px; display: flex; align-items: center; font-size: .74rem; font-weight: 700; letter-spacing: .03em; color: rgba(214, 232, 245, .62); white-space: nowrap; transition: color .35s; will-change: transform; }
.hx-label i { position: relative; display: block; width: var(--lw, 20px); height: 1px; background: linear-gradient(90deg, rgba(214, 232, 245, .2), rgba(214, 232, 245, .5)); transition: background .35s; }
.hx-label i::before { content: ""; position: absolute; left: -3px; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: rgba(214, 232, 245, .75); transition: background .35s, box-shadow .35s, transform .35s; }
.hx-label b { margin-left: 10px; font-weight: inherit; }
.hx-label.is-active { color: var(--c-aqua-300); }
.hx-label.is-active i { background: linear-gradient(90deg, rgba(116, 210, 244, .35), var(--c-aqua-400)); }
.hx-label.is-active i::before { background: var(--c-aqua-300); box-shadow: 0 0 0 4px rgba(47, 184, 234, .2), 0 0 12px var(--c-aqua-400); transform: scale(1.15); }

/* ---------- linha do tempo ---------- */
.hx__timeline { margin-top: 14px; padding: 16px 24px 14px 28px; border-radius: var(--r-lg); background: rgba(7, 38, 64, .55); border: 1px solid rgba(148, 196, 235, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hx__status { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hx__status strong { position: relative; display: block; color: #fff; line-height: 1.3; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; }
.hx__status strong::before { content: ""; position: absolute; left: -15px; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-aqua-400); box-shadow: 0 0 12px var(--c-aqua-400); flex: none; }
.hx__status-text { flex: 1; min-width: 0; }
.hx__status p { margin-top: 4px; max-width: 46ch; min-height: 2.9em; color: #9DB4C9; font-size: .88rem; line-height: 1.45; }
.hx__controls { display: flex; gap: 6px; flex: none; }
.hx__controls button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #CFE4F3; background: rgba(255, 255, 255, .05); border: 1px solid rgba(148, 196, 235, .16); transition: background var(--t-fast), color var(--t-fast); }
.hx__controls button:hover { background: rgba(47, 184, 234, .16); color: #fff; }
.hx__controls svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx-i-play { display: none; }
[data-hx-playing="0"] .hx-i-play { display: block; fill: currentColor; }
[data-hx-playing="0"] .hx-i-pause { display: none; }
.hx__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.hx__steps button { --p: 0; position: relative; text-align: left; padding: 8px 0 12px; font-size: .8rem; font-weight: 700; color: #7F9CB7; transition: color var(--t-fast); }
.hx__steps button span { display: block; font-family: var(--font-display); font-size: .72rem; color: #5F7E98; margin-bottom: 2px; }
.hx__steps button::before, .hx__steps button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: rgba(148, 196, 235, .16); }
.hx__steps button::after { background: linear-gradient(90deg, var(--c-aqua-300), var(--c-aqua-400)); transform-origin: left; transform: scaleX(var(--p)); box-shadow: 0 0 10px rgba(47, 184, 234, .6); }
.hx__steps button:hover, .hx__steps button.is-active { color: #fff; }
.hx__steps button.is-active span { color: var(--c-aqua-300); }

.hx__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(148, 196, 235, .1); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hx__tag { position: relative; color: #CFE4F3; }
.hx__tag i { position: absolute; left: -14px; top: 50%; margin-top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-aqua-400); box-shadow: 0 0 10px var(--c-aqua-400); }
.hx__count { color: #6F8CA6; font-variant-numeric: tabular-nums; }
.hx__count b { color: var(--c-aqua-300); font-weight: 800; }
.hx__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-size: .7rem; color: #6F8CA6; }
.hx__drag { display: none; }
.hx.is-3d .hx__drag { display: inline; }
.hx__foot span:last-child { margin-left: auto; }

/* ---------- faixa inferior ---------- */
.hx__bottom { display: grid; grid-template-columns: repeat(3, auto) 1fr; align-items: center; gap: 18px 40px; margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid rgba(148, 196, 235, .12); }
.hx__trust { display: flex; align-items: center; gap: 12px; }
.hx__trust .icon { width: 22px; height: 22px; color: var(--c-aqua-400); }
.hx__trust p { font-size: .82rem; color: #8FB0CC; line-height: 1.35; }
.hx__trust strong { display: block; color: #fff; font-size: .92rem; }
.hx__scroll { justify-self: end; display: inline-flex; align-items: center; gap: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8FB0CC; }
.hx__scroll span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(148, 196, 235, .25); letter-spacing: 0; animation: bob 2.2s var(--ease-in-out) infinite; }
.hx__scroll:hover { color: #fff; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- modo leve: animação SVG guiada pela linha do tempo ---------- */
.lx-scan circle { transform-box: fill-box; transform-origin: center; opacity: 0; }
[data-step="0"] .lx-scan circle { animation: lxScan 2.4s var(--ease-out) infinite; }
[data-step="0"] .lx-scan circle:nth-child(2) { animation-delay: .8s; }
[data-step="0"] .lx-scan circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes lxScan { 0% { transform: scale(.2); opacity: .95; } 100% { transform: scale(8); opacity: 0; } }
.lx-path { opacity: 0; transition: opacity .6s; }
[data-step="0"] .lx-path, [data-step="1"] .lx-path { opacity: .9; }
.lx-hole, .lx-drill, .lx-casing { stroke-dasharray: 1; stroke-dashoffset: 1; transition: opacity .5s; }
[data-step="1"] .lx-hole, [data-step="1"] .lx-drill { stroke-dashoffset: calc(1 - var(--sp, 0)); }
[data-step="2"] .lx-hole, [data-step="3"] .lx-hole { stroke-dashoffset: 0; }
[data-step="2"] .lx-drill, [data-step="3"] .lx-drill { opacity: 0; }
[data-step="2"] .lx-casing { stroke-dashoffset: calc(1 - var(--sp, 0)); }
[data-step="3"] .lx-casing { stroke-dashoffset: 0; }
.lx-bit { opacity: 0; transition: opacity .4s; }
[data-step="1"] .lx-bit { opacity: 1; transform: translateY(calc(var(--sp, 0) * 362px)); }
.lx-water { opacity: 0; transition: opacity .8s; }
[data-step="3"] .lx-water { opacity: 1; }
.lx-flow { animation: lxFlow 1s linear infinite; }
@keyframes lxFlow { to { stroke-dashoffset: -32; } }
.lx-aqglow { opacity: .35; transition: opacity .8s; }
[data-step="3"] .lx-aqglow, [data-step="0"] .lx-aqglow { opacity: 1; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .hx { min-height: auto; padding-top: 110px; }
  .hx__layout { grid-template-columns: 1fr; }
  .hx__copy { max-width: 680px; }
  .hx__scene { aspect-ratio: 16 / 12; max-height: 600px; }
  .hx__bottom { grid-template-columns: repeat(3, 1fr); }
  .hx__scroll { display: none; }
}
@media (max-width: 640px) {
  .hx { padding-top: 96px; }
  .hx h1 { font-size: clamp(2.5rem, 11vw, 3.3rem); }
  .hx__ctas { flex-direction: column; align-items: stretch; }
  .hx__ctas .btn { width: 100%; }
  .hx__explore { justify-content: center; border-bottom: 0; }
  .hx__scene { aspect-ratio: 1 / 1.08; min-height: 0; max-height: none; margin-inline: -8px; width: calc(100% + 16px); }
  .hx__timeline { padding: 14px 16px 12px 24px; }
  .hx__status p { min-height: 4.35em; }
  .hx-label { font-size: .66rem; }
  .hx-label b { margin-left: 7px; }
  .hx__foot span:last-child { display: none; }
  .hx__status p { font-size: .82rem; }
  .hx__steps { gap: 6px; }
  .hx__steps button { font-size: .66rem; letter-spacing: -.01em; padding-bottom: 10px; }
  .hx:not(.is-3d) .hx__foot { display: none; }
  .hx__bottom { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx__glow, .hx__eyebrow i, .hx__scroll span { animation: none; }
}

/* ==========================================================================
   TELA DE CARREGAMENTO (só na home)
   ========================================================================== */
.pl { display: none; }
.js .pl { --p: 0; position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--g-deep); color: #CFE4F3;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1), opacity .6s ease .45s;
  animation: plFailsafe .01s linear 12s forwards; }
.js.pl-active, .js.pl-active body { overflow: hidden; }
.pl__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pl__bg .grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(148,196,235,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,196,235,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(60% 55% at 50% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(60% 55% at 50% 50%, #000 20%, transparent 75%); }
.pl__bg::after { content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(47,184,234,.18), transparent 70%); animation: hxGlow 4s var(--ease-in-out) infinite alternate; }
.pl__inner { position: relative; width: min(320px, calc(100vw - 48px)); display: grid; justify-items: center; text-align: center; }
.pl__logo { height: 52px; width: auto; margin-bottom: 34px; animation: plIn .8s var(--ease-out) both; }
.pl__drop { width: 96px; height: 120px; margin-bottom: 30px; animation: plIn .8s var(--ease-out) .1s both; filter: drop-shadow(0 0 24px rgba(47,184,234,.35)); }
.pl__drop svg { width: 100%; height: 100%; overflow: visible; }
.pl__water { transform: translateY(calc((1 - var(--p)) * 150px)); }
.pl__wave { animation: plWave 1.6s linear infinite; }
.pl__wave--2 { animation-duration: 2.4s; animation-direction: reverse; opacity: .55; }
.pl__meta { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8rem; font-weight: 700; animation: plIn .8s var(--ease-out) .2s both; }
.pl__label { color: #CFE4F3; text-align: left; }
.pl__depth { font-family: var(--font-display); color: #8FB0CC; white-space: nowrap; }
.pl__depth b { color: var(--c-aqua-300); font-weight: 500; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pl__bar { position: relative; width: 100%; height: 3px; margin-top: 12px; border-radius: 3px; background: rgba(148,196,235,.16); overflow: hidden; animation: plIn .8s var(--ease-out) .25s both; }
.pl__bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--c-aqua-300), var(--c-aqua-400)); box-shadow: 0 0 12px var(--c-aqua-400); }
.pl__note { margin-top: 18px; font-size: .72rem; color: #6F8CA6; animation: plIn .8s var(--ease-out) .35s both; }
.pl.is-out { transform: translateY(-100%); pointer-events: none; }
.pl.is-out .pl__inner { transition: transform .9s cubic-bezier(.76, 0, .24, 1), opacity .4s; transform: translateY(40px); opacity: 0; }
.pl__edge { position: absolute; left: 0; right: 0; bottom: -59px; height: 60px; color: var(--c-abyss); }
.pl__edge svg { width: 100%; height: 100%; display: block; }
@keyframes plIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes plWave { to { transform: translateX(-60px); } }
@keyframes plFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
/* a entrada do hero só começa quando a tela de carregamento sai */
.js.pl-active .hero h1 .line > span, .js.pl-active .fade-up { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .js .pl { transition: opacity .3s; }
  .pl.is-out { transform: none; opacity: 0; }
  .pl__wave, .pl__bg::after { animation: none; }
}

/* Selo de localização dentro do H1 (palavra-chave para o Google) */
.hx h1 { margin-top: 0; }
.hx h1 .hx__eyebrow { display: flex; width: fit-content; max-width: 100%; margin-bottom: 18px; font-family: var(--font-body); line-height: 1.4; }
