/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-void: #050a14;
    --bg-carbon: #0a1628;
    --bg-graphite: #0f1d32;
    --bg-card: #111d33;
    --text-white: #f0f4f8;
    --text-silver: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #009aff;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-glow: rgba(0, 154, 255, 0.4);
    --gradient-warm: linear-gradient(135deg, #009aff, #8b5cf6);
    --gradient-green: linear-gradient(135deg, #009aff, #10b981);
    --gradient-card: linear-gradient(135deg, rgba(0,154,255,0.1), rgba(139,92,246,0.05));
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --border-subtle: rgba(0, 154, 255, 0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body { scroll-behavior: auto; overflow-x: hidden; max-width: 100vw; }
body {
    font-family: var(--font-sans);
    background: var(--bg-void);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    position: relative;
    width: 100%;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; height: auto; }

/* ========== TYPOGRAPHY ========== */
.text-gradient { background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-green { background: var(--gradient-green); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ========== NAVBAR ========== */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0.85rem 2rem;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    transition: transform 0.5s var(--ease-out-expo), background 0.3s;
}
#navbar.scrolled { background: rgba(5, 10, 20, 0.95); }
.nav-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo img { height: 40px; transition: transform 0.3s; }
.nav-logo:hover img { transform: scale(1.05); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-silver); letter-spacing: 0.3px;
    transition: color var(--transition); position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
    background: var(--gradient-warm); border-radius: 2px;
    transition: width 0.4s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--text-white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent-blue); }
.nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; gap: 1rem; align-items: center; }
.btn-nav {
    padding: 0.6rem 1.5rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem;
    transition: all 0.4s var(--ease-out-expo);
}
.btn-nav-outline {
    border: 1px solid rgba(0,154,255,0.3); color: var(--accent-blue);
}
.btn-nav-outline:hover { background: rgba(0,154,255,0.1); border-color: var(--accent-blue); }
.btn-nav-filled {
    background: var(--accent-blue); color: white;
}
.btn-nav-filled:hover { background: #0080d4; transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }

/* Mobile menu */
#menuToggle { display: none; }
#menuToggle svg { width: 28px; height: 28px; color: var(--text-white); }
#mobileMenu {
    position: fixed; top: 0; right: 0; width: 80%; max-width: 400px; height: 100vh;
    background: var(--bg-carbon); z-index: 2000; padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
    display: flex; flex-direction: column; gap: 2rem;
    border-left: 1px solid var(--border-subtle);
}
#mobileMenu.open { transform: translateX(0); }
#mobileOverlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7);
    z-index: 1999; opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
}
#mobileOverlay.open { opacity: 1; pointer-events: all; }
#menuClose { align-self: flex-end; }
#menuClose svg { width: 28px; height: 28px; color: var(--text-white); }
.mobile-menu-links { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu-links a {
    font-size: 1.1rem; font-weight: 500; color: var(--text-silver);
    padding: 0.75rem 0; border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition);
}
.mobile-menu-links a:hover { color: var(--accent-blue); padding-left: 0.5rem; }

@media (max-width: 900px) {
    .nav-links, .nav-actions { display: none; }
    #menuToggle { display: block; }
}

