/* Estilos para o cabeçalho (header) */
header {
    background: var(--primary);
    color: white;
    padding: 0.7rem 1rem;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: var(--topoHeight);
    min-height: var(--topoHeight);
    max-height: var(--topoHeight);
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    justify-content: space-between;
    height: 100%;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

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

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

.material-icons.spin {
    animation: spin 1.5s linear infinite;
    font-size: 24px;
    vertical-align: middle;
    color: #ffb300;
}

.logo-title h1 {
    margin: 0;
    word-spacing: normal;
    white-space: normal;
    line-height: 1.2;
}

header img.logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: white;
    padding: 4px;
    transition: var(--transition);
}

header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

/* Menu Desktop */
.desktop-nav {
    margin-left: 2rem;
    padding-left: 20px;
    border: none;
    box-shadow: none;
    background-color: transparent;
    gap: 1rem;
    white-space: nowrap;
    display: flex;
}

.desktop-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a:focus,
.desktop-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus::after,
.desktop-nav a.active::after {
    width: 100%;
}

/* Menu Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: block;
    padding: 15px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition);
    border-radius: 8px;
    margin-bottom: 5px;
}

.mobile-nav a:hover,
.mobile-nav a:focus,
.mobile-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-menu-btn:hover,
.close-menu-btn:focus {
    background: var(--primary-light);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Seção Hero com fundo gradiente */
.hero {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    padding: 5rem 1rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .button {
    flex: 1 1 150px;
    max-width: 200px;
    text-align: center;
    box-sizing: border-box;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)" /><circle cx="150" cy="100" r="50" fill="rgba(255,255,255,0.03)" /><circle cx="80" cy="180" r="30" fill="rgba(255,255,255,0.04)" /></svg>');
    background-size: 150px;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    border: 2px solid transparent;
}

.button:hover,
.button:focus {
    background: #e0e7ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-light);
    outline: none;
}

.section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto;
    border-radius: 2px;
}

.section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.ondevou-icons {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 48px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    transition: var(--transition);
    position: relative;
}

.ondevou-icons.red-text {
    background: linear-gradient(135deg, #f87171, #ef4444) !important;
    color: #ffffff !important;
}

.ondevou-icons img {
    width: 80%;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
}

.ondevou-icons.slash::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg,
            transparent 0%,
            transparent 45%,
            rgba(255, 0, 0, 0.5) 50%,
            transparent 55%,
            transparent 100%);
    z-index: 2;
}

.card:hover .ondevou-icons {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card p {
    font-size: 1rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* Seção de acesso à plataforma */
.perfil {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 700px;
    margin: 4rem auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.perfil::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.perfil h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.perfil p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text);
}

.acesso-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    border: 2px solid transparent;
}

.acesso-btn:hover,
.acesso-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

/* Fale Conosco */
.contact {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text);
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--primary-light);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.3rem;
    min-width: 24px;
}

.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer .logo {
    width: 70px;
    height: 70px;
    margin-bottom: 0.2rem;
    background: white;
    padding: 8px;
    border-radius: 12px;
}

.footer .company-info {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    color: #cbd5e1;
}

.footer a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

#backToTop:hover,
#backToTop:focus {
    background: var(--primary-dark);
    transform: translateY(-3px);
    outline: none;
}

/* Seção de depoimentos */
.testimonials {
    display: none;
}

/* ===== ESTILOS PARA DIAGRAMA DE FLUXO IA (UX APRIMORADA) ===== */

/* Container principal do diagrama */
.ia-flow-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    margin: 60px -20px;
    position: relative;
    overflow: hidden;
}

/* Nós do diagrama - alinhamento melhorado */
.ia-flow-diagram .flow-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Circulos com animações */
.node-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    position: relative;
    z-index: 2;
    border: 4px solid #0f172a;
    transition: all 0.3s ease;
}

.flow-node:nth-child(2) .node-circle {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #764ba2, #f093fb);
    animation: pulse 2s infinite;
}

.flow-node:hover .node-circle {
    animation: float 3s ease-in-out infinite;
    transform: scale(1.05);
}

/* Conteúdo dos nós - altura uniforme */
.node-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    /* Altura uniforme */
    transition: all 0.3s ease;
}

