/* =========================================================
   SSR Company — Identidade visual
   Azul marinho #112B54 · Azul #1E74D8 · Amarelo #F2C200
   Minimalista, com respiro e um único destaque por tela.
   ========================================================= */
:root {
    --navy: #112B54;
    --navy-deep: #0B1F3F;
    --blue: #1E74D8;
    --blue-mid: #15509F;
    --yellow: #F2C200;

    --bg: #FFFFFF;
    --bg-soft: #F4F7FC;
    --surface: #FFFFFF;
    --line: #D8E2F0;
    --text: #232B3A;
    --muted: #566074;
    --heading: #112B54;
    --link: #15509F;
    --header-bg: #FFFFFF;

    --display: 'Montserrat', 'Segoe UI', sans-serif;
    --body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
[data-theme="dark"] {
    --bg: #0A1530;
    --bg-soft: #0E1D3A;
    --surface: #13264A;
    --line: #24406C;
    --text: #D6E2F3;
    --muted: #9FB3D1;
    --heading: #FFFFFF;
    --link: #5AA2F5;
    --header-bg: #0B1A33;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body, header, .bg-soft, .cell, .panel { transition: background-color .3s, color .3s, border-color .3s; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--heading); line-height: 1.2; letter-spacing: -.01em; }
a { color: var(--link); }
img { max-width: 100%; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: .6rem 1rem; z-index: 2000; font-weight: 600; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Cabeçalho ---------- */
header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--header-bg);
    border-bottom: 3px solid var(--yellow);
    box-shadow: 0 2px 16px rgba(11, 31, 63, .08);
}
header .container { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.logo-link { display: block; line-height: 0; }
.logo-img { height: 54px; width: auto; display: block; }
[data-theme="dark"] .logo-img { background: #fff; border-radius: 8px; padding: 2px 8px; }

header nav { margin-left: auto; }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a {
    font-family: var(--display); font-weight: 600; font-size: .9rem;
    color: var(--heading); text-decoration: none;
    padding: .4rem 0; border-bottom: 3px solid transparent;
    transition: border-color .2s, color .2s;
}
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--yellow); }

.theme-toggle {
    width: 40px; height: 40px; flex: none;
    border-radius: 50%; border: 2px solid var(--line);
    background: transparent; color: var(--heading);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; margin-left: .25rem;
    transition: background .2s, border-color .2s, color .2s;
}
.theme-toggle:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.menu-btn {
    display: none; width: 40px; height: 40px; flex: none;
    border: 2px solid var(--line); border-radius: 8px; background: transparent;
    color: var(--heading); cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .9rem 1.8rem; border-radius: 999px;
    font-family: var(--display); font-weight: 600; font-size: .95rem;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: #FFD21F; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.btn-light:hover { background: var(--yellow); transform: translateY(-2px); }
.btn-light i { font-size: .8rem; transition: transform .2s; }
.btn-light:hover i { transform: translateY(3px); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-wa { background: #128C4A; color: #fff; }
.btn-wa:hover { background: #0F7A40; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Hero ---------- */
.hero, .page-hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 420px at 85% 0%, rgba(30, 116, 216, .35), transparent 70%),
        var(--navy-deep);
}
.hero::before, .page-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.hero { padding: clamp(4rem, 9vw, 7rem) 0; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.page-hero .container { max-width: 1180px; }

.hero h1, .page-hero h1 { color: #fff; font-weight: 700; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; }
.hero h1::after, .page-hero h1::after {
    content: ''; display: block; width: 56px; height: 5px; background: var(--yellow);
    border-radius: 3px; margin: 1.4rem 0 0;
}
.hero p, .page-hero p { font-size: 1.15rem; color: #C9DAF2; max-width: 56ch; margin: 1.4rem 0 2.2rem; }

/* uma única sequência de entrada, só no hero */
@media (prefers-reduced-motion: no-preference) {
    .rise > * { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
    .rise > *:nth-child(2) { animation-delay: .12s; }
    .rise > *:nth-child(3) { animation-delay: .24s; }
    .rise > *:nth-child(4) { animation-delay: .36s; }
    .scope { opacity: 0; animation: rise .8s .3s cubic-bezier(.2, .7, .2, 1) forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Painel de telemetria (hero) ---------- */
.scope {
    background: #0E2550; border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px; padding: 1.4rem 1.5rem 1.2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
    font-family: var(--mono); color: #C9DAF2;
}
.scope-top { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: #8FA9D0; }
.scope-top strong { color: #fff; font-family: var(--display); font-size: .92rem; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: .45rem; color: #5BE49B; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5BE49B; box-shadow: 0 0 0 4px rgba(91, 228, 155, .18); }
.scope-value { display: flex; align-items: baseline; gap: .6rem; margin: 1rem 0 .2rem; }
.scope-value b { font-size: 3.4rem; line-height: 1; color: #fff; font-weight: 500; letter-spacing: -.03em; }
.scope-value span { font-size: 1rem; color: #8FA9D0; }
.scope-chart { position: relative; margin: .6rem 0 1rem; }
.scope-chart svg { display: block; width: 100%; height: 130px; overflow: visible; }
.scope-limit { position: absolute; right: 0; top: 0; font-size: .7rem; color: var(--yellow); }
.trace { fill: none; stroke: #5AA2F5; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trace-area { fill: url(#traceFill); stroke: none; }
.limit-line { stroke: var(--yellow); stroke-width: 1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; opacity: .8; }
.scope-reads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1rem; }
.scope-reads small { display: block; font-size: .7rem; color: #8FA9D0; }
.scope-reads b { font-size: 1.1rem; color: #fff; font-weight: 500; }
.scope .scope-note { margin: 1rem 0 0; font-size: .7rem; color: #6F89B3; max-width: none; }

/* ---------- Seções ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.bg-soft { background: var(--bg-soft); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head::before { content: ''; display: block; width: 40px; height: 4px; background: var(--yellow); border-radius: 2px; margin-bottom: 1.2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { margin-top: .9rem; color: var(--muted); max-width: 58ch; }

/* ---------- Solução principal (telemetria) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.feature p { color: var(--muted); max-width: 52ch; }
.checks { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; }
.checks i { color: var(--blue); margin-top: .35rem; font-size: .9rem; }
[data-theme="dark"] .checks i { color: #5AA2F5; }
.link-arrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--display); font-weight: 600; font-size: .95rem;
    color: var(--link); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px;
    transition: gap .2s;
}
.link-arrow:hover { gap: .8rem; }

.panel {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 10px; padding: 2rem 2rem 1.2rem;
}
.panel > h4 { font-size: 1rem; margin-bottom: 1.6rem; }

/* ---------- Fluxo de dados (linha do tempo) ---------- */
.fluxo { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); counter-reset: none; }
.fluxo li { position: relative; padding-right: 1.2rem; }
.fluxo .n {
    position: relative; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--yellow); color: var(--navy);
    font: 700 1.05rem var(--display);
    box-shadow: 0 0 0 6px var(--flow-bg, var(--surface));
}
/* a linha começa depois do círculo e termina antes do próximo: nunca cruza um número */
.fluxo li:not(:last-child)::before {
    content: ''; position: absolute; z-index: 1;
    top: 21px; left: 56px; width: calc(100% - 68px); height: 2px;
    background: var(--line);
}
.fluxo h4 { font-size: 1rem; margin: 1.1rem 0 .4rem; }
.fluxo p { font-size: .93rem; color: var(--muted); line-height: 1.55; }

.fluxo-dark { background: var(--navy-deep); --flow-bg: var(--navy-deep); }
.fluxo-dark .section-head h2 { color: #fff; }
.fluxo-dark .section-head p { color: #A9BFDF; }
.fluxo-dark .fluxo li:not(:last-child)::before { background: rgba(255, 255, 255, .22); }
.fluxo-dark .fluxo h4 { color: #fff; }
.fluxo-dark .fluxo p { color: #A9BFDF; }
.panel .fluxo { --flow-bg: var(--surface); --n: 4; gap: 0; }
.panel .fluxo li { padding-right: .6rem; padding-bottom: 1rem; }
.panel .fluxo h4 { font-size: .9rem; }
.panel .fluxo p { font-size: .82rem; }
.panel .fluxo li:not(:last-child)::before { left: 54px; width: calc(100% - 62px); }

/* ---------- Grade com linhas finas (benefícios, linhas de produto) ---------- */
.grid-lines { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 2rem 1.8rem 2.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.cell i { font-size: 1.5rem; color: var(--blue); margin-bottom: 1.1rem; display: block; }
[data-theme="dark"] .cell i { color: #5AA2F5; }
.cell h3, .cell h4 { font-size: 1.05rem; margin-bottom: .55rem; }
.cell p { font-size: .96rem; color: var(--muted); }

/* ---------- Fotos de produto nos cards ---------- */
.cell.product { padding: 0; display: flex; flex-direction: column; }
.cell-body { padding: 1.6rem 1.8rem 2.2rem; }
.media { margin: 0; position: relative; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.media-main { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.media-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; transition: transform .4s ease; }
.media-main:hover img { transform: scale(1.04); }
.media-main::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: .6rem; bottom: .6rem; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(11, 31, 63, .75); color: #fff; display: grid; place-items: center; font-size: .8rem; opacity: 0; transition: opacity .2s; }
.media-main:hover::after, .media-main:focus-visible::after { opacity: 1; }
.thumbs { position: absolute; left: .6rem; bottom: .6rem; display: flex; gap: .4rem; }
.thumb { width: 3rem; height: 2.1rem; padding: 0; border: 2px solid #fff; border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .8; background: none; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover, .thumb.is-active { opacity: 1; border-color: var(--yellow); }
.media-empty { aspect-ratio: 3 / 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--muted); background: repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 12px, transparent 12px, transparent 24px); }
.media-empty i { font-size: 1.8rem; margin: 0; color: var(--muted); opacity: .6; }
[data-theme="dark"] .media-empty i { color: var(--muted); }
.media-empty span { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Ampliar foto ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 12, 26, .92); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; top: 1rem; right: 1rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; background: var(--yellow); color: var(--navy); font-size: 1.4rem; cursor: pointer; line-height: 1; }

/* ---------- Exemplos de painéis (telemetria) ---------- */
.scope-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.scope-grid .scope { box-shadow: 0 18px 40px rgba(11, 31, 63, .22); }
@media (max-width: 820px) { .scope-grid { grid-template-columns: 1fr; } }

/* ---------- Duas frentes secundárias (home) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4.5rem; }
.duo-item { border-top: 4px solid var(--blue); background: var(--surface); border-radius: 0 0 10px 10px; padding: 2rem 2rem 2.2rem; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: border-top-color .2s; }
.duo-item:hover { border-top-color: var(--yellow); }
.duo-item i.big { font-size: 1.6rem; color: var(--blue); margin-bottom: 1.2rem; display: block; }
[data-theme="dark"] .duo-item i.big { color: #5AA2F5; }
.duo-item h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.duo-item p { color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Antes e depois ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.compare > div { border-radius: 10px; padding: 2.2rem; background: var(--surface); border: 1px solid var(--line); }
.compare h3 { font-size: 1.15rem; margin-bottom: 1.4rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.compare ul { list-style: none; display: grid; gap: .9rem; }
.compare li { display: flex; gap: .8rem; align-items: flex-start; }
.compare li i { margin-top: .4rem; font-size: .85rem; }
.compare .manual { border-top: 4px solid #B3402F; }
.compare .manual i { color: #B3402F; }
.compare .digital { border-top: 4px solid var(--blue); }
.compare .digital i { color: var(--blue); }
[data-theme="dark"] .compare .manual i { color: #FF8A78; }
[data-theme="dark"] .compare .digital i { color: #5AA2F5; }

/* ---------- Investimento / destaques em colunas ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); }
.trio > div { padding: 0 2.2rem; border-left: 1px solid var(--line); }
.trio > div:first-child { padding-left: 0; border-left: 0; }
.trio h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.trio p { color: var(--muted); }

/* ---------- Destaque (projeto luminotécnico) ---------- */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; max-width: 52rem; }
.callout > i { font-size: 2rem; color: var(--yellow); margin-top: .3rem; }
.callout h3 { color: #fff; font-size: 1.4rem; margin-bottom: .8rem; }
.callout p { color: #C9DAF2; }

/* ---------- Contato ---------- */
.contato { background: var(--navy-deep); color: #fff; position: relative; padding: clamp(4rem, 8vw, 6rem) 0; border-top: 3px solid var(--yellow); }
.contato .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contato h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.contato h2::after { content: ''; display: block; width: 56px; height: 5px; background: var(--yellow); border-radius: 3px; margin-top: 1.2rem; }
.contato p.lead { color: #B8CCE8; margin: 1.4rem 0 2rem; max-width: 40ch; }
.equipe { display: grid; gap: 0; }
.pessoa { display: grid; grid-template-columns: 1fr auto; gap: .4rem 2rem; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.pessoa:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.pessoa h3 { color: #fff; font-size: 1.15rem; }
.pessoa .cargo { color: #98B0D3; font-size: .88rem; grid-column: 1; }
.pessoa .links { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: .35rem; justify-items: start; }
.pessoa a { color: #fff; text-decoration: none; font-size: .92rem; display: inline-flex; gap: .6rem; align-items: center; }
.pessoa a:hover { color: var(--yellow); }
.pessoa a i { color: var(--yellow); width: 1.1rem; text-align: center; }
.pessoa a.wa i { color: #4ADE80; }

/* ---------- Rodapé ---------- */
footer { background: #050C1A; color: #8FA6C9; padding: 1.6rem 0; font-size: .88rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
    .hero .container, .feature, .contato .container { grid-template-columns: 1fr; gap: 3rem; }
    .duo, .compare { grid-template-columns: 1fr; }
    .grid-lines { --cols: 2 !important; }
    .trio { grid-template-columns: 1fr; gap: 2rem; }
    .trio > div { padding: 0 0 0 1.4rem; border-left: 3px solid var(--yellow); }
    .trio > div:first-child { padding-left: 1.4rem; border-left: 3px solid var(--yellow); }

    /* fluxo vira vertical: círculo à esquerda, linha desce pelo centro dele */
    .fluxo { grid-template-columns: 1fr; }
    .fluxo li { display: grid; grid-template-columns: 44px 1fr; column-gap: 1.1rem; padding: 0 0 1.8rem; }
    .fluxo li:last-child { padding-bottom: 0; }
    .fluxo h4 { margin: .5rem 0 .3rem; }
    .fluxo .n { grid-row: 1 / span 2; }
    .fluxo li:not(:last-child)::before, .panel .fluxo li:not(:last-child)::before {
        top: 56px; left: 21px; width: 2px; height: calc(100% - 68px);
    }
    .panel .fluxo { --n: 1; }
}
@media (max-width: 820px) {
    .menu-btn { display: inline-flex; }
    header nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--header-bg); border-bottom: 3px solid var(--yellow);
        display: none; padding: .5rem 1.5rem 1.2rem; margin: 0;
        box-shadow: 0 14px 24px rgba(11, 31, 63, .15);
    }
    header.open nav { display: block; }
    nav ul { flex-direction: column; gap: 0; }
    nav a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
    header .container { position: relative; }
    .theme-toggle { margin-left: auto; }
    .pessoa { grid-template-columns: 1fr; }
    .pessoa .links { grid-column: 1; grid-row: auto; margin-top: .6rem; }
}
@media (max-width: 560px) {
    .grid-lines { --cols: 1 !important; }
    .scope-value b { font-size: 2.7rem; }
    .callout { grid-template-columns: 1fr; gap: 1rem; }
    .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
