/* ── X3TI Site CSS — Dark Cybersecurity Theme ── */
:root {
    --x3ti-red:       #dc3545;
    --x3ti-red-dark:  #b02a37;
    --x3ti-dark:      #0d1117;
    --x3ti-dark-2:    #161b22;
    --x3ti-dark-3:    #1c2333;
    --x3ti-border:    rgba(255,255,255,.08);
    --x3ti-text-muted: rgba(255,255,255,.55);
    --font-main:      'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--x3ti-dark);
    color: #e6edf3;
    overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--x3ti-dark); }
::-webkit-scrollbar-thumb { background: var(--x3ti-red); border-radius: 3px; }

/* ── Navbar ── */
#mainNav {
    background: rgba(13,17,23,.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--x3ti-border);
    transition: all .3s;
}
#mainNav.scrolled { background: rgba(13,17,23,.98); box-shadow: 0 4px 20px rgba(0,0,0,.4); }

.navbar-brand .brand-icon { color: var(--x3ti-red); font-size: 1.5rem; }
.navbar-brand .brand-text { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }

.nav-link {
    color: rgba(255,255,255,.75) !important;
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem .75rem !important;
    border-radius: .375rem;
    transition: all .2s;
}
.nav-link:hover, .nav-link.active {
    color: #fff !important;
    background: rgba(220,53,69,.1);
}

