/* Fonts are loaded via HTML <link> for better performance */

:root {
    /* Colors */
    --color-bg-primary: #0B0B0B;
    --color-bg-secondary: #0f0f0f;
    --color-accent: rgb(124, 58, 237);
    --color-accent-dark: #4C1D95;
    --color-text-primary: #F9FAFB;
    --color-text-secondary: #9CA3AF;
    --color-white: #FFFFFF;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #7C3AED 0%, #4C1D95 100%);

    /* Shadows & Glows */
    --shadow-brand: 0 0 20px rgba(124, 58, 237, 0.3);

    /* Layout */
    --container-width: 1200px;

    /* Transitions */
    --transition-standard: all 0.3s ease;

    /* Typography */
    /* Primary Headline (Elegant/Premium) */
    --font-heading: 'Playfair Display', serif;
    /* Information/Tech (Modern/Clean) */
    --font-body: 'Geist', sans-serif;
}

/* Base Reset & Performance Layer */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important;
    overscroll-behavior-y: none;
    /* Prevent scroll chain lag */
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    /* Priorities speed over perfection */
    background-color: #000000;
}

/* Hardware Acceleration & Layout Culling */
section,
header,
footer {
    contain: paint;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
    /* Clips content, avoiding expensive cross-section repaints */
}

/* Fix CLS and LCP for Hero: Disable content-visibility for above-the-fold content */
.hero {
    content-visibility: visible !important;
    contain-intrinsic-size: unset !important;
    min-height: 100vh;
    /* Ensure consistent height */
}

img,
video {
    content-visibility: auto;
    /* Browser optimizes rendering for off-screen media */
}

.service-card-premium,
.testimonial-card,
.btn,
.nav-pill,
.bento-card,
.fiber-step,
.fiber-glow-orb {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    /* Hint to GPU to keep these layers ready and forced 3D acceleration */
}

body {
    font-family: var(--font-body);
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #000000;
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    font-style: normal;
}

/* Typography Hierarchy Strategy:
   H1, H2 -> Playfair Display (Italic) for Impact/Brand
   H3, H4, H5, H6 -> Geist for Technical/Scanning legibility
*/

h1,
h2 {
    font-family: var(--font-body);
    color: var(--color-white);
    line-height: 1.2;
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: none;
}

/* Utility for the "Elegant Touch" on keywords */
.serif-italic {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    /* Aumentado para maior destaque */
    text-transform: none;
    padding: 0 4px;
    /* Pequeno respiro lateral */
    color: inherit;
    letter-spacing: 0.02em;
    /* Elegância extra */
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-body);
    color: var(--color-white);
    line-height: 1.3;
    font-style: normal;
    font-weight: 400;
    /* Clean tech look */
    letter-spacing: -0.02em;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

h1 {
    margin-bottom: 24px;
}

h2 {
    margin-bottom: 20px;
}

h3 {
    margin-bottom: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shiny Text Effect */
@keyframes shiny-animation {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.shiny-text {
    color: #FFFFFF;
    display: inline-block;
}

.bg-gradient {
    background: var(--gradient-brand);
}

.section-padding {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 12px;
    /* Soft Squared */
    font-family: var(--font-body);
    /* Geist for clear CTA */
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-standard);
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    /* Prepare for border styles */
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

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

.btn-secondary:hover {
    border-color: var(--color-accent);
    background: rgba(124, 58, 237, 0.1);
}

/* Navbar */
/* Navbar Spacer (Old code removed as it's replaced by NavSimple) */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 3vh;
    position: relative;
    overflow: hidden;
    /* Background managed by LiquidEther canvas */
}

/* Aurora Container */
.aurora-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Technological Grid Overlay */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Simpler than a repeating grid */
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, black 90%);
}


.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}



.hero h1 {
    font-size: 5rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 900px;
}

