/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #030712;
    --neon-blue: #00d2ff;
    --neon-cyan: #00f2fe;
    --neon-magenta: #b400ff;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.12);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; }

/* ================= BACKGROUND ================= */
.background-circuit {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #030712;
    background-image:
        radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 85% 75%, rgba(180, 0, 255, 0.08) 0%, transparent 50%),
        linear-gradient(to bottom, #030712, #020408);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-circuit::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 210, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 15%, black 0%, transparent 55%);
    -webkit-mask-image: radial-gradient(circle at 50% 15%, black 0%, transparent 55%);
    z-index: -1;
}

/* ================= GLASSMORPHISM ================= */
.glass-box, .glass-nav, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* ================= HEADER ================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 10px;
    margin: 0 2%;
    z-index: 100;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.2rem;}
.logo-icon {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, #1e3a52, #030712 75%);
    border: 1px solid rgba(0, 210, 255, 0.6);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.5), inset 0 0 8px rgba(0,210,255,0.3);
    color: var(--neon-blue);
    font-size: 0.85rem;
    font-weight: 800;
}
.logo-bc { color: var(--neon-blue); font-size: 2rem; }
.logo-systems { color: var(--text-muted); font-size: 0.9rem; font-weight: normal; }

nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a { text-decoration: none; color: var(--text-main); font-size: 0.9rem; transition: 0.3s; position: relative; padding-bottom: 4px; }
nav ul li a:hover { color: var(--neon-blue); }
nav ul li a.active { color: var(--neon-blue); }
nav ul li a.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--neon-blue); box-shadow: 0 0 8px var(--neon-blue);
}

/* ================= MAIN LAYOUT ================= */
main {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-container {
    margin-top: 100px;
    text-align: center;
}

.section-tag {
    color: var(--neon-blue);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.section-subtext {
    color: var(--text-muted);
    max-width: 700px;
    margin: -20px auto 40px auto;
    font-size: 0.95rem;
}

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }

/* ================= HERO SECTION ================= */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 50px; margin-top: 60px; text-align: left;}
.hero-content { flex: 1; }
.subtitle {
    display: inline-block;
    color: var(--neon-blue);
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 6px 16px;
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 30px;
    margin-bottom: 20px;
}
h1 { font-size: 3.4rem; line-height: 1.15; margin-bottom: 20px; }
h1 span, .highlight-text { color: var(--neon-blue); }
.description { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px; max-width: 90%; }

