/* Reset and Custom Properties */
:root {
    --bg-color: #090a0f; /* Deep Matte Slate */
    --bg-panel: #11131a; /* Slightly lighter for bento boxes */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --color-primary: #3b82f6; /* Tactical Blue */
    --color-secondary: #a855f7; /* Tactical Purple */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(59, 130, 246, 0.3);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 120px 0;
}

.bg-panel {
    background-color: #0c0d14;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .span-2 {
        grid-column: span 1;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a:not(.btn-tactical-small) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav a:not(.btn-tactical-small):hover {
    color: var(--text-main);
}

/* Buttons (Tactical Style) */
.btn-tactical, .btn-tactical-small {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    text-decoration: none;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-tactical {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-tactical-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-tactical:hover, .btn-tactical-small:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-ghost:hover {
    color: var(--color-primary);
}

/* Hero Section B2B */
.hero-b2b {
    padding: 200px 0 120px;
}

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Bento Tech Grid */
.tech-bento {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.bento-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

/* Section Intro */
.section-intro {
    margin-bottom: 60px;
}

.section-intro h2 {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Bento Box Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.glow-hover:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

.glow-border {
    position: relative;
    z-index: 1;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.5), rgba(168, 85, 247, 0.5));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.glow-border:hover::before {
    opacity: 0.3;
}

.lab-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.lab-tag.purple { color: var(--color-secondary); }
.lab-tag.blue { color: var(--color-primary); }

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.bento-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #64748b;
}

.card-footer .dot {
    color: var(--border-color);
}

/* Product Showcase */
.product-showcase {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 60px;
}

.clean-list {
    list-style: none;
    margin: 24px 0;
}

.clean-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.clean-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.mt-4 { margin-top: 24px; }

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-text p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #0f121a;
}

.w-100 { width: 100%; }

/* WhatsApp & Footer */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 14px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
}

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: translateY(-4px);
    background: #128C7E;
}

.footer {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cnpj {
    font-family: monospace;
    margin-top: 8px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Bento Grid 3-Columns for Services */
.bento-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Featured Consulting Card */
.consulting-card {
    background: linear-gradient(135deg, #11131a 0%, #171224 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px;
    padding: 48px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.consulting-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1), transparent 50%);
    pointer-events: none;
}

.consulting-card-content {
    position: relative;
    z-index: 1;
}

.consulting-header {
    margin-bottom: 24px;
}

.consulting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

.consulting-item {
    background: rgba(9, 10, 15, 0.4);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    transition: var(--transition);
}

.consulting-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.consulting-item h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.consulting-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Timeline / Process Section */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.timeline-step {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    transition: var(--transition);
    position: relative;
}

.timeline-step:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 700;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.timeline-step h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.timeline-step p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Custom list items inside Bento */
.clean-list li strong {
    color: var(--text-main);
}

.privacy-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .tech-bento {
        justify-content: flex-start;
    }
    .bento-grid, .bento-grid-3, .consulting-grid, .timeline-grid {
        grid-template-columns: 1fr;
    }
    .nav {
        display: none;
    }
    .hero-b2b {
        padding: 140px 0 80px;
    }
}

/* Light Mode Theme Overrides */
body.light-mode {
    --bg-color: #f8fafc;
    --bg-panel: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);
}

body.light-mode .header {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid var(--border-color);
}

body.light-mode .logo-img {
    filter: invert(1) hue-rotate(180deg);
}

body.light-mode .bg-panel {
    background-color: #f1f5f9;
}

body.light-mode .footer {
    background-color: #f1f5f9;
    border-top: 1px solid var(--border-color);
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode input:focus,
body.light-mode select:focus,
body.light-mode textarea:focus {
    border-color: var(--color-primary);
    background: #ffffff;
}

body.light-mode .bento-card {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

body.light-mode .bento-card:hover {
    border-color: var(--border-hover);
}

body.light-mode .timeline-step {
    background: #ffffff;
}

body.light-mode .step-number {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

body.light-mode .demo-disclaimer {
    background: #fef3c7;
    border-bottom: 1px solid #fde68a;
    color: #b45309;
}

/* Custom theme toggle button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.08);
}

/* Modal SEO/AEO/GEO */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin: 8px 0;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 24px;
        margin: 20px;
    }
}

.modal-item {
    background: rgba(9, 10, 15, 0.4);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.modal-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.modal-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.modal-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}