/* ========== HERO CANVAS SCRUB ========== */
.hero-scrub-container { position: relative; background: var(--bg-void); overflow: hidden; }
#hero-canvas {
    position: sticky; top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 1; pointer-events: none;
    filter: brightness(0.22);
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    overflow: hidden;
}
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(120px);
    animation: orbFloat 12s ease-in-out infinite alternate;
}
.hero-orb-1 {
    width: 600px; height: 600px; top: -15%; left: -5%;
    background: rgba(0,154,255,0.12);
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 500px; height: 500px; bottom: -10%; right: -5%;
    background: rgba(139,92,246,0.1);
    animation-delay: -4s;
}
.hero-orb-3 {
    width: 400px; height: 400px; top: 40%; left: 50%;
    background: rgba(16,185,129,0.06);
    animation-delay: -8s;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
    100% { transform: translate(10px, -10px) scale(1.02); }
}
.hero-grid-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(0,154,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px; z-index: 2; opacity: 0.5;
}
.hero-content {
    position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    z-index: 10; padding: 0 clamp(2rem, 5vw, 8rem);
}
.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; max-width: 1400px; margin: 0 auto; width: 100%;
}
.hero-content h1 {
    font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800;
    line-height: 1.1; letter-spacing: -0.02em;
}
.hero-content p.hero-desc {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-silver);
    max-width: 520px; line-height: 1.7; margin-top: 1.5rem;
}
.hero-badge {
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-green);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.5rem;
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 1rem; border-radius: 999px;
    background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.15);
}
.hero-badge .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); animation: pulse-dot 2s infinite; }
.hero-stats {
    display: flex; gap: 2.5rem; margin-top: 2.5rem;
    padding-top: 2rem; border-top: 1px solid var(--border-subtle);
}
.hero-stat-value { font-size: 2.2rem; font-weight: 800; font-family: var(--font-mono); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.scroll-indicator {
    position: absolute; right: 2rem; top: 50%; transform: translateY(-50%);
    writing-mode: vertical-rl; font-family: var(--font-mono); font-size: 0.65rem;
    color: rgba(0,154,255,0.4); letter-spacing: 3px; text-transform: uppercase;
    z-index: 10; display: flex; align-items: center; gap: 1rem;
}
.scroll-line { width: 1px; height: 60px; background: rgba(0,154,255,0.3); animation: scroll-line 2s ease-in-out infinite; }
@keyframes scroll-line { 0%,100%{ opacity:0.3; transform:scaleY(0.5); } 50%{ opacity:1; transform:scaleY(1); } }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-content h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; justify-content: center; text-align: center; }
    .hero-terminal-col { display: none; }
    .scroll-indicator { display: none; }

    /* === DISABLE CANVAS FRAMES ON MOBILE === */
    #hero-canvas, .product-canvas, #cta-canvas { display: none !important; }

    /* Hero: reduce scroll height, no need for long scrub */
    .hero-scrub-container { height: auto !important; min-height: 100vh; }
    .hero-content { position: relative; height: auto; min-height: 100vh; padding-top: 6rem; padding-bottom: 3rem; }

    /* Products: no scroll-scrub, static cards */
    .products-intro { height: auto !important; }
    .products-intro-sticky { position: relative !important; height: auto !important; padding: 3rem 1.5rem !important; }
    .products-intro-sticky * { opacity: 1 !important; transform: none !important; }
    .product-section { height: auto !important; padding-bottom: 0 !important; }
    .product-sticky { position: relative !important; height: auto !important; overflow: visible !important; }
    .product-sticky::after { display: none !important; }
    .product-overlay { display: none !important; }
    .product-content, .product-content-right {
        position: relative !important; top: auto !important; left: auto !important; right: auto !important;
        transform: none !important; text-align: left !important;
        max-width: none !important; padding: 2rem 1.5rem !important;
    }
    .product-content-right .product-tags { justify-content: flex-start; }
    /* Separador sutil entre agentes */
    .product-section + .product-section { border-top: 1px solid var(--border-subtle); }

    /* CTA: static */
    .cta-section { background: var(--bg-carbon); }
}