.hero-desc {
    max-width: 600px;
    font-size: 1.2rem !important;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Updated Primary Button back to Purple */
.btn-primary {
    background: var(--gradient-brand);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

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

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

/* CTA Section Refined */
.cta-final {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    background-color: #000000;
}

.cta-aurora-container {
    position: absolute;
    bottom: 0%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: rotate(180deg);
    /* Invert aurora direction */
    opacity: 0.8;
}

/* Aumentar o botão especificamente dentro do card de CTA */
.cta-card .nav-cta {
    padding: 13px 19px;
    font-size: 1.1rem;
}

.cta-card {
    position: relative;
    z-index: 2;
    background-color: rgba(15, 15, 15, 0.98);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 40px 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}

.cta-card h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 24px;
    color: #FFFFFF;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

@media (max-width: 768px) {
    .cta-card {
        padding: 60px 20px;
        margin: 0 20px;
    }
}

/* Page Sections Refinement */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Standard Bento Grid Removed - Replaced by Editorial Bento below */

/* Editorial Bento Grid (Reference Style) */
/* Modular Bento Grid removed - see services.css */

/* Modular Fiber Optic Process removed - see services.css */


/* Modular Testimonials removed - see testimonials.css */

/* Footer (Existing restored) */
footer {
    background: #000000;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    margin-top: 20px;
    max-width: 300px;
}

.footer-column h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    /* Footer headers often cleaner in sans */
    font-weight: 400;
    font-style: normal;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--color-text-secondary);
}

.footer-column ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {

    /* Mobile Menu Updates */
    .navbar {
        top: 0;
        background: rgba(11, 11, 11, 0.9);
        /* restore opacity for mobile */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 15px 0;
    }

    .nav-center-pill {
        position: fixed;
        top: 70px;
        left: 0;
        transform: none;
        width: 100%;
        background: var(--color-bg-primary);
        flex-direction: column;
        border-radius: 0;
        border: none;
        padding: 20px;
        gap: 10px;
        display: none;
        /* Hidden by default, toggled via JS class 'active' */
    }

    .nav-center-pill.active {
        display: flex;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        display: block;
        text-align: center;
        width: 100%;
        border-radius: 12px;
    }

    .nav-cta-container {
        display: none;
        /* Hide top CTA on mobile, should be inside menu if needed */
    }

    .hamburger {
        display: block;
        margin-left: auto;
        /* Push to right */
    }
}

/* Modular Navbar removed - see navigation.css */

/* Modular Services removed - see services.css */

/* =========================================
   Interactive Fluid Cursor (Gooey)
   ========================================= */
#cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    /* O filtro gooey foi desativado por causar lag extremo no scroll */
    /* filter: url("#cursor-goo"); */
}

.cursor-particle {
    position: absolute;
    /* AJUSTE AQUI: Tamanho base da partícula */
    width: 27px;
    height: 27px;
    /* AJUSTE AQUI: Cor do cursor */
    background: #682EC8;
    border-radius: 50%;
    /* Devem ser metade da width/height para centralizar */
    left: -10px;
    top: -10px;
    will-change: transform;
    pointer-events: none;
}

/* Ensure SVG filter is hidden but active */
#cursor-filter-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* =========================================
   Global Premium Footer
   ========================================= */
.site-footer {
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-col {
    grid-column: span 1;
    min-width: 250px;
}

.footer-logo {
    display: block;
    margin-bottom: 24px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-desc {
    color: #9CA3AF;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col-title {
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-link {
    color: #6B7280;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #4B5563;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        gap: 40px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* =========================================
   MOBILE MASTER OVERRIDES
   ========================================= */
@media (max-width: 768px) {

    /* Hide Cursor on Mobile totally */
    #cursor-container {
        display: none !important;
    }

    /* Smaller Hero Typography */
    .hero h1,
    h1 {
        font-size: clamp(2.2rem, 10vw, 3rem) !important;
        line-height: 1.1;
    }

    .hero-desc,
    .hero-buttons {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 16px;
    }

    
}

/* Specific Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }
}
/* ---------------------------------------------------------
   WHATSAPP FLOATING BUTTON
--------------------------------------------------------- */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    cursor: pointer;
    animation: pulse-wa 2s infinite;
}
.whatsapp-float-btn svg { width: 32px; height: 32px; transition: transform 0.3s ease; }
.whatsapp-float-btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6); }
.whatsapp-float-btn:hover svg { transform: scale(1.1); }
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) {
    .whatsapp-float-btn { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .whatsapp-float-btn svg { width: 28px; height: 28px; }
}
