/* ==========================================
   FBMaster Solution - ESTILOS
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a1628;
    --primary-light: #1a2a4a;
    --secondary: #00d4ff;
    --accent: #00ff88;
    --gray: #8899aa;
    --light: #f0f4f8;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0a1628, #1a2a4a);
    --shadow: 0 10px 40px rgba(0,0,0,0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   SPLASH / ANIMAÇÃO DE BOAS-VINDAS
   ========================================== */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease, transform 1s ease;
}

#splash.hide {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

#splash .splash-logo {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseLogo 1.5s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
}

#splash .splash-logo img {
    width: 120px;
    height: auto;
}

#splash .splash-title {
    margin-top: 24px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
}

#splash .splash-title span {
    color: var(--secondary);
}

#splash .splash-sub {
    color: var(--gray);
    font-size: 14px;
    margin-top: 8px;
    letter-spacing: 4px;
}

#splash .splash-loader {
    margin-top: 32px;
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

#splash .splash-loader .bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 4px;
    animation: loadBar 1.8s ease-in-out forwards;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes loadBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 32px;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    opacity: 0;
}

.navbar.visible {
    opacity: 1;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
}

.navbar .logo img {
    height: 44px;
    width: auto;
    background: white;
    padding: 4px 8px;
    border-radius: 8px;
    object-fit: contain;
}

.navbar .logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar .logo .logo-text .main {
    font-size: 18px;
    color: var(--white);
}

.navbar .logo .logo-text .main span {
    color: var(--secondary);
}

.navbar .logo .logo-text .sub {
    font-size: 10px;
    color: var(--gray);
    font-weight: 400;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links .btn-nav {
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-links .btn-nav:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--white);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.06), transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--secondary);
}

.hero-text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ==========================================
   COTAÇÕES
   ========================================== */
.cotacoes {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.cotacoes h3 {
    font-size: 14px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.cotacoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.cotacao-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}

.cotacao-item:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.cotacao-item .symbol {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
}

.cotacao-item .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-top: 4px;
}

.cotacao-item .change {
    font-size: 12px;
    font-weight: 600;
}

.cotacao-item .change.positive {
    color: var(--accent);
}

.cotacao-item .change.negative {
    color: #ff4757;
}

.cotacao-item .update-time {
    font-size: 9px;
    color: var(--gray);
    margin-top: 4px;
}

/* ==========================================
   SEÇÕES
   ========================================== */
.section {
    padding: 80px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title span {
    color: var(--secondary);
}

.section-subtitle {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-card .icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.service-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--gray);
    font-size: 14px;
}

/* ==========================================
   SISTEMAS
   ========================================== */
.sistemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.sistema-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--white);
}

.sistema-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.sistema-card .icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.sistema-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.sistema-card p {
    color: var(--gray);
    font-size: 13px;
}

.sistema-card .tag {
    display: inline-block;
    padding: 2px 12px;
    background: rgba(0, 212, 255, 0.15);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 8px;
}

/* ==========================================
   CONTATO
   ========================================== */
.contato-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--white);
}

.contato-item:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.contato-item .icon {
    font-size: 24px;
    color: var(--secondary);
}

.contato-item .info {
    font-size: 14px;
}

.contato-item .info .label {
    color: var(--gray);
    font-size: 12px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 32px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--gray);
    font-size: 13px;
}

.footer a {
    color: var(--secondary);
    text-decoration: none;
}

/* ==========================================
   RESPONSIVO
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--primary);
        padding: 20px;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .cotacoes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #splash .splash-logo {
        width: 120px;
        height: 120px;
    }
    
    #splash .splash-logo img {
        width: 80px;
    }
    
    #splash .splash-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .cotacoes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text h1 {
        font-size: 26px;
    }
}