/* Performance: GPU hints para elementos animados */
.onorbit-hero-title,
.onorbit-hero-description,
.onorbit-hero-buttons,
[data-animate],
.animate-in {
    will-change: transform, opacity;
}

/* Limpa will-change após animação para liberar memória GPU */
.animation-done {
    will-change: auto;
}

/**
 * onOrbit Marketing Animated Header - Versão Otimizada
 * ⭐ MANTÉM 100% DO ASPETO VISUAL ORIGINAL
 * ✨ Otimizações internas (performance)
 * Versão: 1.0.1
 */

/* ============================================
   FONT (Inter)
   Self-hosted via @font-face no style.css (pasta /fonts/).
   Removido o @import Google Fonts a partir da v10.6.0 para
   eliminar render-blocking e dependência de DNS externo.
   ============================================ */

/* ============================================
   CSS VARIABLES (Custom Properties)
   ============================================ */
:root {
  /* Primary Colors */
  --onorbit-primary: hsl(217, 91%, 60%);
  --onorbit-primary-foreground: hsl(0, 0%, 100%);
  
  /* Secondary Colors */
  --onorbit-secondary: hsl(220, 70%, 12%);
  --onorbit-secondary-foreground: hsl(0, 0%, 100%);
  
  /* Accent Colors */
  --onorbit-accent: hsl(142, 76%, 36%);
  --onorbit-accent-foreground: hsl(0, 0%, 100%);
  
  /* Special Colors */
  --onorbit-orange: hsl(24, 95%, 53%);
  --onorbit-blue: hsl(217, 91%, 60%);
  --onorbit-green: hsl(142, 76%, 36%);
  --onorbit-dark-blue: hsl(220, 70%, 25%);
  
  /* Background & Text */
  --onorbit-background: hsl(0, 0%, 100%);
  --onorbit-foreground: hsl(222, 47%, 11%);
  --onorbit-muted: hsl(215, 16%, 47%);
  --onorbit-border: hsl(214, 32%, 91%);
  
  /* Spacing */
  --onorbit-radius: 0.5rem;
  --onorbit-radius-lg: 0.75rem;
  --onorbit-radius-xl: 1rem;
}

/* ============================================
   BASE STYLES
   ============================================ */
.onorbit-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

.onorbit-container *,
.onorbit-container *::before,
.onorbit-container *::after {
  box-sizing: inherit;
}

/* ============================================
   HERO SECTION
   ============================================ */
.onorbit-hero {
  position: relative;
  min-height: auto;
  background-color: var(--onorbit-secondary);
  overflow: hidden;
  padding-top: 96px;
}

.onorbit-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    var(--onorbit-secondary) 0%, 
    var(--onorbit-secondary) 50%, 
    hsla(220, 70%, 12%, 0.9) 100%
  );
}

.onorbit-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
  background-size: 40px 40px;
}

.onorbit-hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.onorbit-hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: auto;
}

@media (min-width: 1024px) {
  .onorbit-hero-grid-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ============================================
   HERO TEXT CONTENT
   ============================================ */
.onorbit-hero-text {
  display: flex;
  flex-direction: column;
  opacity: 1;
  animation: onorbit-fade-in-up 0.8s ease-out both;
}

.onorbit-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--onorbit-secondary-foreground);
  line-height: 1.15;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .onorbit-hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .onorbit-hero-title {
    font-size: 3.75rem;
  }
}

/* ============================================
   HERO TITLE - 3 LINHAS FIXAS SEM SALTOS
   ============================================ */
.onorbit-hero-line-1,
.onorbit-hero-line-2,
.onorbit-hero-line-3 {
  display: block;
  line-height: 1.15;
}

.onorbit-hero-line-2 {
  color: var(--onorbit-primary);
  min-height: 1.15em;
}

.onorbit-hero-line-3 {
  color: var(--onorbit-secondary-foreground);
}

.onorbit-hero-line-2 .onorbit-hero-title-highlight {
  color: var(--onorbit-primary);
  display: inline;
}

/* "Sistemas que" + palavra do efeito na mesma linha (mobile e desktop).
   O tamanho acompanha a largura da coluna (ver inc/hero-critical-css.php). */
.onorbit-hero-text {
  container-type: inline-size;
}

.onorbit-hero-title {
  --oh-title-fit: 13;
}

