/* =============================================================================
   LEADZ SOFTWARE - Sistema de Estilos
   =============================================================================
   Estrutura:
   1. Variáveis CSS
   2. Reset e Base
   3. Tipografia
   4. Canvas (Background)
   5. Glass Panels
   6. Navegação
   7. Botões
   8. Hero Section
   9. Card Particles
   10. Utilitários
   11. Responsivo
   ============================================================================= */

/* =============================================================================
   1. VARIÁVEIS CSS
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Light Mode (Padrão) */
    
    /* Cores de fundo */
    --bg-deep: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0efe9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    
    /* Cores de texto */
    --text-main: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    --text-subtle: #888888;
    
    /* Cores de destaque - Preto/Neutro */
    --accent-primary: #1a1a1a;
    --accent-secondary: #000000;
    --accent-cream: #1a1a1a;
    
    /* Bordas */
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.2);
    --border-strong: rgba(0, 0, 0, 0.15);
    
    /* Glass panels light mode */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    
    /* Footer dark section */
    --footer-bg: #111827;
    --footer-text: #ffffff;
}

/* =============================================================================
   2. RESET E BASE
   ============================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

/* Smooth scroll para âncoras */
a[href^="#"] {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: clip;
}

/* Classe utilitária para texto accent */
.text-accent {
    color: var(--accent-primary);
}

::selection {
    background: var(--accent-cream);
    color: #000;
}

/* =============================================================================
   3. TIPOGRAFIA
   ============================================================================= */
h1,
h2,
h3,
.tech-font {
    font-family: 'Space Grotesk', sans-serif;
}

/* =============================================================================
   4. CANVAS (BACKGROUND)
   ============================================================================= */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    background: var(--bg-deep);
}

/* =============================================================================
   5. GLASS PANELS
   ============================================================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}

.glass-panel:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 247, 244, 0.8) 100%);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(4px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 247, 244, 0.95) 100%);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   6. NAVEGAÇÃO
   ============================================================================= */
.page-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

.header {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    color: #2d2d2d;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-main);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.6;
}

/* Navbar Glass Effect */
.nav-blur {
    background: rgba(5, 5, 5, 0.0);
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.nav-blur.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 20;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #2d2d2d;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =============================================================================
   7. BOTÕES
   ============================================================================= */
.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #333333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--accent-cream);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: #fff;
    color: #2d2d2d;
    border: 1px solid #d0d0d0;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: #999;
    background: #f9f9f9;
}

.btn-cream {
    background-color: var(--accent-cream);
    color: #000;
    transition: all 0.3s ease;
}

.btn-cream:hover {
    background-color: #fff;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(242, 240, 233, 0.2);
}

/* =============================================================================
   8. HERO SECTION
   ============================================================================= */
.hero {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 20px 20px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 32px;
    position: relative;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.logo-icon-large {
    width: 32px;
    height: 32px;
}

.logo-text-large {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 24px;
    color: #fff;
    margin: 0 0 48px 0;
    font-weight: 400;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-main), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }
    51% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 1;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }
}

/* =============================================================================
   9. CARD PARTICLES - Sistema de partículas magnéticas nos cards
   ============================================================================= */
.particle-card {
    position: relative;
    isolation: isolate;
}

.particle-card .particle-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
    border-radius: inherit;
    overflow: hidden;
}

.particle-card .particle-layer canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlay sutil - permite as partículas brilharem */
.particle-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(5, 5, 5, 0.15) 0%,
        rgba(5, 5, 5, 0.05) 50%,
        rgba(5, 5, 5, 0.2) 100%
    );
    border-radius: inherit;
    pointer-events: none;
}

/* Conteúdo acima das partículas e overlay */
.particle-card > div:not(.particle-layer) {
    position: relative;
    z-index: 3;
}

/* Pointer events para interação com partículas */
.particle-card .pointer-events-none {
    pointer-events: none;
}

.particle-card .pointer-events-auto {
    pointer-events: auto;
}

/* =============================================================================
   10. UTILITÁRIOS
   ============================================================================= */
.text-cream {
    color: var(--accent-primary);
}

.text-gradient-cream {
    background: linear-gradient(to right, var(--text-main), var(--accent-primary), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Seção com fundo escuro (para contraste - CTA e Footer) */
.section-dark {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

.section-dark .text-cream {
    color: #F2F0E9;
}

/* Background utilities */
.bg-primary {
    background-color: var(--bg-deep);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-tertiary {
    background-color: var(--bg-tertiary);
}

/* =============================================================================
   11. RESPONSIVO
   ============================================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .header-content {
        padding: 14px 24px;
    }

    .nav {
        gap: 24px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        padding: 12px 16px;
    }

    .logo-text {
        font-size: 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 15;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 16px;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-logo {
        margin-bottom: 32px;
    }

    .logo-text-large {
        font-size: 20px;
    }

    .hero-title {
        font-size: 42px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-content {
        padding: 10px 12px;
    }

    .logo-text {
        font-size: 15px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-logo {
        margin-bottom: 24px;
    }

    .logo-text-large {
        font-size: 18px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 11px 20px;
        font-size: 14px;
    }
}

/* Large Desktop */
@media (min-width: 1920px) {
    .hero-title {
        font-size: 84px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .hero-content {
        max-width: 1000px;
    }
}