.flow-node:nth-child(2) .node-content {
    border-color: rgba(118, 75, 162, 0.3);
}

.node-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Tags dos nós */
.node-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
    align-self: flex-start;
}

.flow-node:nth-child(2) .node-tag {
    background: linear-gradient(135deg, #764ba2, #f093fb);
}

/* Títulos dos nós */
.node-content h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Texto de digitação */
.typing-demo {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    font-style: italic;
    min-height: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    border-right: 2px solid #667eea;
}

/* Informações de tempo */
.node-timing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(102, 126, 234, 0.1);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    margin-top: auto;
}

/* Modos de operação */
.mode-card {
    background: rgba(240, 147, 251, 0.1);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid #f093fb;
    position: relative;
    margin-top: 40px;
    transition: all 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(240, 147, 251, 0.2);
}

/* Estilos para resposta final */
.response-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.response-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(102, 126, 234, 0.5);
}

/* Linhas de conexão entre nós */
.connection-line {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 5px;
    z-index: 1;
}

/* Ícones de conexão */
.connection-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #764ba2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border: 3px solid #0f172a;
    color: white;
    font-size: 1rem;
}

/* Animações */
@keyframes pulse {

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

    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #667eea;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA SEÇÃO IA ===== */
#site-ia {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 1rem;
    position: relative;
}

#site-ia .section-title {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

#site-ia .section-description {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: var(--text);
    line-height: 1.7;
}

/* Estatísticas IA */
.ia-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
}

/* Diagrama IA */
.ia-diagram {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 4rem auto;
    max-width: 1200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.diagram-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.diagram-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.diagram-step {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diagram-step:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background: var(--primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.diagram-step h4 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.diagram-step p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* Exemplos IA */
.ia-examples {
    margin: 4rem 0;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.example-card {
    background: white;
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.1);
}

.example-query {
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border: 1px solid #e2e8f0;
}

.example-result {
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
}

/* Badges de Integração */
.integration-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto 4rem;
}

.integration-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.integration-badge:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.integration-badge i {
    color: var(--primary);
    font-size: 1.8rem;
    min-width: 40px;
}

.integration-badge span {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

/* Especificações Técnicas */
.tech-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto 4rem;
}

.spec-item {
    background: white;
    padding: 1.8rem;
    border-radius: 14px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.08);
}

.spec-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.spec-item div {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA IA */
.ia-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 4rem 2rem;
    border-radius: 24px;
    max-width: 1000px;
    margin: 4rem auto;
    text-align: center;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.ia-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="20" fill="rgba(255,255,255,0.1)" /><circle cx="150" cy="80" r="30" fill="rgba(255,255,255,0.08)" /><circle cx="100" cy="150" r="25" fill="rgba(255,255,255,0.12)" /></svg>');
    opacity: 0.3;
    z-index: 1;
}

.ia-cta-content {
    position: relative;
    z-index: 2;
}

.ia-cta h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ia-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

.ia-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ia-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 200px;
}

.ia-button.primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ia-button.primary:hover {
    background: #f8fafc;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.ia-button.secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.ia-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: white;
}

/* Estilo para subseções */
.subsection-title {
    text-align: center;
    font-size: 1.6rem;
    margin: 3rem 0 2rem;
    color: var(--primary);
    position: relative;
}

.subsection-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto;
    border-radius: 2px;
}