html[lang^="en"] .onorbit-hero-title {
  --oh-title-fit: 10.2;
}

@supports (width: 1cqi) {
  .onorbit-hero-title {
    font-size: min(3.75rem, calc(100cqi / var(--oh-title-fit)));
  }
}

.onorbit-hero-line-main {
  display: block;
  white-space: nowrap;
  line-height: 1.15;
}

.onorbit-hero-line-main .onorbit-hero-line-1,
.onorbit-hero-line-main .onorbit-hero-line-2 {
  display: inline;
}

/* Mobile PT: 3 linhas ("Sistemas que" / palavra do efeito / "Decisões que convertem."). */
@media (max-width: 767px) {
  html[lang^="pt"] .onorbit-hero-line-main {
    white-space: normal;
  }

  html[lang^="pt"] .onorbit-hero-line-main .onorbit-hero-line-1,
  html[lang^="pt"] .onorbit-hero-line-main .onorbit-hero-line-2 {
    display: block;
    white-space: nowrap;
  }

  /* Linhas 1-2 com o mesmo tamanho da 1ª linha EN (mesma fórmula: 2.5rem / coluna÷10.2). */
  @supports (width: 1cqi) {
    html[lang^="pt"] .onorbit-hero-line-main {
      font-size: min(2.5rem, calc(100cqi / 10.2));
    }
  }
}

/* Mantém a altura da linha quando o JS de typing apaga a palavra. Sem texto:
   uma palavra fixa aqui aparecia entre as palavras do efeito (e sempre em PT). */
#onorbit-typing-target:empty::after {
  content: '\200B';
}

.onorbit-hero-title-divider {
  display: none;
}

.onorbit-hero-title-estrategica {
  display: inline-block;
  position: relative;
}

.onorbit-hero-title-estrategica::before {
  content: '';
  display: none !important;
}

.onorbit-hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36rem;
  margin: 0;
  margin-top: 1.5rem;
  line-height: 1.6;
  animation: onorbit-fade-in-up 0.8s ease-out 200ms both;
}

@media (min-width: 768px) {
  .onorbit-hero-description {
    font-size: 1.25rem;
  }
}

.onorbit-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  animation: onorbit-fade-in-up 0.8s ease-out 400ms both;
}

/* ============================================
   BUTTONS
   ============================================ */
.onorbit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--onorbit-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.onorbit-btn-primary {
  background-color: var(--onorbit-primary);
  color: var(--onorbit-primary-foreground);
  border-color: var(--onorbit-primary);
}

.onorbit-btn-primary:hover {
  background-color: hsl(217, 91%, 50%);
  border-color: hsl(217, 91%, 50%);
}