/* ========== MARQUEE ========== */
.marquee-section {
    padding: 1.25rem 0; overflow: hidden;
    border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
    background: rgba(0,154,255,0.02);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0 2rem;
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
    white-space: nowrap; text-transform: uppercase; letter-spacing: 1.5px;
}
.marquee-item svg { width: 6px; height: 6px; opacity: 0.4; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ========== SECTIONS ========== */
section { padding: clamp(4rem, 6vw, 6rem) clamp(1.5rem, 5vw, 8rem); }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-badge {
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-green);
    letter-spacing: 2px; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem;
}
.section-badge::before { content: ''; width: 32px; height: 1px; background: var(--accent-green); }
.section-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.1;
    letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.section-subtitle { font-size: 1.05rem; color: var(--text-silver); max-width: 580px; line-height: 1.75; }

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1rem 2rem; border-radius: 999px;
    background: var(--accent-blue); color: white; font-weight: 600; font-size: 0.95rem;
    transition: all 0.4s var(--ease-out-expo); position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn-primary svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out-expo); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 1rem 2rem; border-radius: 999px;
    border: 1px solid rgba(0,154,255,0.25); color: var(--text-silver); font-weight: 600; font-size: 0.95rem;
    transition: all 0.4s var(--ease-out-expo);
}
.btn-outline:hover { border-color: var(--accent-blue); color: var(--text-white); transform: translateY(-2px); background: rgba(0,154,255,0.05); }
.btn-outline svg { width: 18px; height: 18px; }

/* ========== PREMIUM CARDS ========== */
.glow-card {
    background: linear-gradient(165deg, rgba(15,29,50,0.85), rgba(10,22,40,0.95));
    border: 1px solid rgba(0,154,255,0.08);
    border-radius: var(--radius); position: relative; overflow: hidden;
    transition: all 0.6s var(--ease-out-expo);
    backdrop-filter: blur(10px);
}
.glow-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,154,255,0.3), transparent);
    opacity: 0; transition: opacity 0.5s;
}
.glow-card::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-warm);
    transition: width 0.8s var(--ease-out-expo);
}
.glow-card:hover {
    border-color: rgba(0,154,255,0.2);
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.25), 0 0 80px rgba(0,154,255,0.06);
}
.glow-card:hover::before { opacity: 1; }
.glow-card:hover::after { width: 100%; }
.glow-card:hover .icon-box {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 25px rgba(0,154,255,0.25);
}
.glow-card:hover h3, .glow-card:hover h4 {
    background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ========== TAGS ========== */
.tag {
    display: inline-block; padding: 0.35rem 0.85rem; border-radius: 8px;
    background: rgba(0,154,255,0.05); border: 1px solid rgba(0,154,255,0.1);
    font-size: 0.72rem; font-family: var(--font-mono); color: var(--accent-blue);
    letter-spacing: 0.5px; transition: all 0.3s;
}
.glow-card:hover .tag {
    background: rgba(0,154,255,0.1); border-color: rgba(0,154,255,0.2);
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal-up {
    opacity: 0; transform: translateY(50px);
    will-change: transform, opacity;
    transition: 1.2s var(--ease-out-expo);
}
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0; transform: translateX(-60px);
    will-change: transform, opacity;
    transition: 1.4s var(--ease-out-expo);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-scale {
    opacity: 0; transform: scale(0.92);
    transition: 1.2s var(--ease-out-expo);
}
.reveal-scale.active { opacity: 1; transform: scale(1); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ========== COUNTER ANIMATION ========== */
.counter-grid {
    display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap; margin-top: 3rem;
}
.counter-item { text-align: center; }
.counter-value {
    font-size: 3rem; font-weight: 800; font-family: var(--font-mono);
    background: var(--gradient-warm); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.counter-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 0.25rem; }

/* ========== CTA SECTION ========== */
.cta-section {
    position: relative; overflow: hidden;
    background: var(--bg-carbon);
}
#cta-canvas {
    position: absolute; top: -8%; left: 0; width: 100%; height: 120%;
    object-fit: cover; z-index: 0; pointer-events: none;
    opacity: 0.12; filter: brightness(0.1);
}
.cta-content {
    position: relative; z-index: 10;
    text-align: center; padding: clamp(4rem, 8vw, 6rem) 2rem;
}

/* ========== FOOTER ========== */
footer {
    padding: 0; border-top: 1px solid var(--border-subtle);
    background: var(--bg-carbon);
}
.footer-top {
    max-width: 1200px; margin: 0 auto; padding: 4rem 2rem 3rem;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand img { height: 32px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; max-width: 280px; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s var(--ease-out-expo);
}
.footer-social a:hover { border-color: var(--accent-blue); background: rgba(0,154,255,0.08); transform: translateY(-3px); }
.footer-social a svg { width: 18px; height: 18px; color: var(--text-silver); }
.footer-col h4 {
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-white);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a {
    color: var(--text-muted); font-size: 0.9rem;
    transition: all 0.3s var(--ease-out-expo);
    display: flex; align-items: center; gap: 0.5rem;
}
.footer-col ul li a:hover { color: var(--accent-blue); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
}
.footer-bottom-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.4s var(--ease-out-expo); animation: pulse-wp 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }
@keyframes pulse-wp { 0%,100%{ box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50%{ box-shadow: 0 4px 40px rgba(37,211,102,0.6); } }

/* ========== GRID LAYOUTS ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start; }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-3-2 { grid-template-columns: 1fr; }
}

/* ========== ICON CONTAINERS ========== */
.icon-box {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0,154,255,0.12), rgba(0,154,255,0.04));
    border: 1px solid rgba(0,154,255,0.12);
    margin-bottom: 1.25rem; position: relative;
    transition: all 0.5s var(--ease-out-expo);
}
.icon-box svg { width: 24px; height: 24px; color: var(--accent-blue); transition: color 0.3s; }
.icon-box.green { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04)); border-color: rgba(16,185,129,0.12); }
.icon-box.green svg { color: var(--accent-green); }
.icon-box.purple { background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(139,92,246,0.04)); border-color: rgba(139,92,246,0.12); }
.icon-box.purple svg { color: var(--accent-purple); }
.icon-box.amber { background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.04)); border-color: rgba(245,158,11,0.12); }
.icon-box.amber svg { color: var(--accent-amber); }

