/* --- CSS Variaveis e Reset --- */
:root {
    --bg-dark: #0A0210;
    --bg-purple: #1a0833;
    --purple-main: #54005c; /* Atualizado conforme pedido */
    --purple-light: #9c27b0; /* Atualizado para combinar */
    --text-main: #ffffff;
    --text-muted: #cdb4db;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(84, 0, 92, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 85% 45%, rgba(156, 39, 176, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(84, 0, 92, 0.2) 0%, transparent 50%),
        linear-gradient(to bottom, transparent 0%, rgba(21, 5, 32, 0.5) 25%, transparent 50%, rgba(23, 7, 36, 0.6) 75%, #050108 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }

/* --- Typography --- */
h1, h2, h3 {
    line-height: 1.2;
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

.highlight-italic {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--purple-light);
    font-weight: 400;
}

.highlight-text {
    color: var(--purple-light);
    font-weight: 500;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--purple-main), var(--purple-light));
    color: white;
    box-shadow: 0 4px 15px rgba(84, 0, 92, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.6);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255, 0.3);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 2, 16, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 901px) {
    .navbar .container {
        max-width: 1540px;
        padding: 0 3rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
}

.logo-sub {
    font-size: 0.6rem;
    letter-spacing: 2px;
    line-height: 1.2;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 3.5rem;
}

.nav-links auto,
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--purple-light);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    perspective: 1000px; /* Important for 3D scroll effect */
}

.background-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(84, 0, 92, 0.4) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

/* Hero CSS Animated 3D Element */
.hero-3d-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
    transform-style: preserve-3d;
}

.hero-3d-element {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: rotateHero 20s infinite linear;
    will-change: transform;
    transition: transform 0.1s linear;
}

.ring {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    border: 3px solid var(--purple-light);
    border-top-color: white;
    filter: drop-shadow(0 0 10px var(--purple-main));
}
.ring-1 { transform: rotateX(60deg) rotateY(0deg); }
.ring-2 { transform: rotateX(60deg) rotateY(60deg); }
.ring-3 { transform: rotateX(60deg) rotateY(120deg); }

.core-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 40px var(--purple-main), 0 0 80px var(--purple-light), inset 0 0 20px #000;
}

@keyframes rotateHero {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(156,39,176,0.8));
    filter: blur(20px);
    opacity: 0.6;
    animation: floatOrb 6s ease-in-out infinite alternate;
}

.orb-1 { width: 100px; height: 100px; top: 10%; right: 10%; animation-delay: 0s; }
.orb-2 { width: 60px; height: 60px; bottom: 20%; left: 10%; animation-delay: 1s; }

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.2); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* --- Glass Panels --- */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
}

/* --- Pain Points Section --- */
.pain-points-section {
    padding: 6rem 0;
    background: transparent;
}

.pain-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pain-card {
    background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--purple-light);
    padding: 2rem;
    border-radius: 0 16px 16px 0;
    transition: background 0.3s;
}

.pain-card:hover {
    background: rgba(255,255,255,0.05);
}

.pain-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pain-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Services Section --- */
.services-section {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--purple-light);
}

/* Animated SVGs */
.service-3d-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    position: relative;
    perspective: 500px;
}

.neo-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

/* Hover Animations */
.html-clock-hand {
    position: absolute;
    bottom: 50%;
    left: calc(50% - 2px);
    width: 4px;
    height: 35px;
    background: var(--purple-light);
    border-radius: 4px;
    transform-origin: bottom center;
    box-shadow: 2px 5px 8px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
}

.html-clock-center {
    position: absolute;
    top: calc(50% - 6px);
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.9);
}

.service-card:hover .html-clock-hand {
    animation: htmlClockSpin 1.5s infinite linear;
}

@keyframes htmlClockSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-card:hover .neo-svg {
    transform: translateY(-5px) scale(1.05);
}