.onorbit-btn-outline {
  background-color: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.onorbit-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   TYPING ANIMATION
   ============================================ */
.onorbit-typing-text {
  display: inline;
}

.onorbit-typing-cursor {
  display: none !important;
}

@keyframes onorbit-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* ============================================
   ORBIT ANIMATION CONTAINER
   ============================================ */
.onorbit-orbit-wrapper {
  display: flex;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .onorbit-orbit-wrapper {
    justify-content: flex-end;
  }
}

.onorbit-orbit-container {
  position: relative;
  width: 300px;
  height: 300px;
}

@media (min-width: 768px) {
  .onorbit-orbit-container {
    width: 400px;
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .onorbit-orbit-container {
    width: 500px;
    height: 500px;
  }
}

/* ============================================
   ORBIT CIRCLES (com animação suave)
   ============================================ */
.onorbit-orbit-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: onorbit-rotate-slow 20s linear infinite;
}

.onorbit-orbit-inner {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: onorbit-rotate-slow-reverse 25s linear infinite;
}

/* ============================================
   DECORATIVE DOTS (com pulsação suave)
   ============================================ */
.onorbit-dot-1 {
  position: absolute;
  bottom: 15%;
  right: 25%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(59, 130, 246, 0.6);
  animation: onorbit-pulse-subtle 2s ease-in-out infinite;
}

.onorbit-dot-2 {
  position: absolute;
  bottom: 12%;
  right: 22%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(59, 130, 246, 0.4);
  animation: onorbit-pulse-subtle 2.5s ease-in-out infinite 0.3s;
}

.onorbit-dot-3 {
  position: absolute;
  bottom: 10%;
  right: 18%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(59, 130, 246, 0.3);
  animation: onorbit-pulse-subtle 3s ease-in-out infinite 0.6s;
}

/* ============================================
   FLOATING ICON CARDS (LAYOUT ORIGINAL)
   ============================================ */
.onorbit-icon-card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.onorbit-icon-card:hover {
  transform: scale(1.08);
}

.onorbit-icon-card-white {
  background-color: white;
  border-radius: var(--onorbit-radius-xl);
}

.onorbit-icon-card-primary {
  background-color: var(--onorbit-primary);
  border-radius: 50%;
}

.onorbit-icon-card-accent {
  background-color: var(--onorbit-accent);
  border-radius: var(--onorbit-radius-xl);
}

.onorbit-icon-card-orange {
  background-color: var(--onorbit-orange);
  border-radius: 50%;
}

/* Icon Card Sizes */
.onorbit-icon-card-sm {
  width: 56px;
  height: 56px;
}

.onorbit-icon-card-md {
  width: 48px;
  height: 48px;
}

@media (min-width: 768px) {
  .onorbit-icon-card-sm {
    width: 64px;
    height: 64px;
  }
  .onorbit-icon-card-md {
    width: 56px;
    height: 56px;
  }
}

@media (min-width: 1024px) {
  .onorbit-icon-card-sm {
    width: 80px;
    height: 80px;
  }
  .onorbit-icon-card-md {
    width: 64px;
    height: 64px;
  }
}

/* Icon Sizes */
.onorbit-icon {
  width: 24px;
  height: 24px;
}

.onorbit-icon-sm {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .onorbit-icon {
    width: 28px;
    height: 28px;
  }
  .onorbit-icon-sm {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 1024px) {
  .onorbit-icon {
    width: 36px;
    height: 36px;
  }
  .onorbit-icon-sm {
    width: 28px;
    height: 28px;
  }
}

/* Icon Colors */
.onorbit-icon-dark-blue {
  color: var(--onorbit-dark-blue);
}

.onorbit-icon-primary {
  color: var(--onorbit-primary);
}

.onorbit-icon-accent {
  color: var(--onorbit-accent);
}

.onorbit-icon-white {
  color: white;
}

/* ============================================
   ICON POSITIONS (EXACTAMENTE COMO ORIGINAL)
   ============================================ */
.onorbit-card-shopping {
  top: 5%;
  left: 10%;
}

.onorbit-card-package {
  top: 8%;
  right: 5%;
}

.onorbit-card-chart {
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
}

.onorbit-card-euro {
  top: 38%;
  left: 2%;
}

.onorbit-card-truck {
  top: 40%;
  right: 0%;
}

.onorbit-card-trending {
  bottom: 12%;
  left: 12%;
}

.onorbit-card-credit {
  bottom: 15%;
  right: 15%;
}

/* ============================================
   FLOATING ANIMATIONS (ORIGINAL - OTIMIZADO)
   ============================================ */
@keyframes onorbit-float-1 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-8px) translateX(3px); }
  50% { transform: translateY(-4px) translateX(-2px); }
  75% { transform: translateY(-10px) translateX(1px); }
}

@keyframes onorbit-float-2 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-6px) translateX(-4px); }
  66% { transform: translateY(-12px) translateX(2px); }
}

@keyframes onorbit-float-3 {
  0%, 100% { transform: translateY(0px) translateX(-50%) scale(1); }
  50% { transform: translateY(-8px) translateX(-50%) scale(1.02); }
}

@keyframes onorbit-float-4 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  40% { transform: translateY(-7px) translateX(5px); }
  80% { transform: translateY(-3px) translateX(-3px); }
}

@keyframes onorbit-float-5 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  30% { transform: translateY(-10px) translateX(-2px); }
  70% { transform: translateY(-5px) translateX(4px); }
}

@keyframes onorbit-float-6 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-5px) translateX(-3px); }
  75% { transform: translateY(-9px) translateX(2px); }
}

@keyframes onorbit-float-7 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  35% { transform: translateY(-11px) translateX(3px); }
  65% { transform: translateY(-6px) translateX(-4px); }
}

.onorbit-float-1 {
  animation: onorbit-float-1 4s ease-in-out infinite;
}

.onorbit-float-2 {
  animation: onorbit-float-2 4.5s ease-in-out infinite;
  animation-delay: 0.3s;
}

