/* ====================================
   MABLE&JP™ - ESTILO PRINCIPAL
   Versão 2.0 - Design Moderno Premium
   ==================================== */

/* --- VARIÁVEIS GLOBAIS --- */
:root {
    /* Cores Principais */
    --cor-primaria: #6366f1;
    --cor-secundaria: #8b5cf6;
    --cor-destaque: #ec4899;
    --cor-sucesso: #10b981;
    
    /* Gradientes */
    --gradiente-primario: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradiente-secundario: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradiente-destaque: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Tons de Cinza Dark */
    --cinza-900: #0f0f0f;
    --cinza-800: #1a1a1a;
    --cinza-700: #262626;
    --cinza-600: #404040;
    --cinza-500: #737373;
    --cinza-400: #a3a3a3;
    --cinza-300: #d4d4d4;
    --cinza-200: #e5e5e5;
    --cinza-100: #f5f5f5;
    
    /* Texto */
    --texto-principal: #ffffff;
    --texto-secundario: #a3a3a3;
    --texto-muted: #737373;
    
    /* Fundos */
    --fundo-principal: #0f0f0f;
    --fundo-secundario: #1a1a1a;
    --fundo-card: #262626;
    
    /* Tipografia */
    --font-principal: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secundaria: 'Quicksand', 'Poppins', sans-serif;
    
    /* Espaçamentos */
    --espaco-xs: 0.5rem;
    --espaco-sm: 1rem;
    --espaco-md: 1.5rem;
    --espaco-lg: 2rem;
    --espaco-xl: 3rem;
    --espaco-2xl: 4rem;
    
    /* Bordas */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Sombras */
    --sombra-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --sombra-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --sombra-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --sombra-xl: 0 12px 32px rgba(0, 0, 0, 0.3);
    
    /* Transições */
    --transicao-rapida: 0.2s ease;
    --transicao-normal: 0.3s ease;
    --transicao-lenta: 0.5s ease;
}

/* --- RESET E BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-principal);
    background-color: var(--fundo-principal);
    color: var(--texto-principal);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--espaco-md);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicao-normal);
}

/* --- TIPOGRAFIA --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--espaco-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--espaco-sm);
    color: var(--texto-secundario);
}

.gradient-text {
    background: var(--gradiente-primario);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- NAVEGAÇÃO --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--espaco-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transicao-normal);
}

.navbar.scrolled {
    padding: var(--espaco-xs) 0;
    box-shadow: var(--sombra-lg);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradiente-primario);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--espaco-lg);
}

.nav-link {
    color: var(--texto-secundario);
    font-weight: 500;
    position: relative;
    padding: var(--espaco-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradiente-primario);
    transition: width var(--transicao-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--texto-principal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--espaco-xs);
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--texto-principal);
    transition: var(--transicao-normal);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: var(--espaco-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--texto-secundario);
    margin-bottom: var(--espaco-xl);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: var(--espaco-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--espaco-2xl);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--espaco-2xl);
    margin-top: var(--espaco-2xl);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradiente-primario);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    color: var(--texto-secundario);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--espaco-xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--texto-secundario);
    border-radius: 13px;
    margin: 0 auto var(--espaco-xs);
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--texto-secundario);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.scroll-indicator p {
    font-size: 0.75rem;
    color: var(--texto-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- BOTÕES --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--espaco-xs);
    padding: var(--espaco-sm) var(--espaco-lg);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transicao-normal);
    position: relative;
    overflow: hidden;
}

.btn::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;
}

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

.btn-primary {
    background: var(--gradiente-primario);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
}

.btn-secondary:hover {
    background: var(--cor-primaria);
    color: white;
}

.btn-large {
    padding: var(--espaco-md) var(--espaco-xl);
    font-size: 1.125rem;
}

/* --- FEATURED UNIVERSE --- */
.featured-universe {
    padding: var(--espaco-2xl) 0;
    background: linear-gradient(180deg, var(--fundo-principal) 0%, var(--fundo-secundario) 100%);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--espaco-xs);
    padding: var(--espaco-xs) var(--espaco-md);
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: var(--border-radius-xl);
    color: var(--cor-destaque);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--espaco-md);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--espaco-2xl);
    margin-top: var(--espaco-xl);
    align-items: center;
}

.featured-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--sombra-xl);
}

.image-placeholder {
    aspect-ratio: 1;
    background: var(--fundo-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--espaco-sm);
    color: var(--texto-muted);
}

.image-placeholder i {
    font-size: 4rem;
    opacity: 0.3;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--espaco-md);
    margin-bottom: var(--espaco-xl);
}