.chat-widget { padding: 20px; max-width: 460px; }
.chat-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.bot-icon {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(0,210,255,0.12); border: 1px solid rgba(0,210,255,0.4); font-size: 1.1rem; flex-shrink: 0;
}
.chat-header strong { display: block; }
.chat-header p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.chat-options button {
    width: 100%; padding: 12px 14px; margin-bottom: 10px; background: rgba(0,210,255,0.04);
    border: 1px solid rgba(0,210,255,0.4); color: var(--neon-blue); border-radius: 10px; cursor: pointer;
    text-align: left; transition: 0.3s; font-size: 0.88rem; display: flex; align-items: center; gap: 8px;
}
.chat-options button:hover { background: rgba(0, 210, 255, 0.14); border-color: var(--neon-blue);}
.chat-input { display: flex; gap: 10px; margin-top: 15px; }
.chat-input input { flex: 1; background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); padding: 12px 16px; border-radius: 20px; color: white; outline: none; }
.send-btn { background: var(--neon-blue); color: #000; border: none; border-radius: 50%; width: 45px; height: 45px; cursor: pointer; font-weight: bold; box-shadow: 0 0 15px rgba(0,210,255,0.5); flex-shrink: 0;}

/* Hero right badge */
.hero-visual { flex: 0.9; display: flex; flex-direction: column; align-items: center; gap: 35px; }
.bc-badge-wrapper { position: relative; display: flex; align-items: center; justify-content: center; width: 280px; height: 280px; }
.bc-badge-ring {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 1px solid rgba(0, 210, 255, 0.35);
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.25), inset 0 0 30px rgba(0, 210, 255, 0.15);
    animation: spin-slow 30s linear infinite;
}
.bc-badge-ring::before, .bc-badge-ring::after {
    content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(180,0,255,0.25);
}
.bc-badge-ring::before { inset: -18px; }
.bc-badge-ring::after { inset: 18px; border-color: rgba(0,242,254,0.4); }
.bc-badge-core {
    position: relative; width: 190px; height: 190px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #16324a 0%, #030712 70%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 60px rgba(0, 210, 255, 0.45), inset 0 0 40px rgba(0,0,0,0.6);
    font-size: 3.2rem; font-weight: 800; letter-spacing: 2px;
}
.bc-badge-core span.b-letter { color: #cbd5e1; }
.bc-badge-core span.c-letter { color: var(--neon-blue); text-shadow: 0 0 25px var(--neon-blue); }
.bc-badge-trace {
    position: absolute; top: 50%; height: 1px; width: 90px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0.7;
}
.bc-badge-trace.left { left: -90px; }
.bc-badge-trace.right { right: -90px; }
.bc-badge-label { font-size: 1.1rem; font-weight: bold; letter-spacing: 1px; text-align: center; }
.bc-badge-label .logo-systems { display: block; margin-top: 2px; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-cards { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 320px; }
.small-card { padding: 22px; transition: 0.3s; }
.small-card:hover { transform: translateX(-6px); border-color: var(--neon-blue); }
.small-card .icon-small { color: var(--neon-blue); font-size: 1.2rem; margin-bottom: 10px; }
.small-card h3 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.small-card p { color: var(--text-muted); font-size: 0.88rem; }

/* ================= SERVIÇOS ================= */
.card-service { padding: 30px; text-align: center; transition: 0.3s; }
.card-service:hover { transform: translateY(-10px); border-color: var(--neon-blue); }
.icon-service {
    width: 60px; height: 60px; margin: 0 auto 20px auto; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    background: rgba(0,210,255,0.08); border: 1px solid rgba(0,210,255,0.3); color: var(--neon-blue);
}
.card-service h3 { margin-bottom: 15px; font-size: 1.2rem; }
.card-service p { color: var(--text-muted); font-size: 0.9rem; }

/* ================= COMO FUNCIONA (TIMELINE) ================= */
.timeline { display: flex; justify-content: space-between; position: relative; margin-top: 40px; }
.timeline::before {
    content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    z-index: -1;
}
.timeline-item { text-align: center; flex: 1; padding: 0 15px; }
.circle {
    width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: bold; margin: 0 auto 20px auto; color: var(--neon-blue);
    border-color: var(--neon-blue); background: var(--bg-color);
    box-shadow: 0 0 20px rgba(0,210,255,0.35);
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 10px; }
.timeline-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ================= TECNOLOGIAS ================= */
.tech-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 30px;}
.tech-item {
    padding: 16px 26px; border-radius: 50px; font-weight: bold; transition: 0.3s; cursor: default;
    display: flex; align-items: center; gap: 10px; font-size: 0.95rem;
}
.tech-item i, .tech-item .tech-icon { font-size: 1.4rem; }
.tech-item:hover { border-color: var(--neon-blue); background: rgba(0, 210, 255, 0.1); transform: translateY(-4px); }

/* ================= PROJETOS ================= */
.card-project { padding: 20px; text-align: left; transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between;}
.card-project:hover { border-color: var(--neon-blue); transform: translateY(-5px);}
.device-mock {
    width: 100%; height: 150px; border-radius: 8px; margin-bottom: 15px;
    background: rgba(0, 210, 255, 0.04); border: 1px solid rgba(0, 210, 255, 0.18);
    display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; position: relative; overflow: hidden;
}
.mock-laptop {
    width: 68%; height: 100%; background: #0a1526; border-radius: 6px; border: 1px solid rgba(0,210,255,0.25);
    padding: 10px; display: flex; flex-direction: column; gap: 6px;
}
.mock-laptop .mock-line { height: 6px; border-radius: 3px; background: rgba(0,210,255,0.3); }
.mock-laptop .mock-line.w60 { width: 60%; }
.mock-laptop .mock-line.w40 { width: 40%; }
.mock-laptop .mock-bars { display: flex; align-items: flex-end; gap: 4px; height: 55px; margin-top: auto; }
.mock-laptop .mock-bars span { flex: 1; background: linear-gradient(to top, var(--neon-blue), transparent); border-radius: 2px; }
.mock-phone {
    width: 26%; height: 100%; background: #0a1526; border-radius: 12px; border: 1px solid rgba(0,210,255,0.25);
    padding: 8px 6px; display: flex; flex-direction: column; gap: 5px;
}
.mock-phone .mock-line { height: 5px; border-radius: 3px; background: rgba(0,242,254,0.35); }
.mock-phone .mock-block { height: 16px; border-radius: 4px; background: rgba(0,210,255,0.15); border: 1px solid rgba(0,210,255,0.2); }
.card-project h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card-project p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.metric { font-size: 1.8rem; font-weight: bold; color: var(--neon-cyan); }
.metric span { font-size: 0.8rem; font-weight: normal; color: var(--text-muted); text-transform: uppercase; }
.metric .metric-value { font-size: 1.8rem; font-weight: bold; }
.metric.highlight { color: #ff3366; }

/* ================= POR QUE ESCOLHER ================= */
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; margin-top: 40px; }
.why-item { text-align: center; padding: 10px; }
.why-icon { font-size: 1.8rem; color: var(--neon-blue); margin-bottom: 14px; text-shadow: 0 0 20px rgba(0,210,255,0.5); }
.why-item h3 { font-size: 1rem; margin-bottom: 8px; }
.why-item p { color: var(--text-muted); font-size: 0.85rem; }

/* ================= DEPOIMENTOS ================= */
.card-testimonial { padding: 30px; text-align: left; }
.quote { font-style: italic; color: var(--text-main); margin-bottom: 20px; font-size: 1rem; }
.author { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.author-info { display: flex; align-items: center; gap: 15px; }
.avatar-placeholder { width: 50px; height: 50px; border-radius: 50%; background: rgba(0,210,255,0.2); color: var(--neon-blue); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.9rem; flex-shrink: 0;}
.author strong { display: block; font-size: 1rem; }
.author span { color: var(--text-muted); font-size: 0.8rem; }
.partner-logo {
    font-size: 0.65rem; font-weight: bold; letter-spacing: 0.5px; color: var(--neon-blue);
    border: 1px solid rgba(0,210,255,0.3); border-radius: 6px; padding: 4px 8px; white-space: nowrap;
}

/* ================= CTA BANNER ================= */
.cta-banner { margin: 80px 0; padding: 50px; display: flex; justify-content: space-between; align-items: center; text-align: left; background: linear-gradient(90deg, rgba(15,23,42,0.6) 0%, rgba(0,210,255,0.1) 100%); }
.cta-banner h2 { font-size: 2rem; margin-bottom: 10px; }
.cta-banner span { color: var(--neon-blue); }
.cta-btn { padding: 15px 30px; background: transparent; border: 2px solid var(--neon-blue); color: var(--neon-blue); font-size: 1.1rem; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 10px; white-space: nowrap;}
.cta-btn:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);}

