:root {
    --obsidian-deep: #03045e;
    --obsidian-surface: #06088a;
    --obsidian-edge: #090da6;
    /* Adaptação das cores da marca para o tema escuro (brilhos e neons) */
    --prism-cyan: rgba(0, 119, 255, 0.4); /* Azul Brilhante derivado do #03045e */
    --prism-violet: rgba(3, 4, 94, 0.6); /* Azul da marca #03045e */
    --prism-amber: rgba(255, 128, 0, 0.4); /* Laranja da marca #ff8000 */
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Poppins', sans-serif;
    --font-mono: 'Poppins', sans-serif;
    --brand-blue: #03045e;
    --brand-orange: #ff8000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* cursor: crosshair; */ /* Opcional, removido para não estranhar os usuários comuns */
}

body {
    background-color: var(--obsidian-deep);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Prismatic Grain Overlay */
.prism-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.03;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Layout Framework */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(3, 4, 94, 0.7);
}

.logo {
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 70px;
    margin-right: 15px;
    mix-blend-mode: screen;
}

.nav-btn-alt {
    border: 1px solid var(--text-primary);
    padding: 0.5rem 1rem;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.nav-btn-alt:hover {
    background: var(--text-primary);
    color: var(--obsidian-deep) !important;
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}
footer a:hover {
    color: var(--brand-orange) !important;
}

.footer-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #25D366; /* Cor oficial do WhatsApp */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.footer-whatsapp:hover {
    color: #128C7E !important;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-social-icon:hover {
    background: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    color: var(--obsidian-deep) !important;
    transform: translateY(-3px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-orange);
}

.nav-btn {
    border: 1px solid var(--brand-orange);
    padding: 0.5rem 1rem;
    color: var(--brand-orange) !important;
    transition: all 0.3s ease;
}
.nav-btn:hover {
    background: var(--brand-orange);
    color: #fff !important;
}

/* Base Sections */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 8rem 5% 4rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-bg-light {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--prism-cyan) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    animation: drift 20s infinite alternate;
}

.hero-bg-light-2 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--prism-amber) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: drift 15s infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-10%, 10%) scale(1.1); }
}

.hero-pre-title {
    font-family: var(--font-mono);
    color: var(--brand-orange);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    max-width: 1200px;
}

.hero-description {
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    border-left: 2px solid var(--brand-orange);
    padding-left: 20px;
}

/* Obsidian Buttons */
.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    position: relative;
    background: var(--obsidian-surface);
    color: white;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.btn:hover::before { left: 100%; }

.btn:hover {
    background: #ff8000;
    color: #03045e;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255, 128, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
}

/* Grid & Cards (Cursos, Blog, Features) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--obsidian-surface);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    position: relative;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.02) 100%);
    pointer-events: none;
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.feature-id {
    font-family: var(--font-mono);
    color: var(--brand-orange);
    font-size: 0.7rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Prism Borders Component */
.prism-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--prism-cyan), var(--prism-violet), var(--prism-amber), transparent);
    margin: 1rem 0;
    opacity: 0.5;
}

/* Section Title Branding */
.section-header {
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 3rem;
    letter-spacing: -1px;
}

/* Formulários Obsidian */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--brand-orange);
    letter-spacing: 1px;
}
input, textarea, select {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand-orange);
    background: rgba(255,255,255,0.05);
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    flex-wrap: wrap;
    gap: 2rem;
    background: #02023a;
}
footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--brand-orange);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.final-cta {
    padding: 10rem 5%;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block !important; }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: rgba(3, 4, 94, 0.95); 
        padding: 2rem 5%; 
        border-bottom: 1px solid var(--glass-border); 
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { display: flex; text-align: center; }
    .cta-group { flex-direction: column; width: 100%; align-items: center; }
    .btn { width: 100%; text-align: center; }
    
    /* Centralizar Hero e corrigir sobreposição */
    .hero { padding-top: 120px; padding-bottom: 4rem; min-height: auto; align-items: center; text-align: center; justify-content: center; }
    .hero h1 { font-size: 2.5rem; text-align: center; }
    .hero-description { border-left: none; padding-left: 0; text-align: center; }
    .hero-pre-title { text-align: center; width: 100%; }

    /* Centralizar Stats */
    .stats { flex-direction: column; gap: 2rem; align-items: center; }
    .stats > div { text-align: center !important; }

    .grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .section-padding { padding: 2rem 5%; }
    .content-block { padding: 1.5rem; text-align: center; align-items: center; display: flex; flex-direction: column; }
    .content-block ul { width: 100%; text-align: left; }
    
    /* Centralização Geral */
    .section-header { text-align: center; }
    .section-header p { margin: 1rem auto 0; }
    .feature-card { text-align: center; align-items: center; }
    .feature-id { text-align: center; width: 100%; }
    
    /* Elementos flexíveis dos cards (Cursos, tags e preços) */
    .feature-card > div[style*="display: flex; gap: 0.5rem"] { justify-content: center !important; }
    .feature-card > div[style*="justify-content: space-between"] { flex-direction: column !important; justify-content: center !important; gap: 1rem; }
    
    /* Blog specific overrides */
    div[style*="flex-basis: 65%"], 
    div[style*="flex-basis: 30%"] {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
    
    a[style*="display: flex; gap: 1.5rem;"] {
        flex-direction: column !important;
    }
    
    div[style*="width: 35%; flex-shrink: 0;"] {
        width: 100% !important;
        padding-bottom: 56.25% !important; 
    }
    
    /* Post layout overrides */
    div[style*="flex-direction: column; justify-content: center;"] {
        padding: 1rem !important;
        text-align: center;
    }
    
    .final-cta { padding: 4rem 5% !important; }

    /* Footer responsivo */
    footer > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; text-align: center; gap: 2rem !important; }
    footer div > h4 { text-align: center; }
    footer ul { align-items: center !important; }
    footer div[style*="display: flex; gap: 1rem"] { justify-content: center; }
    footer div[style*="display: flex; gap: 0.8rem"] { justify-content: center; }
    footer .footer-whatsapp { justify-content: center; }
    footer a[style*="display: flex; align-items: center; gap: 0.5rem"] { justify-content: center; }
}

/* Content Blocks for generic pages (About, Post) */
.content-block {
    background: var(--obsidian-surface);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.content-block h2 { color: var(--brand-orange); margin-top: 2rem; margin-bottom: 1rem; }
.content-block p { margin-bottom: 1rem; color: var(--text-secondary); }
.content-block ul { margin-left: 2rem; margin-bottom: 1rem; color: var(--text-secondary); }
.content-block li { margin-bottom: 0.5rem; }

.section-padding {
    padding: 4rem 5%;
}
