/* ============================================================
   CMS — Tema moderno dark-tech (Os Postos)
   Carregado DEPOIS de cms.css: sobrescreve o tema claro padrão
   com fundo escuro, gradientes e efeitos translúcidos (glass),
   na mesma identidade visual da tela de login.
   Classes novas usam o prefixo cmx-.
   ============================================================ */

:root {
    --primary: #6366f1;
    --secondary: #3b82f6;
    --primary-invert: #fff;
    --secondary-invert: #fff;
    --gradient-primary: linear-gradient(90deg, #6366f1, #3b82f6);
    --gradient-secondary: linear-gradient(230deg, #0f1a33, #0b1120);
    --text-primary: #e7eaf3;
    --elements-roundness: 13px;
    --cmx-text-dim: rgba(255, 255, 255, 0.65);
    --cmx-text-faint: rgba(255, 255, 255, 0.45);
    --cmx-glass: rgba(255, 255, 255, 0.06);
    --cmx-glass-strong: rgba(255, 255, 255, 0.09);
    --cmx-border: rgba(255, 255, 255, 0.14);
    --cmx-accent: #93c5fd;
    --space-between-blocks: 4.5rem;
    --space-between-blocks-small-screens: 2.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: #0b1120;
    background-image:
        radial-gradient(ellipse 80% 55% at 12% 0%, rgba(99, 102, 241, 0.20), transparent 60%),
        radial-gradient(ellipse 65% 50% at 92% 8%, rgba(59, 130, 246, 0.15), transparent 60%),
        radial-gradient(ellipse 70% 45% at 55% 105%, rgba(139, 92, 246, 0.12), transparent 65%),
        linear-gradient(165deg, #0b1120 0%, #0f1a33 55%, #101226 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

/* ---------- Botões ---------- */
.btn {
    border-radius: var(--elements-roundness);
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.22s ease;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    box-shadow: 0 10px 28px rgba(79, 99, 237, 0.45);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #4f46e5, #2563eb);
    box-shadow: 0 14px 34px rgba(79, 99, 237, 0.6);
    transform: translateY(-1px);
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--cmx-glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* ---------- Fundos das seções ----------
   Cada bloco do cms.css define o próprio `--block-background: white` — sem esta
   sobrescrita as seções ficam BRANCAS sob o tema escuro e os textos/cards claros
   "desaparecem" (glass branco sobre fundo branco). Transparente = fundo do body. */
.block-1,
.block-2,
.block-20,
.block-27,
.block-38,
.block-39,
.article-block {
    --block-background: transparent;
    --block-text-color: var(--text-primary);
    background: transparent;
}

.block-1-testimonial {
    background: var(--cmx-glass);
    border: 1px solid var(--cmx-border);
    border-radius: 16px;
}

/* ---------- Navbar (glass) ---------- */
.hero {
    background: transparent;
}

.hero-nav {
    background: transparent;
    transition: all 0.25s ease;
}

.hero-nav__link,
.hero-nav__link:focus,
.hero-nav__link:hover {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.hero-nav__link:hover {
    color: #fff;
}

.hero-nav--is-sticky {
    background: rgba(11, 17, 32, 0.75);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--cmx-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero-nav--is-sticky .hero-nav__link {
    color: rgba(255, 255, 255, 0.82);
}

.hero-nav--is-sticky .hero-nav__link:hover {
    color: #fff;
}

/* menu mobile deslizante */
.ft-menu__slider {
    background: rgba(13, 20, 40, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--cmx-border);
}

.hero-nav--is-sticky .ft-menu__slider {
    background: rgba(13, 20, 40, 0.96);
}

.ft-menu__close-btn {
    color: #fff;
    background: transparent;
}

[open-nav-menu] {
    color: #fff;
    background: transparent;
    border: none;
    font-size: 20px;
}

/* dropdown "Páginas" */
.hero-nav__dropdown.dropdown,
.dropdown--of-1-columns {
    background: rgba(17, 25, 48, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--cmx-border);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.hero-nav__dropdown::before {
    display: none;
}

.dropdown__item-title {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.dropdown__link:hover .dropdown__item-title {
    color: #fff;
}

.dropdown__link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

/* ---------- Hero (introdução) ---------- */
/* O cms.css pinta o título com gradiente #1973FE→PRETO via background-clip — no fundo
   escuro as últimas linhas somem. Troca por gradiente claro (branco → azul-claro). */
.hero__title {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    background: linear-gradient(180deg, #ffffff 30%, #b6ccf5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #dbe6ff; /* fallback p/ navegador sem background-clip:text */
}

.hero__paragraph,
.hero__paragraph p {
    color: var(--cmx-text-dim);
    font-size: 1.06rem;
    line-height: 1.65;
}

/* selo acima do título */
.cmx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(129, 140, 248, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #c7d2fe;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}

.cmx-hero-badge .cmx-pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: cmx-pulse 2.2s infinite;
}

@keyframes cmx-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* destaque em gradiente para parte do título */
.cmx-grad-text {
    background: linear-gradient(90deg, #818cf8, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* painel visual do hero (mockup/ilustração) */
.cmx-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.cmx-hero-visual svg,
.cmx-hero-visual img {
    width: 100%;
    max-width: 560px;
    height: auto;
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.5));
}

.cmx-hero-visual img {
    border-radius: 18px;
    border: 1px solid var(--cmx-border);
}

/* chips flutuantes translúcidos */
.cmx-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    z-index: 5;
    animation: cmx-float 6s ease-in-out infinite;
    pointer-events: none;
    white-space: nowrap;
}

.cmx-chip--1 { top: 6%; left: -2%; animation-delay: 0s; }
.cmx-chip--2 { bottom: 14%; right: -3%; animation-delay: 2s; }
.cmx-chip--3 { bottom: -4%; left: 8%; animation-delay: 3.6s; }

@keyframes cmx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-11px); }
}

/* métricas rápidas sob os botões do hero */
.cmx-hero-metrics {
    display: flex;
    gap: 34px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.cmx-hero-metrics .cmx-metric strong {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.cmx-hero-metrics .cmx-metric span {
    color: var(--cmx-text-faint);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- Títulos de seção ---------- */
.block__title,
.block__title--big {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.block__paragraph,
.block__paragraph--big,
.block__paragraph p,
.block__paragraph--big p {
    color: var(--cmx-text-dim);
}

.cmx-section-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(129, 140, 248, 0.3);
    color: #c7d2fe;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* ---------- Cards de features (glass) ---------- */
.card-1 {
    background: var(--cmx-glass);
    border: 1px solid var(--cmx-border);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
    height: 100%;
}

.card-1:hover {
    background: var(--cmx-glass-strong);
    border-color: rgba(129, 140, 248, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.card-1__title {
    color: #fff;
    font-weight: 700;
}

.card-1__paragraph {
    color: var(--cmx-text-dim);
}

.fr-icon {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff;
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(79, 99, 237, 0.4);
}

/* ---------- Indústrias (carrossel vertical) ---------- */
.block-2-card {
    background: var(--cmx-glass);
    border: 1px solid var(--cmx-border);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.25s ease;
}

.block-2-card__title {
    color: #fff;
    font-weight: 700;
}

.block-2-card__title::before {
    background: var(--gradient-primary);
}

.block-2-card__paragraph {
    color: var(--cmx-text-dim);
}

.block-2__splide-btn,
.block-2__splide-btn:hover {
    background: var(--cmx-glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.block-2__svg-shapes {
    color: rgba(99, 102, 241, 0.18);
}

/* ---------- Estatísticas ---------- */
.stats {
    background: var(--cmx-glass);
    border: 1px solid var(--cmx-border);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.stats__number {
    background: linear-gradient(90deg, #818cf8, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.stats__text {
    color: var(--cmx-text-dim);
    font-weight: 600;
}

.stats__li {
    border-color: var(--cmx-border) !important;
}

/* ---------- Depoimentos ---------- */
.testimonial-card-1 {
    background: var(--cmx-glass);
    border: 1px solid var(--cmx-border);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.25s ease;
    height: 100%;
}

.testimonial-card-1:hover {
    transform: translateY(-4px);
    border-color: rgba(129, 140, 248, 0.4);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.testimonial-card-1__paragraph,
.testimonial-card-1__paragraph p {
    color: var(--cmx-text-dim);
}

.testimonial-card-1__quote-symbol {
    color: rgba(129, 140, 248, 0.45);
}

.block-20-person__name {
    color: #fff;
    font-weight: 700;
}

.block-20-person__rating {
    color: #fbbf24;
}

.block-20-person__avatar {
    border: 2px solid rgba(129, 140, 248, 0.5);
}

/* ---------- CTA ---------- */
.block-29 {
    background:
        radial-gradient(ellipse 90% 130% at 15% -20%, rgba(99, 102, 241, 0.35), transparent 60%),
        radial-gradient(ellipse 80% 120% at 90% 120%, rgba(59, 130, 246, 0.3), transparent 60%),
        rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cmx-border);
    border-radius: 26px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    padding-top: 3.4rem !important;
    padding-bottom: 3.4rem !important;
}

.block-29__title {
    color: #fff;
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: -0.015em;
}

.block-29__paragraph {
    color: var(--cmx-text-dim);
}

/* ---------- FAQ ---------- */
.content-block {
    background: var(--cmx-glass);
    border: 1px solid var(--cmx-border);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 22px 24px;
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.content-block:hover {
    background: var(--cmx-glass-strong);
    border-color: rgba(129, 140, 248, 0.35);
}

.content-block__title {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.content-block__paragraph {
    color: var(--cmx-text-dim);
    margin-bottom: 0;
}

/* ---------- Rodapé ---------- */
.block-44 {
    background: rgba(9, 14, 28, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-top: 3rem;
}

.block-44__divider {
    border-color: var(--cmx-border);
    opacity: 1;
    margin-top: 0;
}

.block-44__link,
.block-44__link:hover {
    color: rgba(255, 255, 255, 0.55);
    background: var(--cmx-glass);
    border: 1px solid var(--cmx-border);
    border-radius: 999px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.block-44__link:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(129, 140, 248, 0.5);
}

.block-41__copyrights {
    color: var(--cmx-text-faint);
}

/* ---------- Blog / páginas de artigo ---------- */
.article-block__title {
    color: #fff;
    font-weight: 800;
}

.article-block__info,
.article-block__author,
.article-block__time {
    color: var(--cmx-text-faint);
}

.article,
.article p,
.article li {
    color: var(--cmx-text-dim);
}

.article h1, .article h2, .article h3,
.article h4, .article h5, .article h6 {
    color: #fff;
}

.article a {
    color: var(--cmx-accent);
}

.article img,
.article-block__header-img {
    border-radius: 16px;
    border: 1px solid var(--cmx-border);
}

/* cards da lista de blog */
.cmx-blog-card {
    background: var(--cmx-glass);
    border: 1px solid var(--cmx-border);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cmx-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(129, 140, 248, 0.4);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.cmx-blog-card .card-body {
    background: transparent;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cmx-blog-card h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.cmx-blog-card .card-text {
    color: var(--cmx-text-dim);
    flex: 1;
}

.cmx-blog-card .text-muted {
    color: var(--cmx-text-faint) !important;
}

/* ---------- Formulário de contato ---------- */
.contact-form {
    background: var(--cmx-glass);
    border: 1px solid var(--cmx-border);
    border-radius: 24px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    padding: 34px 30px;
}

.contact-form__title {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
}

.contact-form__paragraph,
.contact-form__paragraph p {
    color: var(--cmx-text-dim);
}

.contact-form__input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    color: #fff;
    font-weight: 500;
    padding: 13px 16px;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form__input:focus {
    border-color: #818cf8;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

.contact-form__input:-webkit-autofill,
.contact-form__input:-webkit-autofill:hover,
.contact-form__input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1b2440 inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}

.block-27__image-column {
    border-radius: 22px;
    border: 1px solid var(--cmx-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    filter: saturate(0.9) brightness(0.88);
}

.cmx-contact-info {
    background: var(--cmx-glass);
    border: 1px solid var(--cmx-border);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 22px 26px;
    color: var(--cmx-text-dim);
}

.cmx-contact-info a,
.cmx-contact-info strong {
    color: #fff;
}

.cmx-contact-info a:hover {
    color: var(--cmx-accent);
}

.cmx-contact-info i {
    color: #818cf8;
}

/* ---------- Cabeçalho de páginas internas ---------- */
.cmx-page-hero {
    padding: 26px 0 8px;
}

/* ---------- Ajustes gerais ---------- */
.space-between-blocks {
    position: relative;
}

::selection {
    background: rgba(99, 102, 241, 0.5);
    color: #fff;
}

/* barra de rolagem discreta (webkit) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0b1120;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* respeita "reduzir movimento" */
@media (prefers-reduced-motion: reduce) {
    .cmx-chip { animation: none; }
    .cmx-hero-badge .cmx-pulse { animation: none; }
    html { scroll-behavior: auto; }
}

/* responsivo */
@media (max-width: 991px) {
    .cmx-hero-visual { min-height: 0; margin-top: 34px; }
    .cmx-chip--1 { left: 2%; }
    .cmx-chip--2 { right: 2%; }
    .cmx-chip--3 { display: none; }
    .cmx-hero-metrics { gap: 24px; }
}

@media (max-width: 575px) {
    .cmx-chip { display: none; }
    .block-29 { padding-left: 1.4rem !important; padding-right: 1.4rem !important; }
    .contact-form { padding: 26px 20px; }
}
