/* Telepresenz — animated hero (ported from the source site) */

.tp-hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  padding: 2rem 0;
}
#network-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-bg-elements { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blob { position: absolute; width: 50vw; height: 50vw; border-radius: 50%; }
.hero-blob-blue { top: -10%; right: -5%; background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(255,255,255,0) 70%); }
.hero-blob-purple { bottom: -10%; left: -5%; background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(255,255,255,0) 70%); }

.hero-flex-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 24px; gap: 40px;
  z-index: 2; position: relative; flex-wrap: wrap;
}
.hero-text-side { flex: 1 1 420px; max-width: 600px; z-index: 2; }
.tp-hero-h1 {
  font-family: var(--wp--preset--font-family--inter);
  font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.1; letter-spacing: -0.02em;
  color: #111827; margin: 0 0 1.25rem; font-weight: 800;
}
.tp-hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: #6b7280; line-height: 1.6; margin: 0 0 1.75rem; max-width: 560px; }
.tp-hero-cta {
  display: inline-block; background: #3b82f6; color: #fff; text-decoration: none; font-weight: 600;
  padding: 0.9rem 2rem; border-radius: 50px; box-shadow: 0 8px 24px rgba(59,130,246,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tp-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59,130,246,0.4); }

/* Orbiting wheel */
.hero-wheel-wrapper { position: relative; width: 650px; height: 650px; max-width: 90vw; flex-shrink: 0; z-index: 2; }
.hero-wheel-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-hub {
  position: absolute; top: 50%; left: 50%; width: 22%; height: 22%; margin-left: -11%; margin-top: -11%;
  border-radius: 50%; background: #fff; z-index: 10; border: 4px solid #6366f1; overflow: hidden;
  box-shadow: 0 0 30px rgba(99,102,241,0.4); animation: floatHub 4s ease-in-out infinite;
}
.hero-hub video { width: 100%; height: 100%; object-fit: cover; }

.hero-node-item {
  transition: transform 0.3s ease; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box;
}
.hero-node-item:hover { transform: scale(1.2) !important; z-index: 100; background: var(--feature-color) !important; }
.hero-node-item:hover .hero-node-icon, .hero-node-item:hover .hero-node-text { color: #fff !important; }
.hero-node-item:hover svg path { fill: #fff !important; }
.hero-node-icon { line-height: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }

@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 5px 15px rgba(0,0,0,0.1); } 50% { box-shadow: 0 0 0 4px rgba(var(--rgb-val), 0.2); } }
@keyframes floatHub { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 968px) {
  .tp-hero-section { min-height: auto; padding: 1.5rem 0 3rem; }
  .hero-flex-container { flex-direction: column; text-align: center; }
  .hero-text-side { max-width: none; }
  .tp-hero-sub { margin-left: auto; margin-right: auto; }
  .hero-wheel-wrapper { width: 90vw; height: 90vw; max-width: 420px; max-height: 420px; margin-top: 40px; }
  .hero-node-item .hero-node-icon { font-size: 16px !important; }
  .hero-node-item .hero-node-text { font-size: 9px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-node-item, .hero-hub { animation: none !important; }
}