.feature-item {
    display: flex;
    gap: var(--espaco-md);
    align-items: flex-start;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--cor-primaria);
    margin-top: 4px;
}

.feature-item h4 {
    color: var(--texto-principal);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.875rem;
    margin: 0;
}

/* --- UNIVERSOS GRID --- */
.universos-section {
    padding: var(--espaco-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--espaco-2xl);
}

.section-title {
    margin-bottom: var(--espaco-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--texto-secundario);
    max-width: 600px;
    margin: 0 auto;
}

.universos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--espaco-lg);
}

.universo-card {
    background: var(--fundo-card);
    border-radius: var(--border-radius-lg);
    padding: var(--espaco-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transicao-normal);
    border: 1px solid transparent;
}

.universo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradiente-primario);
    opacity: 0;
    transition: opacity var(--transicao-normal);
}

.universo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--sombra-xl);
}

.universo-card:hover::before {
    opacity: 1;
}

.universo-card.destacado {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradiente-primario);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--espaco-md);
}

.card-icon i {
    font-size: 1.75rem;
    color: white;
}

.card-category {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cor-primaria);
    margin-bottom: var(--espaco-xs);
    font-weight: 600;
}

.card-title {
    color: var(--texto-principal);
    margin-bottom: var(--espaco-sm);
}

.card-description {
    color: var(--texto-secundario);
    margin-bottom: var(--espaco-md);
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--espaco-xs);
    margin-bottom: var(--espaco-lg);
}

.tag {
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    color: var(--cor-primaria);
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--espaco-xs);
    color: var(--cor-primaria);
    font-weight: 600;
    transition: var(--transicao-normal);
}

.card-btn:hover {
    gap: var(--espaco-sm);
}

/* --- SOBRE SECTION --- */
.sobre-section {
    padding: var(--espaco-2xl) 0;
    background: var(--fundo-secundario);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--espaco-2xl);
    align-items: center;
}

.sobre-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--espaco-md);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--espaco-md);
    margin-top: var(--espaco-xl);
}

.valor-item {
    display: flex;
    align-items: center;
    gap: var(--espaco-sm);
    padding: var(--espaco-md);
    background: var(--fundo-card);
    border-radius: var(--border-radius-md);
}

.valor-item i {
    font-size: 1.5rem;
    color: var(--cor-primaria);
}

.valor-item h4 {
    margin: 0;
    font-size: 1rem;
}

/* --- CONTATO SECTION --- */
.contato-section {
    padding: var(--espaco-2xl) 0;
}

.contato-content {
    max-width: 800px;
    margin: 0 auto;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: var(--espaco-lg);
}

.info-item {
    display: flex;
    gap: var(--espaco-md);
    align-items: flex-start;
    padding: var(--espaco-lg);
    background: var(--fundo-card);
    border-radius: var(--border-radius-md);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--cor-primaria);
    margin-top: 4px;
}

.info-item h4 {
    margin-bottom: 4px;
}

.info-item a {
    color: var(--cor-primaria);
}

.info-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: var(--espaco-md);
    margin-top: var(--espaco-md);
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--fundo-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--texto-secundario);
    transition: var(--transicao-normal);
}

.social-link:hover {
    background: var(--gradiente-primario);
    color: white;
    transform: translateY(-4px);
}

/* --- FOOTER --- */
.footer {
    background: var(--cinza-900);
    padding: var(--espaco-2xl) 0 var(--espaco-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--espaco-2xl);
    margin-bottom: var(--espaco-xl);
}

.footer-brand h3 {
    background: var(--gradiente-primario);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--espaco-xs);
}

.footer-brand p {
    color: var(--texto-muted);
}

.footer-links h4,
.footer-legal h4 {
    font-size: 1rem;
    margin-bottom: var(--espaco-md);
    color: var(--texto-principal);
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--espaco-sm);
}

.footer-links a,
.footer-legal a {
    color: var(--texto-secundario);
    transition: var(--transicao-normal);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--cor-primaria);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--espaco-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--texto-muted);
}

.footer-bottom i {
    color: var(--cor-destaque);
}

/* --- ANIMAÇÕES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 24px;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: var(--fundo-secundario);
        flex-direction: column;
        padding: var(--espaco-xl);
        transition: right var(--transicao-normal);
        box-shadow: var(--sombra-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .featured-grid,
    .sobre-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        gap: var(--espaco-lg);
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .universos-grid {
        grid-template-columns: 1fr;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
