:root {
    --bg-color: #060608;
    --primary: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.4);
    --primary-hover: #c084fc;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-color); color: var(--text-main); font-family: 'Inter', sans-serif; overflow-x: hidden; min-height: 100vh; }

#starfield { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; }
.mouse-glow { position: fixed; top: 0; left: 0; width: 500px; height: 500px; background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 60%); border-radius: 50%; pointer-events: none; z-index: -1; transform: translate(-50%, -50%); will-change: transform; }

.navbar { position: fixed; top: 0; width: 100%; background: rgba(10, 10, 15, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); z-index: 100; }
.nav-content { max-width: 1200px; margin: 0 auto; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.5px; }
.logo span { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }
.nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 40px; font-weight: 500; font-size: 1.05rem; transition: all 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.conteudo { padding: 130px 5% 60px; max-width: 1200px; margin: 0 auto; text-align: center; }
.section-title { font-size: 2.2rem; font-weight: 600; margin-bottom: 50px; text-shadow: 0 0 20px rgba(255,255,255,0.1); }

/* Grade de 3 colunas exatas */
.grid-scripts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }

/* Cartão com Efeito de Vidro Refinado */
.script-card { 
    background: rgba(15, 15, 25, 0.15); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 10px 30px rgba(0, 0, 0, 0.3); 
    border-radius: 20px; 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    position: relative; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    overflow: hidden; 
}
.script-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%; background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(168, 85, 247, 0.1), transparent 40%); z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.script-card:hover { transform: translateY(-8px); border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 15px 40px -10px var(--primary-glow); }
.script-card:hover::before { opacity: 1; }

.card-header { position: relative; z-index: 1; margin-bottom: 25px; }
.card-labels { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { font-size: 0.7rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; text-transform: uppercase; }
.tag-key { color: #fcd34d; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(251, 191, 36, 0.4); box-shadow: 0 0 10px rgba(245, 158, 11, 0.15); }
.tag-nokey { color: #c4b5fd; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(167, 139, 250, 0.4); box-shadow: 0 0 10px rgba(139, 92, 246, 0.15); }

.card-info { position: relative; z-index: 1; }
.card-info h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 25px; color: var(--text-main); }
.script-detalhes { display: none; }

.card-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.botao-info, .botao-acao { padding: 12px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-align: center; }
.botao-info { background: transparent; color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.08); }
.botao-info:hover { color: var(--text-main); border-color: var(--text-muted); background: rgba(255,255,255,0.05); }
.botao-acao { background: rgba(168, 85, 247, 0.1); color: #f8fafc; border: 1px solid rgba(168, 85, 247, 0.3); }
.botao-acao:hover { background: var(--primary); border-color: var(--primary-hover); box-shadow: 0 0 20px var(--primary-glow); }

/* Modal Pop-up */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); z-index: 999; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: rgba(15, 15, 25, 0.85); backdrop-filter: blur(25px); border: 1px solid var(--primary); box-shadow: 0 0 40px rgba(168, 85, 247, 0.2); border-radius: 16px; width: 90%; max-width: 500px; padding: 30px; position: relative; transform: translateY(30px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 25px; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; transition: color 0.3s; }
.close-modal:hover { color: #ff4d4d; }
.modal-content h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--primary); padding-right: 30px; }
.modal-body p { margin-bottom: 15px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.modal-body strong { color: var(--text-main); }

/* Responsividade */
@media (max-width: 1024px) { .grid-scripts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-scripts { grid-template-columns: 1fr; } .nav-links a { margin-left: 20px; font-size: 0.95rem; } }