/* ========== GLOWING BORDER ========== */
.border-glow { position: relative; }
.border-glow::before {
    content: ''; position: absolute; inset: -1px; border-radius: calc(var(--radius) + 1px);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green), var(--accent-purple), var(--accent-blue));
    background-size: 300% 300%;
    animation: borderGlow 4s ease infinite;
    z-index: -1; opacity: 0; transition: opacity 0.5s;
}
.border-glow:hover::before { opacity: 1; }
@keyframes borderGlow {
    0%,100%{ background-position: 0% 50%; }
    50%{ background-position: 100% 50%; }
}

/* ========== TERMINAL BLOCK ========== */
.terminal {
    background: #0d1117; border: 1px solid var(--border-subtle); border-radius: var(--radius);
    overflow: hidden; font-family: var(--font-mono); font-size: 0.85rem;
}
.terminal-header {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border-subtle);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title { margin-left: 0.75rem; color: var(--text-muted); font-size: 0.75rem; }
.terminal-body { padding: 1.25rem; line-height: 1.8; }
.terminal-body .cmd { color: var(--text-silver); }
.terminal-body .prompt { color: var(--accent-blue); }
.terminal-body .success { color: #28c840; }
.terminal-body .result { color: var(--accent-green); }
.terminal-cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent-blue); animation: blink 1s step-end infinite; vertical-align: middle; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ========== FLOATING BADGE ========== */
.floating-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.25rem; border-radius: 999px;
    background: rgba(0, 154, 255, 0.06); border: 1px solid rgba(0, 154, 255, 0.15);
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-green);
    letter-spacing: 1px; animation: floatBadge 3s ease-in-out infinite;
}
.floating-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #28c840; animation: pulse-dot 2s infinite; }
@keyframes floatBadge { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-6px); } }
@keyframes pulse-dot { 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }

