/* ================================================================
   Engineering on Web FEA — landing page (fem/index.php).
   Independente do app (app2.php usa fem.css). Sem framework, sem fonte
   externa: pilha de fontes do sistema, igual a landing do Engineering on Web CAD.
   Tema: so escuro (sem alternancia claro/escuro).
   ================================================================ */

:root {
  --gk-bg: #0a141c;
  --gk-bg-2: #0f1c27;
  --gk-bg-3: #132331;
  --gk-card: #112030;
  --gk-line: rgba(255, 255, 255, 0.08);
  --gk-line-strong: rgba(255, 255, 255, 0.16);
  --gk-fg: #eef3f8;
  --gk-fg-2: #b3c1cf;
  --gk-fg-3: #8193a6;
  --gk-accent: #3cc7b4;          /* teal: marca */
  --gk-accent-ink: #062320;
  --gk-accent-soft: rgba(60, 199, 180, 0.12);
  --gk-accent-line: rgba(60, 199, 180, 0.35);
  --gk-warm: #f6a45a;            /* ambar/laranja do campo */
  --gk-warm-soft: rgba(246, 164, 90, 0.12);
  --gk-ok: #5fd3a6;
  --gk-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
  --gk-stage: #0d1b2a;           /* fundo das janelas de "resultado" */
  --gk-stage-fg: #e8eef4;
  --gk-radius: 16px;
  --gk-radius-sm: 10px;
  --gk-max: 1180px;
  --gk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gk-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body.gk-body {
  margin: 0; min-height: 100vh; background: var(--gk-bg); color: var(--gk-fg);
  font-family: var(--gk-font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gk-accent); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--gk-mono); font-size: .9em; background: var(--gk-bg-3); padding: 1px 6px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gk-skip { position: absolute; top: -60px; left: 16px; z-index: 1000; background: var(--gk-accent); color: var(--gk-accent-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.gk-skip:focus { top: 12px; }

/* ---------------------------------------------------------------- Header */
.gk-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--gk-bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gk-line);
}
.gk-header-inner { max-width: var(--gk-max); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.gk-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.gk-brand img { width: 34px; height: 34px; }
.gk-brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.gk-nav { display: flex; align-items: center; gap: 20px; }
.gk-nav a:not(.gk-btn) { color: var(--gk-fg-2); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.gk-nav a:not(.gk-btn):hover { color: var(--gk-accent); }
.gk-icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--gk-line-strong); border-radius: 10px; background: transparent; color: var(--gk-fg); cursor: pointer;
}
.gk-icon-btn svg { width: 18px; height: 18px; }
.gk-nav-toggle { display: none; }
/* Idioma (os mesmos dez do Engineering on Web CAD) */
.gk-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gk-lang { display: inline-flex; }
.gk-lang select {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--gk-fg-2);
  background: transparent; border: 1px solid var(--gk-line-strong); border-radius: 10px;
  padding: 7px 8px; cursor: pointer; max-width: 150px;
}
.gk-lang select:hover, .gk-lang select:focus-visible { color: var(--gk-fg); border-color: var(--gk-accent); }
.gk-nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