/* ── Hero ── */
.hero-section {
    min-height: 100vh;
    background: var(--x3ti-dark);
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.hero-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(220,53,69,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220,53,69,.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    color: #fff;
}

.text-gradient {
    background: linear-gradient(135deg, #dc3545, #ff6b6b, #dc3545);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200%;
    animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.hero-subtitle { font-size: 1.1rem; color: var(--x3ti-text-muted); max-width: 540px; }
.text-muted-light { color: var(--x3ti-text-muted) !important; }

.badge-cyber {
    background: rgba(220,53,69,.15);
    border: 1px solid rgba(220,53,69,.3);
    color: #ff6b6b;
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.shadow-red { box-shadow: 0 8px 30px rgba(220,53,69,.35) !important; }
.btn-danger { background: var(--x3ti-red); border-color: var(--x3ti-red); }
.btn-danger:hover { background: var(--x3ti-red-dark); border-color: var(--x3ti-red-dark); transform: translateY(-1px); }

.stat-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--x3ti-border);
    border-radius: .75rem;
}
.stat-number { font-size: 1.75rem; letter-spacing: -.03em; }
.stat-label { font-size: .75rem; color: var(--x3ti-text-muted); }

/* Hero shield animation */
.hero-shield-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-shield {
    width: 140px; height: 140px;
    background: linear-gradient(135deg, rgba(220,53,69,.2), rgba(220,53,69,.05));
    border: 2px solid rgba(220,53,69,.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: var(--x3ti-red);
    box-shadow: 0 0 60px rgba(220,53,69,.2), inset 0 0 30px rgba(220,53,69,.05);
    animation: shieldPulse 3s ease-in-out infinite;
    z-index: 1;
}
@keyframes shieldPulse {
    0%, 100% { box-shadow: 0 0 60px rgba(220,53,69,.2), inset 0 0 30px rgba(220,53,69,.05); }
    50%       { box-shadow: 0 0 100px rgba(220,53,69,.35), inset 0 0 50px rgba(220,53,69,.1); }
}

.hero-orbit {
    position: absolute;
    border: 1px dashed rgba(220,53,69,.2);
    border-radius: 50%;
    display: flex; align-items: flex-start; justify-content: flex-end;
}
.hero-orbit-1 { width: 200px; height: 200px; animation: orbit1 12s linear infinite; }
.hero-orbit-2 { width: 270px; height: 270px; animation: orbit2 18s linear infinite; }
.hero-orbit-3 { width: 330px; height: 330px; animation: orbit3 24s linear infinite; }

.orbit-dot {
    width: 36px; height: 36px;
    background: rgba(220,53,69,.15);
    border: 1px solid rgba(220,53,69,.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--x3ti-red); font-size: .9rem;
    margin: -18px;
}

@keyframes orbit1 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit2 { from { transform: rotate(60deg); } to { transform: rotate(420deg); } }
@keyframes orbit3 { from { transform: rotate(120deg); } to { transform: rotate(480deg); } }

/* ── Sections ── */
.section-label { letter-spacing: .15em; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.02em; }
.section-subtitle { color: #8b949e; max-width: 600px; }
.ls-1 { letter-spacing: .05em; }
.ls-2 { letter-spacing: .1em; }

/* ── Services ── */
.section-services { background: var(--x3ti-dark); }
.service-card {
    background: var(--x3ti-dark-2);
    border: 1px solid var(--x3ti-border);
    border-radius: 1rem;
    transition: all .3s;
    cursor: default;
}
.service-card:hover {
    border-color: rgba(220,53,69,.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,.3), 0 0 30px rgba(220,53,69,.08);
}
.service-icon {
    width: 56px; height: 56px;
    background: rgba(220,53,69,.1);
    border: 1px solid rgba(220,53,69,.2);
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--x3ti-red);
}
.service-card h4 { color: #e6edf3; font-size: 1.05rem; }
.service-card p { color: #8b949e; }
.service-link {
    color: var(--x3ti-red);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    transition: gap .2s;
}
.service-link:hover { color: #ff6b6b; text-decoration: underline; }

/* ── Why section ── */
.bg-dark-soft { background: var(--x3ti-dark-2); }
.why-icon-wrap {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.why-card {
    background: var(--x3ti-dark-3);
    border: 1px solid var(--x3ti-border);
    border-radius: 1rem;
    color: #e6edf3;
    transition: all .3s;
}
.why-card:hover { border-color: rgba(220,53,69,.3); }

/* ── Plans ── */
.plan-card {
    background: var(--x3ti-dark-2);
    border: 1px solid var(--x3ti-border);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all .3s;
}
.plan-card:hover { border-color: rgba(220,53,69,.3); transform: translateY(-4px); }
.plan-featured {
    background: linear-gradient(135deg, var(--x3ti-dark-3), rgba(220,53,69,.05));
    border-color: rgba(220,53,69,.5) !important;
    box-shadow: 0 20px 60px rgba(220,53,69,.15);
}
.plan-badge {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--x3ti-red); color: #fff;
    font-size: .7rem; font-weight: 700;
    padding: .25rem .75rem; border-radius: 2rem;
    text-transform: uppercase; letter-spacing: .08em;
}
.plan-price { display: flex; align-items: baseline; gap: .25rem; }
.plan-currency { font-size: 1rem; font-weight: 600; color: #e6edf3; }
.plan-value { font-size: 2.8rem; font-weight: 900; letter-spacing: -.04em; color: #fff; line-height: 1; }
.plan-period { font-size: .85rem; color: #8b949e; }
.plan-features li { color: #c9d1d9; }

/* ── CTA ── */
.cta-box {
    background: var(--x3ti-dark-2);
    border: 1px solid rgba(220,53,69,.25);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}
.cta-glow {
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 200px;
    background: radial-gradient(ellipse, rgba(220,53,69,.15) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Inner hero (páginas internas) ── */
.inner-hero {
    background: var(--x3ti-dark);
    border-bottom: 1px solid var(--x3ti-border);
    padding-top: 100px !important;
}
.inner-hero-title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
.inner-hero-subtitle { color: var(--x3ti-text-muted); font-size: 1.05rem; max-width: 600px; }

/* ── Breadcrumb ── */
.breadcrumb-site { background: none; padding: 0; }
.breadcrumb-site .breadcrumb-item a { color: var(--x3ti-red); text-decoration: none; font-size: .85rem; }
.breadcrumb-site .breadcrumb-item.active { color: #8b949e; font-size: .85rem; }
.breadcrumb-site .breadcrumb-item + .breadcrumb-item::before { color: #8b949e; }

/* ── Sobre ── */
.about-stat-card {
    background: var(--x3ti-dark-2);
    border: 1px solid var(--x3ti-border);
    border-radius: 1rem;
}
.about-stat-num { font-size: 2.5rem; letter-spacing: -.04em; }
.mvv-card {
    background: var(--x3ti-dark-2);
    border: 1px solid var(--x3ti-border);
    border-radius: 1rem;
    color: #e6edf3;
}
.cert-badge {
    background: var(--x3ti-dark-2);
    border: 1px solid var(--x3ti-border);
    border-radius: 2rem;
    color: #c9d1d9;
    font-size: .85rem;
    font-weight: 500;
}

/* ── Contact ── */
.contact-card {
    background: var(--x3ti-dark-2);
    border: 1px solid var(--x3ti-border);
    border-radius: 1.25rem;
}
.contact-card .form-control,
.contact-card .form-select {
    background: var(--x3ti-dark-3);
    border-color: var(--x3ti-border);
    color: #e6edf3;
}
.contact-card .form-control:focus,
.contact-card .form-select:focus {
    background: var(--x3ti-dark-3);
    border-color: rgba(220,53,69,.5);
    box-shadow: 0 0 0 .25rem rgba(220,53,69,.15);
    color: #e6edf3;
}
.contact-card .form-label { color: #c9d1d9; font-size: .875rem; }
.contact-info-card {
    background: var(--x3ti-dark-2);
    border: 1px solid var(--x3ti-border);
    border-radius: .75rem;
}
.contact-info-icon {
    width: 40px; height: 40px;
    background: rgba(220,53,69,.1);
    border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}

/* ── Plans toggle ── */
.billing-toggle {
    background: var(--x3ti-dark-2);
    border: 1px solid var(--x3ti-border);
}
.billing-opt { font-size: .9rem; color: #8b949e; font-weight: 500; }
.form-check-input:checked { background-color: var(--x3ti-red); border-color: var(--x3ti-red); }

/* ── Footer ── */
.footer { background: #080c10 !important; border-top: 1px solid var(--x3ti-border); }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #8b949e; text-decoration: none; font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: var(--x3ti-red); }
.hover-red:hover { color: var(--x3ti-red) !important; }

/* ── Accordion ── */
.accordion-item { background: var(--x3ti-dark-2) !important; border: 1px solid var(--x3ti-border) !important; }
.accordion-button {
    background: var(--x3ti-dark-2) !important;
    color: #e6edf3 !important;
    font-size: .9rem;
}
.accordion-button::after { filter: invert(1); }
.accordion-button:not(.collapsed) { background: var(--x3ti-dark-3) !important; color: #fff !important; box-shadow: none !important; }
.accordion-body { background: var(--x3ti-dark-3) !important; }

/* ── Alerts no site ── */
.alert {
    margin: 0;
    border-radius: 0;
    border: none;
    border-left: 4px solid;
}
.alert-success { background: rgba(25,135,84,.15); border-color: #198754; color: #6ee7b7; }
.alert-danger   { background: rgba(220,53,69,.15);  border-color: #dc3545; color: #fca5a5; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section { padding-top: 90px; }
    .hero-title { font-size: 2rem; }
    body { padding-top: 0; }
}

/* ── Dark theme — todo texto branco ── */
/* Bootstrap .text-muted usa #6c757d (cinza escuro) — ilegível em dark bg */
.text-muted,
.text-muted-light,
p.text-muted,
small.text-muted,
li.text-muted,
span.text-muted,
ul.text-muted,
div.text-muted {
    color: #e6edf3 !important;
}
/* Cards escuros — tudo branco */
.mvv-card,
.mvv-card *,
.about-stat-card,
.about-stat-card *,
.service-card p,
.why-card p,
.why-card li,
.cert-badge,
.inner-hero p,
.inner-hero .text-muted,
.inner-hero .text-muted-light,
.bg-dark-soft p,
.bg-dark-soft li,
.bg-dark-soft .text-muted {
    color: #e6edf3 !important;
}
/* Ícones coloridos não herdam o override */
.text-danger { color: #dc3545 !important; }
.text-primary { color: #3b82f6 !important; }
/* Breadcrumb em fundo escuro */
.breadcrumb-site .breadcrumb-item.active { color: #e6edf3; }
.breadcrumb-site .breadcrumb-item a {
    color: rgba(230, 237, 243, .65);
    text-decoration: none;
}
.breadcrumb-site .breadcrumb-item a:hover { color: #fff; }
.breadcrumb-site .breadcrumb-item + .breadcrumb-item::before { color: rgba(230, 237, 243, .3); }
