/* Site institucional IOSsoft — cores e fontes do manual de marca (marca/portfolio.html)
   e o mesmo esqueleto do sistema de gestão (app/static/css/app.css): menu lateral escuro,
   barra de topo com a trilha "IOSsoft › Tela" e uma tela por vez, sem rolar a página.
   O site é sempre escuro: é o "estado ligado" da marca. O verde é raro: só ação e destaque. */
:root {
  --verde-power: #67FD07;
  --preto: #050605;
  --bg: #0B0D0B;
  --painel: #141714;
  --painel-2: #181C18;
  --linha: #262B26;
  --linha-forte: #333A33;
  --fg: #E9ECE9;
  --fg-muted: #9AA19A;
  --fg-suave: #6E756E;
  --side-bg: #070807;
  --side-line: #1A1E1A;
  --side-fg: #9AA19A;
  --side-fg-forte: #E9ECE9;
  --side-hover: rgba(255, 255, 255, .05);
  --side-ativo-bg: rgba(103, 253, 7, .10);
  --verde-suave: rgba(103, 253, 7, .10);
  --foco: rgba(103, 253, 7, .35);
  --raio: 10px;
  --raio-sm: 7px;
  --f-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--verde-power); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--verde-power); outline-offset: 2px; border-radius: var(--raio-sm); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; margin-bottom: clamp(18px, 3vh, 32px); }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
p { margin: 0; }
.verde { color: var(--verde-power); }
.rotulo { font: 500 .74rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--verde-power); margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--fg-muted); max-width: 560px; }

/* Botões: verde só na ação principal; mesma altura no mesmo grupo */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--raio); border: 1px solid var(--verde-power);
  background: var(--verde-power); color: var(--preto); font: 600 .95rem/1 var(--f-body); white-space: nowrap;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn-contorno { background: transparent; color: var(--fg); border-color: var(--linha-forte); }
.btn-contorno:hover { border-color: var(--fg-muted); filter: none; }
.btn-mini { min-height: 34px; padding: 0 14px; font-size: .88rem; }
.btn-grande { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-icone { all: unset; display: none; place-items: center; width: 36px; height: 36px; border-radius: var(--raio-sm); cursor: pointer; color: var(--fg); }
.btn-icone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Esqueleto: menu lateral + área principal, tudo na altura da janela */
.app { display: grid; grid-template-columns: 240px 1fr; height: 100vh; height: 100dvh; }
.lateral { background: var(--side-bg); color: var(--side-fg); border-right: 1px solid var(--side-line); display: flex; flex-direction: column; min-height: 0; }
.lateral .marca { display: flex; align-items: center; padding: 22px 20px 18px; }
.lateral .marca img { height: 34px; width: auto; }
.nav { display: grid; gap: 2px; padding: 6px 12px 16px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--raio-sm); color: var(--side-fg); font-size: .93rem; white-space: nowrap; }
.nav a:hover { background: var(--side-hover); color: var(--side-fg-forte); }
.nav a.ativo { background: var(--side-ativo-bg); color: var(--verde-power); font-weight: 600; }
.nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lateral .rodape { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--side-line); font: .72rem/1.7 var(--f-mono); color: #5C635C; }