/* ---------------------------------------------------------------- Buttons */
.gk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font: inherit; font-size: 15px; font-weight: 700; border-radius: 12px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s, background .2s, border-color .2s;
}
.gk-btn.sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.gk-btn.lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.gk-btn.primary { background: var(--gk-accent); color: var(--gk-accent-ink); box-shadow: 0 8px 22px -10px var(--gk-accent); }
.gk-btn.primary:hover { transform: translateY(-2px); }
.gk-btn.ghost { background: var(--gk-card); color: var(--gk-fg); border-color: var(--gk-line-strong); }
.gk-btn.ghost:hover { border-color: var(--gk-accent); transform: translateY(-2px); }
.gk-btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- Hero */
.gk-hero { position: relative; overflow: hidden; padding: 72px 24px 64px; }
.gk-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(var(--gk-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--gk-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 0%, transparent 75%);
}
.gk-hero-grid { position: relative; max-width: var(--gk-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; }
.gk-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.gk-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--gk-accent); background: var(--gk-accent-soft); border: 1px solid var(--gk-accent-line);
}
.gk-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--gk-accent); }
.gk-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -1.4px; font-weight: 800; }
.gk-hero h1 em { font-style: normal; color: var(--gk-accent); }
.gk-lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--gk-fg-2); max-width: 56ch; }
.gk-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.gk-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 22px; border-top: 1px solid var(--gk-line); }
.gk-facts div { display: flex; flex-direction: column; }
.gk-facts dt { order: 2; font-size: 12.5px; color: var(--gk-fg-3); line-height: 1.35; }
.gk-facts dd { order: 1; font-size: 21px; font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }

/* Janela de resultado (sempre escura, como a janela de Graficos). */
.gk-window { background: var(--gk-stage); color: var(--gk-stage-fg); border-radius: var(--gk-radius); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px -40px rgba(13,27,42,.7); overflow: hidden; }
.gk-window-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.gk-dots { display: flex; gap: 6px; }
.gk-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.gk-window-title { font-family: var(--gk-mono); font-size: 12px; color: #9fb3c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-window-body { position: relative; padding: 18px 18px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: stretch; }
.gk-window-body > img { width: 100%; height: auto; }
.gk-colorbar { display: grid; grid-template-rows: auto 1fr; gap: 6px; font-size: 11px; color: #9fb3c8; font-family: var(--gk-mono); }
.gk-colorbar-scale { display: grid; grid-template-columns: 12px auto; gap: 6px; }
.gk-colorbar-ramp { border-radius: 3px; background: linear-gradient(0deg, #313f94 0%, #2186b4 20%, #2fae9c 38%, #9fce5a 52%, #f6c343 66%, #f28c38 82%, #e8553a 100%); }
.gk-colorbar-ticks { display: flex; flex-direction: column; justify-content: space-between; }
.gk-window-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }
.gk-tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #d6e1ec; }
.gk-tag.hot { border-color: rgba(246,195,67,.5); color: #f6c343; }
.gk-caption { font-size: 12.5px; color: var(--gk-fg-3); margin-top: 10px; }

/* ---------------------------------------------------------------- Sections */
.gk-section { max-width: var(--gk-max); margin: 0 auto; padding: 84px 24px; }
.gk-band { background: var(--gk-bg-2); border-top: 1px solid var(--gk-line); border-bottom: 1px solid var(--gk-line); }
.gk-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.gk-kicker { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gk-accent); }
.gk-head h2, .gk-split h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.7px; font-weight: 800; margin-bottom: 12px; }
.gk-head p { font-size: 17px; color: var(--gk-fg-2); }

/* Modulos */
.gk-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gk-module { background: var(--gk-card); border: 1px solid var(--gk-line); border-radius: var(--gk-radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--gk-shadow); }
.gk-module-top { display: flex; align-items: center; gap: 12px; }
.gk-module-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.gk-module-ico svg { width: 24px; height: 24px; }
.gk-module h3 { font-size: 18.5px; line-height: 1.25; }
.gk-module p { font-size: 15px; color: var(--gk-fg-2); }
.gk-module ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.gk-module li { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--gk-bg-3); color: var(--gk-fg-2); }
.gk-new { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--gk-warm-soft); color: var(--gk-warm); margin-inline-start: auto; }
.ico-solid { background: #2f52a3; } .ico-heat { background: #d9542f; } .ico-flow { background: #1f86b0; }
.ico-em { background: #7a4bc2; } .ico-multi { background: #0b7f72; } .ico-study { background: #5a6b7d; }

/* Como funciona */
.gk-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.gk-step { position: relative; padding: 22px 18px 20px; border-radius: var(--gk-radius); background: var(--gk-card); border: 1px solid var(--gk-line); display: flex; flex-direction: column; gap: 10px; }
.gk-step::before { counter-increment: step; content: counter(step); position: absolute; top: 14px; inset-inline-end: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--gk-accent); background: var(--gk-accent-soft); border: 1px solid var(--gk-accent-line); }
.gk-step svg { width: 40px; height: 40px; color: var(--gk-accent); }
.gk-step h3 { font-size: 17px; }
.gk-step p { font-size: 14px; color: var(--gk-fg-2); }
.gk-note { margin-top: 24px; text-align: center; font-size: 14.5px; color: var(--gk-fg-3); }

/* Validacao */

/* Desempenho */
.gk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.gk-split > div > p { color: var(--gk-fg-2); font-size: 16.5px; margin-bottom: 18px; }
.gk-list { display: flex; flex-direction: column; gap: 12px; }
.gk-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15px; color: var(--gk-fg-2); }
.gk-list li strong { color: var(--gk-fg); }
.gk-list svg { width: 20px; height: 20px; color: var(--gk-accent); margin-top: 3px; }
.gk-chart { background: var(--gk-card); border: 1px solid var(--gk-line); border-radius: var(--gk-radius); padding: 24px; box-shadow: var(--gk-shadow); }
.gk-chart h3 { font-size: 16px; }
.gk-chart > p { font-size: 13px; color: var(--gk-fg-3); margin: 2px 0 18px; }
.gk-bars { display: flex; flex-direction: column; gap: 12px; }
.gk-bars li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: 14px; }
.gk-bars .lbl { color: var(--gk-fg-2); }
.gk-bars .val { text-align: end; font-variant-numeric: tabular-nums; font-weight: 700; }
.gk-bars .track { height: 14px; }
.gk-bars .bar { display: block; height: 100%; min-width: 4px; border-radius: 0 4px 4px 0; background: var(--gk-accent); }
.gk-chart-total { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gk-line); display: flex; justify-content: space-between; font-size: 14px; color: var(--gk-fg-2); }
.gk-chart-total strong { color: var(--gk-fg); font-variant-numeric: tabular-nums; }

