/* ─── HN Performance Digital — Design System "Deep Electric" ─────────────── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800;900&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ─── Variáveis de Tema ───────────────────────────────────────────────────── */
:root {
    --color-primary:    #0052FF;  /* Electric Blue */
    --color-secondary:  #00F0FF;  /* Cyber Cyan */
    --color-surface:    #1E2229;  /* Glassy Gray */
    --color-background: #0A0C10;  /* Deep Midnight */
    --color-neutral:    #F4F7FA;  /* Ice White */
    --color-muted:      #8B949E;  /* Slate Muted */

    --transition-default: all 0.3s ease;
    --shadow-glow-primary:   0 0 24px rgba(0, 82, 255, 0.35);
    --shadow-glow-secondary: 0 0 16px rgba(0, 240, 255, 0.25);
}

/* ─── Reset e Base ────────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-background);
    color: var(--color-neutral);
}

/* ─── Tipografia ──────────────────────────────────────────────────────────── */
h1, h2, h3, .font-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* KPIs e números com fonte monospace */
.font-kpi,
.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* ─── Cards Glassmorphism (refinado) ─────────────────────────────────────── */
.card-glass {
    background: rgba(14, 17, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10); /* branca 10% — spec exata */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    transition: var(--transition-default);
    position: relative;
    overflow: hidden;
}

/* Gradiente diagonal interno — inspira no traço da bússola do logo */
.card-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,                        /* diagonal da bússola */
        rgba(0, 82, 255, 0.04) 0%,
        transparent 50%,
        rgba(0, 240, 255, 0.03) 100%
    );
    pointer-events: none;
    border-radius: inherit;
}

.card-glass:hover {
    border-color: rgba(0, 82, 255, 0.30);
    box-shadow: 0 16px 48px rgba(0, 82, 255, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform: translateY(-6px);
}

/* ─── Ícones de Linha Fina (Material Symbols) ────────────────────────────── */
/* Sobrescreve o padrão para ícones outline com peso fino */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,   /* outline = 0, filled = 1 */
        'wght' 300, /* fino — padrão era 400 */
        'GRAD' 0,
        'opsz' 24;
}

/* Ícones ultra-finos nos cards de serviço */
.icon-service {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 40;
}

/* Ícones ainda mais finos para decoração */
.icon-ultra-thin {
    font-variation-settings:
        'FILL' 0,
        'wght' 100,
        'GRAD' 0,
        'opsz' 48;
}

/* ─── Gradientes Diagonais Decorativos (135° — ângulo da bússola) ─────────── */
.gradient-blob-blue {
    background: radial-gradient(ellipse at center, #0052FF, transparent 70%);
    transform: rotate(-45deg);
}

.gradient-blob-cyan {
    background: radial-gradient(ellipse at center, #00F0FF, transparent 70%);
    transform: rotate(135deg);
}

.gradient-diagonal-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 82, 255, 0.03) 0%,
        transparent 45%,
        rgba(0, 240, 255, 0.02) 100%
    );
}

/* ─── Bordas com glow Cyber Cyan ──────────────────────────────────────────── */
.border-cyan-glow {
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.08);
}

/* ─── Botão Primário ──────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--color-primary);
    color: var(--color-neutral);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: var(--transition-default);
}

.btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: var(--shadow-glow-primary);
}

/* ─── Micro-interação: Glow nos botões CTA ────────────────────────────────── */
.btn-cta {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* Halo radiante via pseudo-elemento atrás do botão */
.btn-cta::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0,82,255,0.5), rgba(0,240,255,0.25));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

.btn-cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow:
        0 0 20px rgba(0, 82, 255, 0.5),
        0 0 60px rgba(0, 82, 255, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-cta:hover::after {
    opacity: 1;
}

.btn-cta:active {
    transform: translateY(0) scale(0.97);
}

/* Botão Outline (secundário) com glow Cyan */
.btn-outline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-outline:hover {
    transform: translateY(-2px);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.18), 0 4px 16px rgba(0,0,0,0.2);
}

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none; /* Firefox / Chrome 121+ */
}

/* Customização da scrollbar global (dark) */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background: var(--color-surface);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ─── Navbar Transparência (controlada via JS) ────────────────────────────── */
#site-header {
    transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}

/* ─── Modal de Consultoria ───────────────────────────────────────────────── */
#consult-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#consult-modal.modal-open {
    opacity: 1;
    visibility: visible;
}

/* Overlay escuro com blur */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, 0.80);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Painel glassmorphism */
.modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(14, 17, 23, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,82,255,0.3) transparent;
}

.modal-panel::-webkit-scrollbar {
    width: 4px;
}
.modal-panel::-webkit-scrollbar-thumb {
    background: rgba(0,82,255,0.4);
    border-radius: 2px;
}

/* Gradiente diagonal interno no painel */
.modal-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(0, 82, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 240, 255, 0.03) 100%
    );
    pointer-events: none;
}

#consult-modal.modal-open .modal-panel {
    transform: translateY(0) scale(1);
}

/* Campos do formulário */
.modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 247, 250, 0.45);
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.85rem 1.1rem;
    color: var(--color-neutral);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.modal-input::placeholder {
    color: rgba(244, 247, 250, 0.20);
}

.modal-input:focus {
    border-color: rgba(0, 82, 255, 0.60);
    background: rgba(0, 82, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12),
                0 0 16px rgba(0, 82, 255, 0.08);
}

textarea.modal-input {
    resize: vertical;
    min-height: 110px;
}

/* Área de upload */
.upload-area {
    border: 1px dashed rgba(0, 240, 255, 0.25);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
}

.upload-area:hover,
.upload-area:has(input:focus) {
    border-color: rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.03);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

