:root {
    --primary: #10b981;
    --dark: #050505;
    --border: rgba(255, 255, 255, 0.1);
    --font-head: 'Orbitron', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: white; font-family: 'Plus Jakarta Sans', sans-serif; overflow-x: hidden; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 40px; }
.text-primary { color: var(--primary); }
.font-head { font-family: var(--font-head); }

/* Skip link */
.skip-link {
    position: fixed; top: -60px; left: 16px; z-index: 300;
    background: var(--primary); color: black; font-weight: 800;
    padding: 10px 20px; border-radius: 50px; text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Custom cursor: desktop mouse only, never hides the native cursor otherwise */
@media (hover: hover) and (pointer: fine) {
    body.cursor-ready, body.cursor-ready a, body.cursor-ready button { cursor: none; }
}
#cursor {
    width: 15px; height: 15px; background: var(--primary);
    border-radius: 50%; position: fixed; pointer-events: none;
    z-index: 9999; mix-blend-mode: difference; display: none;
}
#cursor.active { display: block; }

/* Nav */
#navbar { position: fixed; width: 100%; z-index: 100; padding: 30px 0; transition: 0.4s; }
.nav-content { max-width: 1300px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 900; text-decoration: none; color: white; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { text-decoration: none; color: white; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-cta { border: 1px solid var(--primary); padding: 10px 25px; border-radius: 50px; color: var(--primary) !important; }

/* Mobile menu toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; z-index: 200; }
.menu-toggle span { width: 24px; height: 2px; background: white; transition: 0.3s; display: block; }
.menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 90; }
.menu-overlay.open { display: block; }

@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100%; width: 78%; max-width: 320px;
        background: #0a0a0a; border-left: 1px solid var(--border);
        flex-direction: column; justify-content: center; align-items: flex-start;
        gap: 28px; padding: 40px; z-index: 150;
        transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1rem; }
    .btn-cta { width: 100%; text-align: center; }
    .nav-content { padding: 0 24px; }
}

/* Slices */
.slice { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; padding: 140px 0 80px; }
.slice-auto { min-height: 100vh; position: relative; }
.parallax-bg { position: absolute; inset: -80px 0; background-size: cover; background-position: center; z-index: -2; filter: brightness(0.4); will-change: transform; }
.overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--dark)); z-index: -1; }
.badge { display: inline-block; border: 1px solid var(--primary); color: var(--primary); padding: 6px 15px; border-radius: 50px; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 20px; }

.hero-title { font-size: clamp(2.6rem, 9vw, 8rem); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 0 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-ghost, .btn-solid {
    display: inline-block; padding: 16px 34px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    text-decoration: none; transition: 0.3s;
}
.btn-ghost { border: 1px solid rgba(255,255,255,0.25); color: white; }
.btn-ghost:hover { background: white; color: black; }
.btn-solid { background: var(--primary); color: black; }
.btn-solid:hover { filter: brightness(1.1); }

.scroll-hint {
    position: absolute; bottom: 40px; left: 40px; z-index: 10;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.6rem; text-transform: uppercase; letter-spacing: 3px; color: rgba(255,255,255,0.6);
}
.scroll-hint span { width: 1px; height: 30px; background: var(--primary); display: block; animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* Sector Grid */
.sector-grid { display: flex; flex-direction: column; gap: 10px; padding: 0 10px; }
.sector-slot { position: relative; overflow: hidden; border-radius: 20px; transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); filter: grayscale(1); border: 1px solid var(--border); height: 220px; }
.sector-slot:hover, .sector-slot:focus-within { filter: grayscale(0); border-color: var(--primary); }
.sector-slot img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; opacity: 0.6; }
.sector-slot:hover img, .sector-slot:focus-within img { opacity: 1; transform: scale(1.05); }
.sector-slot h4 { position: absolute; bottom: 24px; left: 24px; font-family: var(--font-head); font-size: 1.2rem; text-transform: uppercase; pointer-events: none; }

