/* ==========================================================================
   STYLE.CSS - ARQUIVO MESTRE CONSOLIDADO
   ========================================================================== */

/* Base */
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* ============================= */
/* 1. MENU E NAVEGAÇÃO           */
/* ============================= */
header { z-index: 9999; }
.nav-link { position: relative; }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: #ff3a2d;
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after { width: 100%; }
#mobile-menu {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 0; opacity: 0; overflow: hidden;
}
#mobile-menu.open { max-height: 600px; opacity: 1; }

/* ============================= */
/* 2. HERO SECTION               */
/* ============================= */
.hero-button {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.45s cubic-bezier(0.19, 1, 0.22, 1);
}
.hero-button-visible { clip-path: inset(0 0 0 0); }
#hero-button-wrapper a {
    transition: background-color 0.45s ease-in-out,
                border-color 0.45s ease-in-out,
                border-radius 0.45s ease-in-out;
}

/* ============================= */
/* 3. SEÇÃO SOLUÇÕES & DLL       */
/* ============================= */
:root {
    --dll-blue: #1a093f;
    --dll-red: #ff3a2d;
    --dll-bg-gradient: linear-gradient(90deg, #e6f5f8 0%, #fce2e9 30%, #fdf3e6 70%, #eef1fb 100%);
    --card-height: clamp(380px, 55vh, 520px);
    --text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    --ai-sparkle: #8e44ad;
}

.dll-section {
    position: relative;
    width: 100%;
    background: var(--dll-bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    box-sizing: border-box;
    color: #111827;
}

.dll-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at top left, rgba(26, 9, 63, 0.12), transparent 55%),
                radial-gradient(circle at bottom right, rgba(255, 58, 45, 0.09), transparent 55%);
    pointer-events: none;
}

.dll-wrapper {
    width: 100%; max-width: 1400px; margin: 0 auto; text-align: center; z-index: 2;
}

.dll-title {
    font-size: clamp(32px, 4vw, 56px); font-weight: 800; color: var(--dll-blue);
    margin: 0 0 24px 0; letter-spacing: -1px; line-height: 1.1;
}

.dll-description {
    font-size: 16px; max-width: 850px; margin: 0 auto 40px auto;
    line-height: 1.6; color: #374151;
}

.dll-highlight { color: var(--dll-red); font-weight: 800; }

/* --- BOTÕES --- */
.dll-btn-group {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px;
}

.dll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: var(--dll-blue);
    color: #fff;
    gap: 10px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(26, 9, 63, 0.2);
    cursor: pointer;
}

.dll-btn:hover {
    background-color: #fff;
    color: var(--dll-red);
    border-color: var(--dll-red);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 58, 45, 0.3);
}

.dll-btn-ai {
    background-color: #fff;
    color: var(--dll-blue);
    border: 2px solid var(--dll-blue);
    gap: 10px;
}

.dll-btn-ai:hover {
    background: linear-gradient(45deg, var(--dll-blue), var(--ai-sparkle)); 
    color: #fff;
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(142, 68, 173, 0.3);
}

/* --- CARDS --- */
.dll-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(15px, 2vw, 30px);
}

.dll-card {
    position: relative;
    height: var(--card-height);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.dll-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    z-index: 10;
}

.dll-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.dll-card:hover .dll-card-img {
    transform: scale(1.1);
}

.dll-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, rgba(26, 9, 63, 0.95) 0%, rgba(26, 9, 63, 0.6) 40%, rgba(0,0,0,0) 100%);
    z-index: 1;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.dll-card:hover .dll-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(255, 58, 45, 0.9) 0%, rgba(26, 9, 63, 0.7) 50%, rgba(0,0,0,0) 100%);
}

.dll-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    box-sizing: border-box;
    z-index: 2;
    text-align: left;
    color: #fff;
    text-shadow: var(--text-shadow);
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.dll-card:hover .dll-card-content {
    transform: translateY(0);
}

.dll-card-subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.dll-card-subtitle::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--dll-red);
}

