/* Smooll Demo Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #0077ff;
    --bg: #0d0d0f;
    --surface: #18181c;
    --surface2: #1f1f25;
    --border: rgba(255, 255, 255, 0.07);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.4);
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.3s;
    flex-shrink: 0;
}

.nav-brand img {
    height: 28px;
    width: auto;
}

.nav-brand span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--blue);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}

.nav-links a:hover {
    color: white;
}

.btn-hub {
    background: var(--blue) !important;
    color: white !important;
    padding: 5px 12px !important;
    border-radius: 6px;
    font-weight: 600 !important;
}

/* HUB CARDS (demo/index.html) */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 48px;
}

.menu-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
}

.card {
    background: var(--surface);
    padding: 30px;
    border-radius: 15px;
    width: 280px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--blue);
    background: var(--surface2);
}

.card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
    nav {
        padding: 10px 20px;
    }

    .nav-brand span {
        display: none;
        /* Esconde o texto "// LABS" no mobile para ganhar espaço */
    }

    .nav-links {
        gap: 8px;
        justify-content: flex-start;
        /* Permite scroll horizontal natural no mobile */
        padding-bottom: 4px;
    }

    .nav-links a {
        font-size: 0.72rem;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem !important;
        /* Força um tamanho menor se não usar clamp */
    }

    .menu-grid {
        padding: 0 10px;
        gap: 12px;
    }

    .card {
        width: 100%;
        /* Cards ocupam largura total no mobile */
        padding: 20px;
    }
}