:root {
    --bg-body: #020617;
    --bg-card: #0f172a;
    --bg-glass: rgba(15, 23, 42, 0.7);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --accent: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

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

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
video,
canvas,
table {
    max-width: 100%;
}

a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }

.ambient-glow {
    position: fixed; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: -1;
    top: -100px; left: -100px;
}
.ambient-glow.secondary {
    top: 20%; right: -200px;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
}

header {
    position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav-wrapper {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.logo { font-size: 1.25rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.badge-logo { background: rgba(99,102,241,0.2); color: var(--primary); font-size: 0.7rem; padding: 2px 8px; border-radius: 12px; }

.nav-links {
    display: flex;
    gap: 32px;
    justify-self: center;
    min-width: 0;
}
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }

.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    justify-self: end;
    flex-wrap: nowrap;
    min-width: 0;
}

.header-tools > * {
    flex-shrink: 0;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    white-space: nowrap;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    margin-left: auto;
    order: 2;
}

.language-switcher button {
    background: transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}

.language-switcher button.active {
    background: rgba(99, 102, 241, 0.22);
    color: #fff;
}

.lang-flag {
    display: inline-block;
    width: 16px;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    position: relative;
}

.lang-label {
    letter-spacing: 0.03em;
}

.lang-flag.us {
    background:
        linear-gradient(180deg,
            #b22234 0 14.28%,
            #ffffff 14.28% 28.56%,
            #b22234 28.56% 42.84%,
            #ffffff 42.84% 57.12%,
            #b22234 57.12% 71.4%,
            #ffffff 71.4% 85.68%,
            #b22234 85.68% 100%);
}

.lang-flag.us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 55%;
    background: #3c3b6e;
}

.lang-flag.br {
    background: #009c3b;
}

.lang-flag.br::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    top: 2px;
    left: 4px;
    background: #ffdf00;
    transform: rotate(45deg);
}

.lang-flag.br::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #002776;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.link-login { color: #fff; font-weight: 600; font-size: 0.95rem; }

.btn { padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 0 0 1px var(--primary-glow), 0 4px 12px rgba(99,102,241,0.2);
}
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 0 0 1px var(--primary), 0 8px 20px rgba(99,102,241,0.4);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
}

.menu-btn i,
.menu-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.mobile-menu-panel {
    width: min(360px, 88vw);
    height: 100dvh;
    background: #07101f;
    border-right: 1px solid var(--border);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.38);
    padding: 20px;
    transform: translateX(-102%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
}

.mobile-menu-links a {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 12px;
    border-radius: 12px;
}

.mobile-menu-links a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.mobile-menu-actions {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.mobile-menu-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.mobile-menu-actions .link-login {
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mobile-menu-open .mobile-menu-panel {
    transform: translateX(0);
}

.hero { padding-top: 180px; padding-bottom: 100px; min-height: 100vh; display: flex; align-items: center; }

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

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 100px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px;
}
.dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }

h1 {
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    letter-spacing: -0.02em;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.typing-wrapper { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 24px; min-height: 1.5em; }

.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin-bottom: 40px; }

.cta-group { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; }
.security-note { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.security-note i { width: 14px; }

.visual-container { position: relative; perspective: 1000px; }

.glass-chat {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    max-width: 500px; margin: 0 auto;
}
.visual-container:hover .glass-chat { transform: rotateY(0) rotateX(0); }

.chat-header {
    padding: 14px 20px; background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.dots { display: flex; gap: 6px; }
.circle { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #eab308; } .green { background: #22c55e; }

.chat-title { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.chat-title i { width: 14px; }
.dots-icon { color: var(--text-muted); width: 16px; }

.chat-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }

.msg { padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; max-width: 90%; }
.msg.user { background: rgba(255,255,255,0.05); align-self: flex-end; border-bottom-right-radius: 2px; }
.msg.ai { 
    background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.2); 
    color: #e0e7ff; align-self: flex-start; border-bottom-left-radius: 2px;
}
.msg.ai .mb-2 { margin-bottom: 10px; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.85rem; }
.data-table th { text-align: left; color: var(--text-muted); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.text-green { color: var(--accent); font-weight: 600; }
.highlight-row { background: rgba(16,185,129,0.1); }

.loading-state { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; font-family: monospace; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--primary); border-top-color: transparent; border-radius: 50%; animation: spin 1s infinite linear; }
.ai-footer { margin-top: 10px; font-size: 0.85rem; color: var(--text-muted); }

@keyframes spin { 100% { transform: rotate(360deg); } }

.pipeline-container {
    position: relative;
    padding: 40px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s ease;
    position: relative;
    background: linear-gradient(180deg, rgba(15,23,42,1) 0%, rgba(15,23,42,0.6) 100%);
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99,102,241,0.15);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-muted);
    z-index: 2;
    transition: 0.3s;
}

