/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #05080f;
    --surface: #0a0f1a;
    --border: #162033;
    --text: #e8edf5;
    --text-muted: #6b7d99;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    cursor: default;
}

/* Glow que segue o mouse */
.glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: left 0.3s ease, top 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
.overline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

/* ============================================
   HEADER
   ============================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
    font-weight: 500;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    z-index: 1;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 32px;
}

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

.btn {
    background: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid #1e3a5f;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* Card de status visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.card-status {
    background: #0d1117;
    border: 1px solid #1a2740;
    border-radius: 16px;
    width: 280px;
    overflow: hidden;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid #1a2740;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }

.status-title {
    margin-left: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #4a6080;
}

.status-body {
    padding: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #111;
}

.status-row:last-child {
    border-bottom: none;
}

.on {
    color: #60a5fa;
}

.blink {
    color: #60a5fa;
    animation: pisca 1.5s infinite;
}

@keyframes pisca {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* ============================================
   SOLUÇÕES
   ============================================ */
.solucoes {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 500px;
}

/* ============================================
   TERMINAL LINUX
   ============================================ */
.terminal-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 48px;
    background: #0c0c0c;
    border: 1px solid #1a2740;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* Barra superior */
.terminal-topbar {
    background: #1a1a1a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #1a2740;
}

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green  { background: #28ca41; }

.terminal-title {
    margin-left: 12px;
    font-size: 0.7rem;
    color: #4a6080;
    letter-spacing: 0.5px;
}

/* Corpo */
.terminal-body {
    padding: 24px 28px;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #c0c0c0;
}

/* Linha de comando */
.t-line {
    margin-top: 4px;
}

.prompt {
    color: #60a5fa;
    font-weight: 500;
}

.cmd {
    color: #ffffff;
}

.t-output {
    color: #5a7090;
    margin-bottom: 8px;
    padding-left: 8px;
}

/* Bloco de serviço */
.t-servico {
    background: #0f1419;
    border-left: 2px solid #1a3050;
    padding: 16px 20px;
    margin: 10px 0 16px 0;
    border-radius: 0 8px 8px 0;
}

.t-servico.destaque-terminal {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.04);
}

.t-num {
    color: #4a6080;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 4px;
}

.t-titulo {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.t-servico p {
    color: #8899b0;
    margin: 6px 0 12px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
}

/* Tags estilo Linux */
.t-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.t-tags span {
    font-size: 0.7rem;
    background: #111920;
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #1a3050;
    font-family: 'JetBrains Mono', monospace;
}

/* Cursor piscando */
.cursor-blink {
    color: #60a5fa;
    animation: pisca 1s step-end infinite;
    font-weight: 400;
}

@keyframes pisca {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================
   SOBRE
   ============================================ */
.sobre {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.sobre-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 600px;
}

.sobre-content p {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.05rem;
}

.metricas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.metrica {
    text-align: center;
    padding: 32px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.metrica .num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
}

.metrica span:last-child {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   CONTATO
   ============================================ */
.contato {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contato h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 40px;
}

.contato-canais {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.canal {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px 40px;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-align: left;
    min-width: 250px;
}

.canal:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.03);
}

.canal span:first-child {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.canal .detalhe {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.local {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 12px;
    opacity: 0.5;
}

footer p {
    font-size: 0.8rem;
    color: #4a6080;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        order: -1;
    }
    .metricas {
        grid-template-columns: 1fr 1fr;
    }
    .contato-canais {
        flex-direction: column;
        align-items: center;
    }
    .terminal-body {
        padding: 16px 14px;
        font-size: 0.7rem;
    }
    .t-servico {
        padding: 14px;
    }
    .t-tags span {
        font-size: 0.65rem;
    }
}