:root {
    --primary-blue: #0066FF;
    --accent-blue: #00C6FF;
    --dark-blue: #0A1A2F;
    --light-blue: #F0F8FF;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --purple: #8A2BE2;
    --teal: #00D4AA;
    --success: #28a745;
    --warning: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Background Manager */
#hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.static-background {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.1);
}

/* Navbar Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.navbar-toggler-icon-custom {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.2);
}

.btn-lg {
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .gradient-text {
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    border-radius: 2px;
}

/* Cards */
.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
    border-color: var(--primary-blue);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--light-blue), var(--white));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Services */
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

/* OficinaOS Section */
.oficinaos-section {
    background: linear-gradient(135deg, var(--white) 0%, #f8fbff 100%);
    position: relative;
    overflow: hidden;
}

.oficinaos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
}

.oficinaos-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.oficinaos-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-item i {
    color: var(--success);
    font-size: 1.1rem;
}

/* CTA Buttons */
.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin-bottom: 1rem;
    display: block;
    width: 100%;
}

.oficinaos-demo-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
    border: 1px solid var(--gray-200);
}

.demo-header {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-header h4 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.demo-stats {
    display: flex;
    gap: 0.5rem;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.demo-preview {
    padding: 2rem;
    background: var(--gray-100);
}

.demo-screen {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.screen-header {
    background: var(--gray-200);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
}

.screen-dots {
    display: flex;
    gap: 0.4rem;
}

.screen-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-400);
}

.screen-dots span:nth-child(1) { background: #ff5f56; }
.screen-dots span:nth-child(2) { background: #ffbd2e; }
.screen-dots span:nth-child(3) { background: #27c93f; }

.screen-content {
    padding: 1.5rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metric-card {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.demo-footer {
    padding: 1.5rem;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.demo-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.demo-info i {
    color: var(--primary-blue);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.1);
}

.tech-item i {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Process */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Stats */
.stats-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1a3a5f 100%);
    color: white;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent-blue), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

/* Demo Section */
.demo-section {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: white;
    text-align: center;
    border-radius: 20px;
    padding: 4rem;
    margin: 4rem auto;
    max-width: 1200px;
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

.contact-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.contact-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.whatsapp-btn {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: white;
}

.oficinaos-btn {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}

.oficinaos-btn:hover {
    background: #00b894;
    border-color: #00b894;
    color: white;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 80px 0 40px;
}

/* Footer Logo */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    opacity: 0.9;
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(45deg, var(--accent-blue), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    /* Navbar Logo */
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    /* Footer Logo */
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-logo-text {
        font-size: 1.8rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    /* Process Steps */
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Tech Grid */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Metric Grid */
    .metric-grid {
        grid-template-columns: 1fr;
    }
    
    /* Demo Header */
    .demo-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .demo-stats {
        justify-content: center;
    }
    
    /* CTA Buttons */
    .cta-buttons .btn {
        width: 100%;
    }
    
    .contact-section .d-flex {
        flex-direction: column;
    }
    
    .contact-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    /* Navbar Brand */
    .navbar-brand {
        gap: 8px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    /* Buttons */
    .btn-primary, .btn-outline {
        padding: 0.8rem 1.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Cards */
    .feature-card, .service-card {
        padding: 1.5rem;
    }
    
    /* Large Buttons */
    .btn-lg {
        padding: 0.9rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Tech Grid */
    .tech-grid {
        grid-template-columns: 1fr;
    }
}