/* Engineering on Web CAD */
.gk-sister { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 32px; border-radius: 22px; background: var(--gk-card); border: 1px solid var(--gk-line); box-shadow: var(--gk-shadow); }
.gk-sister img { width: 76px; height: 76px; border-radius: 18px; }
.gk-sister h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.5px; line-height: 1.2; margin: 4px 0 8px; }
.gk-sister p { color: var(--gk-fg-2); font-size: 15.5px; }
.gk-sister-ctas { display: flex; flex-direction: column; gap: 10px; }
.gk-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--gk-fg-2); }
.gk-flow span { padding: 4px 10px; border-radius: 8px; background: var(--gk-bg-3); }
.gk-flow b { color: var(--gk-accent); }

/* FAQ */
.gk-faq { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.gk-faq details { background: var(--gk-card); border: 1px solid var(--gk-line); border-radius: 14px; }
.gk-faq details[open] { border-color: var(--gk-accent-line); }
.gk-faq summary { list-style: none; cursor: pointer; padding: 17px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.gk-faq summary::-webkit-details-marker { display: none; }
.gk-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gk-accent); transition: transform .2s; }
.gk-faq details[open] summary::after { transform: rotate(45deg); }
.gk-faq p { padding: 0 22px 18px; color: var(--gk-fg-2); font-size: 15px; }

