/* Design System & Reset */
:root {
    --bg-color: #030303;
    --surface-color: #0a0a0a;
    --surface-hover: #141414;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent-color: #3b82f6; /* Modern Blue */
    --accent-hover: #2563eb;
    --border-color: #1f1f1f;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(3, 3, 3, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--accent-color);
    display: flex;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.nav a:hover, .nav a.active {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
}

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: #333;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 14rem 0 10rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--text-secondary);
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Solutions */
.solutions {
    padding: 8rem 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.solution-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    background: var(--surface-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-logo, .card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.solution-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-color);
    transition: gap var(--transition);
    align-self: flex-start;
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.card-link:hover {
    gap: 0.75rem;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    letter-spacing: -0.03em;
}

.about p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about p strong {
    color: var(--text-primary);
}

.ceo-signature {
    margin-top: 3.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-left: 2px solid var(--accent-color);
    padding-left: 1.5rem;
    color: var(--text-primary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9375rem;
    max-width: 250px;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links a, .footer-links p {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero {
        padding: 10rem 0 6rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.75rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about p {
        font-size: 1.125rem;
    }
}


/* =========================================
   NEW: Visual Upgrade & Vitoria Widget
   ========================================= */

/* Hero Background adjustments */
.hero {
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 0;
}

/* About Section 2-Column Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.tech-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform var(--transition);
}
.tech-img:hover {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Vitória - Virtual Agent Widget
   ========================================= */
.vitoria-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    z-index: 9999;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}
.vitoria-widget.hidden {
    transform: translateY(150px) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.vitoria-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    background-color: #111;
}
.vitoria-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vitoria-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

.vitoria-bubble {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 20px 20px 0 20px;
    max-width: 250px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.vitoria-bubble.show {
    opacity: 1;
    transform: translateY(0);
}
.vitoria-bubble p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    display: inline;
}
.vitoria-cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background-color: var(--accent-color);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}
.vitoria-cursor.done {
    display: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .vitoria-widget {
        bottom: 20px;
        right: 20px;
    }
    .vitoria-avatar {
        width: 60px;
        height: 60px;
    }
}


.card-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
