/* ==========================================================================
   Globo 3D de clientes (Hub de Clientes e seção da página inicial)
   ========================================================================== */
/* ---------- Globo 3D ---------- */
.globe-hero { height: 100vh; height: 100svh; min-height: 620px; background: #000; user-select: none; -webkit-user-select: none; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.globe-fallback { position: absolute; inset: 0; display: none; }
.globe-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.globe-hero.no-gl .globe-fallback { display: block; }
.globe-hero.no-gl .globe-canvas, .globe-hero.no-gl .globe-hint { display: none; }

.globe-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.globe-ui a, .globe-ui button { pointer-events: auto; }
.globe-ui .plus { position: absolute; color: rgba(255,255,255,.55); }
.globe-tag { position: absolute; left: 24px; top: 104px; color: rgba(255,255,255,.7); }

.globe-title { position: absolute; left: 24px; bottom: 64px; max-width: 420px; }
.globe-title h1 { font-size: clamp(54px, 5.6vw, 108px); line-height: .9; letter-spacing: -0.04em; }
.globe-title h1 .line { display: block; overflow: hidden; }
.globe-title h1 .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease) .3s forwards; }
.globe-title h1 .line:nth-child(2) > span { animation-delay: .42s; }
.globe-title p { margin-top: 20px; max-width: 300px; color: var(--paper-50); opacity: 0; animation: fadeIn 1s var(--ease) .9s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.globe-side { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 280px; pointer-events: auto; opacity: 0; animation: fadeIn 1s var(--ease) 1.1s forwards; }
.globe-side ul { margin-top: 12px; border-top: 1px solid var(--paper-15); }
.globe-side li { border-bottom: 1px solid var(--paper-15); }
.globe-side button {
  width: 100%; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 6px;
  padding: 12px 0; text-align: left; font-size: 16px; letter-spacing: -0.5px; color: rgba(255,255,255,.55);
  transition: color .3s, padding .5s var(--ease);
}
.globe-side button .n { font-family: var(--f-mono); font-weight: 400; font-size: 11px; }
.globe-side button .ar { opacity: 0; transform: translate(-6px, 6px); transition: opacity .3s, transform .5s var(--ease); }
.globe-side button:hover, .globe-side button.on, .globe-side button:focus-visible { color: #fff; padding-left: 6px; }
.globe-side button:hover .ar, .globe-side button.on .ar { opacity: 1; transform: none; }
.globe-side li.more { padding: 12px 0; color: var(--paper-50); border-bottom: 0; }

.globe-bottom { position: absolute; left: 24px; right: 24px; bottom: 20px; display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; color: rgba(255,255,255,.75); }
.globe-hint { justify-self: center; grid-column: 1; display: inline-flex; gap: 10px; align-items: center; margin-left: 30%; opacity: 0; animation: fadeIn 1s var(--ease) 1.4s forwards; }
.drag-ico { width: 26px; height: 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 8px; position: relative; }
.drag-ico::after { content: ""; position: absolute; top: 3px; left: 4px; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dragDot 2.2s var(--ease) infinite; }
@keyframes dragDot { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
.globe-down { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--paper-15); border-radius: 2px; transition: background-color .3s, color .3s; }
.globe-down:hover { background: #fff; color: #000; }

.globe-tip {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  background: #fff; color: #000; border-radius: 2px; padding: 9px 12px; max-width: 280px;
  display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity .25s;
}
.globe-tip.on { opacity: 1; }
.globe-tip strong { font-weight: 500; font-size: 15px; letter-spacing: -0.4px; }
.globe-tip span { font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--ink-50); }

.globe-card {
  position: absolute; left: 50%; top: 50%; z-index: 6; width: min(380px, calc(100% - 32px));
  padding: 22px; border-radius: 4px; color: #fff;
  background: rgba(14,14,14,.86); border: 1px solid var(--paper-15);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.globe-card.on { opacity: 1; transform: translate(-50%, -50%); }
.globe-card .gc-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; font-size: 22px; line-height: 1; color: var(--paper-50); }
.globe-card .gc-close:hover { color: #fff; }
.globe-card .gc-logo { height: 64px; margin: 4px 30px 14px 0; }
.globe-card .gc-logo img { height: 64px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.globe-card .gc-kicker { color: var(--paper-50); }
.globe-card h3 { font-size: 28px; letter-spacing: -0.8px; line-height: 1; margin: 8px 0 12px; }
.globe-card .gc-txt { color: rgba(255,255,255,.7); }
.globe-card .gc-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.globe-card .gc-links a { color: #fff; border-bottom: 1px solid var(--paper-15); padding-bottom: 2px; transition: border-color .3s; }
.globe-card .gc-links a:hover { border-color: #fff; }
.globe-card .gc-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.globe-card .gc-btn { display: block; text-align: center; padding: 11px 14px; border-radius: 2px; border: 1px solid var(--paper-15); font-size: 14px; letter-spacing: -0.3px; transition: background-color .3s, color .3s; }
.globe-card .gc-btn.primary { background: #fff; color: #000; border-color: #fff; }
.globe-card .gc-btn:hover { background: #fff; color: #000; }

.globe-fade { position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; pointer-events: none; transition: opacity .7s var(--ease); }
.globe-fade.on { opacity: 1; }

/* ---------- Versão embutida na página inicial ---------- */
.globe-hero { position: relative; overflow: hidden; }
/* reserva espaço para o corte de cima (desta seção) e o de baixo (próxima seção) */
.globe-embed { height: calc(100vh + var(--slant-half) * 2); height: calc(100svh + var(--slant-half) * 2); min-height: 760px; padding-bottom: var(--slant-half); }
.globe-embed .globe-canvas, .globe-embed .globe-fallback { height: calc(100% - var(--slant-half)); bottom: auto; }
.globe-embed .globe-ui { bottom: var(--slant-half); }
.globe-embed .globe-top { position: absolute; left: 0; right: 0; top: calc(var(--slant-half) + 4px); z-index: 3; pointer-events: none; }
.globe-embed .globe-side { top: 54%; }
.globe-embed .globe-top .label-row { border-top-color: var(--paper-10); color: #fff; }
.globe-title h2 { font-size: clamp(54px, 5.6vw, 108px); line-height: .9; letter-spacing: -0.04em; }
.globe-title h2 .line { display: block; overflow: hidden; }
.globe-title h2 .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease) .3s forwards; }
.globe-title h2 .line:nth-child(2) > span { animation-delay: .42s; }
.globe-title .cta-line { margin-top: 26px; pointer-events: auto; color: #fff; }
/* na home as animações de entrada esperam a seção aparecer na tela */
.globe-embed .globe-title .line > span, .globe-embed .globe-title p, .globe-embed .globe-side, .globe-embed .globe-hint { animation-play-state: paused; }
.globe-embed.in-view .globe-title .line > span, .globe-embed.in-view .globe-title p, .globe-embed.in-view .globe-side, .globe-embed.in-view .globe-hint { animation-play-state: running; }

@media (max-width: 860px) {
  .globe-side, .globe-ui .plus { display: none; }
  .globe-tag { top: 84px; }
  .globe-title { bottom: 74px; right: 24px; }
  .globe-title h1 { font-size: 15vw; }
  .globe-title p { display: none; }
  .globe-bottom { grid-template-columns: 1fr auto; gap: 12px; }
  .globe-hint { margin-left: 0; justify-self: start; }
  .globe-bottom > span:last-child { display: none; }
  .globe-title h2 { font-size: 15vw; }
  .globe-embed .globe-title .cta-line { display: none; }
  .globe-embed .globe-top { top: 12px; }
}