.step-card:hover .step-icon {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.step-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #fff; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.pulse-animation i { animation: pulseIcon 2s infinite; }
@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.success-glow { color: var(--accent) !important; border-color: rgba(16,185,129,0.3) !important; }
.success-glow .step-number { background: var(--accent); }

.pipeline-line {
    position: absolute;
    top: 72px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
    overflow: hidden;
}

.data-packet {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: pipelineFlow 3s linear infinite;
    opacity: 0.8;
}

@keyframes pipelineFlow {
    0% { left: -100px; }
    100% { left: 100%; }
}

.super-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.super-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.badge-new {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    background: rgba(16,185,129,0.15);
    color: var(--accent);
    border: 1px solid rgba(16,185,129,0.3);
}
.badge-new.purple {
    background: rgba(99,102,241,0.15);
    color: var(--primary);
    border-color: rgba(99,102,241,0.3);
}

.card-content h3 { font-size: 1.8rem; margin-bottom: 12px; }
.card-content p { color: var(--text-muted); font-size: 1rem; max-width: 90%; }

.visual-orbit {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.orbit-center {
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(99,102,241,0.6);
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.orbit-center img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    filter: none !important;
    border-radius: 50%;
}

.visual-orbit::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: spinSlow 20s linear infinite;
}

.orbit-item {
    position: absolute;
    width: 48px; height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: floatOrbit 4s ease-in-out infinite;
    z-index: 10; 
}
.orbit-item svg { width: 28px; height: 28px; }

.whatsapp { top: 10px; left: 20%; color: #25D366; animation-delay: 0s; }
.teams { top: 30px; right: 15%; color: #6264A7; animation-delay: 1s; }
.telegram { bottom: 40px; right: 20%; color: #0088cc; animation-delay: 2s; }
.email { top: -50px; left: 50%; color: #EA4335; animation-delay: 3s; }
.email i { width: 24px; height: 24px; }
.slack { bottom: 40px; left: 20%; color: #4A154B; animation-delay: 4s; }

@keyframes floatOrbit {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes spinSlow { 100% { transform: rotate(360deg); } }

.automation-visual {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.auto-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-muted);
    width: 100%;
    text-align: center;
}

.transform-arrow { color: var(--primary); animation: bounceArrow 2s infinite; }

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(5px); opacity: 1; }
}

.schedule-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(0,0,0,0));
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    transform: perspective(1000px) rotateX(10deg);
    transition: 0.3s;
}
.super-card:hover .schedule-card { transform: perspective(1000px) rotateX(0deg); }

.sc-header {
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; color: #fff; margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px;
}
.sc-header i { width: 16px; color: var(--accent); }

.sc-row {
    display: flex; justify-content: space-between;
    font-size: 0.85rem; margin-bottom: 8px; color: var(--text-muted);
}
.sc-row strong { color: #fff; }
.sc-row i { width: 12px; margin-right: 4px; }

.sc-status {
    margin-top: 10px;
    display: flex; align-items: center; gap: 6px;
    font-size: 0.75rem; color: var(--accent); font-weight: 700;
    background: rgba(16,185,129,0.1); padding: 4px 8px; border-radius: 4px; width: fit-content;
}
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 5px var(--accent); }

.section { padding: 100px 0; }
.text-center { text-align: center; }
.mb-60 { margin-bottom: 60px; }
.section-title { font-size: 2.5rem; margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { 
    background: var(--bg-card); border: 1px solid var(--border); 
    padding: 30px; border-radius: 16px; transition: 0.3s;
}
.card:hover { border-color: var(--primary); transform: translateY(-5px); }
.icon-box { 
    width: 48px; height: 48px; background: rgba(99,102,241,0.1); color: var(--primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.faq-header-content h2 { font-size: 2rem; margin-bottom: 15px; }
.faq-header-content p { color: var(--text-muted); }
.link-support { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; margin-top: 20px; }
.link-support i { width: 16px; }

.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.faq-item summary { 
    padding: 20px; cursor: pointer; list-style: none; font-weight: 600; display: flex; justify-content: space-between; 
}
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: 300; }
.faq-item[open] summary::after { content: '-'; transform: rotate(0); }
.faq-body { padding: 0 20px 20px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; line-height: 1.8; }

.cta-box {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(99,102,241,0.1) 100%);
    border: 1px solid var(--border); border-radius: 24px; padding: 80px 20px; text-align: center;
}
.cta-box h2 { font-size: 2.5rem; margin-bottom: 20px; }
.cta-box p { color: var(--text-muted); margin-bottom: 30px; }
.btn-cta { padding: 14px 40px; font-size: 1.1rem; }

footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 60px; font-size: 0.9rem; color: var(--text-muted); }
.footer-flex { display: flex; justify-content: space-between; }
.copyright { margin-top: 10px; }
.footer-links a { margin-left: 20px; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

/* --- AaaS home refresh --- */
body[data-page="home"] {
    --bg-body: #020617;
    --bg-card: #0f172a;
    --bg-glass: rgba(15, 23, 42, 0.7);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --accent: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

body[data-page="home"] .ambient-glow {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

body[data-page="home"] .ambient-glow.secondary {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

body[data-page="home"] header {
    background: rgba(2, 6, 23, 0.85);
}

body[data-page="home"] .badge-logo {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

body[data-page="home"] .gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body[data-page="home"] .btn-primary {
    background: var(--primary);
    box-shadow: 0 0 0 1px var(--primary-glow), 0 4px 12px rgba(99, 102, 241, 0.2);
}

body[data-page="home"] .btn-primary:hover {
    box-shadow: 0 0 0 1px var(--primary), 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.62);
}

.aaas-hero {
    min-height: 94vh;
}

.aaas-hero h1 {
    max-width: 700px;
    font-size: clamp(2.45rem, 4.5vw, 4.2rem);
    font-weight: 800;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.agent-console {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(12, 14, 12, 0.86);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 4px 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.console-top strong {
    color: var(--text-main);
}

.console-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.console-status i {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
}

.console-status em {
    color: var(--text-muted);
    font-style: normal;
    line-height: 1.3;
}

.phone-frame {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0d1210;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
}

.phone-header div {
    display: grid;
    gap: 2px;
}

.phone-header span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
}

.phone-chat {
    display: grid;
    gap: 14px;
    padding: 18px;
    min-height: 330px;
    background:
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.16), transparent 32%),
        #0b1020;
}

.bubble {
    max-width: 86%;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.bubble.inbound {
    justify-self: start;
    background: #1e293b;
    border-bottom-left-radius: 4px;
}

.bubble.outbound {
    justify-self: end;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.28);
    color: #e0e7ff;
    border-bottom-right-radius: 4px;
}

.agent-thinking {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.agent-thinking span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #818cf8;
    animation: thinkingBlink 1.2s infinite ease-in-out;
}

.agent-thinking span:nth-child(2) { animation-delay: 0.16s; }
.agent-thinking span:nth-child(3) { animation-delay: 0.32s; }

@keyframes thinkingBlink {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

.agent-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.agent-type-grid button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.agent-type-grid button:hover {
    color: var(--text-main);
    border-color: rgba(99, 102, 241, 0.52);
}

.agent-type-grid button.active {
    color: #e0e7ff;
    border-color: rgba(99, 102, 241, 0.52);
    background: rgba(99, 102, 241, 0.16);
}

.agent-type-grid svg {
    width: 16px;
    height: 16px;
    color: #818cf8;
}

.agent-type-grid button.active svg {
    color: #c4b5fd;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.role-card {
    min-height: 270px;
    padding: 26px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.role-card:hover {
    transform: translateY(-6px);
    border-color: rgba(94, 234, 212, 0.45);
}

.role-card h3 {
    margin-bottom: 10px;
    font-size: 1.12rem;
}

.role-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.icon-box.amber { color: #818cf8; background: rgba(99, 102, 241, 0.12); }
.icon-box.rose { color: #c084fc; background: rgba(192, 132, 252, 0.12); }
.icon-box.mint { color: var(--accent); background: rgba(16, 185, 129, 0.12); }

.aaas-steps {
    padding-left: 0;
}

.whatsapp-panel {
    margin-top: 28px;
    display: grid;
    gap: 18px;
}

.wa-number {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.28);
}

.wa-number svg {
    color: #818cf8;
}

.wa-number div {
    display: grid;
    flex: 1;
}

.wa-number span,
.wa-number em {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.wa-number em {
    color: #a5b4fc;
    font-style: normal;
    font-weight: 700;
}

.wa-route {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    color: var(--text-muted);
}

.wa-route strong {
    color: var(--text-main);
}

.wa-route svg {
    color: #818cf8;
}

.agent-room-visual {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.agent-room-visual div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
}

.agent-room-visual span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
    font-weight: 800;
}

body[data-page="home"] .super-card,
body[data-page="home"] .card,
body[data-page="home"] .step-card,
body[data-page="home"] .faq-item,
body[data-page="home"] .cta-box {
    border-radius: 16px;
}

@media (max-width: 992px) {
    .role-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aaas-hero h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-row {
        justify-content: center;
    }
}

@media (max-width: 620px) {
    .role-grid,
    .agent-type-grid {
        grid-template-columns: 1fr;
    }

    .role-card {
        min-height: auto;
    }

    .aaas-hero h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .console-top,
    .wa-number {
        align-items: flex-start;
        flex-direction: column;
    }

    .phone-chat {
        min-height: 300px;
    }

    .cta-row .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    body {
        width: 100%;
        max-width: 100%;
    }

    main,
    section,
    footer,
    .container {
        max-width: 100%;
        overflow-x: clip;
    }

    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    h1 { font-size: 2.8rem; }
    .hero-desc { margin: 0 auto 40px; }
    .cta-group { align-items: center; }
    .visual-container { margin-top: 40px; }
    .bento-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .nav-links, .nav-actions { display: none; }
    .nav-wrapper {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
    }
    .header-tools {
        display: contents;
    }

    .menu-btn {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .menu-btn { display: inline-flex; }
    .language-switcher {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
    }

    .glass-chat {
        width: 100%;
        transform: none;
    }

    .visual-container:hover .glass-chat {
        transform: none;
    }

    .super-card,
    .large-card,
    .visual-orbit,
    .automation-visual,
    .schedule-card,
    .cta-box {
        max-width: 100%;
        overflow: hidden;
    }

    .visual-orbit {
        min-height: 260px;
    }

    .visual-orbit::before {
        width: min(200px, 70vw);
        height: min(200px, 70vw);
    }

    .orbit-item {
        width: 44px;
        height: 44px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-left: 20px;
    }

    .pipeline-line {
        top: 40px;
        left: 51px;
        right: auto;
        width: 2px;
        height: calc(100% - 80px);
        bottom: 0;
    }

    .data-packet {
        width: 100%;
        height: 100px;
        background: linear-gradient(180deg, transparent, var(--primary), transparent);
        top: 0;
        animation: pipelineVerticalFlow 3s linear infinite;
    }

    .step-card {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    
    .step-icon {
        margin: 0;
        min-width: 64px;
    }

    @keyframes pipelineVerticalFlow {
        0% { top: -100px; }
        100% { top: 100%; }
    }

    .super-grid { grid-template-columns: 1fr; }
    .super-card { min-height: auto; }
}

@media (max-width: 520px) {
    .container { padding: 0 18px; }
    header {
        padding: 12px 0;
    }

    .nav-wrapper {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
        gap: 8px;
    }

    .logo {
        min-width: 0;
        font-size: 1.05rem;
        white-space: nowrap;
    }

    .badge-logo {
        padding: 2px 6px;
    }

    .header-tools {
        gap: 8px;
    }

    .language-switcher button {
        padding: 6px 8px;
        min-width: auto;
        justify-content: center;
    }

    .lang-label {
        font-size: 0.72rem;
    }

    .lang-flag {
        width: 14px;
        height: 10px;
    }

    .menu-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .mobile-menu-panel {
        width: min(340px, 92vw);
        padding: 18px;
    }

    .hero {
        padding-top: 130px;
        padding-bottom: 72px;
        min-height: auto;
    }

    h1 {
        font-size: clamp(2.2rem, 13vw, 2.8rem);
    }

    .typing-wrapper {
        font-size: 1.1rem;
    }

    .section {
        padding: 72px 0;
    }

    .cta-box {
        padding: 52px 18px;
        border-radius: 18px;
    }

    .cta-box h2 {
        font-size: 2rem;
    }
}

/* --- ESTILOS ADICIONAIS (PÁGINAS INTERNAS) --- */

/* Ajuste para páginas de texto longo (Legal/Termos) */
.legal-content {
    padding-top: 150px;
    padding-bottom: 100px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff;
}

.legal-content .update-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    display: block;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.legal-content h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Formulário de Suporte */
.support-section {
    padding-top: 150px;
    padding-bottom: 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-container {
    width: 100%;
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.input-dark {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.input-dark:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-dark::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

textarea.input-dark {
    min-height: 150px;
    resize: vertical;
}

/* Página de Obrigado */
.thank-you-wrapper {
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.icon-success {
    width: 80px;
    height: 80px;
    color: var(--accent);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

html {
    /* Faz a rolagem ser suave automaticamente */
    scroll-behavior: smooth;
    
    /* Cria uma margem imaginária no topo ao clicar no link.
       Isso impede que o menu fixo cubra o título da seção. 
       90px é aprox. a altura do seu header + um respiro. */
    scroll-padding-top: 50px;
}

/* --- BLOG STYLES (Adicionar ao final do CSS) --- */

/* Filtros */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(99,102,241,0.1);
    color: var(--primary);
    border-color: var(--primary);
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    min-height: 400px;
}

.loading-state-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.blog-card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    opacity: 0.9;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
    opacity: 1;
}

.blog-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-meta span { display: flex; align-items: center; gap: 6px; }
.blog-meta i { width: 14px; }

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #fff;
    font-weight: 600;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* Post Único */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 150px;
    padding-bottom: 100px;
    padding-left: 24px;
    padding-right: 24px;
}

.article-header { text-align: center; margin-bottom: 40px; }

.article-header h1 {
    font-size: 2.8rem;
    margin: 20px 0;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
}

.article-meta-row { display: flex; justify-content: center; margin-top: 25px; }

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: rgba(255,255,255,0.03);
    padding: 8px 16px 8px 8px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info strong { display: block; color: #fff; font-size: 0.9rem; }
.author-info span { color: var(--text-muted); font-size: 0.8rem; }

.article-feat-img {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    border: 1px solid var(--border);
}

.article-feat-img img { width: 100%; height: 100%; object-fit: cover; }

/* Tipografia do Artigo */
.article-body { font-size: 1.15rem; line-height: 1.8; color: #e2e8f0; }
.article-body h2 { font-size: 1.8rem; color: #fff; margin-top: 50px; margin-bottom: 20px; }
.article-body h3 { font-size: 1.4rem; color: #fff; margin-top: 30px; margin-bottom: 15px; }
.article-body p { margin-bottom: 24px; }
.article-body ul, .article-body ol { margin-bottom: 24px; padding-left: 25px; color: var(--text-muted); }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: #fff; }
.article-body pre {
    background: #0f172a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow-x: auto;
    margin-bottom: 24px;
    font-family: monospace;
    font-size: 0.9rem;
}
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-main);
}

/* Newsletter Box pequena */
.small-cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    text-align: left;
    margin-top: 60px;
}
.newsletter-form { display: flex; gap: 10px; width: 50%; }
.newsletter-form input { margin-bottom: 0; }

@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .article-header h1 { font-size: 2.2rem; }
    .small-cta-box { flex-direction: column; text-align: center; gap: 20px; }
    .newsletter-form { width: 100%; flex-direction: column; }
}

@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .article-feat-img { height: 250px; }
    .article-body { font-size: 1rem; }
}
