/* ==========================================================================
   TFS True Code — Aparência "Vitrine" (opção D)
   Fundo azul-marinho do início ao fim, informação direta e o movimento
   concentrado no topo: o editor escreve o código do Painel → Hero sobre uma
   tela real e, ao terminar, aparece o aviso de publicação.
   Movimento: 150/200/300 ms; entra com ease-out, sai com ease-in; só
   transform e opacity. Com "reduzir movimento", tudo aparece pronto.
   Carregado depois de style.css (navbar, galeria, treinamentos e rodapé
   continuam vindo de lá).
   ========================================================================== */

.theme-vitrine {
  --v-night: #050b1a;
  --v-navy: #081226;
  --v-navy-2: #0c1a35;
  --v-panel: #0e1c38;
  --v-line: #1c2c4b;
  --v-line-2: #26395e;
  --v-text: #e8eef8;
  --v-muted: #97a6bf;
  --v-cyan: #5fe1ff;
  --v-ok: #3ddc97;
  --v-150: 150ms;
  --v-200: 200ms;
  --v-300: 300ms;
  --v-out: cubic-bezier(.16, 1, .3, 1);
  --v-in: cubic-bezier(.7, 0, .84, 0);
  background: var(--v-navy);
  color: var(--v-text);
}
.theme-vitrine :focus-visible { outline-color: var(--v-cyan); }