@media (min-width: 861px) {
    .sector-grid { flex-direction: row; height: 600px; }
    .sector-slot { flex: 1; height: auto; }
    .sector-slot:hover { flex: 2.5; }
    .sector-slot h4 { bottom: 30px; left: 30px; font-size: 1.5rem; }
}

/* Comparison Slider */
.grid-compare { display: grid; gap: 60px; align-items: center; }
@media (min-width: 861px) { .grid-compare { grid-template-columns: 1fr 1fr; gap: 80px; } }
.tech-list { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); }
.tech-list li::before { content: "• "; }

.comparison-slider { position: relative; height: 420px; border-radius: 30px; overflow: hidden; border: 1px solid var(--border); touch-action: none; }
@media (min-width: 861px) { .comparison-slider { height: 500px; } }
.image-after { position: absolute; inset: 0; background: url('https://i.ibb.co/vYm6m8y/ndvi-sample.jpg') center/cover; }
.image-before { position: absolute; inset: 0; width: 50%; background: url('https://images.unsplash.com/photo-1592982537447-7440770cbfc9?q=80&w=2000') center/cover; border-right: 3px solid var(--primary); z-index: 2; }
.slider-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: var(--primary); z-index: 10; cursor: ew-resize; }
.slider-handle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 20px var(--primary); }
.slider-tag { position: absolute; bottom: 20px; z-index: 5; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); }
.slider-tag.left { left: 16px; }
.slider-tag.right { right: 16px; }
.slider-help { text-align: center; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-top: 16px; }

/* ROI Card */
.glass-box { background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 40px; padding: 40px 28px !important; }
@media (min-width: 640px) { .glass-box { padding: 48px !important; } }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: #222; height: 4px; border-radius: 10px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 22px; width: 22px; border-radius: 50%; background: var(--primary); cursor: pointer; }
input[type=range]::-moz-range-thumb { height: 22px; width: 22px; border-radius: 50%; background: var(--primary); cursor: pointer; border: none; }
.roi-disclaimer { font-size: 10px; color: #666; margin-top: 18px; line-height: 1.5; }

/* Techá Mockup */
.techa-grid { display: grid; gap: 60px; align-items: center; }
@media (min-width: 861px) { .techa-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.order-2 { order: 2; } .order-1 { order: 1; }
@media (min-width: 861px) { .md-order-1 { order: 1; } .md-order-2 { order: 2; } }

.phone-mockup { width: 240px; height: 480px; border: 10px solid #1a1a1a; border-radius: 40px; position: relative; background: #000; overflow: hidden; margin: 0 auto; box-shadow: 0 50px 100px rgba(0,0,0,0.8); }
@media (min-width: 640px) { .phone-mockup { width: 280px; height: 560px; } }
.phone-screen { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.scan-bar { position: absolute; top: 0; width: 100%; height: 2px; background: var(--primary); box-shadow: 0 0 15px var(--primary); animation: scan 3s linear infinite; }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

.dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex: none; }
.rounded-hub { border-radius: 40px; opacity: 0.75; width: 100%; height: auto; display: block; }

.infra-title { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.infra-sub { font-size: clamp(1.1rem, 2.4vw, 1.5rem); }

/* Final CTA */
.cta-section { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; padding: 120px 0; }
.cta-overlay { position: absolute; inset: 0; background: rgba(16, 185, 129, 0.55); mix-blend-mode: multiply; }
.cta-title { font-size: clamp(3rem, 12vw, 9rem); }
.cta-sub { font-size: clamp(1rem, 2.4vw, 1.5rem); }
.btn-corp-final { display: inline-block; background: black; color: white; padding: 22px 44px; border-radius: 100px; font-weight: 900; text-transform: uppercase; letter-spacing: 3px; font-family: var(--font-head); text-decoration: none; transition: 0.4s; font-size: 0.85rem; }
@media (min-width: 640px) { .btn-corp-final { padding: 25px 60px; letter-spacing: 5px; font-size: 1rem; } }
.btn-corp-final:hover { transform: scale(1.06); background: white; color: black; }

.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #666; }
.footer-links a { color: inherit; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: white; }

/* Glass Global */
.glass { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 24px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
