:root {
    --bg: #070B14;
    --surface: #0C1222;
    --surface2: #0F1729;
    --text: #F2F6FF;
    --muted: #C8D4EC;
    --muted2: #A8B8D8;
    --line: rgba(255, 255, 255, .12);

    --primary: #2D7DFF;
    --accent: #00E5A8;
    --violet: #A855F7;

    --shadow: rgba(0, 0, 0, .55);

    /* Gradientes reutilizáveis */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-glow: linear-gradient(135deg, rgba(45, 125, 255, .3), rgba(0, 229, 168, .2));
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    overflow-x: hidden;
}

.title {
    font-family: "Space Grotesk", Inter, sans-serif;
    letter-spacing: .2px;
}

.text-muted2 {
    color: var(--muted) !important;
}

/* NAV: glass + linha neon sutil */
.nav-glass {
    backdrop-filter: blur(16px);
    background: rgba(7, 11, 20, .85);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 1000;
}

.nav-glass:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(45, 125, 255, .6), rgba(0, 229, 168, .5), transparent);
    opacity: .6;
    pointer-events: none;
}

/* HERO */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(45, 125, 255, .15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 229, 168, .08) 0%, transparent 50%),
        var(--bg);
}

/* Grid tecnológica sutil */
.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(45, 125, 255, .03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(45, 125, 255, .03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 30% 50%, black 0%, transparent 70%);
    pointer-events: none;
}

/* Linha de brilho vertical no hero */
.hero:after {
    content: "";
    position: absolute;
    top: -50%;
    right: 15%;
    width: 1px;
    height: 200%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 229, 168, .3) 30%,
            rgba(45, 125, 255, .5) 50%,
            rgba(168, 85, 247, .3) 70%,
            transparent 100%);
    opacity: .4;
    pointer-events: none;
}

/* Subtitle com contraste melhorado */
.hero-subtitle {
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.7;
    max-width: 540px;
}

/* Seções */
.section {
    padding: 80px 0;
    position: relative;
}

.section-alt {
    background:
        radial-gradient(ellipse 70% 40% at 80% 50%, rgba(45, 125, 255, .06) 0%, transparent 50%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* Seção Serviços - background específico */
#servicos {
    background:
        radial-gradient(ellipse 60% 50% at 10% 50%, rgba(0, 229, 168, .05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

/* Seção Método - background específico */
#metodo {
    background:
        radial-gradient(ellipse 50% 60% at 90% 30%, rgba(168, 85, 247, .06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 10% 70%, rgba(45, 125, 255, .05) 0%, transparent 50%),
        linear-gradient(180deg, var(--surface2) 0%, var(--bg) 100%);
}

#contato {
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(45, 125, 255, .08) 0%, transparent 60%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
}

/* Badge tech */
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(45, 125, 255, .25);
    background: rgba(45, 125, 255, .08);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
}

.badge-soft::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

/* Grid de Serviços - 5 colunas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.service-card .card-body {
    padding: 20px;
}

.service-card h5 {
    font-size: 15px;
}

.service-card p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
}

.service-card .icon-chip {
    width: 42px;
    height: 42px;
    font-size: 16px;
}

@media (max-width: 991.98px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cards */
.card-soft {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .02) 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all .3s ease;
}

.card-soft:hover {
    border-color: rgba(45, 125, 255, .25);
    box-shadow: 0 8px 32px rgba(45, 125, 255, .08);
    transform: translateY(-2px);
}

.card-glow {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .95) 0%, rgba(12, 18, 34, .98) 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, .4),
        0 0 0 1px rgba(45, 125, 255, .1),
        inset 0 1px 0 rgba(255, 255, 255, .05);
    position: relative;
    overflow: hidden;
}

/* Borda gradiente animada no card glow */
.card-glow:before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg,
            rgba(45, 125, 255, .6) 0%,
            rgba(0, 229, 168, .4) 50%,
            rgba(168, 85, 247, .3) 100%);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .5;
    pointer-events: none;
}

/* Luz superior no card */
.card-glow:after {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    pointer-events: none;
}

/* Títulos dentro de cards - contraste garantido */
.card h5,
.card-glow h5,
.card-soft h5 {
    color: #FFFFFF;
    font-weight: 600;
}

.hr-soft {
    border-color: rgba(255, 255, 255, .1);
    opacity: 1;
}

/* CTA: neon premium */
.btn-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: #06101D;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow:
        0 4px 16px rgba(45, 125, 255, .25),
        0 8px 32px rgba(0, 229, 168, .15);
    transition: all .3s ease;
}