.onorbit-float-3 {
  animation: onorbit-float-3 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.onorbit-float-4 {
  animation: onorbit-float-4 5s ease-in-out infinite;
  animation-delay: 0.2s;
}

.onorbit-float-5 {
  animation: onorbit-float-5 4.2s ease-in-out infinite;
  animation-delay: 0.7s;
}

.onorbit-float-6 {
  animation: onorbit-float-6 4.8s ease-in-out infinite;
  animation-delay: 0.4s;
}

.onorbit-float-7 {
  animation: onorbit-float-7 4.3s ease-in-out infinite;
  animation-delay: 0.6s;
}

/* ============================================
   PULSE GLOW ANIMATION (GLOBO)
   ============================================ */
@keyframes onorbit-pulse-glow {
  0%, 100% {
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
  }
  50% {
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.4);
  }
}

/* ============================================
   FADE IN ANIMATIONS
   ============================================ */
@keyframes onorbit-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Novas animações para optimize */
@keyframes onorbit-rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes onorbit-rotate-slow-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes onorbit-pulse-subtle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

/* ============================================
   CENTER GLOBE (EXACTAMENTE COMO ORIGINAL)
   ============================================ */
.onorbit-globe-center {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background-color: var(--onorbit-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: onorbit-pulse-glow 2s ease-in-out infinite;
  will-change: box-shadow;
}

.onorbit-globe-icon {
  width: 48px;
  height: 48px;
  color: white;
}

@media (min-width: 768px) {
  .onorbit-globe-icon {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 1024px) {
  .onorbit-globe-icon {
    width: 80px;
    height: 80px;
  }
}

/* ============================================
   HEADER STYLES
   ============================================ */
.onorbit-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background-color: var(--onorbit-background);
  padding: 1rem 0;
}

.onorbit-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.onorbit-header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.onorbit-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.onorbit-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.onorbit-logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
}

.onorbit-logo-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--onorbit-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.onorbit-logo-letter {
  color: var(--onorbit-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.onorbit-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--onorbit-accent);
  transform: rotate(45deg) scale(1.1);
  transition: transform 0.5s ease;
}

.onorbit-logo:hover .onorbit-logo-ring {
  transform: rotate(90deg) scale(1.1);
}

.onorbit-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--onorbit-foreground);
  letter-spacing: -0.025em;
}

.onorbit-logo-text-highlight {
  color: var(--onorbit-primary);
}

/* Navigation */
.onorbit-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .onorbit-nav {
    display: flex;
  }
}

.onorbit-nav-link {
  color: var(--onorbit-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.onorbit-nav-link:hover {
  color: var(--onorbit-primary);
}

/* Header Actions */
.onorbit-header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .onorbit-header-actions {
    display: flex;
  }
}

.onorbit-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--onorbit-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  background-color: var(--onorbit-primary);
  color: white;
  border: none;
}

.onorbit-header-btn:hover {
  background-color: hsl(217, 91%, 50%);
}

.onorbit-header-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--onorbit-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.onorbit-header-link:hover {
  color: var(--onorbit-primary);
}

.onorbit-header-icon-btn {
  background: none;
  border: none;
  color: var(--onorbit-muted);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.onorbit-header-icon-btn:hover {
  color: var(--onorbit-primary);
}

/* Mobile Menu Button */
.onorbit-mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--onorbit-foreground);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .onorbit-mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu */
.onorbit-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--onorbit-border);
}

.onorbit-mobile-menu.active {
  display: flex;
}

@media (min-width: 1024px) {
  .onorbit-mobile-menu {
    display: none !important;
  }
}

.onorbit-mobile-nav-link {
  color: var(--onorbit-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.onorbit-mobile-nav-link:hover {
  color: var(--onorbit-primary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.onorbit-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .onorbit-float-1,
  .onorbit-float-2,
  .onorbit-float-3,
  .onorbit-float-4,
  .onorbit-float-5,
  .onorbit-float-6,
  .onorbit-float-7,
  .onorbit-globe-center,
  .onorbit-orbit-outer,
  .onorbit-orbit-inner,
  .onorbit-typing-cursor {
    animation: none;
  }
  
  .onorbit-hero-text,
  .onorbit-hero-description,
  .onorbit-hero-buttons,
  .onorbit-orbit-wrapper {
    animation: none;
    opacity: 1;
  }
}
