* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background-color: #F9FAFB; color: #111827; line-height: 1.5; }
.font-serif { font-family: Georgia, serif; }

header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid #E5E7EB; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: #111827; font-family: Georgia, serif; }
.logo span { color: #D97706; }
nav { display: flex; gap: 2rem; font-size: 0.875rem; font-weight: 500; color: #4B5563; }
nav a { text-decoration: none; color: inherit; transition: color 0.2s; }
nav a:hover { color: #D97706; }

.hero { max-width: 1150px; margin: 0 auto; padding: 4rem 1.5rem; display: flex; align-items: center; gap: 3rem; }
.hero-content { flex: 1; }
.badge { display: inline-block; background-color: #FEF3C7; color: #92400E; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem; }
.hero h1 { font-family: Georgia, serif; font-size: 3rem; font-weight: 700; color: #111827; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; color: #4B5563; font-weight: 300; margin-bottom: 2rem; }
.btn { display: inline-block; background-color: #111827; color: #FFFFFF; font-weight: 500; padding: 1rem 2rem; border-radius: 0.5rem; text-decoration: none; transition: background-color 0.2s; }
.btn:hover { background-color: #D97706; }

.hero-image { 
    flex: 1; 
    border-radius: 1rem; 
    overflow: hidden; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); 
    background: linear-gradient(135deg, #B45309, #1C1917, #0F172A); 
    padding: 2.5rem; 
    color: white; 
    aspect-ratio: 4/3; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    transition: transform 0.25s ease, box-shadow 0.25s ease; /* Transição suave adicionada */
}

.hero-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.2);
}
.hero-image span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #FCD34D; font-weight: 600; margin-bottom: 0.5rem; }
.hero-image h3 { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; }
.hero-image p { font-size: 0.875rem; color: #D1D5DB; margin-top: 0.25rem; }

.section-materiais { max-width: 1150px; margin: 0 auto; padding: 4rem 1.5rem; border-top: 1px solid #E5E7EB; }
.section-title { text-align: center; max-width: 42rem; margin: 0 auto 3rem auto; }
.section-title h2 { font-family: Georgia, serif; font-size: 2.25rem; font-weight: 700; color: #111827; margin-bottom: 0.75rem; }
.section-title p { color: #4B5563; font-size: 1rem; }

/* ==========================================================================
   Nova Grade de Ícones Fixo Estilo App (iOS Grid)
   ========================================================================== */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.app-item {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    -webkit-tap-highlight-color: transparent; /* Remove o destaque cinza ao tocar no celular */
}

/* Garante que os elementos internos repassem o clique corretamente */
.app-item * {
    pointer-events: none; 
}

.app-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: #D1D5DB;
}

/* Ícone Quadrado com cantos arredondados (tipo iOS App Icon) */
.app-icon {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.app-icon svg {
    width: 32px;
    height: 32px;
    color: #FFFFFF;
}

/* Gradientes suaves dos Ícones */
.gradient-amber { background: linear-gradient(135deg, #F59E0B, #D97706); }
.gradient-indigo { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.gradient-emerald { background: linear-gradient(135deg, #10B981, #059669); }

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.badge-amber { color: #D97706; }
.badge-indigo { color: #4F46E5; }
.badge-emerald { color: #059669; }

.app-title {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.app-desc {
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.app-action {
    font-size: 0.8125rem;
    font-weight: 600;
}

.tag-amber { color: #D97706; }
.tag-indigo { color: #4F46E5; }
.tag-emerald { color: #059669; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal-box { background: white; border-radius: 1rem; max-width: 28rem; width: 100%; padding: 2rem; position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; color: #9CA3AF; cursor: pointer; }
.modal-close:hover { color: #4B5563; }
.modal-box h3 { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0 1rem 0; color: #111827; }
.modal-box p { font-size: 0.875rem; color: #4B5563; margin-bottom: 1.5rem; }
.form-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #D1D5DB; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 1rem; outline: none; }
.form-input:focus { border-color: #D97706; box-shadow: 0 0 0 2px rgba(217,119,6,0.2); }
.form-btn { width: 100%; background: #D97706; color: white; border: none; padding: 0.75rem; border-radius: 0.5rem; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.form-btn:hover { background: #B45309; }
.modal-footer-note { font-size: 0.75rem; color: #9CA3AF; text-align: center; margin-top: 1rem; }

footer { background: white; border-top: 1px solid #E5E7EB; padding: 2rem; text-align: center; font-size: 0.875rem; color: #6B7280; }

@media(max-width: 768px) {
    .hero { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.25rem; }
    nav { display: none; }
    .app-grid { grid-template-columns: 1fr; }
}