/* CTA final */
.gk-cta { padding: 12px 24px 88px; }
.gk-cta-inner { max-width: 980px; margin: 0 auto; text-align: center; padding: 56px 28px; border-radius: 26px; background: var(--gk-stage); color: var(--gk-stage-fg); position: relative; overflow: hidden; }
.gk-cta-inner::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(232,85,58,.35), rgba(246,195,67,.12) 45%, transparent 70%); pointer-events: none; }
.gk-cta-inner h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.6px; line-height: 1.15; margin-bottom: 12px; position: relative; }
.gk-cta-inner p { color: #b3c1cf; font-size: 17px; margin-bottom: 26px; position: relative; }
.gk-cta-inner .gk-btn { position: relative; }
.gk-cta-inner .gk-btn.primary { background: #3cc7b4; color: #062320; }

/* Footer */
.gk-footer { border-top: 1px solid var(--gk-line); background: var(--gk-bg-2); }
.gk-footer-inner { max-width: var(--gk-max); margin: 0 auto; padding: 34px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; }
.gk-footer-brand { display: flex; align-items: center; gap: 12px; }
.gk-footer-brand img { width: 30px; height: 30px; }
.gk-footer-brand span { display: block; font-size: 13px; color: var(--gk-fg-3); }
.gk-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.gk-footer nav a { font-size: 14px; color: var(--gk-fg-2); text-decoration: none; }
.gk-footer nav a:hover { color: var(--gk-accent); }
.gk-footer-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--gk-fg-3); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1060px) {
  .gk-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .gk-hero-visual { max-width: 680px; width: 100%; margin: 0 auto; }
  .gk-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gk-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gk-split { grid-template-columns: 1fr; }
  .gk-sister { grid-template-columns: auto minmax(0, 1fr); }
  .gk-sister-ctas { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .gk-nav-toggle { display: inline-grid; }
  .gk-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 20px 18px; background: var(--gk-bg-2); border-bottom: 1px solid var(--gk-line); box-shadow: var(--gk-shadow); }
  .gk-nav.is-open { display: flex; }
  .gk-nav a:not(.gk-btn) { padding: 10px 4px; font-size: 16px; }
  .gk-nav .gk-btn { margin-top: 6px; }
  .gk-lang select { width: 100%; max-width: none; padding: 10px 8px; font-size: 15px; }
}
@media (max-width: 640px) {
  .gk-header-inner { padding: 10px 16px; gap: 10px; }
  .gk-hero { padding: 40px 16px 44px; }
  .gk-section { padding: 60px 16px; }
  .gk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gk-ctas .gk-btn { width: 100%; white-space: normal; }
  .gk-eyebrow { font-size: 12px; }
  .gk-modules, .gk-steps { grid-template-columns: 1fr; }
  .gk-window-body { padding: 12px 10px 10px; gap: 8px; }
  .gk-bars li { grid-template-columns: 78px minmax(0, 1fr) 62px; gap: 8px; }
  .gk-sister { grid-template-columns: 1fr; padding: 24px 20px; }
  .gk-sister img { width: 60px; height: 60px; }
  .gk-sister-ctas .gk-btn { flex: 1 1 100%; }
  .gk-footer-inner { grid-template-columns: 1fr; padding: 28px 16px; }
  .gk-cta { padding: 8px 16px 60px; }
  .gk-cta-inner { padding: 40px 20px; }
  .gk-cta-inner .gk-btn { width: 100%; }
}
@media (forced-colors: active) {
  .gk-bars .bar, .gk-colorbar-ramp { forced-color-adjust: none; }
}

/* Aviso de Termos / Privacidade (index.php #gk-consent) */
.gk-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin: 0 auto;
  display: none; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--gk-radius);
  background: rgba(15, 28, 39, 0.97); border: 1px solid var(--gk-line-strong); box-shadow: var(--gk-shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; line-height: 1.5;
}
.gk-consent.is-visible { display: flex; animation: gk-consent-in .3s ease both; }
.gk-consent p { flex: 1; margin: 0; color: var(--gk-fg-2); }
.gk-consent a { color: var(--gk-accent); font-weight: 600; text-decoration: none; }
.gk-consent a:hover, .gk-consent a:focus-visible { text-decoration: underline; }
.gk-consent .gk-btn { flex-shrink: 0; }
@keyframes gk-consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .gk-consent { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .gk-consent.is-visible { animation: none; } }