.principal { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topo { display: flex; align-items: center; gap: 12px; padding: 10px 28px; min-height: 57px; border-bottom: 1px solid var(--linha); background: var(--bg); }
.topo .titulo { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-right: auto; font-family: var(--f-display); }
.topo .secao { color: var(--fg-suave); font-size: .9rem; font-weight: 600; }
.topo .sep { color: var(--fg-suave); }
.topo .atual { font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Uma tela por vez, centralizada na área que sobra; setas de anterior/próximo no pé */
.conteudo { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: clamp(20px, 4vh, 48px) clamp(20px, 4vw, 56px) 20px; }
.tela { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 1120px; margin: 0 auto; }
.tela[hidden] { display: none; }
.passa { display: flex; justify-content: space-between; width: 100%; max-width: 1120px; margin: 0 auto; padding-top: 16px; }
.sem-js .passa { display: none; }

/* Início */
.capa-grade { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; }
.tela-capa h1 { margin-bottom: 20px; }
.tela-capa .acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.capa-logo { justify-self: center; width: min(300px, 32vh, 100%); filter: drop-shadow(0 0 48px rgba(103, 253, 7, .12)); }

/* Cartões: mesma altura (pelo maior) via grid stretch */
.cartoes, .produtos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.produtos { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cartao, .produto { background: var(--painel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 26px; display: flex; flex-direction: column; }
.cartao p, .produto p, .passos p { color: var(--fg-muted); }
.icone { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 18px; display: grid; place-items: center; background: var(--verde-suave); }
.icone svg { width: 22px; height: 22px; fill: none; stroke: var(--verde-power); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Produtos: vitrine da logo com altura fixa (igual nos três); botão sempre no pé do cartão */
.produto { padding: 0 0 22px; overflow: hidden; }
.produto > :not(.vitrine) { margin-left: 18px; margin-right: 18px; }
.produto h3 { font-size: 1.3rem; margin-bottom: 8px; }
.produto p { font-size: .93rem; line-height: 1.55; margin-bottom: 16px; }
.produto .btn { align-self: flex-start; margin-top: auto; }
.vitrine { height: clamp(120px, 21vh, 180px); display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; margin-bottom: 16px;
  background: radial-gradient(ellipse at center, #1E241E 0%, var(--preto) 75%); border-bottom: 1px solid var(--linha); }
.vitrine img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.marca-raio { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--verde-suave); }
.marca-raio svg { width: 28px; height: 28px; fill: var(--verde-power); }
.marca-nome { font: 800 1.8rem/1 var(--f-display); letter-spacing: -.02em; color: var(--fg); }
.selo { align-self: flex-start; white-space: nowrap; margin-bottom: 12px; padding: 5px 10px; border-radius: 999px; font: 500 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--fg-muted); border: 1px solid var(--linha-forte); }

/* Como trabalhamos */
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.passos li { border-top: 2px solid var(--linha-forte); padding-top: 18px; }
.passos li:first-child { border-top-color: var(--verde-power); }
.num { display: block; font: 500 .85rem/1 var(--f-mono); color: var(--fg-suave); margin-bottom: 12px; }

/* Contato */
.contato-grade { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; }
.contato-grade h2 { margin-bottom: 16px; }
.contato-grade .btn { justify-self: end; }

/* Sem JS: as telas ficam empilhadas e a página rola normalmente */
.sem-js .app { height: auto; }
.sem-js .lateral { position: sticky; top: 0; height: 100vh; }
.sem-js .tela { padding: 48px 0; }

/* Telas baixas (notebook pequeno): compacta o respiro */
@media (max-height: 720px) {
  .cartao { padding: 20px; }
  .produto p { font-size: .88rem; line-height: 1.5; }
  .icone { margin-bottom: 12px; }
}

/* Celular e tablet: o menu vira gaveta (botão ☰), como no sistema; a tela pode rolar se faltar altura */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .app.menu-aberto .lateral { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
  .btn-icone { display: inline-grid; }
  .topo { padding: 10px 16px; }
  .conteudo { padding: 24px 16px 16px; overflow-y: auto; }
  .tela { justify-content: flex-start; }
  .cartoes, .produtos, .capa-grade, .contato-grade { grid-template-columns: 1fr; }
  .passos, .produtos { grid-template-columns: repeat(2, 1fr); }
  .capa-logo { display: none; }
  .contato-grade .btn { justify-self: start; }
  .sem-js .lateral { position: static; transform: none; width: auto; height: auto; }
}
@media (max-width: 560px) {
  .topo .btn { display: none; }
  .passos, .produtos { grid-template-columns: 1fr; }
  .cartao { padding: 20px; }
  .btn-grande { font-size: .95rem; padding: 0 18px; white-space: normal; }
}
