@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap");

/* --- 1. Variáveis e Tokens (Design System 2026 - Alien Edition) --- */
:root {
    /* Paleta de Cores Neon Sci-Fi */
    --hue-primary: 270;   /* Roxo Neon */
    --hue-secondary: 150; /* Verde Alien */
    --hue-base: 240;      /* Azul Profundo/Preto */

    /* Cores Primárias */
    --color-primary: #8A2BE2;        /* Neon Purple */
    --color-primary-dark: #4B0082;
    --color-secondary: #00FF88;      /* Alien Green */
    --color-accent: #00FFFF;         /* Cyan Cyberpunk */
    
    /* Backgrounds */
    --bg-base: #050505;              /* Void Black */
    --bg-surface: #0A0A12;           /* Dark Matter */
    --bg-surface-glass: rgba(10, 10, 18, 0.7);
    
    /* Texto */
    --text-main: #FFFFFF;
    --text-muted: #8F90A6;
    
    /* Estados */
    --color-success: #00FF88;
    --color-error: #FF0055;
    
    /* Espaçamento Fluido (Clamp) */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(1rem, 1.5vw, 1.25rem);
    --space-md: clamp(1.5rem, 2.5vw, 2rem);
    --space-lg: clamp(3rem, 5vw, 5rem);
    --space-xl: clamp(5rem, 8vw, 8rem);
    
    /* Tipografia Fluida */
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "IBM Plex Sans", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    
    --text-xl: clamp(2.5rem, 5vw, 5rem);
    --text-lg: clamp(1.5rem, 3vw, 3rem);
    --text-md: clamp(1.125rem, 1.5vw, 1.5rem);
    --text-sm: 0.875rem;
    
    /* Efeitos */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-glow: 0 0 30px rgba(138, 43, 226, 0.25);
    --shadow-neon: 0 0 10px rgba(0, 255, 136, 0.3);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    --gradient-hero: radial-gradient(circle at center, #1a0b2e 0%, #000000 100%);
    --gradient-text: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-neon: 1px solid rgba(0, 255, 136, 0.3);
}

/* --- 2. Reset Moderno --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; /* Grid futurista */
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* --- 3. Layout e Utilitários --- */
.container {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

/* Glassmorphism */
.glass {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    box-shadow: var(--shadow-glass);
}

/* Texto Gradiente */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* --- 4. Tipografia --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    color: var(--text-main);
}

.fluid-heading {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

p {
    color: var(--text-muted);
    font-size: 1rem;
}

.hero-sub {
    font-size: var(--text-md);
    max-width: 60ch;
    margin-bottom: var(--space-lg);
}

/* --- 5. Componentes --- */
/* Botões */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.6em;
    border-radius: 4px; /* Mais quadrado, tech */
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button::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;
    z-index: -1;
}

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

.button.primary {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: white;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.button.primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

.button.secondary {
    background: transparent;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
}

.button.secondary:hover {
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    color: white;
}

.button.large {
    padding: 1em 2.5em;
    font-size: 1.125rem;
}

/* --- SLED Badge & Highlights (Alien Style) --- */
.sled-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(138, 43, 226, 0.1);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}

/* Remover pseudo-elementos de emoji */
.sled-badge::before, .admin-badge::before {
    content: none;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
}

.sled-highlight {
    background: rgba(10, 10, 18, 0.8);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.sled-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(138, 43, 226, 0.05) 50%),
        linear-gradient(rgba(138, 43, 226, 0.05) 50%, transparent 50%);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.sled-highlight * {
    position: relative;
    z-index: 1;
}

/* --- SLED Banner (Top Bar) --- */
.sled-banner {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--color-primary);
    padding: 0.4rem 0;
    position: relative;
    z-index: 101;
}

.sled-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.sled-banner-text {
    color: var(--text-muted);
}

.sled-banner-link {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--color-primary);
}

.sled-banner-link:hover {
    color: var(--text-main);
    border-bottom-style: solid;
    text-shadow: 0 0 8px var(--color-primary);
}

/* --- 6. Header e Nav --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.nav-list {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 5px var(--color-secondary);
}

.site-header.small {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: var(--space-md);
}

/* --- 7. Hero Section --- */
.hero-section {
    padding: var(--space-xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Background Effect - Cyber Grid */
.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* --- 8. Features Grid --- */
.features-section {
    padding: var(--space-lg) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
    filter: drop-shadow(0 0 5px rgba(138, 43, 226, 0.5));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

/* --- 9. CTA Section --- */
.cta-section-large {
    padding: var(--space-lg) 0;
}

.cta-container {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(10, 10, 18, 0.8);
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
}

.cta-content h2 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.cta-action {
    margin-top: var(--space-md);
}

/* --- 10. Catálogo & Cards (Square) --- */
.catalog-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.catalog-header h1 {
    font-size: var(--text-lg);
}

.square-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.square-card {
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.square-card:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
    transform: translateY(-4px);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header img, .logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: rgba(0,0,0,0.2);
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.2rem;
    border: 1px solid var(--color-primary);
    background: rgba(138, 43, 226, 0.1);
    font-family: var(--font-mono);
}

/* Content */
.square-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.square-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags */
.meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    color: var(--color-secondary);
    border: 1px solid rgba(0, 255, 136, 0.2);
    font-family: var(--font-mono);
}

/* Footer do Card */
.square-actions {
    margin-top: auto;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* --- 11. Formulários e Outros --- */
.form-card {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

label span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

/* --- 12. Footer --- */
.main-footer {
    padding: var(--space-lg) 0;
    margin-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
    .nav-list {
        display: none; /* Simplificação para mobile rápido */
    }
    
    .hero-bg-glow {
        width: 100%;
        height: 50vh;
        top: 0;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .detail {
        grid-template-columns: 1fr;
    }
}