/* ========================================
   HERO SECTION MODERNA - PALETA INTEGRADA
   Laranja Acastanhado + Animações Subtis
   ======================================== */

:root {
    /* Paleta Principal - Integrada com Footer */
    --hero-primary: #d97638;
    --hero-primary-light: #ff8c4a;
    --hero-secondary: #8a4a2e;
    --hero-accent: #b85f30;
    
    /* Backgrounds */
    --hero-bg-start: #faf8f6;
    --hero-bg-end: #f5f1ed;
    --hero-overlay: rgba(217, 118, 56, 0.03);
    
    /* Textos */
    --hero-text-primary: #2a1f1a;
    --hero-text-secondary: #5a4a42;
    --hero-text-muted: #8a7d72;
    
    /* Efeitos */
    --hero-shadow-primary: rgba(217, 118, 56, 0.2);
    --hero-glow: rgba(217, 118, 56, 0.15);
}

@media (prefers-color-scheme: dark) {
    :root {
        --hero-primary: #ff8c4a;
        --hero-primary-light: #ffa366;
        --hero-secondary: #c66b3d;
        --hero-accent: #d97638;
        
        --hero-bg-start: #1a1410;
        --hero-bg-end: #0f0a08;
        --hero-overlay: rgba(255, 140, 74, 0.05);
        
        --hero-text-primary: #f5ede6;
        --hero-text-secondary: #d4c5b8;
        --hero-text-muted: #9a8d82;
        
        --hero-shadow-primary: rgba(255, 140, 74, 0.3);
        --hero-glow: rgba(255, 140, 74, 0.2);
    }
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */

.landing-hero {
    position: relative;
    background: linear-gradient(165deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, var(--hero-overlay) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--hero-overlay) 0%, transparent 50%);
    pointer-events: none;
}

/* ========================================
   ANIMAÇÃO DE FUNDO - MESH GRADIENT
   ======================================== */

.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.hero-animated-bg::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 50px,
            rgba(217, 118, 56, 0.04) 50px,
            rgba(217, 118, 56, 0.04) 51px
        ),
        repeating-linear-gradient(
            -60deg,
            transparent,
            transparent 50px,
            rgba(184, 95, 48, 0.04) 50px,
            rgba(184, 95, 48, 0.04) 51px
        );
    animation: meshMove 30s linear infinite;
}

.hero-animated-bg::after {
    content: "";
    position: absolute;
    top: 20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(217, 118, 56, 0.08) 0%,
        rgba(217, 118, 56, 0.02) 40%,
        transparent 70%
    );
    border-radius: 50%;
    animation: floatGlow 8s ease-in-out infinite;
}

/* ========================================
   LINHAS DECORATIVAS MODERNAS
   ======================================== */

.hero-decorative-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-diamond-line {
    position: absolute;
    background: linear-gradient(
        135deg,
        transparent 0%,
        var(--hero-primary) 50%,
        transparent 100%
    );
    opacity: 0.3;
    animation: lineSlide 4s ease-in-out infinite;
}

.hero-diamond-line:nth-child(1) {
    width: 1px;
    height: 120px;
    top: 15%;
    left: 10%;
    transform: rotate(30deg);
    animation-delay: 0s;
}

.hero-diamond-line:nth-child(2) {
    width: 1px;
    height: 150px;
    top: 25%;
    right: 15%;
    transform: rotate(-30deg);
    animation-delay: 1s;
    background: linear-gradient(
        135deg,
        transparent 0%,
        var(--hero-accent) 50%,
        transparent 100%
    );
}

.hero-diamond-line:nth-child(3) {
    width: 1px;
    height: 100px;
    bottom: 30%;
    left: 8%;
    transform: rotate(-30deg);
    animation-delay: 2s;
}

.hero-diamond-line:nth-child(4) {
    width: 1px;
    height: 130px;
    bottom: 20%;
    right: 12%;
    transform: rotate(30deg);
    animation-delay: 3s;
    background: linear-gradient(
        135deg,
        transparent 0%,
        var(--hero-accent) 50%,
        transparent 100%
    );
}

/* ========================================
   TECH NODES - PONTOS TECNOLÓGICOS
   ======================================== */

.hero-tech-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--hero-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--hero-glow);
    animation: nodePulse 3s ease-in-out infinite;
    z-index: 3;
}

.hero-tech-node::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--hero-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: nodeRing 3s ease-out infinite;
}

.hero-tech-node::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

/* ========================================
   CONTEÚDO E TEXTOS
   ======================================== */

.landing-hero .container {
    position: relative;
    z-index: 5;
}