/* ================= FOOTER ================= */
.glass-footer { margin-top: 50px; border-radius: 16px 16px 0 0; padding: 50px 5% 20px 5%; border-bottom: none;}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-top: 0; margin-bottom: 20px; color: var(--neon-blue); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.footer-col p, .footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 10px; display: block; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li a:hover { color: var(--neon-blue); }
.footer-col p i { color: var(--neon-blue); width: 18px; margin-right: 4px;}
.social-icons { display: flex; gap: 14px; margin-top: 18px; }
.social-icons a {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--glass-border); color: var(--text-muted); transition: 0.3s; text-decoration: none;
}
.social-icons a:hover { color: var(--neon-blue); border-color: var(--neon-blue); box-shadow: 0 0 12px rgba(0,210,255,0.4); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    border-top: 1px solid var(--glass-border); padding-top: 20px; font-size: 0.8rem; color: var(--text-muted);
}
.footer-bottom .policy-links { display: flex; gap: 20px; }
.footer-bottom .policy-links a { color: var(--text-muted); text-decoration: none; }
.footer-bottom .policy-links a:hover { color: var(--neon-blue); }

/* Responsividade Básica */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-content { margin-bottom: 30px; }
    .description { max-width: 100%; margin: 0 auto 30px auto; }
    .chat-widget { margin: 0 auto; }
    .hero-visual { flex-direction: column; }
    h1 { font-size: 2.6rem; }
    .timeline { flex-direction: column; gap: 30px; }
    .timeline::before { display: none; }
    .cta-banner { flex-direction: column; text-align: center; gap: 30px;}
    nav { display: none; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
