:root {
    --primary: #1E5AE6;
    --primary-hover: #1545B8;
    --secondary: #00B4D8;
    --accent: #F59E0B;
    --accent-hover: #D97706;

    --primary-light: #F0F6FF;
    --text-main: #1A202C;
    --text-muted: #4A5568;
    --text-light: #718096;
    --bg-white: #FFFFFF;
    --bg-offwhite: #F8FAFC;
    --border: #E2E8F0;

    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.bg-gray {
    background-color: var(--bg-offwhite);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(30, 90, 230, 0.2);
}

.btn-accent {
    background-color: var(--accent);
    color: #fff;
    border: none;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ======== HEADER E MENU ======== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

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

/* Wrapper para Logo + Lang Mobile ficarem juntos */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links {
    display: none;
    gap: 1rem;
    align-items: center;
    margin-right: 1rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    transition: var(--transition);
}

.nav-links a:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.header-right {
    display: none;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.nav-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.nav-active a {
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* ======== SELETOR DE IDIOMAS ======== */
.lang-selector {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    align-items: center;
}

.lang-selector a {
    color: var(--text-light);
    transition: color 0.3s ease;
    padding: 0 !important;
    background: transparent !important;
}

.lang-selector a:hover,
.lang-selector a.active {
    color: var(--primary) !important;
}

.lang-separator {
    color: var(--border);
}

/* Mobile Lang (Exibido por padrão ao lado da logo) */
.mobile-lang {
    display: flex;
}

/* Desktop Lang (Abaixo do Header) */
.lang-container-outer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.lang-container-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.desktop-lang {
    pointer-events: auto;
    padding-top: 0.5rem;
    background: transparent;
    display: none;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* ======== CHAT MOCKUP ======== */
.hero {
    padding-top: 120px;
    padding-bottom: 4rem;
}

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

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: var(--bg-offwhite);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.mockup-body {
    height: 420px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    background: #FAFAFA;
    overflow-y: hidden;
    position: relative;
}

/* Overlay e CTA do Mockup */
.demo-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.pulse-glow {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulse-glow-anim 2s infinite cubic-bezier(0.66, 0, 0, 1);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 99px;
}

@keyframes pulse-glow-anim {
    to {
        box-shadow: 0 0 0 20px rgba(245, 158, 11, 0);
    }
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-user {
    background-color: var(--border);
    color: var(--text-muted);
}

.avatar-ai {
    background-color: var(--primary);
    color: white;
}

.chat-bubble {
    max-width: 80%;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
}

.msg-user {
    flex-direction: row-reverse;
}

.msg-user .chat-bubble {
    background: var(--primary-light);
    color: var(--text-main);
    border-top-right-radius: 4px;
}

.msg-ai {
    flex-direction: row;
}

.msg-ai .chat-bubble {
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-top-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.citation {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-offwhite);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.typing-box {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-top-left-radius: 4px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* ======== SEÇÕES ======== */
.credibility {
    background-color: var(--primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    font-weight: 500;
    font-size: 1.125rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.use-case-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.use-case-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.use-case-icon {
    color: var(--secondary);
    margin-bottom: 1rem;
    width: 32px;
    height: 32px;
}

.integrations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.integration-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-white);
    transition: var(--transition);
}

.integration-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.whatsapp-highlight {
    border-color: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.1);
}

.whatsapp-icon {
    color: #25D366;
    margin-bottom: 1rem;
}

.api-icon {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.security-section {
    background-color: #0F172A;
    color: white;
    text-align: center;
}

.security-section h2,
.security-section h3 {
    color: white;
}

.security-section p {
    color: #94A3B8;
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.security-item {
    padding: 1.5rem;
}

.security-icon {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-offwhite);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background-color: var(--bg-white);
}

footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .integrations-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .security-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 2fr 1fr;
        text-align: left;
    }

    .footer-links {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .header-right {
        display: flex;
    }

    .mobile-lang {
        display: none;
    }

    .desktop-lang {
        display: flex;
    }
}