.btn-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(45, 125, 255, .35),
        0 12px 40px rgba(0, 229, 168, .2);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, .2);
    transition: all .3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .3);
}

/* Ícones */
.icon-chip {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(45, 125, 255, .2);
    background:
        linear-gradient(135deg, rgba(45, 125, 255, .1) 0%, rgba(0, 229, 168, .05) 100%);
    font-size: 20px;
    box-shadow:
        0 4px 16px rgba(45, 125, 255, .1),
        inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* Métricas */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric {
    border: 1px solid rgba(255, 255, 255, .1);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .02) 100%);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    transition: all .3s ease;
}

.metric:hover {
    border-color: rgba(45, 125, 255, .25);
    background:
        linear-gradient(135deg, rgba(45, 125, 255, .06) 0%, rgba(255, 255, 255, .03) 100%);
}

.metric:after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(45, 125, 255, .5) 30%,
            rgba(0, 229, 168, .4) 70%,
            transparent 100%);
    opacity: .5;
    border-radius: 2px;
}

.metric-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

.metric-text {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Pills */
.pill {
    border: 1px solid rgba(45, 125, 255, .2);
    background:
        linear-gradient(135deg, rgba(45, 125, 255, .08) 0%, rgba(0, 229, 168, .04) 100%);
    border-radius: 999px;
    padding: 12px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition: all .3s ease;
}

.pill:hover {
    border-color: rgba(45, 125, 255, .4);
    background:
        linear-gradient(135deg, rgba(45, 125, 255, .12) 0%, rgba(0, 229, 168, .06) 100%);
}

/* Steps */
.step {
    padding: 24px;
    position: relative;
}

.step .n {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(45, 125, 255, .2) 0%, rgba(45, 125, 255, .1) 100%);
    border: 1px solid rgba(45, 125, 255, .3);
    color: var(--text);
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(45, 125, 255, .2);
}

/* KPIs */
.mini-kpi {
    border: 1px solid rgba(255, 255, 255, .1);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .01) 100%);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 4px;
    transition: all .3s ease;
}

.mini-kpi:hover {
    border-color: rgba(0, 229, 168, .25);
}

.mini-kpi b {
    font-size: 14px;
    color: var(--text);
}

.mini-kpi span {
    color: var(--muted);
    font-size: 12px;
}

/* Nota */
.mini-note {
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 14px;
    margin-top: 16px;
    background: linear-gradient(90deg, rgba(0, 229, 168, .05) 0%, transparent 100%);
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
}

/* Forms: contraste melhorado */
.form-control,
.form-select {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--text);
    border-radius: 12px;
    font-size: 15px;
}

.form-control::placeholder {
    color: rgba(200, 212, 236, .6);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(45, 125, 255, .5);
    box-shadow: 0 0 0 3px rgba(45, 125, 255, .15);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.form-select option {
    color: #111;
    background: #fff;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background:
        linear-gradient(180deg, var(--surface2) 0%, var(--bg) 100%);
}

/* =========================
   Cyber Canvas Wrapper
   Removida animação de pontos
   ========================= */
.cyber-wrap {
    position: relative;
    min-height: 420px;
}

/* Canvas background estático */
#cyberCanvas {
    position: absolute;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    z-index: 0;
    border-radius: 24px;
    opacity: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(45, 125, 255, .1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 80%, rgba(0, 229, 168, .08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 20% 100%, rgba(168, 85, 247, .06) 0%, transparent 50%);
}

.cyber-wrap .card {
    z-index: 1;
}

/* Glass effect melhorado no card */
.cyber-wrap .card-glow {
    background:
        linear-gradient(180deg, rgba(12, 18, 34, .95) 0%, rgba(7, 11, 20, .98) 100%);
    backdrop-filter: blur(20px);
}

/* Responsivo (métricas empilham em telas pequenas) */
@media (max-width: 575.98px) {
    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 60px 0 50px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 991.98px) {
    .cyber-wrap {
        min-height: auto;
        margin-top: 20px;
    }

    #cyberCanvas {
        display: none;
    }
}

/* Modal de Contato */
.modal-content {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    color: var(--text);
}

.modal-header {
    padding: 24px 24px 0;
}

.modal-body {
    padding: 16px 24px 24px;
}

.modal-title {
    color: #FFFFFF;
    font-weight: 600;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow:
        0 4px 16px rgba(37, 211, 102, .4),
        0 8px 32px rgba(0, 0, 0, .2);
    z-index: 1000;
    transition: all .3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 20px rgba(37, 211, 102, .5),
        0 12px 40px rgba(0, 0, 0, .25);
    color: #fff;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Animações de Entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Classes para elementos que aparecerão com scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para sequência de animação */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}