/* --- VARIABLES & BASE --- */
:root {
    --bg-dark: #070709;
    --bg-surface: #121216;
    --bg-surface-hover: #1a1a20;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.2);
    
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-dim: #6b7280;
    
    --accent-1: #3b82f6;
    --accent-2: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    
    --glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --shadow-depth: 0 10px 30px -10px rgba(0,0,0,0.8);
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: var(--bg-dark); color: var(--text-primary); font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.text-dim { color: var(--text-dim); }
.text-highlight { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-center { text-align: center; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .logo-text { font-family: var(--font-display); letter-spacing: -0.03em; }

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.875rem 1.5rem; font-size: 0.875rem; font-weight: 600; font-family: var(--font-sans); text-decoration: none; border-radius: 6px; transition: var(--transition-fast); cursor: pointer; letter-spacing: 0.05em; text-transform: uppercase; }
.btn-primary { background: var(--text-primary); color: var(--bg-dark); border: 1px solid var(--text-primary); }
.btn-primary:hover { background: transparent; color: var(--text-primary); box-shadow: var(--glow); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-highlight); }
.btn-secondary:hover { background: var(--bg-surface-hover); border-color: var(--text-primary); }
.btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-outline:hover { color: var(--text-primary); border-color: var(--text-primary); }

/* --- BADGE (Updated to look more sober/technical) --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}
.badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-1);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-1);
}

/* --- NAVBAR --- */
.navbar { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(7, 7, 9, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.logo-sub { font-size: 0.65rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.15em; margin-top: 2px; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: var(--transition-fast); }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-actions { display: flex; gap: 1rem; align-items: center; }

/* --- WHATSAPP BUTTON --- */
.btn-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s;
}
.btn-whatsapp:hover { transform: scale(1.1); }
.btn-whatsapp svg { width: 30px; height: 30px; fill: currentColor; }

/* --- SECTIONS BASE --- */
section { padding: 8rem 0; position: relative; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 3rem; line-height: 1.1; }
.page-header { padding: 12rem 0 6rem; text-align: center; border-bottom: 1px solid var(--border-color); }
.page-title { font-size: 3.5rem; margin-bottom: 1rem; }
.page-subtitle { color: var(--text-secondary); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/* --- HERO --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; overflow: hidden; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-title { font-size: 4rem; font-weight: 700; line-height: 1.05; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 90%; }
.hero-actions { display: flex; gap: 1rem; }

/* CORE VISUAL 3D ORBITS (Improved) */
.hero-visual { position: relative; height: 500px; display: flex; justify-content: center; align-items: center; perspective: 1200px; }
.ecosystem-core { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(65deg) rotateZ(-30deg); }
.core-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateX(-90deg) rotateY(30deg); background: var(--bg-surface); border: 1px solid var(--border-highlight); padding: 1.25rem 2rem; font-family: var(--font-display); font-weight: 700; border-radius: 8px; box-shadow: var(--glow), inset 0 0 20px rgba(255,255,255,0.05); z-index: 10; font-size: 1.25rem; }

.orbit { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; transform-style: preserve-3d; animation: rotate linear infinite; }
.orbit-1 { width: 350px; height: 350px; border: 1px dashed rgba(255,255,255,0.1); animation-duration: 25s; }
.orbit-2 { width: 550px; height: 550px; border: 1px solid rgba(255,255,255,0.05); animation-duration: 45s; animation-direction: reverse; }
.orbit-3 { width: 200px; height: 200px; border: 1px dotted rgba(59,130,246,0.3); animation-duration: 15s; }

.module { position: absolute; top: -20px; left: 50%; margin-left: -60px; width: 120px; text-align: center; background: rgba(18, 18, 22, 0.9); border: 1px solid var(--border-highlight); padding: 0.6rem; font-size: 0.75rem; border-radius: 6px; font-weight: 600; color: var(--text-primary); animation: counter-rotate linear infinite; backdrop-filter: blur(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.module::after { content: ''; position: absolute; bottom: -20px; left: 50%; width: 1px; height: 20px; background: var(--border-highlight); } /* Connection line to orbit */

.orbit-1 .module { animation-duration: 25s; }
.orbit-2 .module { animation-duration: 45s; animation-direction: reverse; }
.orbit-3 .module { animation-duration: 15s; }

/* Positions */
.mod-ecommerce { transform: rotate(0deg) translateX(175px); }
.mod-crm { transform: rotate(120deg) translateX(175px); }
.mod-lms { transform: rotate(240deg) translateX(175px); }

.mod-pos { transform: rotate(45deg) translateX(275px); }
.mod-api { transform: rotate(135deg) translateX(275px); }
.mod-ai { transform: rotate(225deg) translateX(275px); }
.mod-database { transform: rotate(315deg) translateX(275px); }

.mod-cloud { transform: rotate(180deg) translateX(100px); color: var(--accent-1); border-color: var(--accent-1); }

@keyframes rotate { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes counter-rotate { 0% { transform: rotateX(-90deg) rotateY(30deg) rotate(0deg); } 100% { transform: rotateX(-90deg) rotateY(30deg) rotate(-360deg); } }

/* --- STATEMENT --- */
.statement-section { text-align: center; background: linear-gradient(to bottom, var(--bg-dark), var(--bg-surface), var(--bg-dark)); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.statement-title { font-size: 3rem; margin-bottom: 2rem; }
.statement-text { font-size: 1.25rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto 4rem; }
.evolution-flow { display: flex; justify-content: center; align-items: center; gap: 2rem; font-family: var(--font-display); font-weight: 700; }
.flow-step { padding: 1rem 2rem; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-secondary); }
.flow-step.highlight { border-color: var(--text-primary); color: var(--text-primary); }
.flow-step.premium { background: var(--text-primary); color: var(--bg-dark); box-shadow: var(--glow); }
.flow-arrow { color: var(--border-highlight); transform: rotate(-90deg); }

/* --- DASHBOARD MOCKUP --- */
.dashboard-section { overflow: hidden; }
.section-header { max-width: 700px; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-secondary); font-size: 1.125rem; }
.dashboard-mockup { display: flex; background: var(--bg-surface); border: 1px solid var(--border-highlight); border-radius: 12px; height: 600px; box-shadow: var(--shadow-depth); overflow: hidden; transform: perspective(1000px) rotateX(2deg) rotateY(-2deg); transition: var(--transition-smooth); }
.dashboard-mockup:hover { transform: perspective(1000px) rotateX(0deg) rotateY(0deg); border-color: var(--text-primary); }
.dash-sidebar { width: 250px; background: var(--bg-dark); border-right: 1px solid var(--border-color); padding: 2rem; }
.dash-logo { font-family: var(--font-display); font-weight: 700; margin-bottom: 3rem; color: var(--text-primary); }
.dash-nav { list-style: none; }
.dash-nav li { padding: 0.75rem 1rem; color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.5rem; border-radius: 6px; cursor: default; }
.dash-nav li.active { background: var(--bg-surface-hover); color: var(--text-primary); }
.dash-main { flex: 1; padding: 2rem; display: flex; flex-direction: column; }
.dash-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); margin-bottom: 2rem; color: var(--text-secondary); font-size: 0.875rem; }
.dash-user { background: var(--bg-dark); padding: 0.5rem 1rem; border-radius: 20px; border: 1px solid var(--border-color); }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.dash-card { background: var(--bg-dark); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 8px; }
.dash-card h4 { color: var(--text-secondary); font-size: 0.75rem; margin-bottom: 0.5rem; }
.dash-card .value { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); }
.dash-chart { flex: 1; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 8px; padding: 2rem; display: flex; align-items: flex-end; }
.chart-bars { display: flex; align-items: flex-end; gap: 1rem; width: 100%; height: 100%; padding-top: 2rem; }
.chart-bars .bar { flex: 1; background: var(--border-highlight); border-radius: 4px 4px 0 0; transition: var(--transition-smooth); }
.dashboard-mockup:hover .chart-bars .bar { background: var(--accent-1); opacity: 0.5; }

/* --- SERVICES & OTHERS --- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.service-card { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 3rem; border-radius: 12px; transition: var(--transition-fast); }
.service-card:hover { border-color: var(--border-highlight); background: var(--bg-surface-hover); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.service-card ul { list-style: none; color: var(--text-secondary); }
.service-card ul li { margin-bottom: 0.75rem; padding-left: 1.5rem; position: relative; }
.service-card ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--border-highlight); border-radius: 50%; }

.models-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.model-card { padding: 2rem; border: 1px solid var(--border-color); background: var(--bg-surface); border-radius: 8px; }
.model-card h4 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-primary); }
.model-card p { font-size: 0.875rem; color: var(--text-secondary); }

.cases-list { display: flex; flex-direction: column; gap: 1.5rem; }
.case-item { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 2.5rem; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; transition: var(--transition-fast); }
.case-item:hover { border-color: var(--text-primary); }
.case-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.case-type { font-size: 0.875rem; color: var(--accent-1); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.case-info p { color: var(--text-secondary); font-size: 1rem; max-width: 800px; }

/* --- FORMS --- */
.contact-form { max-width: 600px; margin: 0 auto; background: var(--bg-surface); padding: 3rem; border-radius: 12px; border: 1px solid var(--border-color); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.875rem; }
.form-control { width: 100%; padding: 1rem; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); font-family: var(--font-sans); }
.form-control:focus { outline: none; border-color: var(--accent-1); }

/* --- FOOTER --- */
footer { border-top: 1px solid var(--border-color); padding: 4rem 0; background: var(--bg-dark); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-brand h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.875rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--text-primary); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .services-grid, .models-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 3rem; }
    .statement-title { font-size: 2rem; }
    .dashboard-mockup { flex-direction: column; height: auto; }
    .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); padding: 1.5rem; }
    .dash-nav { display: flex; gap: 1rem; overflow-x: auto; }
    .dash-cards { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .models-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 2rem; }
    .footer-links { flex-wrap: wrap; }
}
