/* ------------------------------------------------------------------
   Tema OpsCom — consola escura, sobre o design base do OpsCom CMS.
   Carregado depois do site.css (ver front-themes/opscom/front/layout).
   Grelha de fundo, cantos vivos, Space Grotesk + JetBrains Mono.
   ------------------------------------------------------------------ */

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/spacegrotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/spacegrotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
        U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/jetbrainsmono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/jetbrainsmono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
        U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ink: #e7e9ee;            /* texto forte (o «ink» do base é o texto) */
    --accent: #ffffff;
    --paper: #0a0b0e;          /* superfície dos cartões */
    --paper-2: #0e1014;
    --bg: #08090b;             /* fundo da página */
    --gray: #9aa0aa;
    --dim: #6b7079;
    --dimmer: #575c65;
    --line: rgba(255, 255, 255, .09);
    --line-soft: rgba(255, 255, 255, .06);
    --tint-1: #0a0b0e;
    --tint-2: #0e1014;
    --tint-3: #10131a;
    --heading: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --container: 1200px;
    --header-h: 69px;
    --radius: 0;
}

/* ---------- base ---------- */

body.theme-opscom {
    background: var(--bg);
    color: #a8adb6;
    font-size: 16px;
    line-height: 1.6;
    /* grelha ténue, como no design */
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 64px 64px;
    overflow-x: hidden;
}

.theme-opscom .container { padding: 0 32px; }
@media (max-width: 560px) { .theme-opscom .container { padding: 0 20px; } }

