/**
 * AGILIZE BUSINESS - Critical CSS Extraction
 * CSS necessário para renderizar above-the-fold (Hero + Nav)
 */

/* ========================================
   RESET & BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Urbanist', 'Inter', sans-serif;
  background-color: #0B0B0C;
  color: #ffffff;
  overflow-x: hidden;
}

/* ========================================
   CUSTOM CURSOR (Above-the-fold)
   ======================================== */
#cursor,
#cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s ease-out;
}

#cursor {
  width: 1.25rem;
  height: 1.25rem;
  background: #ffffff;
  z-index: 9999;
}

#cursor-follower {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 9998;
}

/* ========================================
   NAVIGATION (Critical)
   ======================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(11, 11, 12, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-cta {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #F2C772 0%, #c49a3c 100%);
  color: #0B0B0C;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(242, 199, 114, 0.3);
}

/* ========================================
   HERO SECTION (Critical)
   ======================================== */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: #0B0B0C;
  display: flex;
  align-items: center;
}

#hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1500px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.hero-headline-stroke {
  -webkit-text-stroke: 2px #F2C772;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ========================================
   ORB EFFECT (Above-the-fold)
   ======================================== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

/* ========================================
   SMOKE EFFECT (Above-the-fold)
   ======================================== */
.smoke-layer {
  position: absolute;
  background: radial-gradient(circle, rgba(242, 199, 114, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.4;
}

@keyframes smokeA {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(30px, -20px) scale(1.1); opacity: 0.6; }
}

@keyframes smokeB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
  50% { transform: translate(-25px, 15px) rotate(180deg); opacity: 0.5; }
}

@keyframes smokeC {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate(20px, 30px) scale(1.15); opacity: 0.55; }
}

/* ========================================
   RESPONSIVE (Mobile-first)
   ======================================== */
@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Reduz animações em dispositivos com reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .orb,
  .smoke-layer {
    animation: none !important;
  }
}
