/* ==========================================================================
   TFS True Code — Landing page
   Motivo estrutural: o corte diagonal do logotipo (TFS) é repetido como
   dispositivo visual recorrente em cartões, botões, molduras de imagem e
   divisores de seção, em vez de cantos arredondados genéricos.
   ========================================================================== */

:root {
  --ink: #12161f;
  --ink-soft: #1c2230;
  --paper: #fbfcfe;
  --paper-alt: #f3f6fb;
  --blue: #1c7ed6;
  --blue-deep: #0b5fa8;
  --blue-bright: #4dabf7;
  --blue-soft: #e8f2fc;
  --slate: #5b6472;
  --slate-light: #8891a0;
  --line: #e2e6ed;
  --line-dark: #2b3245;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --cut: 22px;
  --cut-sm: 12px;
  --container-w: 1180px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: var(--blue); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.container-tfs {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 767.98px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}
.section-head p.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue-deep);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 14px;
}
.section-head p.lead-text {
  color: var(--slate);
  font-size: 1.05rem;
  margin: 0;
}

.text-slate { color: var(--slate); }

.bg-alt { background: var(--paper-alt); }

/* Diagonal corner cut — dispositivo visual repetido do logotipo */
.cut-corner {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.cut-corner-sm {
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, 0 100%);
}

/* ---------- Buttons ---------- */
.btn-tfs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn-tfs:active { transform: translateY(1px); }

.btn-tfs-primary {
  background: var(--blue);
  color: #fff;
}
.btn-tfs-primary:hover { background: var(--blue-deep); color: #fff; }

.btn-tfs-outline {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--ink);
}
.btn-tfs-outline:hover { border-color: var(--blue); color: var(--blue-deep); }

.btn-tfs-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-tfs-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

/* ---------- Navbar (escura, integrada ao topo) ---------- */
:root {
  --hero-navy: #081226;
  --hero-navy-2: #0b1a36;
  --hero-text: #e8eef8;
  --hero-muted: #9fb2cc;
}
.tfs-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tfs-navbar.is-scrolled {
  background: rgba(8, 18, 38, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6);
}
.tfs-navbar .container-tfs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.tfs-navbar .brand img { height: 44px; width: auto; display: block; }
.tfs-nav-links { display: flex; align-items: center; gap: 30px; }
.tfs-nav-links a {
  position: relative;
  color: var(--hero-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  transition: color 0.15s ease;
}
.tfs-nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue-bright);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.tfs-nav-links a:hover { color: #fff; }
.tfs-nav-links a:hover::after { transform: scaleX(0.6); }
.tfs-nav-links a.active { color: var(--blue-bright); }
.tfs-nav-links a.active::after { transform: scaleX(1); }
/* Seletor de idioma (Painel → Idiomas e tradução) */
.tfs-nav-links { margin-left: auto; }
.tfs-nav-links a { white-space: nowrap; }
.tfs-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 28px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--hero-text);
  font-weight: 600; font-size: 0.84rem; letter-spacing: 0.03em;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.lang-toggle .bi-globe2 { font-size: 1rem; }
.lang-toggle .bi-chevron-down { font-size: 0.68rem; opacity: 0.75; transition: transform 0.2s ease; }
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] {
  border-color: var(--blue-bright); color: #fff; background: rgba(77, 171, 247, 0.12);
}
.lang-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.lang-toggle .spinner-border { width: 0.95rem; height: 0.95rem; border-width: 0.15em; }
.lang-menu {
  --bs-dropdown-bg: #0b1a36;
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.1);
  --bs-dropdown-link-color: var(--hero-text);
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(77, 171, 247, 0.14);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: rgba(77, 171, 247, 0.22);
  min-width: 220px;
  margin-top: 10px !important;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.65);
  max-height: min(70vh, 460px);
  overflow-y: auto;
}
.lang-menu .dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; font-size: 0.92rem;
}
.lang-menu .lang-code {
  display: inline-flex; justify-content: center; min-width: 32px;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.08); color: var(--hero-muted);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
}
.lang-menu .dropdown-item.active .lang-code { background: var(--blue); color: #fff; }
.lang-menu .dropdown-item .bi-check2 { margin-left: auto; color: var(--blue-bright); visibility: hidden; }
.lang-menu .dropdown-item.active .bi-check2 { visibility: visible; }
.lang-menu-foot {
  margin: 6px 4px 2px; padding: 8px 6px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--hero-muted); font-size: 0.7rem; text-align: right;
}
.lang-menu-foot::before { content: "\f658"; font-family: "bootstrap-icons"; margin-right: 5px; vertical-align: -1px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .tfs-nav-links { gap: 20px; }
  .tfs-nav-links a { font-size: 0.9rem; }
  .tfs-nav-actions { margin-left: 20px; }
}
[dir="rtl"] .tfs-nav-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .tfs-nav-actions { margin-left: 0; margin-right: 28px; }

