/* 
*  Sistemas FJ - Modern Styles 
*/

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-tertiary: #ff0055;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

h1 span {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

h2 span {
    color: var(--accent-primary);
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Global Animated Background */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: float 20s infinite alternate;
    opacity: 0.5;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(112,0,255,0.4) 0%, rgba(0,0,0,0) 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0,240,255,0.3) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255,0,85,0.2) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -10s;
}

.noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 10%) scale(1.1); }
    66% { transform: translate(-10%, 5%) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent-primary);
    font-size: 1.8rem;
}

.logo span {
    color: var(--text-secondary);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
}

.nav-links li a:hover {
    color: var(--accent-primary);
}

.btn-primary-outline {
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 30px;
    background: var(--glass-bg);
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    border-color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
    border: 1px solid transparent;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text p {
    margin-bottom: 40px;
    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--glass-shadow);
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.stat {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat i {
    font-size: 3rem;
    color: var(--accent-primary);
}

.stat h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat p {
    font-size: 0.9rem;
    margin: 0;
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 24px 0;
}

/* Services */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(0, 240, 255, 0.05), transparent);
    transition: height 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
}

.service-card:hover::after {
    height: 50%;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 1rem;
}

/* Live Systems */
.systems-section {
    padding: 100px 0 140px 0;
    position: relative;
}

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

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.1);
}

.system-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.system-image i {
    font-size: 5rem;
    position: relative;
    z-index: 2;
    color: white;
}

.system-image::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--accent-primary);
    filter: blur(40px);
    border-radius: 50%;
    opacity: 0.5;
}

.var-1::before { background: var(--accent-primary); }
.var-2::before { background: var(--accent-secondary); }
.var-3::before { background: #00ff88; }
.var-4::before { background: var(--accent-tertiary); }

.system-content {
    padding: 32px;
}

.sys-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.sys-badge.bg-purple { background: rgba(112, 0, 255, 0.1); color: #b785ff; }
.sys-badge.bg-green { background: rgba(0, 255, 136, 0.1); color: #00ff88; }
.sys-badge.bg-pink { background: rgba(255, 0, 85, 0.1); color: #ff3377; }

.system-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.system-content p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    min-height: 80px;
}

.sys-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sys-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.sys-link i {
    transition: transform 0.3s ease;
}

.sys-link:hover i {
    transform: translateX(5px);
    color: var(--accent-primary);
}

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

/* Coming soon */
.coming-soon {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
}

.dot-flashing {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background-color: var(--accent-primary);
    color: var(--accent-primary);
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: .5s;
}

.dot-flashing::before, .dot-flashing::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
}

.dot-flashing::before {
    left: -15px;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background-color: var(--accent-primary);
    color: var(--accent-primary);
    animation: dot-flashing 1s infinite alternate;
    animation-delay: 0s;
}

.dot-flashing::after {
    left: 15px;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background-color: var(--accent-primary);
    color: var(--accent-primary);
    animation: dot-flashing 1s infinite alternate;
    animation-delay: 1s;
}

@keyframes dot-flashing {
    0% { background-color: var(--accent-primary); }
    50%, 100% { background-color: rgba(0, 240, 255, 0.2); }
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px 0;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-links i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    font-size: 0.85rem;
}

/* Animations */
.reveal, .reveal-up, .reveal-right {
    opacity: 0;
    visibility: hidden;
}

.reveal.active {
    animation: fadeIn 0.8s ease forwards;
    visibility: visible;
}

.reveal-up.active {
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    visibility: visible;
}

.reveal-right.active {
    animation: fadeInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    visibility: visible;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: -1;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-toggle {
        display: block;
    }
}
