.sofara-smart-hero {
    position: relative;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #1a0a3e 0%, var(--secondary) 40%, var(--primary) 100%);
    text-align: center;
    overflow: hidden;
    contain: layout style paint;
}

.sofara-smart-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.06), transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.04), transparent 60%);
    pointer-events: none;
}

.sofara-smart-hero-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.sofara-smart-hero-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    filter: blur(60px);
    will-change: transform, border-radius;
    transform: translateZ(0);
}

.sofara-smart-hero-orb--1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -150px;
    left: -100px;
    animation: sofara-smart-morph-orb-1 12s ease-in-out infinite;
}

.sofara-smart-hero-orb--2 {
    width: 300px;
    height: 300px;
    background: #a78bfa;
    bottom: -100px;
    right: -80px;
    animation: sofara-smart-morph-orb-2 10s ease-in-out infinite;
}

.sofara-smart-hero-orb--3 {
    width: 200px;
    height: 200px;
    background: var(--white);
    top: 50%;
    left: 60%;
    animation: sofara-smart-morph-orb-3 14s ease-in-out infinite;
}

@keyframes sofara-smart-morph-orb-1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); border-radius: 50%; }
    25% { transform: translate3d(40px, -30px, 0) scale(1.2); border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
    50% { transform: translate3d(-20px, 20px, 0) scale(0.9); border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; }
    75% { transform: translate3d(30px, 10px, 0) scale(1.1); border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%; }
}

@keyframes sofara-smart-morph-orb-2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); border-radius: 50%; }
    33% { transform: translate3d(-50px, -20px, 0) scale(1.3); border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%; }
    66% { transform: translate3d(20px, 30px, 0) scale(0.85); border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
}

@keyframes sofara-smart-morph-orb-3 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.04; }
    50% { transform: translate3d(-60px, -40px, 0) scale(1.5); opacity: 0.08; }
}

.sofara-smart-hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 70%);
    animation: sofara-smart-grid-shift 20s linear infinite;
    transform: translateZ(0);
}

@keyframes sofara-smart-grid-shift {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

.sofara-smart-hero-network {
    position: absolute;
    inset: 0;
}

.sofara-smart-hero-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    will-change: transform, opacity;
    transform: translateZ(0);
}

.sofara-smart-hero-node--1 { top: 15%; left: 10%; animation: sofara-smart-node-pulse 3s ease-in-out infinite; }
.sofara-smart-hero-node--2 { top: 25%; left: 75%; animation: sofara-smart-node-pulse 3s ease-in-out 0.5s infinite; }
.sofara-smart-hero-node--3 { top: 50%; left: 20%; animation: sofara-smart-node-pulse 3s ease-in-out 1s infinite; }
.sofara-smart-hero-node--4 { top: 65%; left: 85%; animation: sofara-smart-node-pulse 3s ease-in-out 1.5s infinite; }
.sofara-smart-hero-node--5 { top: 80%; left: 35%; animation: sofara-smart-node-pulse 3s ease-in-out 2s infinite; }
.sofara-smart-hero-node--6 { top: 35%; left: 50%; animation: sofara-smart-node-pulse 3s ease-in-out 0.8s infinite; }
.sofara-smart-hero-node--7 { top: 70%; left: 60%; animation: sofara-smart-node-pulse 3s ease-in-out 1.8s infinite; }
.sofara-smart-hero-node--8 { top: 10%; left: 45%; animation: sofara-smart-node-pulse 3s ease-in-out 2.5s infinite; }

@keyframes sofara-smart-node-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(2); opacity: 0.9; }
}

.sofara-smart-hero-line,
.sofara-smart-hero-line-v {
    opacity: 0.3;
    transform: translateZ(0);
}

.sofara-smart-hero-line--1 { top: 15%; left: 5%; width: 70%; transform: rotate(8deg); }
.sofara-smart-hero-line--2 { top: 35%; left: 25%; width: 55%; transform: rotate(-6deg); }
.sofara-smart-hero-line--3 { top: 55%; left: 10%; width: 65%; transform: rotate(4deg); }
.sofara-smart-hero-line--4 { top: 75%; left: 20%; width: 60%; transform: rotate(-3deg); }
.sofara-smart-hero-line--5 { top: 90%; left: 30%; width: 45%; transform: rotate(7deg); }
.sofara-smart-hero-line--6 { top: 45%; left: 50%; width: 40%; transform: rotate(-10deg); }

.sofara-smart-hero-line-v--1 { top: 5%; left: 20%; height: 70%; }
.sofara-smart-hero-line-v--2 { top: 10%; left: 55%; height: 60%; }
.sofara-smart-hero-line-v--3 { top: 15%; left: 80%; height: 55%; }
.sofara-smart-hero-line-v--4 { top: 30%; left: 35%; height: 50%; }

@keyframes sofara-smart-line-flow-right {
    0%, 100% { opacity: 0.3; }
}

@keyframes sofara-smart-line-flow-down {
    0%, 100% { opacity: 0.3; }
}

.sofara-smart-hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transform: translate(-50%, -50%) translateZ(0);
}

.sofara-smart-hero-ring--1 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
}

.sofara-smart-hero-ring--2 {
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
}

.sofara-smart-hero-ring--3 {
    width: 900px;
    height: 900px;
    top: 50%;
    left: 50%;
}

@keyframes sofara-smart-ring-pulse {
    0%, 100% { opacity: 0.02; }
}

.sofara-smart-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.sofara-smart-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sofara-smart-hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: sofara-smart-pulse-dot 2s infinite;
}

@keyframes sofara-smart-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

.sofara-smart-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.sofara-smart-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .sofara-smart-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .sofara-smart-hero {
        padding: 100px 20px 60px;
    }

    .sofara-smart-hero-orb--1 {
        width: 250px;
        height: 250px;
    }

    .sofara-smart-hero-orb--2 {
        width: 180px;
        height: 180px;
    }
}

/* =============================================
   OTIMIZAÇÕES DE PERFORMANCE - HERO
   ============================================= */

/* Reduz blur dos orbes */
.sofara-smart-hero-orb {
    filter: blur(30px) !important; /* ← Reduzido de 60px */
    opacity: 0.04 !important;      /* ← Reduzido de 0.06 */
}

/* Remove will-change excessivo */
.sofara-smart-hero-orb,
.sofara-smart-hero-node,
.sofara-smart-hero-line,
.sofara-smart-hero-line-v {
    will-change: auto !important;
}

/* Pausa animações quando fora da viewport */
@media (max-width: 768px) {
    .sofara-smart-hero-orb--2,
    .sofara-smart-hero-orb--3 {
        display: none !important;
    }
    
    .sofara-smart-hero-ring--2,
    .sofara-smart-hero-ring--3 {
        display: none !important;
    }
    
    .sofara-smart-hero-node--5,
    .sofara-smart-hero-node--6,
    .sofara-smart-hero-node--7,
    .sofara-smart-hero-node--8 {
        display: none !important;
    }
    
    .sofara-smart-hero-line--4,
    .sofara-smart-hero-line--5,
    .sofara-smart-hero-line--6,
    .sofara-smart-hero-line-v--3,
    .sofara-smart-hero-line-v--4 {
        display: none !important;
    }
}

/* Para TODAS as animações do hero quando não está visível */
@media (prefers-reduced-motion: reduce) {
    .sofara-smart-hero-orb,
    .sofara-smart-hero-grid,
    .sofara-smart-hero-node,
    .sofara-smart-hero-ring {
        animation: none !important;
    }
}