/* ================================================================
   SCALE GROWTH — Premium Layer
   Efeitos 3D, imagens stock, glow blobs, molduras premium
   Carregado APOS scale-theme.css
   ================================================================ */

/* --- Media Frame Premium (hero-dashboard, strategy-report, etc.) --- */
.sg-media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.5s ease;
}
.sg-media-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(192,232,80,0.15), transparent 50%, rgba(192,232,80,0.08));
  z-index: -1;
  filter: blur(20px);
  opacity: 0.6;
  transition: opacity 0.4s;
}
.sg-media-frame:hover {
  transform: perspective(800px) rotateY(-3deg) rotateX(2deg) translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 60px rgba(192,232,80,0.08);
}
.sg-media-frame:hover::before {
  opacity: 1;
}
.sg-media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Glow Blobs (seções) --- */
.sg-glow {
  position: relative;
}
.sg-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.sg-glow--top-right::after {
  top: -10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(192,232,80,0.05), transparent 65%);
  filter: blur(80px);
}
.sg-glow--bottom-left::after {
  bottom: -10%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(192,232,80,0.04), transparent 65%);
  filter: blur(80px);
}
.sg-glow--center::after {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(192,232,80,0.04), transparent 60%);
  filter: blur(100px);
}

/* --- Backgrounds com imagens stock --- */
.sg-bg-wires {
  position: relative;
}
.sg-bg-wires::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-wires-url);
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.sg-bg-neon {
  position: relative;
}
.sg-bg-neon::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bg-neon-url);
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
  z-index: 0;
}

/* --- Section dividers --- */
.sg-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  border: none;
  margin: 0;
}

/* --- Hero Premium overrides --- */
.sg-hero-premium {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}
.sg-hero-premium h1 {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* Compact hero grid — tudo na primeira dobra */
.sg-hero-grid--compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Stats bar below image */
.sg-hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  margin-top: 20px;
  padding: 18px 16px;
  background: rgba(27, 27, 27, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.sg-hero-stats__item {
  text-align: center;
  flex: 1;
}
.sg-hero-stats__item .sg-stat-number {
  font-size: 1.6rem;
}
.sg-hero-stats__item .sg-stat-label {
  font-size: 0.65rem;
  letter-spacing: 1px;
}
.sg-hero-stats__divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* Floating animation on hero image */
.sg-hero-float {
  animation: sgHeroFloat 6s ease-in-out infinite;
}
@keyframes sgHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.sg-hero-float:hover {
  animation-play-state: paused;
}

/* Fade-in animations */
.sg-hero-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: sgFadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.sg-hero-fade-in--delay {
  animation-delay: 0.2s;
}
.sg-hero-fade-in--delay2 {
  animation-delay: 0.4s;
}
@keyframes sgFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Floating particles */
.sg-hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.sg-hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: sgParticle 12s linear infinite;
}
.sg-hero-particles span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 14s; }
.sg-hero-particles span:nth-child(2) { left: 30%; animation-delay: 2s; animation-duration: 10s; }
.sg-hero-particles span:nth-child(3) { left: 55%; animation-delay: 4s; animation-duration: 16s; }
.sg-hero-particles span:nth-child(4) { left: 75%; animation-delay: 1s; animation-duration: 12s; }
.sg-hero-particles span:nth-child(5) { left: 90%; animation-delay: 3s; animation-duration: 11s; }
@keyframes sgParticle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .sg-hero-premium {
    min-height: auto;
    padding: 100px 0 40px;
  }
  .sg-hero-premium h1 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }
  .sg-hero-grid--compact {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sg-hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .sg-hero-stats__divider {
    width: 60px;
    height: 1px;
  }
}

/* --- Services image card --- */
.sg-services-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.sg-services-visual .sg-chip {
  position: absolute;
  background: rgba(20,20,20,0.85);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.sg-services-visual .sg-chip--tl { top: 16px; left: 16px; }
.sg-services-visual .sg-chip--tr { top: 16px; right: 16px; }
.sg-services-visual .sg-chip--bl { bottom: 16px; left: 16px; }
.sg-services-visual .sg-chip--br { bottom: 16px; right: 16px; }

/* --- CTA Section premium --- */
.sg-cta-premium {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0e0e0e 100%);
}
.sg-cta-premium > * {
  position: relative;
  z-index: 2;
}
.sg-cta-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 400px;
}
.sg-cta-image img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
  mask-image: linear-gradient(to right, black 60%, transparent 100%);
}

/* --- Cases overlay for background images --- */
.sg-cases-bg {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.sg-cases-bg img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.sg-cases-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,20,20,0.3), rgba(20,20,20,0.7));
  pointer-events: none;
}

/* --- Responsive hero grid --- */
.sg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) {
  .sg-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Premium section with content relative z-index --- */
.sg-section .sg-container,
.sg-section-alt .sg-container {
  position: relative;
  z-index: 1;
}