/* ---------- Abertura (só na primeira visita da sessão) ---------- */
.theme-vitrine .page-loader { background: var(--v-night); transition: opacity var(--v-300) var(--v-in), visibility var(--v-300) var(--v-in); }
.no-intro .theme-vitrine .page-loader, .no-intro .page-loader { display: none; }
.theme-vitrine .loader-inner { display: grid; justify-items: center; gap: 18px; transition: transform var(--v-300) var(--v-in); }
.theme-vitrine .loader-logo { height: auto; width: min(280px, 62vw); margin: 0; animation: none; }
.theme-vitrine .loader-track { width: min(280px, 62vw); height: 2px; background: #13213d; border-radius: 2px; }
.theme-vitrine .loader-fill { width: 100%; animation: none; background: var(--v-cyan); border-radius: 2px; transform-origin: left; transform: scaleX(0); }
.theme-vitrine .page-loader.is-loaded .loader-inner { transform: translateY(-12px); }

/* ---------- Cabeçalho ---------- */
.theme-vitrine .tfs-navbar .brand img { height: 38px; }
.nav-cta {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 16px;
  border-radius: 10px;
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  transition: background-color var(--v-150) var(--v-out);
}
.nav-cta:hover { background: var(--blue-deep); color: #fff; }
@media (max-width: 1199.98px) and (min-width: 992px) { .nav-cta { display: none; } }
@media (max-width: 575.98px) { .nav-cta { display: none; } }

/* ---------- Topo ---------- */
.v-hero {
  position: relative;
  margin-top: -84px;
  padding: calc(84px + 40px) 0 64px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 80% 32%, rgba(28, 126, 214, .28), transparent 62%),
    radial-gradient(700px 420px at 8% 92%, rgba(95, 225, 255, .07), transparent 60%),
    var(--v-navy);
}
@media (max-width: 991.98px) { .v-hero { margin-top: -72px; padding-top: calc(72px + 36px); padding-bottom: 56px; } }
.v-hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 991.98px) { .v-hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.v-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin-bottom: 22px;
  border: 1px solid var(--v-line-2); border-radius: 999px;
  font-size: .86rem; color: #c3cfe2;
}
.v-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--v-ok); }
.v-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.v-hero h1 .hl { color: var(--blue-bright); }
.v-sub { font-size: 1.08rem; color: #b9c6da; max-width: 54ch; margin: 18px 0 26px; }
.v-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.v-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px;
  border-radius: 12px;
  font-weight: 600; font-size: .98rem;
  transition: background-color var(--v-150) var(--v-out), border-color var(--v-150) var(--v-out);
}
.v-btn-primary { background: var(--blue); color: #fff; }
.v-btn-primary:hover { background: var(--blue-deep); color: #fff; }
.v-btn-ghost { border: 1px solid var(--v-line-2); color: #fff; }
.v-btn-ghost:hover { border-color: var(--blue-bright); color: #fff; }

.v-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px 24px;
  margin: 32px 0 0; padding-top: 22px;
  border-top: 1px solid var(--v-line);
}
.v-kpis div { display: flex; flex-direction: column-reverse; }
.v-kpis dt { font-weight: 400; font-size: .84rem; line-height: 1.35; color: var(--v-muted); max-width: 16ch; }
.v-kpis dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .v-kpis { grid-template-columns: 1fr 1fr; } }

/* palco: tela real + editor + aviso */
.v-stage { position: relative; height: 470px; }
.v-stage.no-shot { height: auto; }
.v-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; }
.v-chrome i { width: 9px; height: 9px; border-radius: 50%; }
.v-chrome span { margin-left: 10px; font: 500 .72rem var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-shot {
  position: absolute; right: 0; top: 0; width: 80%;
  border-radius: 14px; overflow: hidden;
  background: #fff;
  border: 1px solid var(--v-line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.v-shot .v-chrome { background: #eef2f7; border-bottom: 1px solid #dde3ec; }
.v-shot .v-chrome i { background: #cfd7e3; }
.v-shot .v-chrome span { color: #6a7a93; background: #fff; border-radius: 6px; padding: 3px 10px; }
.v-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.v-editor {
  position: absolute; left: 0; bottom: 0; width: 68%;
  background: #0a1428;
  border: 1px solid var(--v-line-2);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .8);
}
.v-stage.no-shot .v-editor { position: relative; width: 100%; }
.v-editor .v-chrome { border-bottom: 1px solid var(--v-line); padding: 10px 14px; }
.v-editor .v-chrome i { background: #26395e; }
.v-editor .v-chrome span { color: #7d8eaa; }
.v-editor-body {
  height: 250px; overflow: hidden;
  padding: 14px 16px 18px 6px;
  font: 400 .8rem/1.75 var(--font-mono);
  color: #dce6f5;
  direction: ltr; text-align: left;
}
.v-stage.no-shot .v-editor-body { height: 320px; font-size: .88rem; }
.v-editor-body .code-line { display: grid; grid-template-columns: 30px 1fr; }
.v-editor-body .ln { color: #3c4e70; text-align: right; padding-right: 12px; user-select: none; }
.v-editor-body .txt { white-space: pre-wrap; word-break: break-word; }
.v-editor-body .cmt { color: #5d6f8f; font-style: italic; }
.v-editor-body .str { color: #9be59b; }
.v-editor-body .kw { color: #c792ea; }
.v-editor-body .fn { color: var(--v-cyan); }
.v-editor-body .var { color: #7ec3ff; }
.v-editor-body .num { color: #ffb86b; }
.v-editor-body .caret { display: inline-block; width: .5em; height: 1.05em; vertical-align: text-bottom; background: var(--v-cyan); }
.v-toast {
  position: absolute; right: 5%; bottom: 15%;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px;
  background: #fff; color: #0b1a36;
  border-radius: 12px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6);
  font-size: .9rem; line-height: 1.35;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--v-300) var(--v-out), transform var(--v-300) var(--v-out);
}
.v-toast.on { opacity: 1; transform: none; }
.v-toast .ic { width: 30px; height: 30px; border-radius: 50%; background: #e3f8ee; color: #17804f; display: grid; place-items: center; font-size: 1.05rem; flex: 0 0 auto; }
.v-toast small { display: block; color: #5a6b85; font-size: .8rem; }
.v-stage.no-shot .v-toast { right: 16px; bottom: 16px; }
@media (max-width: 991.98px) {
  .v-stage { height: auto; display: grid; gap: 14px; }
  .v-shot, .v-editor { position: relative; inset: auto; width: 100%; }
  .v-toast { position: relative; right: auto; bottom: auto; justify-self: start; }
  .v-editor-body { height: 230px; }
}
@media (max-width: 575.98px) { .v-shot { display: none; } }

/* ---------- Faixa de destaques ---------- */
.v-strip { background: var(--v-night); border-block: 1px solid var(--v-line); }
.v-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.v-strip-item { display: flex; gap: 14px; align-items: center; padding: 22px 24px; }
.v-strip-item:first-child { padding-left: 0; }
.v-strip-item + .v-strip-item { border-left: 1px solid var(--v-line); }
.v-strip-item > i { font-size: 1.4rem; color: var(--blue-bright); }
.v-strip-item strong { display: block; color: #fff; font-weight: 600; font-size: .96rem; }
.v-strip-item span { color: var(--v-muted); font-size: .88rem; }
@media (max-width: 767.98px) {
  .v-strip-grid { grid-template-columns: 1fr; }
  .v-strip-item { padding: 16px 0; }
  .v-strip-item + .v-strip-item { border-left: 0; border-top: 1px solid var(--v-line); }
}

/* ---------- Seções ---------- */
.v-sec { padding: 104px 0; background: var(--v-navy); }
.v-sec.v-alt { background: var(--v-navy-2); }
@media (max-width: 767.98px) { .v-sec { padding: 68px 0; } }
.v-head { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 56px; align-items: end; margin-bottom: 46px; }
@media (max-width: 860px) { .v-head { grid-template-columns: 1fr; margin-bottom: 32px; } }
.v-head h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.v-head p { margin: 0; color: var(--v-muted); font-size: 1.05rem; max-width: 54ch; }
.v-head p.v-lead { color: #c9d4e6; font-size: 1.12rem; }
.v-empty { color: var(--v-muted); }
.theme-vitrine .v-sec h3 { color: #fff; }

/* serviços: grade com divisórias, sem caixas */
.v-services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--v-line); }
.v-services article { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--v-line); }
.v-services article:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--v-line); }
.v-services i { display: block; font-size: 1.7rem; line-height: 1; color: var(--blue-bright); margin-bottom: 16px; }
.v-services h3 { font-size: 1.2rem; margin: 0 0 8px; }
.v-services p { margin: 0; color: var(--v-muted); font-size: .96rem; }
@media (max-width: 860px) {
  .v-services { grid-template-columns: 1fr 1fr; }
  .v-services article { padding: 24px 20px 26px 0 !important; border-left: 0 !important; }
  .v-services article:nth-child(even) { padding-left: 20px !important; border-left: 1px solid var(--v-line) !important; }
}
@media (max-width: 575.98px) {
  .v-services { grid-template-columns: 1fr; }
  .v-services article, .v-services article:nth-child(even) { padding: 22px 0 !important; border-left: 0 !important; }
}

.v-techs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 40px; }
.v-techs strong { color: #fff; font-weight: 600; }
.v-techs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v-techs li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--v-line-2); border-radius: 999px; font-size: .88rem; color: #c3cfe2; }
.v-techs img { width: 18px; height: 18px; object-fit: contain; }

/* sistemas */
.v-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.v-tags span { font-size: .78rem; color: #c3cfe2; border: 1px solid var(--v-line-2); border-radius: 999px; padding: 3px 10px; }
.v-tags span.is-featured { color: var(--v-cyan); border-color: rgba(95, 225, 255, .4); }
.v-feat {
  display: grid; grid-template-columns: 1.4fr 1fr;
  margin-bottom: 22px;
  border: 1px solid var(--v-line-2); border-radius: 22px; overflow: hidden;
  background: var(--v-panel);
  cursor: pointer;
  transition: border-color var(--v-200) var(--v-out);
}
.v-feat:hover { border-color: var(--blue-bright); }
.v-feat-img { background: #fff; min-height: 320px; overflow: hidden; }
.v-feat-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform var(--v-300) var(--v-out); }
.v-feat:hover .v-feat-img img { transform: scale(1.02); }
.v-feat-info { padding: 36px; display: flex; flex-direction: column; align-items: flex-start; }
.v-feat-info h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 12px; }
.v-feat-info p { color: #b9c6da; margin: 0 0 20px; }
.v-chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.v-chips li { font-size: .8rem; color: #c3cfe2; background: #132447; border-radius: 8px; padding: 5px 10px; }
.v-thumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.v-thumbs button { width: 74px; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--v-line-2); border-radius: 8px; overflow: hidden; background: #fff; }
.v-thumbs button:hover { border-color: var(--blue-bright); }
.v-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.v-thumbs span { color: var(--v-muted); font-size: .86rem; }
.v-link { margin-top: auto; color: var(--blue-bright); font-weight: 600; }
.v-feat:hover .v-link, .v-sys:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .v-feat { grid-template-columns: 1fr; } .v-feat-img { min-height: 0; aspect-ratio: 16 / 10; } .v-feat-info { padding: 26px; } }

.v-systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 991.98px) { .v-systems { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .v-systems { grid-template-columns: 1fr; } }
.v-sys {
  display: flex; flex-direction: column;
  border: 1px solid var(--v-line-2); border-radius: 18px; overflow: hidden;
  background: var(--v-panel);
  cursor: pointer;
  transition: border-color var(--v-200) var(--v-out);
}
.v-sys:hover { border-color: var(--blue-bright); }
.v-sys-img { position: relative; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.v-sys-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform var(--v-300) var(--v-out); }
.v-sys:hover .v-sys-img img { transform: scale(1.03); }
.v-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(8, 18, 38, .82); color: #fff; font-size: .78rem; }
.v-sys-info { padding: 20px 22px 24px; }
.v-sys-info h3 { font-size: 1.25rem; margin: 0 0 6px; }
.v-sys-info p { margin: 0; color: var(--v-muted); font-size: .94rem; }
.v-noimg { display: grid; place-items: center; width: 100%; height: 100%; min-height: 180px; background: var(--v-navy-2); color: #3c4e70; font-size: 2.4rem; }
.v-feat:focus-visible, .v-sys:focus-visible { outline: 2px solid var(--v-cyan); outline-offset: 3px; }

/* como trabalhamos */
.v-about { margin-bottom: 56px; }
.v-about.has-img { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .v-about.has-img { grid-template-columns: 1fr; gap: 26px; } }
.v-about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 1px solid var(--v-line-2); }
.v-about-text { max-width: 70ch; }
.v-about-text p { color: var(--v-muted); font-size: 1.02rem; margin: 0 0 14px; }

.v-flow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 28px; }
.v-flow-rail { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--v-line); }
.v-flow-rail b { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--v-cyan)); transform-origin: left; transform: scaleX(0); }
.v-step { position: relative; }
.v-step .n {
  width: 40px; height: 40px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--v-navy); border: 2px solid var(--v-line-2);
  font-family: var(--font-display); font-weight: 700; color: #fff;
  transition: background-color var(--v-200) var(--v-out), border-color var(--v-200) var(--v-out);
}
.v-step.on .n { background: var(--blue); border-color: var(--blue); }
.v-step h3 { font-size: 1.25rem; margin: 0 0 8px; }
.v-step p { color: var(--v-muted); margin: 0 0 14px; font-size: .96rem; }
.v-step code {
  display: block; min-height: 3.7em;
  padding: 10px 12px;
  font: 400 .78rem/1.6 var(--font-mono);
  color: #dce6f5;
  background: #0a1428; border: 1px solid var(--v-line); border-radius: 10px;
  white-space: pre-wrap; word-break: break-word;
  direction: ltr; text-align: left;
}
.v-step code .str { color: #9be59b; } .v-step code .fn { color: var(--v-cyan); } .v-step code .var { color: #7ec3ff; } .v-step code .cmt { color: #5d6f8f; font-style: italic; }
.v-step code .caret { display: inline-block; width: .5em; height: 1.05em; vertical-align: text-bottom; background: var(--v-cyan); }
@media (max-width: 860px) { .v-flow { grid-template-columns: 1fr 1fr; } .v-flow-rail { display: none; } }
@media (max-width: 520px) { .v-flow { grid-template-columns: 1fr; } }

/* diferenciais */
.v-diffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 991.98px) { .v-diffs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .v-diffs { grid-template-columns: 1fr; } }
.v-diffs i { display: block; font-size: 1.5rem; line-height: 1; color: var(--v-cyan); margin-bottom: 14px; }
.v-diffs h3 { font-size: 1.12rem; margin: 0 0 8px; }
.v-diffs p { margin: 0; color: var(--v-muted); font-size: .95rem; }

/* contato */
.theme-vitrine .contact-section { background: var(--v-navy); }
.v-contact-title { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 14px; }
.v-contact-lead { color: var(--v-muted); font-size: 1.05rem; margin: 0 0 28px; max-width: 46ch; }
.theme-vitrine .contact-info-list li { border-radius: 14px; }
.theme-vitrine .contact-form-panel { align-self: start; }
.theme-vitrine .tfs-footer { background: var(--v-night); }

/* entrada das seções: um movimento curto, uma vez */
html.js-reveal [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity var(--v-300) var(--v-out), transform var(--v-300) var(--v-out); transition-delay: var(--d, 0ms); }
html.js-reveal [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .v-toast { transform: none; }
  .v-feat:hover .v-feat-img img, .v-sys:hover .v-sys-img img { transform: none; }
}