/* Menu responsivo */
@media (max-width: 992px) {
    .desktop-nav {
        gap: 0.7rem;
    }

    .desktop-nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.7rem;
    }

    header h1 {
        font-size: 1.2rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding: 3rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .contact,
    .perfil {
        padding: 2rem 1.5rem;
    }

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

    /* Responsividade para o diagrama IA */
    .ia-flow-diagram .flow-node {
        flex: none;
        width: 100%;
        margin-bottom: 40px;
    }

    .ia-flow-diagram .flow-node:nth-child(2) {
        margin-top: 0;
    }

    .node-content {
        min-height: auto;
    }

    .ia-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .diagram-flow {
        grid-template-columns: 1fr;
    }

    .ia-buttons {
        flex-direction: column;
        align-items: center;
    }

    .ia-button {
        width: 100%;
        max-width: 300px;
    }

    .ia-diagram {
        padding: 2rem 1.5rem;
    }

    .tech-specs,
    .integration-badges {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ia-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .ia-cta {
        padding: 3rem 1.5rem;
    }

    .ia-cta h3 {
        font-size: 1.8rem;
    }

    .hero-buttons .button {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .node-circle {
        width: 100px;
        height: 100px;
    }

    .flow-node:nth-child(2) .node-circle {
        width: 120px;
        height: 120px;
    }

    .node-content {
        padding: 20px;
    }

    .node-content h3 {
        font-size: 1.3rem;
    }

    .typing-demo {
        font-size: 0.9rem;
        min-height: 60px;
    }
}


/* Garantir altura igual para todos os node-content */
.ia-flow-diagram .flow-node {
    display: flex;
    flex-direction: column;
}

.ia-flow-diagram .node-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 320px;
}

/* Conteúdo interno com altura flexível */
.node-content-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Elementos que devem ficar na parte inferior */
.node-footer {
    margin-top: auto;
}

/* Centralização do conteúdo */
.centered-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
}


.cards-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.data-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: var(--transition);
    border: 1px solid var(--primary-light);
    display: flex;
    flex-direction: column;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.data-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 12px 12px 0 0;
}

.card-header {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--primary-light);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

.card-id-badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.card-badge {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.card-content {
    flex: 1;
    margin-bottom: 15px;
    overflow-y: auto;
    padding-right: 5px;
    max-height: 350px;
}

.card-content::-webkit-scrollbar {
    width: 4px;
}

.card-content::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 2px;
}

.card-content::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 2px;
}

.card-content::-webkit-scrollbar-thumb:hover {
    background: var(--text);
}

.card-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--light);
    align-items: start;
    min-height: 32px;
}

.card-row:last-child {
    border-bottom: none;
}

.card-label {
    color: var(--dark);
    font-size: 12px;
    font-weight: 500;
    word-break: break-word;
    padding-right: 5px;
    line-height: 1.3;
}

.card-value {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.3;
    min-height: 16px;
}

.card-value.empty-value {
    color: var(--gray);
    font-style: italic;
}

.card-value.numeric-value {
    color: var(--success);
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--primary-light);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.card-action-btn {
    background: var(--light);
    color: var(--primary);
    border: 1px solid var(--primary-light);
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-width: 30px;
    height: 30px;
}

.card-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* BOTÃO DE COMPARTILHAMENTO NO FOOTER */
.card-action-btn.share-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.card-action-btn.share-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent)) !important;
    transform: scale(1.05) translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

/* BOTÃO FLUTUANTE DE COMPARTILHAMENTO */
.float-share-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    opacity: 0.9;
}

.float-share-btn:hover {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.data-card:hover .float-share-btn {
    opacity: 1;
}

.card-action-btn i {
    font-size: 13px;
}

.items-counter {
    padding: 12px 20px;
    background: var(--light);
    border-bottom: 1px solid var(--primary-light);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 10;
}

.load-more-container {
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid var(--primary-light);
}

.load-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.load-more-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

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

.load-more-btn i {
    font-size: 13px;
}

.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text);
}

.no-data-icon {
    font-size: 64px;
    color: var(--gray);
    margin-bottom: 24px;
}

.no-data-message h3 {
    margin: 0 0 12px 0;
    color: var(--dark);
}

.no-data-message p {
    margin: 0;
    max-width: 400px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Toast notifications */
.share-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* Animação para o botão flutuante */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

.float-share-btn {
    animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .cards-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .data-card {
        padding: 15px;
        min-height: 400px;
    }

    .card-row {
        grid-template-columns: 100px 1fr;
        gap: 8px;
        padding: 6px 0;
    }

    .card-label,
    .card-value {
        font-size: 11px;
    }

    .items-counter {
        padding: 10px 15px;
    }

    .load-more-container {
        padding: 20px 15px;
    }

    .load-more-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    .card-actions {
        justify-content: center;
    }

    .card-action-btn {
        padding: 5px 6px;
        min-width: 28px;
        height: 28px;
    }

    .float-share-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: 10px;
        right: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-card {
        min-height: 480px;
    }
}

@media (min-width: 1025px) {
    .cards-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }

    .data-card {
        min-height: 500px;
    }
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.data-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}