:root {
    --bg-color: #0c0e12;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --accent-primary: #14b8a6;
    /* Teal */
    --accent-secondary: #0ea5e9;
    /* Light Blue */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

p {
    font-size: 1.125rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

section {
    padding: 6rem 0;
}

/* Navigation */
nav {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(12, 14, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    height: 40px;
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.hero-image img {
    width: 100%;
    display: block;
    transform: scale(1.02);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.4);
}

/* Comparison Section Redesign */
.comparison-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 4rem;
}

.comp-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-speed);
}

.comp-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.comp-card-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comp-card-header i {
    color: var(--accent-primary);
    width: 24px;
}

.comp-card-header h3 {
    font-size: 1.15rem;
    margin: 0;
}

.comp-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #080a0d;
}

.comp-option {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comp-option .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.comp-option p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.comp-option.bi {
    border-right: 1px solid var(--border-color);
}

.comp-option.bam {
    background: rgba(20, 184, 166, 0.05);
    position: relative;
}

.comp-option.bam p {
    color: var(--accent-primary);
    font-weight: 600;
}

.comp-option.bam::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
}

/* AI Chat Feature */
.chat-feature {
    background: linear-gradient(180deg, var(--bg-color), #1a1f26);
}

.chat-bubbles-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.user-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 18px 18px 0 18px;
    align-self: flex-end;
    max-width: 90%;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-bubble::after {
    content: "👤 Você";
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: right;
}

.chat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.chat-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Grid Functionalities */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.05), rgba(0, 0, 0, 0));
    border-color: var(--accent-primary);
    transform: translateY(-8px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Social Proof */
.case-study {
    background: #11141a;
}

.contact-section {
    background: var(--bg-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary) !important;
}

.testimonial-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 4rem;
    border-radius: 32px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    background: #080a0d;
}

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

/* Responsive */
@media (max-width: 992px) {

    /* Navbar adjustments */
    nav {
        padding: 0.75rem 0;
    }

    .logo {
        height: 28px;
    }

    .footer-info p {
        text-transform: lowercase;
    }

    .nav-content .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        width: auto;
        /* Don't force full width in header */
    }

    .hero,
    .chat-card,
    .contact-section .chat-card {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 2.5rem 1.5rem !important;
    }

    .hero {
        padding-top: 6rem;
        gap: 2rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-image {
        order: -1;
        /* Image first on mobile hero */
        margin-bottom: 1rem;
    }

    .chat-info,
    .contact-info {
        margin-bottom: 2rem;
    }

    .chat-card {
        gap: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .testimonial-card,
    .comparison-container {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        text-align: center;
    }

    /* Better Mobile Comparison Replacement */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on small desktops/tablets */
    }

    @media (max-width: 768px) {
        .features-grid {
            grid-template-columns: 1fr;
            /* Stack on mobile */
        }
    }

    .comp-card-body {
        grid-template-columns: 1fr;
    }

    .comp-option.bi {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }

    .comp-option.bam {
        padding: 1.5rem;
    }

    .comp-option.bam::after {
        width: 100%;
        height: 3px;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
    }
}