.face-eye {
    transform-origin: center;
    transform-box: fill-box;
    transition: transform 0.2s ease;
}

.service-card:hover .face-eye {
    animation: eyeBlink 2s infinite;
}

@keyframes eyeBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.folder-pages {
    transform-origin: center;
    transform-box: fill-box;
    transition: transform 0.5s ease;
}

.service-card:hover .folder-pages {
    animation: folderFlip 1s infinite alternate ease-in-out;
}

@keyframes folderFlip {
    0% { transform: skewY(0deg) translateY(0); }
    100% { transform: skewY(-15deg) translateY(-10px); }
}

/* --- History Section --- */
.history-section {
    padding: 8rem 0;
    position: relative;
}

.history-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.history-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.history-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.glass-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--purple-main), var(--purple-light));
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.glass-content {
    position: relative;
    z-index: 1;
}

.glass-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

/* --- Marquees --- */
.clients-section, .tools-section {
    padding: 6rem 0;
    background: transparent;
    border: none;
    overflow: hidden;
}

.tools-section {
    border: none;
    background: transparent;
}

.clients-marquee {
    position: relative;
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    padding: 2rem 0;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    animation: scrollMarquee 45s linear infinite;
    width: max-content;
}

.marquee-content.reverse {
    animation: scrollMarqueeReverse 30s linear infinite;
}

.client-logo {
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    border-radius: 50px;
}

.tools-logo {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--purple-light);
    white-space: nowrap;
    background: var(--glass-bg);
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 10px;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); } 
}

@keyframes scrollMarqueeReverse {
    0% { transform: translateX(calc(-50% - 0.75rem)); }
    100% { transform: translateX(0); }
}

/* --- Final CTA --- */
.final-cta {
    padding: 10rem 0;
    background: transparent;
}

/* --- Footer --- */
.footer {
    padding: 4rem 0 2rem;
    background: transparent;
    border: none;
    box-shadow: 0 -50px 100px rgba(0,0,0,0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a.btn-with-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    font-size: 0.9rem;
    color: white; /* overriding footer-links a color */
}

.btn-with-icon .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-outline:hover .icon-circle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.footer-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:not(.btn):hover {
    color: white;
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.2s; }
.reveal.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .history-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-3d-wrapper {
        height: 400px;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .footer {
        padding-bottom: 5rem;
    }
    
    .floating-whatsapp {
        bottom: 1rem;
        right: 1rem;
        width: 55px;
        height: 55px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-3d-wrapper {
        height: 300px;
    }
    
    .hero-3d-element {
        transform: scale(0.8); /* Mantém proporção do anel em telas menores */
    }
    
    .glass-panel {
        padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .pain-cards {
        grid-template-columns: 1fr;
    }
    
    .pain-card {
        border-radius: 16px;
        border-left: none;
        border-top: 3px solid var(--purple-light);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-3d-wrapper {
        height: 250px;
    }
    
    .hero-3d-element {
        transform: scale(0.65);
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .client-logo, .tools-logo {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Desabilitar marquee infinitos no celular, transformando em colunas estáticas */
    .duplicate-hide-mobile {
        display: none !important;
    }
    
    .clients-marquee {
        width: 100vw;
        margin-left: 0;
        left: 0;
        padding: 0 1.5rem;
    }
    
    .clients-section .clients-marquee:first-of-type,
    .tools-section .clients-marquee:first-of-type {
        padding-top: 1rem;
    }
    
    .clients-section .clients-marquee:last-of-type,
    .tools-section .clients-marquee:last-of-type {
        padding-bottom: 1rem;
    }

    /* Assegurando que o espaçamento entre as listas seja exatamente o mesmo gap da grade */
    .clients-marquee + .clients-marquee {
        margin-top: 1rem !important;
    }
    
    .marquee-content, .marquee-content.reverse {
        animation: none !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .client-logo, .tools-logo {
        white-space: normal;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
    }
}