/* ========== PRODUCTS INTRO HEADER ========== */
.products-intro {
    height: 150vh; position: relative;
    background: var(--bg-void);
}
.products-intro-sticky {
    position: sticky; top: 0;
    height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem;
}

/* ========== PRODUCT SECTIONS (Full-screen Canvas) ========== */
.product-section {
    position: relative; height: 300vh;
    background: var(--bg-void);
    padding-bottom: 30vh;
}
.product-sticky {
    position: sticky; top: 0;
    width: 100%; height: 100vh;
    overflow: hidden;
}
.product-canvas {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
    filter: brightness(0.25);
}
.product-sticky::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 25%; z-index: 1;
    background: linear-gradient(to top, var(--bg-void), transparent);
    pointer-events: none;
}
.product-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(5,10,20,0.9) 0%, rgba(5,10,20,0.5) 45%, rgba(5,10,20,0.15) 100%);
    z-index: 2; pointer-events: none;
}
.product-content {
    position: absolute; top: 50%; left: clamp(2rem, 8vw, 10rem);
    transform: translateY(-50%);
    z-index: 10; max-width: 520px;
}
.product-content-right {
    left: auto; right: clamp(2rem, 8vw, 10rem);
    text-align: right;
}
.product-content-right .product-tags { justify-content: flex-end; }
.product-label {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--accent-green); letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 1rem;
}
.product-title {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
    line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.product-desc {
    font-size: 1.05rem; color: var(--text-silver); line-height: 1.75;
    margin-bottom: 1.5rem;
}
.product-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Product mobile handled in 900px breakpoint above */

/* ========== TIMELINE ========== */
.timeline-wrapper {
    position: relative;
    padding: 0 3.5rem;
}
.timeline-scroll {
    overflow-x: auto; overflow-y: hidden;
    padding-bottom: 1rem;
    scrollbar-width: none; -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.timeline-scroll::-webkit-scrollbar { display: none; }
.timeline-track {
    display: flex; gap: 2rem;
    width: max-content; padding: 1rem 0;
}
.timeline-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,154,255,0.12); border: 1px solid rgba(0,154,255,0.25);
    color: var(--accent-blue); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease-out-expo);
}
.timeline-btn:hover {
    background: var(--accent-blue); color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
}
.timeline-btn-left { left: 0; }
.timeline-btn-right { right: 0; }
.timeline-item {
    min-width: 280px; max-width: 300px;
    position: relative;
}
.timeline-year {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--accent-blue); letter-spacing: 2px; font-weight: 700;
    margin-bottom: 0.75rem;
    padding-left: 1rem; border-left: 2px solid var(--accent-blue);
}
.timeline-card { transition: all 0.4s var(--ease-out-expo); }
.timeline-card:hover { transform: translateY(-4px); }

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}
.faq-question {
    width: 100%; padding: 1.25rem 0;
    font-size: 1rem; font-weight: 600; color: var(--text-white);
    text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; font-family: var(--font-sans);
    transition: color 0.3s;
}
.faq-question:hover { color: var(--accent-blue); }
.faq-icon {
    font-size: 1.5rem; font-weight: 300; color: var(--accent-blue);
    transition: transform 0.3s;
    flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo), padding 0.4s;
    padding: 0;
}
.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 1.25rem;
}
.faq-answer p {
    color: var(--text-silver); font-size: 0.9rem; line-height: 1.7;
}

@media (max-width: 768px) {
    #faq .section-container > div { grid-template-columns: 1fr; gap: 2rem; }
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-void); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo { height: 48px; margin-bottom: 2rem; animation: floatBadge 2s ease-in-out infinite; }
.preloader-bar {
    width: 200px; height: 3px; background: rgba(0,154,255,0.15);
    border-radius: 3px; overflow: hidden; margin: 0 auto 1rem;
}
.preloader-progress {
    width: 0%; height: 100%; background: var(--accent-blue);
    border-radius: 3px; transition: width 0.3s;
}
.preloader-text {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase;
}

