/* ==========================================================================
   SEÇÃO DO JARVIS ALLY — REDESIGN PREMIUM (SEM GLOW/NEON)
   ========================================================================== */

#jarvis-ally-intro {
    position: relative;
    padding: 7rem 2rem;
    background: #09090b;
    overflow: hidden;
    z-index: 10;
}

/* Padrão de Grid Sutil no Fundo */
#jarvis-ally-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Gradiente de transição suave no topo */
#jarvis-ally-intro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(5, 2, 12, 0.9) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Container Principal */
.jarvis-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

/* === HEADER DA SEÇÃO === */
.jarvis-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.jarvis-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.jarvis-badge i {
    font-size: 0.7rem;
}

.jarvis-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    padding-bottom: 0.2rem;
}

.jarvis-title .jarvis-highlight {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.1rem;
}

.jarvis-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

.jarvis-subtitle strong {
    color: #cbd5e1;
    font-weight: 600;
}

/* === LAYOUT PRINCIPAL — 2 COLUNAS === */
.jarvis-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* === COLUNA ESQUERDA: MOCKUP DO CHAT === */
.jarvis-chat-mockup {
    background: rgba(15, 17, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Barra do Topo do Chat */
.chat-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
}

.chat-bot-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.chat-bot-status {
    font-size: 0.7rem;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-bot-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
}

.chat-topbar-right {
    display: flex;
    gap: 0.75rem;
}

.chat-topbar-right i {
    color: #475569;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.chat-topbar-right i:hover {
    color: #94a3b8;
}

/* Área de Mensagens */
.chat-messages-area {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 300px;
}

.chat-msg {
    display: flex;
    gap: 0.75rem;
    max-width: 90%;
    animation: chatMsgAppear 0.5s ease-out both;
}

.chat-msg.msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
}

.chat-msg.msg-bot .chat-msg-avatar {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.chat-msg.msg-user .chat-msg-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.chat-msg-bubble {
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.chat-msg.msg-bot .chat-msg-bubble {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-top-left-radius: 4px;
}

.chat-msg.msg-user .chat-msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top-right-radius: 4px;
    color: #e2e8f0;
}

.chat-msg-bubble strong {
    color: #fff;
}

.chat-msg-bubble code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #a5b4fc;
}

/* Barra de Input do Chat */
.chat-input-bar {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 0.75rem;
}

.chat-input-bar .chat-input-fake {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    color: #475569;
    font-size: 0.8rem;
}

.chat-input-bar .chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@keyframes chatMsgAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg:nth-child(1) { animation-delay: 0.1s; }
.chat-msg:nth-child(2) { animation-delay: 0.4s; }
.chat-msg:nth-child(3) { animation-delay: 0.7s; }
.chat-msg:nth-child(4) { animation-delay: 1s; }

/* === COLUNA DIREITA: FEATURES + MODELOS === */
.jarvis-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards de Capacidade */
.jarvis-capability-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.jarvis-capability-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.capability-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.capability-icon.ci-models {
    background: rgba(99, 102, 241, 0.08);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.capability-icon.ci-image {
    background: rgba(236, 72, 153, 0.08);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.12);
}

.capability-icon.ci-code {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.capability-icon.ci-rpg {
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.12);
}

.capability-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 0.3rem;
}

.capability-text p {
    font-size: 0.83rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

/* === BARRA DE MODELOS DE IA === */
.jarvis-models-bar {
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.models-bar-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.models-bar-label i {
    color: #818cf8;
}

.models-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.model-chip-v2 {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    transition: all 0.2s ease;
    cursor: default;
}

.model-chip-v2:hover {
    color: #e2e8f0;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
}

.model-chip-v2.chip-featured {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* === STATS BAR (NÚMEROS RÁPIDOS) === */
.jarvis-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.jarvis-stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.jarvis-stat-card:hover {
    border-color: rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}

.jarvis-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.jarvis-stat-number .stat-accent {
    color: #818cf8;
}

.jarvis-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* === BOTÕES CTA === */
.jarvis-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-open-chat {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.95rem 1.8rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-open-chat:hover {
    transform: translateY(-2px);
    box-shadow: none;
    filter: brightness(1.08);
}

.btn-credits-info {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.95rem 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-credits-info:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================================================== */

@media (max-width: 1024px) {
    .jarvis-main-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .jarvis-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    #jarvis-ally-intro {
        padding: 5rem 1.25rem;
    }

    .jarvis-title {
        font-size: 1.85rem;
    }

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

    .jarvis-stat-number {
        font-size: 1.5rem;
    }

    .jarvis-btn-group {
        flex-direction: column;
    }

    .btn-open-chat, .btn-credits-info {
        width: 100%;
        justify-content: center;
    }
}

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

    .chat-messages-area {
        min-height: 220px;
        padding: 1rem;
    }
}