.theme-opscom h1, .theme-opscom h2, .theme-opscom h3, .theme-opscom h4 {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.theme-opscom h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: .98; }
.theme-opscom h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; }
.theme-opscom h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.theme-opscom a { color: var(--accent); text-decoration: none; }
.theme-opscom a:hover { color: #ffffff; }
.theme-opscom ::selection { background: var(--accent); color: #08090b; }
.theme-opscom section { padding: 60px 0; }
.theme-opscom .prose { color: #a8adb6; }
.theme-opscom .prose a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

.theme-opscom .kicker {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .16em;
    color: var(--accent);
    margin-bottom: 16px;
}
.theme-opscom .kicker.small { color: var(--dim); }
.theme-opscom .section-head { max-width: 760px; margin-bottom: 48px; }
.theme-opscom .section-intro { color: #a8adb6; font-size: 17px; }

/* ---------- botões ---------- */

.theme-opscom .btn-cta {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
    padding: 13px 24px;
    border-radius: 0;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #08090b;
    transition: background .15s, color .15s, border-color .15s;
}
.theme-opscom .btn-cta:hover { background: #ffffff; border-color: #ffffff; color: #08090b; }
.theme-opscom .btn-cta.ghost {
    background: transparent;
    color: #e7e9ee;
    border-color: rgba(255, 255, 255, .16);
    font-weight: 500;
}
.theme-opscom .btn-cta.ghost:hover { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, .4); }
/* «light» no base é o botão claro sobre fundo escuro — aqui é o principal
   (o --ink deste tema é texto claro e ficaria branco sobre branco). */
.theme-opscom .btn-cta.light { background: var(--accent); color: #08090b; border-color: var(--accent); }
.theme-opscom .btn-cta.light:hover { background: #ffffff; color: #08090b; border-color: #ffffff; }
.theme-opscom .btn-cta.big { padding: 14px 28px; font-size: 14px; }

/* ---------- cabeçalho ---------- */

.theme-opscom .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 9, 11, .72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.theme-opscom .header-inner { padding-top: 16px; padding-bottom: 16px; gap: 24px; }
.theme-opscom .site-header.is-stuck { background: rgba(8, 9, 11, .88); border-color: rgba(255, 255, 255, .07); }

.theme-opscom .brand { display: flex; align-items: center; gap: 10px; color: #e7e9ee; }
.theme-opscom .brand-mark { width: 22px; height: 22px; background: var(--accent); display: inline-block; flex: none; }
.theme-opscom .brand-text {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #e7e9ee;
}

.theme-opscom .main-nav > ul { gap: 28px; }
.theme-opscom .main-nav a {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: none;
    color: var(--gray);
}
.theme-opscom .main-nav a:hover { color: #ffffff; }
.theme-opscom .header-actions { gap: 12px; }

.theme-opscom .lang-switch { display: flex; gap: 4px; padding: 3px; border: 1px solid rgba(255, 255, 255, .1); }
.theme-opscom .lang-switch a,
.theme-opscom .lang-switch span {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .08em;
    padding: 5px 11px;
    color: #82868f;
    border: 1px solid transparent;
}
.theme-opscom .lang-switch a:hover { color: #ffffff; }
.theme-opscom .lang-switch .is-active { background: var(--accent); border-color: var(--accent); color: #08090b; }

.theme-opscom .nav-toggle span { background: #e7e9ee; }
.theme-opscom .mobile-nav { background: #0a0b0e; border-top: 1px solid var(--line); }
.theme-opscom .mobile-nav a { color: #e7e9ee; font-family: var(--mono); font-size: 15px; }

/* ---------- hero com painel de estado ---------- */

.theme-opscom .block-hero-console { padding: 84px 0 96px; }
.theme-opscom .hc-kicker {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .14em;
    color: var(--gray);
    margin-bottom: 26px;
}
.theme-opscom .hc-dot { width: 7px; height: 7px; background: var(--accent); }
.theme-opscom .hc-copy h1 { margin-bottom: 24px; }
.theme-opscom .hc-sub { font-size: 18px; line-height: 1.55; color: #a8adb6; text-wrap: pretty; }
.theme-opscom .hc-note { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--dim); }

.theme-opscom .hc-panel {
    border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(180deg, #0f1116, #0b0c0f);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
    max-width: 420px;
    overflow: hidden;
}
.theme-opscom .hc-panel-head { border-bottom: 1px solid var(--line-soft); }
.theme-opscom .hc-panel-tag {
    background: #16181e;
    border: 1px solid rgba(255, 255, 255, .08);
    font-family: var(--mono);
    color: var(--accent);
}
.theme-opscom .hc-panel-id strong { font-family: var(--mono); font-weight: 700; }
.theme-opscom .hc-panel-id span { font-family: var(--mono); color: var(--dim); }
.theme-opscom .hc-panel-status { font-family: var(--mono); color: var(--accent); }
.theme-opscom .hc-panel-body { font-family: var(--mono); font-size: 14px; color: var(--gray); }
.theme-opscom .hc-row-value { color: #e7e9ee; }
.theme-opscom .hc-row-value.is-accent { color: var(--accent); }
.theme-opscom .hc-row-heading { border-color: rgba(255, 255, 255, .07); color: var(--dim); }

/* ---------- faixa de confiança ---------- */

.theme-opscom .block-logos {
    padding: 26px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.theme-opscom .block-logos h3 {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .16em;
    color: #474c54;
    margin: 0;
}
.theme-opscom .logos-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    animation: none;
    transform: none;
}
.theme-opscom .block-logos .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 40px; }
.theme-opscom .logo-name { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; color: #575c65; }

/* ---------- introdução em duas colunas ---------- */

.theme-opscom .block-split-intro { padding: 96px 0 20px; }
.theme-opscom .si-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.06; }
.theme-opscom .si-body .prose { font-size: 17px; line-height: 1.6; margin-bottom: 30px; }
.theme-opscom .si-tiles { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .08); }
.theme-opscom .si-tiles .si-point { background: #0a0b0e; font-family: var(--mono); font-size: 14px; color: #e7e9ee; }
.theme-opscom .si-list .si-point { border-bottom-color: var(--line); color: #c4c8cf; font-size: 16px; }
.theme-opscom .si-arrow { font-family: var(--mono); font-size: 13px; color: var(--accent); }

/* ---------- caixa de texto em colunas (definição) ---------- */

.theme-opscom .block-text-columns { padding: 60px 0 20px; }
.theme-opscom .block-text-columns .card-box {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0e1014, #0a0b0e);
    padding: 48px;
}
.theme-opscom .block-text-columns .card-box h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 28px; }
.theme-opscom .text-columns { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.theme-opscom .text-col .prose {
    font-size: 16px;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 20px;
}
.theme-opscom .text-col .prose p:last-child { margin-bottom: 0; }

/* ---------- serviços numerados ---------- */

.theme-opscom .block-services.is-numbered { padding: 100px 0 40px; }
/* As colunas são as do bloco (cols-2/3/4 no site.css); aqui só o resto. */
.theme-opscom .sn-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0e1014, #0a0b0e);
    padding: 28px;
}
.theme-opscom a.sn-card:hover { border-color: rgba(255, 255, 255, .2); }
.theme-opscom .sn-number { font-family: var(--mono); font-size: 13px; color: var(--dimmer); }
.theme-opscom .sn-tag {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .14em;
    border-color: rgba(255, 255, 255, .12);
    color: var(--accent);
}
.theme-opscom .sn-card h3 { color: var(--ink); }
.theme-opscom .sn-card p { color: var(--gray); font-size: 15px; line-height: 1.55; }

/* ---------- números ---------- */

.theme-opscom .block-stats { background: transparent; padding: 60px 0; }
.theme-opscom .block-stats .container > .kicker {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--dimmer);
    margin: 0 0 14px;
}
.theme-opscom .block-stats .container {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0e1014, #0a0b0e);
    padding: 16px 20px 12px;
    max-width: calc(var(--container) - 0px);
}
.theme-opscom .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .06);
    text-align: center;
}
.theme-opscom .stat { background: #0a0b0e; padding: 40px 26px; }
.theme-opscom .stat-number {
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -.03em;
    color: #ffffff;
}
.theme-opscom .stat-suffix { font-family: var(--mono); color: #ffffff; }
.theme-opscom .stat-label { display: block; font-size: 13px; color: var(--gray); margin-top: 12px; line-height: 1.4; }
@media (max-width: 860px) { .theme-opscom .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- passos ---------- */

.theme-opscom .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.theme-opscom .step { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; }
.theme-opscom .step-number { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--accent); margin-bottom: 20px; }
.theme-opscom .step-number::before { content: '[ '; }
.theme-opscom .step-number::after { content: ' ]'; }
.theme-opscom .step h3 { font-size: 22px; }
.theme-opscom .step p { color: var(--gray); font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .theme-opscom .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .theme-opscom .steps-grid { grid-template-columns: 1fr; } }

/* ---------- destaques (setores / porquê) ---------- */

.theme-opscom .if-tiles .if-grid { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .08); }
.theme-opscom .if-tiles .if-item { background: #0a0b0e; padding: 30px 26px; }
.theme-opscom .if-plain .if-item { border-top-color: rgba(255, 255, 255, .12); }
.theme-opscom .if-plain .if-item h3, .theme-opscom .if-tiles .if-item h3 { font-size: 19px; color: var(--ink); }
.theme-opscom .if-plain .if-item p, .theme-opscom .if-tiles .if-item p { color: var(--gray); font-size: 14px; line-height: 1.55; }

/* ---------- etiquetas (integrações) ---------- */

.theme-opscom .block-tag-list { padding: 40px 0; }
.theme-opscom .block-tag-list .kicker { color: var(--dimmer); margin-bottom: 22px; }
.theme-opscom .tag-list li {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--gray);
    border-color: rgba(255, 255, 255, .1);
    padding: 9px 14px;
}

/* ---------- planos ---------- */

.theme-opscom .pricing-grid { grid-template-columns: repeat(3, 1fr); }
.theme-opscom .plan {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #0e1014, #0a0b0e);
    padding: 30px;
}
.theme-opscom .plan.is-featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, #10130f, #0a0b0e);
    box-shadow: 0 0 60px -20px var(--accent);
}
.theme-opscom .plan-badge {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .16em;
    background: var(--accent);
    color: #08090b;
}
.theme-opscom .plan-name { font-family: var(--mono); font-size: 15px; font-weight: 400; letter-spacing: .08em; color: var(--gray); }
.theme-opscom .plan-amount { font-family: var(--mono); font-weight: 700; font-size: 40px; letter-spacing: -.02em; color: #ffffff; }
.theme-opscom .plan-period { font-family: var(--mono); font-size: 14px; color: var(--dim); }
.theme-opscom .plan-text { color: var(--gray); }
.theme-opscom .plan-feats li { color: #c4c8cf; }
.theme-opscom .plan-plus { font-family: var(--mono); color: var(--accent); font-weight: 400; }
.theme-opscom .plan:not(.is-featured) .plan-cta {
    background: transparent;
    color: #e7e9ee;
    border-color: rgba(255, 255, 255, .16);
    font-weight: 500;
}
.theme-opscom .plan:not(.is-featured) .plan-cta:hover { border-color: rgba(255, 255, 255, .4); }
.theme-opscom .plan-cta { padding: 12px; }
@media (max-width: 900px) { .theme-opscom .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ em grelha ---------- */

.theme-opscom .block-accordion.is-grid { padding: 60px 0; }
.theme-opscom .block-accordion.is-grid .kicker { margin-bottom: 32px; }
.theme-opscom .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .08);
}
.theme-opscom .faq-item { background: #0a0b0e; padding: 30px 28px; }
.theme-opscom .faq-item h3 { font-size: 18px; }
.theme-opscom .faq-item .prose { color: var(--gray); font-size: 15px; line-height: 1.55; }
.theme-opscom .faq-item .prose p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .theme-opscom .faq-grid { grid-template-columns: 1fr; } }

/* ---------- banda final ---------- */

.theme-opscom .block-cta { background: transparent; padding: 20px 0 80px; }
.theme-opscom .block-cta .cta-inner {
    position: relative;
    max-width: var(--container);
    border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(135deg, #0f1116, #0a0b0e);
    padding: 64px 40px;
    text-align: center;
    overflow: hidden;
}
.theme-opscom .block-cta .cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .1), transparent 60%);
    pointer-events: none;
}
.theme-opscom .block-cta h2, .theme-opscom .block-cta p, .theme-opscom .block-cta .btn-cta { position: relative; }
.theme-opscom .block-cta h2 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 16px; color: var(--ink); }
.theme-opscom .block-cta p { color: #a8adb6; font-size: 17px; max-width: 500px; margin: 0 auto 30px; }

/* ---------- rodapé ---------- */

.theme-opscom .site-footer { border-top: 1px solid rgba(255, 255, 255, .07); background: transparent; }
.theme-opscom .footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 40px;
}
.theme-opscom .footer-about .brand { display: inline-flex; margin-bottom: 16px; }
.theme-opscom .footer-about p { color: var(--dim); font-size: 14px; line-height: 1.6; max-width: 280px; }
.theme-opscom .footer-email a { font-family: var(--mono); font-size: 13px; color: var(--gray); }
.theme-opscom .footer-email a:hover { color: #ffffff; }
.theme-opscom .footer-col h3 {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dimmer);
    margin-bottom: 16px;
}
.theme-opscom .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.theme-opscom .footer-col li, .theme-opscom .footer-col a { color: var(--gray); font-size: 14px; }
.theme-opscom .footer-col a:hover { color: #ffffff; }
.theme-opscom .social-list { margin-top: 18px; }
.theme-opscom .footer-bottom { border-top: 1px solid var(--line-soft); background: transparent; }
.theme-opscom .footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 40px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dimmer);
}
@media (max-width: 900px) { .theme-opscom .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .theme-opscom .footer-grid { grid-template-columns: 1fr; } }

/* ---------- formulário / gaveta de contacto ---------- */

.theme-opscom .contact-drawer-panel { background: #0a0b0e; border-left: 1px solid var(--line); }
.theme-opscom .contact-drawer-close { color: #e7e9ee; border-color: var(--line); background: transparent; }
.theme-opscom .contact-drawer-close:hover { border-color: #ffffff; }
.theme-opscom .drawer-body h3 { color: var(--ink); }
.theme-opscom .drawer-contacts, .theme-opscom .drawer-contacts p { color: var(--gray); }
.theme-opscom .drawer-contacts a, .theme-opscom .drawer-social a { color: #e7e9ee; }
.theme-opscom .drawer-divider { border-top-color: var(--line); }
.theme-opscom .contact-form label { color: var(--gray); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.theme-opscom .contact-form input,
.theme-opscom .contact-form textarea,
.theme-opscom .contact-form select {
    background: #0e1014;
    border: 1px solid var(--line);
    color: #e7e9ee;
    border-radius: 0;
}
.theme-opscom .contact-form input:focus,
.theme-opscom .contact-form textarea:focus { outline: 2px solid rgba(255, 255, 255, .35); }
.theme-opscom .form-feedback.ok { color: #7fe0a8; }
.theme-opscom .form-feedback.err { color: #ff8f8f; }

/* ---------- animação de entrada ---------- */

.theme-opscom .reveal { transition-duration: .5s; }