/* ========== BACK TO TOP ========== */
#backToTop {
    position: fixed; bottom: 2rem; left: 2rem; z-index: 998;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,154,255,0.15); border: 1px solid rgba(0,154,255,0.2);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-blue); cursor: pointer;
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: all 0.4s var(--ease-out-expo);
}
#backToTop.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#backToTop:hover {
    background: var(--accent-blue); color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ========== MAGNETIC BUTTONS ========== */
.magnetic-btn { transition: transform 0.2s ease-out; }

/* ========== UTILITY GRID CLASSES ========== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-2-col-start { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

/* ========== RESPONSIVE GLOBAL ========== */

/* Tablet */
@media (max-width: 900px) {
    .hero-orb-1 { width: 300px; height: 300px; }
    .hero-orb-2 { width: 250px; height: 250px; }
    .hero-orb-3 { width: 200px; height: 200px; }
    #navbar { padding: 0.75rem 1rem; }
}

@media (max-width: 768px) {
    /* Force override inline grid styles */
    .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-2-col, .grid-2-col-start { grid-template-columns: 1fr !important; gap: 2rem !important; }

    /* Benefícios 2 cols */
    #beneficios .grid-3 { grid-template-columns: repeat(2, 1fr); }

    /* Counter grid */
    .counter-grid { gap: 2rem; }
    .counter-value { font-size: 2.2rem; }

    /* Hero stats */
    .hero-stats { gap: 1.5rem; }
    .hero-stat-value { font-size: 1.8rem; }

    /* Section titles */
    .section-title { font-size: clamp(1.8rem, 5vw, 2.5rem); }

    /* Product mobile already handled at 900px */
    .product-title { font-size: clamp(2rem, 6vw, 3rem); }
    .product-desc { font-size: 0.95rem; }

    /* Footer CTA strip stack */
    footer > div:first-child > div {
        flex-direction: column;
        text-align: center;
    }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }

    /* FAQ */
    #faq .grid-2-col-start { grid-template-columns: 1fr !important; gap: 2rem !important; }

    /* Timeline */
    .timeline-wrapper { padding: 0 2.5rem; }
    .timeline-item { min-width: 240px; }
}

@media (max-width: 480px) {
    /* All grids 1 col */
    .grid-4 { grid-template-columns: 1fr !important; }
    #beneficios .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }

    /* Hero */
    .hero-content { padding: 0 1.25rem; }
    .hero-content h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .hero-badge { font-size: 0.6rem; letter-spacing: 1px; }
    .hero-stats { flex-direction: column; gap: 1rem; }

    /* Sections less padding */
    section { padding: 3rem 1.25rem; }

    /* Counter */
    .counter-value { font-size: 1.8rem; }
    .counter-grid { gap: 1.5rem; }
    .counter-item { min-width: 40%; }

    /* Product already static at 900px, no height needed */

    /* CTA buttons */
    .cta-content { padding: 3rem 1.25rem; }

    /* WhatsApp float */
    .whatsapp-float { width: 48px; height: 48px; bottom: 1.25rem; right: 1.25rem; }
    .whatsapp-float svg { width: 24px; height: 24px; }

    /* Marquee smaller */
    .marquee-item { padding: 0 1rem; font-size: 0.7rem; }

    /* Hero orbs even smaller */
    .hero-orb-1 { width: 180px; height: 180px; }
    .hero-orb-2 { width: 150px; height: 150px; }
    .hero-orb-3 { width: 120px; height: 120px; }

    /* Timeline tighter */
    .timeline-wrapper { padding: 0 2rem; }
    .timeline-item { min-width: 220px; }
    .timeline-btn { width: 36px; height: 36px; }

    /* Footer bottom links wrap */
    .footer-bottom-inner > div { flex-wrap: wrap; justify-content: center; }
}