.dll-card-title {
    font-size: clamp(22px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.dll-arrow {
    margin-top: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    color: #fff;
    font-size: 24px;
}

.dll-card:hover .dll-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) { .dll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
    .dll-section { height: auto; min-height: auto; padding: 80px 20px; }
    .dll-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .dll-btn-group { flex-direction: column; }
    :root { --card-height: 400px; }
}
@media (max-height: 800px) { .dll-section { padding: 40px 16px; } }

/* ===================================================== */
/* 4. MODAL E GERAIS                                     */
/* ===================================================== */

/* Modal IA */
.ai-modal-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.75);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; 
    transition: opacity 0.25s ease-out; 
    z-index: 9999999;
}
.ai-modal-overlay.active { 
    opacity: 1; 
    pointer-events: auto; 
    visibility: visible;
}

.ai-modal {
    background: #ffffff; color: #111827; border-radius: 20px;
    max-width: 520px; width: 92%; padding: 24px 24px 20px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45); position: relative;
    transform: translateY(20px); transition: transform 0.3s ease;
}
.ai-modal-overlay.active .ai-modal { transform: translateY(0); }

.ai-close-btn { position: absolute; top: 10px; right: 14px; border: none; background: transparent; font-size: 22px; cursor: pointer; color: #6b7280; }
.ai-header h3 { margin: 0 0 6px 0; font-size: 18px; font-weight: 800; color: var(--dll-blue); display: flex; align-items: center; gap: 8px; }
.ai-textarea {
    width: 100%; min-height: 120px; margin-top: 10px; border-radius: 12px;
    border: 1px solid #e5e7eb; padding: 10px 12px; font-size: 14px; resize: vertical; font-family: inherit;
}
.ai-result { display: none; margin-top: 18px; padding: 14px 14px; border-radius: 12px; background: #f3f4ff; border: 1px solid #e5e7eb; font-size: 14px; line-height: 1.6; color: #111827; }
.ai-loading { display: none; text-align: center; margin: 16px 0 4px; color: #666; font-size: 14px; }
.ai-sparkle-icon { color: var(--ai-sparkle); font-size: 20px; vertical-align: middle; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ===================================================== */
/* 5. EXTRAS (Contato / Silver Tech)                     */
/* ===================================================== */

/* Cores Utilitárias */
.bg-dll-blue { background-color: var(--dll-blue); }
.bg-dll-red { background-color: var(--dll-red); }
.text-dll-blue { color: var(--dll-blue); }
.text-dll-red { color: var(--dll-red); }

/* Background Silver Tech */
.bg-silver-tech {
    background-color: #e3e6ec;
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.5) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(26, 9, 63, 0.03) 0px, transparent 50%);
    position: relative;
}
.bg-silver-tech::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.4; pointer-events: none; z-index: 0;
}

.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Inputs e Formulário */
.form-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f9fafb; /* Default fallback */
    font-size: inherit;
}

.form-input:focus {
    background-color: #ffffff;
    border-color: var(--dll-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 58, 45, 0.15), 0 8px 10px -6px rgba(255, 58, 45, 0.1);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(26, 9, 63, 0.3), 0 8px 10px -6px rgba(26, 9, 63, 0.1);
}

/* Scrollbar */
.overflow-y-auto::-webkit-scrollbar { width: 6px; }
.overflow-y-auto::-webkit-scrollbar-track { background: #f1f1f1; }
.overflow-y-auto::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.overflow-y-auto::-webkit-scrollbar-thumb:hover { background: var(--dll-blue); }

/* Padrões e Animações Gerais */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.animate-fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.modal-backdrop, .ai-modal-backdrop { background-color: rgba(26, 9, 63, 0.85); backdrop-filter: blur(8px); }
.ai-sparkle {
    background: linear-gradient(45deg, #ff3a2d, #a855f7, #ff3a2d);
    background-size: 200% 200%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 3s linear infinite;
}
@keyframes shine { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.title-line::after { content: ''; display: block; width: 60px; height: 4px; background-color: #ff3a2d; margin-top: 15px; border-radius: 2px; }
.news-image { transition: transform 0.5s ease; }
.group:hover .news-image { transform: scale(1.05); }
.insta-btn-gradient {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    transition: all 0.3s ease;
}
.insta-btn-gradient:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3); }

/* Animação Fogo (Rocket) */
@keyframes firePulse {
    0% { transform: scale(0.9) rotate(225deg); opacity: 0.7; }
    50% { transform: scale(1.2) rotate(225deg); opacity: 1; filter: blur(2px); }
    100% { transform: scale(0.9) rotate(225deg); opacity: 0.7; }
}
.animate-fire { animation: firePulse 0.15s ease-in-out infinite; }

/* Validação de Formulário */
.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}