.landing-hero .badge {
    background: linear-gradient(135deg, rgba(217, 118, 56, 0.12), rgba(184, 95, 48, 0.12)) !important;
    color: var(--hero-primary) !important;
    border: 1px solid rgba(217, 118, 56, 0.2);
    backdrop-filter: blur(10px);
    animation: badgeFloat 3s ease-in-out infinite;
}

.hero-title-glow {
    color: var(--hero-text-primary);
    animation: titleAppear 1s ease-out;
}

.hero-title-glow .text-primary {
    color: var(--hero-primary) !important;
    position: relative;
    display: inline-block;
}

.hero-title-glow .text-primary::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--hero-primary), var(--hero-primary-light));
    border-radius: 2px;
    opacity: 0.3;
}

.hero-text-fade {
    color: var(--hero-text-secondary);
    animation: textAppear 1s ease-out 0.2s backwards;
}

/* ========================================
   BOTÕES MODERNOS
   ======================================== */

.hero-btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hero-primary), var(--hero-accent)) !important;
    border: none !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px var(--hero-shadow-primary);
}

.hero-btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--hero-shadow-primary);
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-outline {
    position: relative;
    border: 2px solid var(--hero-text-primary) !important;
    color: var(--hero-text-primary) !important;
    background: transparent !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero-btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--hero-text-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.hero-btn-outline:hover {
    color: var(--hero-bg-start) !important;
    border-color: var(--hero-text-primary) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-btn-outline:hover::before {
    width: 100%;
}

/* ========================================
   IMAGEM HERO
   ======================================== */

.hero-image-float {
    animation: imageFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(217, 118, 56, 0.15));
    transition: all 0.4s ease;
}

.hero-image-float:hover {
    filter: drop-shadow(0 25px 50px rgba(217, 118, 56, 0.25));
    transform: translateY(-10px) scale(1.02);
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

@keyframes meshMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(50px, 50px) rotate(180deg);
    }
}

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

@keyframes lineSlide {
    0% {
        opacity: 0;
        transform: translateY(-30px) rotate(30deg);
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(30px) rotate(30deg);
    }
}

@keyframes nodePulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--hero-glow);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px var(--hero-glow);
        transform: scale(1.1);
    }
}

@keyframes nodeRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes titleAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 992px) {
    .landing-hero {
        min-height: 90vh;
    }

    .hero-diamond-line {
        display: none;
    }

    .hero-tech-node {
        width: 8px;
        height: 8px;
    }

    .hero-title-glow {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-animated-bg::after {
        width: 400px;
        height: 400px;
    }

    .hero-title-glow {
        font-size: 2rem;
    }

    .hero-text-fade {
        font-size: 1rem;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        padding: 0.75rem 2rem;
    }
}

@media (max-width: 576px) {
    .hero-tech-node {
        display: none;
    }

    .hero-animated-bg::before {
        animation: none;
    }

    .hero-title-glow {
        font-size: 1.75rem;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* ========================================
   MODO DARK - AJUSTES ESPECÍFICOS
   ======================================== */

@media (prefers-color-scheme: dark) {
    .landing-hero::before {
        background: 
            radial-gradient(circle at 20% 30%, rgba(255, 140, 74, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(217, 118, 56, 0.08) 0%, transparent 50%);
    }

    .hero-animated-bg::before {
        background: 
            repeating-linear-gradient(
                60deg,
                transparent,
                transparent 50px,
                rgba(255, 140, 74, 0.06) 50px,
                rgba(255, 140, 74, 0.06) 51px
            ),
            repeating-linear-gradient(
                -60deg,
                transparent,
                transparent 50px,
                rgba(217, 118, 56, 0.06) 50px,
                rgba(217, 118, 56, 0.06) 51px
            );
    }

    .hero-animated-bg::after {
        background: radial-gradient(
            circle,
            rgba(255, 140, 74, 0.12) 0%,
            rgba(255, 140, 74, 0.04) 40%,
            transparent 70%
        );
    }

    .hero-btn-outline {
        border-color: var(--hero-text-primary) !important;
        color: var(--hero-text-primary) !important;
    }

    .hero-btn-outline:hover {
        color: var(--hero-bg-end) !important;
    }
}

/* ========================================
   PERFORMANCE
   ======================================== */

.hero-animated-bg,
.hero-diamond-line,
.hero-tech-node,
.hero-image-float {
    will-change: transform, opacity;
}

.hero-btn-primary,
.hero-btn-outline {
    will-change: transform, box-shadow;
}