.tfs-nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  width: 44px; height: 40px;
  align-items: center; justify-content: center;
}
@media (max-width: 991.98px) {
  .tfs-navbar .container-tfs { height: 72px; }
  .tfs-navbar:has(.tfs-nav-links.open) { background: var(--hero-navy); }
  .hero { margin-top: -72px; padding-top: calc(72px + 36px); }
  .tfs-navbar .brand img { height: 36px; }
  .tfs-nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--hero-navy);
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .tfs-nav-links.open { max-height: 480px; }
  .tfs-nav-links a { padding: 14px 24px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .tfs-nav-links a::after { left: 24px; right: auto; width: 28px; bottom: 8px; }
  .tfs-nav-toggle { display: inline-flex; }
  .tfs-nav-actions { margin-left: auto; }
  .lang-toggle { height: 40px; padding: 0 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: -84px;          /* passa por baixo do cabeçalho transparente */
  padding: calc(84px + 56px) 0 0;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 78% 42%, rgba(28, 126, 214, 0.38), transparent 70%),
    radial-gradient(ellipse 40% 40% at 95% 10%, rgba(77, 171, 247, 0.16), transparent 70%),
    linear-gradient(180deg, var(--hero-navy) 0%, var(--hero-navy-2) 100%);
}
/* grade de pontos bem sutil */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(159, 178, 204, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
  pointer-events: none;
}
.hero-network {
  position: absolute;
  right: 0; top: 0;
  width: 58%; height: 82%;
  pointer-events: none;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 50%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 70% 50%, #000 35%, transparent 80%);
}
@media (max-width: 991.98px) { .hero-network { width: 100%; height: 55%; top: auto; bottom: 18%; opacity: 0.35; } }
.hero .container-tfs { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--blue-bright);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero-badge::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.3vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .hl {
  color: var(--blue-bright);
  background: linear-gradient(90deg, #3d9bff, #6cc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.hero-subtitle {
  color: var(--hero-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(28, 126, 214, 0.8);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-hero i { transition: transform 0.2s ease; }
.btn-hero:hover { background: #2a8ff0; color: #fff; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(28, 126, 214, 0.95); }
.btn-hero:hover i { transform: translateX(3px); }
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hero-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-hero-ghost:hover { color: var(--blue-bright); }

/* ----- Notebook com a animação de código ----- */
.hero-visual { position: relative; padding: 10px 0 0; }
.hero-visual::before { /* brilho azul atrás do notebook */
  content: "";
  position: absolute;
  inset: 8% 4% 12% 10%;
  background: radial-gradient(closest-side, rgba(61, 155, 255, 0.55), transparent);
  filter: blur(30px);
  z-index: 0;
}
.laptop {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-left: auto;
  transform: perspective(1800px) rotateY(-14deg) rotateX(4deg);
  transform-origin: 60% 50%;
}
.laptop-screen {
  background: #05080f;
  border: 12px solid #151b27;
  border-bottom-width: 16px;
  border-radius: 16px 16px 6px 6px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 0 60px -10px rgba(61, 155, 255, 0.45);
  overflow: hidden;
}
.laptop-screen .code-window,
.laptop-screen .hero-image {
  border: 0;
  box-shadow: none;
  clip-path: none;
  aspect-ratio: 16 / 10.4;
  display: flex;
  flex-direction: column;
}
.laptop-screen .hero-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.laptop-screen .code-window-body { flex: 1; min-height: 0; max-height: none; }
.laptop-base {
  position: relative;
  height: 16px;
  margin: 0 -9%;
  background: linear-gradient(180deg, #3a4356 0%, #222938 55%, #141a25 100%);
  border-radius: 2px 2px 18px 18px;
  box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.8);
}
.laptop-base::before { /* recorte para abrir a tampa */
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 16%; height: 6px;
  transform: translateX(-50%);
  background: #121722;
  border-radius: 0 0 8px 8px;
}
@media (max-width: 991.98px) {
  .laptop { transform: none; margin: 0 auto; }
  .laptop-base { margin: 0 -5%; }
}

/* ----- Faixa de destaques no rodapé do topo ----- */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 28px 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease;
}
.hero-feature:first-child { border-left: 0; padding-left: 0; }
.hero-feature:hover { background: linear-gradient(180deg, rgba(61, 155, 255, 0.07), transparent); }
.hero-feature i {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--blue-bright);
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(61, 155, 255, 0.45));
}
.hero-feature div { display: flex; flex-direction: column; gap: 4px; }
.hero-feature strong { color: #fff; font-size: 1.02rem; font-weight: 600; }
.hero-feature span { color: var(--hero-muted); font-size: 0.9rem; }
@media (max-width: 767.98px) {
  .hero-features { grid-template-columns: 1fr; margin-top: 44px; }
  .hero-feature { flex-direction: row; align-items: center; gap: 16px; padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .hero-feature:first-child { border-top: 0; }
  .hero-feature i { margin: 0; font-size: 1.6rem; }
}

/* Code window mock */
.code-window {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-window-bar .dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.code-window-bar .fname {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #8b96a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}
.code-window-body {
  padding: 22px 20px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #c9d4e3;
  min-height: 230px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #3a4152 transparent;
}
.code-window-body .code-line { white-space: pre-wrap; word-break: break-word; }
.code-window-body::-webkit-scrollbar { width: 8px; }
.code-window-body::-webkit-scrollbar-thumb { background: #3a4152; border-radius: 4px; }
.code-window-body::-webkit-scrollbar-track { background: transparent; }
.code-window-body .ln { color: #4a5265; user-select: none; display: inline-block; width: 20px; }
.code-window-body .cmt { color: #6a7488; }
.code-window-body .kw { color: #4dabf7; }
.code-window-body .str { color: #a6e3a1; }
.code-window-body .fn { color: #f2c078; }
.code-window-body .caret { display: inline-block; width: 8px; height: 1.1em; background: #4dabf7; vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--ink-soft);
  color: #fff;
  padding: 46px 0;
}
.stats-strip .stat { text-align: left; padding: 0 8px; border-left: 2px solid var(--blue); }
.stats-strip .stat strong { display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; margin-bottom: 6px; }
.stats-strip .stat span { color: #aab7c9; font-size: 0.92rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 991.98px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}
.about-media {
  position: relative;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-media .placeholder-mark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--slate-light); font-family: var(--font-mono); font-size: 0.9rem; text-align: center; padding: 20px;
}
.badge-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue-deep);
  background: var(--blue-soft);
  padding: 6px 12px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  margin-bottom: 16px;
}
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 18px; }
.about-text p { color: var(--slate); white-space: pre-line; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 991.98px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639.98px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 26px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.service-card .icon-wrap {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 1.25rem;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card p { color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ---------- Technologies ---------- */
.tech-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tech-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 8px 15px;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tech-filter-btn:hover { border-color: var(--blue); color: var(--blue-deep); }
.tech-filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.tech-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.tech-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 18px 12px 12px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.tech-chip .mono-badge {
  width: 38px; height: 38px;
  /* background: var(--ink); */
  color: #3d3d3d;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  flex-shrink: 0;
  overflow: hidden;
}
.tech-chip .mono-badge img { width: 100%; height: 100%; object-fit: cover; }
.tech-chip .tech-name { font-weight: 600; font-size: 0.96rem; }
.tech-chip .tech-cat { display: block; color: var(--slate); font-size: 0.78rem; font-family: var(--font-mono); }

/* ---------- Systems (portfolio) ---------- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 767.98px) { .systems-grid { grid-template-columns: 1fr; } }

.system-card {
  background: #fff;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.system-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.system-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.system-card.featured { grid-column: span 2; flex-direction: row; }
@media (max-width: 767.98px) { .system-card.featured { grid-column: span 1; flex-direction: column; } }

.system-media {
  background: var(--paper-alt);
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}
.system-card.featured .system-media { flex: 0 0 46%; aspect-ratio: auto; }
@media (max-width: 767.98px) { .system-card.featured .system-media { flex: 0 0 auto; aspect-ratio: 16/10; } }
.system-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.55s ease;
  will-change: transform;
}
/* Hover: a imagem amplia e gira levemente. A escala (1.16) é maior que o necessário
   para cobrir os cantos com a rotação de 4°, então o quadro nunca mostra fundo vazio. */
.system-card:hover .system-media img,
.system-card:focus-visible .system-media img {
  transform: scale(1.16) rotate(-4deg);
  filter: saturate(1.08) contrast(1.03);
}
.system-media .placeholder-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--slate-light); font-family: var(--font-mono); font-size: 0.85rem; }
.system-media .tag-featured {
  position: absolute; top: 14px; left: 0;
  background: var(--blue); color: #fff;
  font-family: var(--font-mono); font-size: 0.75rem;
  padding: 5px 12px 5px 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.system-body { padding: 24px 26px; flex: 1; display: flex; flex-direction: column; }
.system-body .cat { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue-deep); margin-bottom: 8px; }
.system-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.system-body p.desc { color: var(--slate); font-size: 0.95rem; margin-bottom: 16px; }
.system-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.system-tags span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--slate); background: var(--paper-alt); border: 1px solid var(--line); padding: 3px 9px; }
.system-body .system-link { margin-top: auto; font-weight: 600; font-size: 0.93rem; position: relative; z-index: 2; }

/* Logos das tecnologias usadas em cada sistema */
.system-tech-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.system-tech-icon {
  display: flex;
  align-items: center;
  /* background: var(--ink); */
  color: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}
.system-tech-icon-badge {
  width: 30px; height: 30px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.65rem;
}
.system-tech-icon-badge img { width: 100%; height: 100%; object-fit: cover; }
.system-tech-icon-label { display: none; }

/* Quadro ao redor do logo nos cartões (fora do modal) */
.system-tech-icons:not(.system-tech-icons-lg) .system-tech-icon-badge {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 4px;
  color: #3d3d3d; /* iniciais legíveis quando a tecnologia não tem logo */
}

.system-tech-icons-lg { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.system-tech-icons-lg .system-tech-icon {
  background: var(--paper-alt);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 4px;
  gap: 8px;
}
.system-tech-icons-lg .system-tech-icon.has-image {
  /*padding-right: 0;*/
  gap: 0;
  border-color: var(--line);
}
.system-tech-icons-lg .system-tech-icon-badge { width: 38px; height: 38px; font-size: 0.72rem; }
.system-tech-icons-lg .system-tech-icon-label { display: inline-block; font-size: 0.86rem; font-weight: 500; }

/* ---------- Modal de detalhes do sistema ---------- */
.system-detail-modal .modal-content {
  border: none;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  overflow: hidden;
}
.system-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.9;
  width: 34px; height: 34px;
  padding: 0;
}
.system-carousel { background: var(--paper-alt); }
.system-carousel .carousel-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.system-carousel .carousel-indicators { margin-bottom: 10px; }
.system-carousel .carousel-indicators [data-bs-target] { background-color: var(--blue); }
.system-modal-body { padding: 30px 32px 34px; }
.system-modal-body .cat { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue-deep); display: block; margin-bottom: 8px; }
.system-modal-body h3 { font-size: 1.4rem; margin-bottom: 14px; }
.system-modal-desc { color: var(--slate); font-size: 0.98rem; line-height: 1.65; margin-bottom: 4px; }


/* ---------- Differentials ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 991.98px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-item .icon-wrap {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--blue);
  color: var(--blue-deep);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  margin-bottom: 16px;
  font-size: 1.15rem;
}
.diff-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.diff-item p { color: var(--slate); font-size: 0.92rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-section { background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
@media (max-width: 991.98px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-section .section-head h2 { color: #fff; }
.contact-section .section-head p.lead-text { color: #b9c8dc; }
.contact-info-list { list-style: none; padding: 0; margin: 0 0 30px; }
.contact-info-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-info-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-info-list .ic {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--blue-bright);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.contact-info-list strong { display: block; font-size: 0.95rem; }
.contact-info-list span, .contact-info-list a { color: #b9c8dc; font-size: 0.92rem; }
.contact-info-list a:hover { color: #fff; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.social-row a:hover { border-color: var(--blue-bright); background: rgba(255,255,255,0.06); }

.contact-form-panel {
  background: var(--ink-soft);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 32px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.contact-form-panel .form-label { color: #d7e2f0; font-size: 0.9rem; margin-bottom: 6px; }
.contact-form-panel .form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  padding: 11px 14px;
  border-radius: 0;
}
.contact-form-panel .form-control::placeholder { color: #6f7c92; }
.contact-form-panel .form-control:focus {
  background: rgba(255,255,255,0.06);
  border-color: var(--blue-bright);
  color: #fff;
  box-shadow: none;
}
/* Campo-isca anti-spam: invisível sem ser jogado para fora da tela (left:-9999px
   criava uma rolagem horizontal enorme em idiomas da direita para a esquerda). */
.honeypot-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* ---------- Mapa (iframe incorporado) ---------- */
.map-embed {
  margin-top: 44px;
  aspect-ratio: 21 / 8;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  overflow: hidden;
  background: var(--ink-soft);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}
@media (max-width: 767.98px) {
  .map-embed { aspect-ratio: 4 / 5; }
}

/* reCAPTCHA v3: o selo flutuante do Google ficaria sobre o botão "voltar ao topo";
   ele é ocultado e o aviso obrigatório aparece no próprio formulário. */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-notice { margin: 12px 0 0; font-size: 0.76rem; color: #8b97ab; line-height: 1.5; }
.recaptcha-notice a { color: #b9c8dc; text-decoration: underline; }
.recaptcha-notice a:hover { color: #fff; }

/* ---------- Footer ---------- */
.tfs-footer { background: var(--ink); color: #b9c8dc; padding: 50px 0 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.tfs-footer .footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.tfs-footer .brand img { height: 30px; margin-bottom: 14px; }
.tfs-footer .footer-tagline { max-width: 340px; font-size: 0.92rem; }
.tfs-footer .footer-links { display: flex; gap: 46px; flex-wrap: wrap; }
.tfs-footer .footer-links h4 { color: #fff; font-size: 0.92rem; margin-bottom: 14px; }
.tfs-footer .footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.tfs-footer .footer-links a { color: #b9c8dc; font-size: 0.9rem; }
.tfs-footer .footer-links a:hover { color: #fff; }
.tfs-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: #7d8aa0; }

/* ---------- Page loader ---------- */
/* Nota: propositalmente SEM overflow:hidden aqui — o loader (position:fixed,
   inset:0) já cobre a tela inteira visualmente sem precisar travar a rolagem
   do body. Deixar a rolagem sempre disponível evita que o site inteiro fique
   travado caso o JS do loader falhe em esconder por algum motivo. */
body.is-loading { }

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.is-loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo { height: 40px; width: auto; margin-bottom: 24px; animation: loaderPulse 1.6s ease-in-out infinite; }
.loader-track {
  width: 160px;
  height: 4px;
  background: var(--line);
  margin: 0 auto;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}
.loader-fill {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--blue);
  animation: loaderSlide 1.1s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.96); }
}
@keyframes loaderSlide {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(130%); }
  100% { transform: translateX(-110%); }
}
@media (prefers-reduced-motion: reduce) {
  .loader-logo, .loader-fill { animation: none; }
}

/* ---------- Botão voltar ao topo ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background-color 0.15s ease;
  box-shadow: 0 10px 24px rgba(18, 22, 31, 0.18);
}
.back-to-top:hover { background: var(--blue-deep); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 575.98px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; font-size: 1.05rem; }
}

/* ---------- Contact page alert / toast tweaks ---------- */
.swal2-popup.tfs-swal { font-family: var(--font-body); border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.tfs-footer .visit-counter { display: inline-flex; align-items: center; gap: 6px; }

/* Código do topo continua da esquerda para a direita mesmo em árabe/hebraico. */
[dir="rtl"] .code-window, [dir="rtl"] .code-window-body { direction: ltr; text-align: left; }

/* ---------- Google Tradutor de sites ----------
   O widget do Google fica escondido (o seletor visível é o do menu) e a barra,
   os balões e os destaques que o Google insere na página são ocultados. */
.gt-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body { top: 0 !important; position: static !important; }
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-ZVi9od-xl07Ob-OEVmcd, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
.goog-text-highlight, .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q { background: none !important; box-shadow: none !important; }
