/* ===========================
   Reset básico + variáveis premium
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #030712;          /* Fundo base extremamente escuro (Tailwind gray-950) */
    --color-surface: rgba(17, 24, 39, 0.4); /* Cards com transparência */
    --color-surface-hover: rgba(31, 41, 55, 0.5);
    
    --color-primary-glow: rgba(59, 130, 246, 0.4); 
    --color-accent-glow: rgba(16, 185, 129, 0.4);
    
    --color-primary: #3b82f6;     
    --color-primary-strong: #2563eb;
    --color-secondary: #0ea5e9;
    --color-accent: #10b981;      
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    --color-text: #f3f4f6;
    --color-text-soft: #9ca3af;
    --color-text-muted: #6b7280;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --max-width: 1280px;
    
    --glass-blur: blur(16px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ===========================
   Background Orbs Animations
=========================== */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at center, #0a0f1c 0%, #030712 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: drift random(20s, 30s) infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.4), transparent 70%);
    top: -10%;
    left: -10%;
    animation: drift 25s infinite alternate ease-in-out;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
    bottom: -10%;
    right: -5%;
    animation: drift 28s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    top: 40%;
    left: 30%;
    animation: drift 32s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -15%) scale(0.95); }
}

/* ===========================
   Estrutura global
=========================== */
.header-container,
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

/* Top Bar */
.top-bar {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    color: var(--color-text-soft);
    font-size: 0.85rem;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 30;
    position: relative;
}

.top-bar a {
    text-decoration: none;
    color: var(--color-text-soft);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar a:hover {
    color: var(--color-text);
}

/* Header / Menu */
.main-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    transition: background 0.3s ease;
}

.main-header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo-wrap:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Navegação */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav > a:not(.btn-sys) {
    text-decoration: none;
    color: var(--color-text-soft);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.main-nav > a:not(.btn-sys)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.main-nav > a:not(.btn-sys):hover {
    color: var(--color-text);
}

.main-nav > a:not(.btn-sys):hover::after {
    width: 100%;
}

/* System Access Buttons */
.system-access {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--color-border);
}

.btn-sys {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.btn-legacy {
    background: rgba(17, 24, 39, 0.6);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-legacy:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-premium {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    background: var(--color-accent);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: var(--transition-smooth);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
    background: #059669;
}

.btn-premium:hover::before {
    left: 100%;
}

/* Menu Mobile Toggle */
.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

/* ===========================
   Hero Section
=========================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge-siafic {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

.badge-siafic i {
    font-size: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a78bfa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--color-text-soft);
    margin-bottom: 2.5rem;
    max-width: 90%;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Hero Visual (Glass Panel) */
.hero-visual-panel {
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.hero-visual-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.panel-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-title .dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
}

.sys-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sys-features ul {
    list-style: none;
    margin: 0; padding: 0;
}

.sys-features li {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.sys-features li i {
    color: var(--color-primary);
    font-size: 1rem;
}


/* ===========================
   Seções e Cards (Glass)
=========================== */
.section-padding {
    padding: 3.5rem 0; /* Compactando as seções */
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem; /* Menos margem sob o cabeçalho */
    max-width: 800px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--color-text-soft);
    font-size: 1.1rem;
    font-weight: 300;
}

.glass-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.glass-card:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.card-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.glass-card p {
    font-size: 0.95rem;
    color: var(--color-text-soft);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===========================
   SIAFIC Highlight Section
=========================== */
.siafic-highlight {
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.05), transparent);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.siafic-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.siafic-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-pill {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.feature-pill:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-pill i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.feature-pill span {
    font-weight: 500;
    font-size: 0.95rem;
}


/* ===========================
   Jurisprudência & Filtros
=========================== */
.juris-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.filter-card {
    position: sticky;
    top: 100px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-soft);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-input, .form-select {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-select option {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.juris-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.juris-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--color-border-hover);
}

.juris-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.juris-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.juris-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    color: var(--color-text-soft);
}

/* ===========================
   Vídeos
=========================== */
.video-card {
    padding: 0;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.video-info p {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    margin: 0;
}

/* ===========================
   Links Essenciais
=========================== */
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.links-list li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-soft);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.links-list li a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-primary);
    transform: translateX(5px);
}

.links-list li a i {
    font-size: 1.1rem;
    color: var(--color-border-hover);
}

.links-list li a:hover i {
    color: var(--color-primary);
}

/* ===========================
   Contato
=========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.02);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.contact-item div p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.85rem;
}

.contact-item div strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

/* ===========================
   Footer
=========================== */
.main-footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

.main-footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===========================
   Responsividade
=========================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-content p {
        margin-inline: auto;
    }

    .juris-layout, .contact-grid {
        grid-template-columns: 1fr;
    }

    .filter-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .system-access {
        display: none; /* Hide on mobile to go inside menu */
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav .system-access-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--color-border);
    }

    .btn-sys {
        width: 100%;
        text-align: center;
    }

    .top-bar {
        display: none;
    }

    .section-padding {
        padding: 2.5rem 0;
    }
}

