/* ============================================
   DESIGN TOKENS & CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Primary Color - Laranja (RGB: 234, 166, 78) */
    --primary: #EAA64E;
    --primary-dark: #d69540;
    --primary-darker: #c68534;
    --primary-light: #f0b86a;
    --primary-lighter: #f5ca8f;
    
    /* Text Colors */
    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    
    /* Background Colors */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #212529;
    
    /* Border Colors */
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    
    /* Spacing Scale (8px base) */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 2.5rem;
    --space-6: 3rem;
    --space-8: 4rem;
    --space-10: 5rem;
    --space-12: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark) !important;
}

.navbar-brand i {
    color: var(--primary);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding-top: 5rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(234, 166, 78, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-visual {
    opacity: 0;
    transform: scale(0.95);
    animation: scaleIn 0.8s ease 0.2s forwards;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Code Card */
.code-card {
    background: linear-gradient(135deg, rgba(234, 166, 78, 0.05) 0%, rgba(234, 166, 78, 0.02) 100%);
    border: 2px solid rgba(234, 166, 78, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.code-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(234, 166, 78, 0.1) 0%, transparent 70%);
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.code-header {
    background: rgba(234, 166, 78, 0.1);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-body {
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    background-color: var(--primary-darker);
    border-color: var(--primary-darker);
    transform: translateY(0);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-base);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary:active {
    transform: translateY(0);
}

/* ============================================
   BADGES
   ============================================ */
.badge-orange {
    background-color: rgba(234, 166, 78, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
}

.badge-secondary {
    background-color: var(--bg-light);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.service-card {
    border-left: 4px solid transparent;
    transition: all var(--transition-base);
}

.service-card:hover {
    border-left-color: var(--primary);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(234, 166, 78, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--text-light);
}

.product-card {
    border: 2px solid var(--primary) !important;
    border-radius: var(--radius-lg) !important;
    transition: all var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-icon {
    width: 48px;
    height: 48px;
    background: rgba(234, 166, 78, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.hover-card {
    transition: all var(--transition-base);
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.icon-circle {
    width: 64px;
    height: 64px;
    background: rgba(234, 166, 78, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.differential-card {
    transition: all var(--transition-base);
}

.differential-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.differential-icon {
    width: 48px;
    height: 48px;
    background: rgba(234, 166, 78, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

.differential-card:hover .differential-icon {
    background: var(--primary);
    color: var(--text-light);
}

.gradient-card {
    background: linear-gradient(135deg, rgba(234, 166, 78, 0.05) 0%, rgba(234, 166, 78, 0.02) 100%);
    border: 1px solid rgba(234, 166, 78, 0.2);
    border-radius: var(--radius-lg);
}

/* ============================================
   CLIENT LOGOS
   ============================================ */
.client-logo {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    opacity: 0.6;
    transition: all var(--transition-base);
}

.client-logo:hover {
    opacity: 1;
    background: rgba(234, 166, 78, 0.05);
}

.client-text {
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(234, 166, 78, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(234, 166, 78, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg-light) !important;
    border-top: 1px solid var(--border-light);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    transition: color var(--transition-fast);
}

.hover-primary:hover {
    color: var(--primary) !important;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    position: relative;
    overflow: hidden;
}

.section-alt {
    background: var(--bg-light);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
        padding-bottom: 2rem;
        text-align: center;
    }
    
    .hero-section::before {
        top: -30%;
        right: -40%;
        width: 80%;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .code-card {
        margin: 0 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .client-logo {
        min-height: 60px;
        padding: 1rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
    color: var(--primary) !important;
}

.border-2 {
    border-width: 2px !important;
}

.max-w-3xl {
    max-width: 48rem;
}

.fs-4 {
    font-size: 1.5rem;
}

.fs-5 {
    font-size: 1.25rem;
}

.fw-bold {
    font-weight: 700;
}

.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.rounded {
    border-radius: var(--radius-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}
