/* Engineering on Web — landing global (index.php da raiz).
   Escuro, como as landings do CAD e do FEA; cada produto mantém a sua cor
   (CAD índigo, FEA verde-azulado), as mesmas das etiquetas da marca. */

:root {
  --eh-bg: #0b1120;
  --eh-bg-2: #111a2e;
  --eh-card: #131d33;
  --eh-line: rgba(148, 163, 184, 0.18);
  --eh-fg: #e2e8f0;
  --eh-fg-2: #a5b1c4;
  --eh-fg-3: #7b879b;
  --eh-cad: #6366f1;
  --eh-fea: #14b8a6;
  --eh-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.eh {
  margin: 0;
  background: var(--eh-bg);
  color: var(--eh-fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.eh-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.eh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eh-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.eh-skip:focus { left: 8px; }

/* Cabeçalho */
.eh-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.eh-header.is-scrolled { background: rgba(11, 17, 32, 0.86); backdrop-filter: blur(12px); border-bottom-color: var(--eh-line); }
.eh-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.eh-nav { display: flex; align-items: center; gap: 14px; }
.eh-nav a { text-decoration: none; }
.eh-nav-text { color: var(--eh-fg-2); font-size: 14px; }
.eh-nav-text:hover { color: var(--eh-fg); }
.eh-lang select {
  background: var(--eh-bg-2);
  color: var(--eh-fg);
  border: 1px solid var(--eh-line);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
}

/* Abertura */
.eh-hero { padding: 64px 0 40px; text-align: center; background: radial-gradient(60% 80% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 70%), radial-gradient(40% 60% at 85% 20%, rgba(20, 184, 166, 0.14), transparent 70%); }
.eh-eyebrow { margin: 0 0 12px; color: var(--eh-fg-2); font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.eh-hero h1 { margin: 0 auto; max-width: 820px; font-size: clamp(32px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -1.2px; }
.eh-hero h1 em { font-style: normal; background: linear-gradient(90deg, #818cf8, #2dd4bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eh-lead { margin: 18px auto 0; max-width: 700px; color: var(--eh-fg-2); font-size: 18px; }

/* Os dois produtos */
.eh-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 16px; padding-bottom: 56px; }
.eh-card {
  display: flex;
  flex-direction: column;
  background: var(--eh-card);
  border: 1px solid var(--eh-line);
  border-radius: var(--eh-radius);
  overflow: hidden;
  scroll-margin-top: 80px;
}
.eh-card.is-cad { box-shadow: 0 -3px 0 var(--eh-cad) inset, 0 20px 50px -30px rgba(99, 102, 241, 0.6); }
.eh-card.is-fea { box-shadow: 0 -3px 0 var(--eh-fea) inset, 0 20px 50px -30px rgba(20, 184, 166, 0.55); }
.eh-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: #e9edf3; display: flex; align-items: center; justify-content: center; }
.eh-card-media.is-dark { background: #0d1b2a; }
.eh-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eh-card-media.is-dark img { object-fit: contain; padding: 12px; }
.eh-card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1; }
.eh-card h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -0.4px; }
.eh-card p { margin: 0; color: var(--eh-fg-2); }
.eh-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.eh-list li { position: relative; padding-inline-start: 22px; color: var(--eh-fg); font-size: 15px; }
.eh-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.6em; width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); }
.is-cad .eh-list li::before { background: var(--eh-cad); }
.is-fea .eh-list li::before { background: var(--eh-fea); }
.eh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

.eh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--eh-line);
  background: transparent;
  color: var(--eh-fg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.eh-btn:hover { border-color: var(--eh-fg-2); }
.eh-btn:active { transform: translateY(1px); }
.eh-btn.is-primary { border-color: transparent; color: #fff; background: #4f46e5; }
.is-fea .eh-btn.is-primary { background: #0f9488; }
.eh-btn.is-primary:hover { filter: brightness(1.1); }

/* Fluxo CAD -> FEA */
.eh-flow { padding: 56px 0; background: var(--eh-bg-2); border-top: 1px solid var(--eh-line); border-bottom: 1px solid var(--eh-line); text-align: center; scroll-margin-top: 64px; }
.eh-flow h2 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.6px; }
.eh-sub { margin: 8px 0 28px; color: var(--eh-fg-2); }
.eh-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.eh-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  background: var(--eh-card);
  border: 1px solid var(--eh-line);
  border-radius: 14px;
  font-weight: 600;
}
.eh-step-n { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(148, 163, 184, 0.16); color: var(--eh-fg-2); font-size: 13px; font-weight: 800; }
.eh-file { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--eh-fg-3); color: var(--eh-fg-2); }

/* Por que */
.eh-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 56px; padding-bottom: 64px; }
.eh-why h3 { margin: 0 0 6px; font-size: 18px; }
.eh-why p { margin: 0; color: var(--eh-fg-2); font-size: 15px; }

/* Rodapé */
.eh-footer { border-top: 1px solid var(--eh-line); padding: 32px 0 24px; color: var(--eh-fg-2); font-size: 14px; }
.eh-footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eh-footer-row p { margin: 8px 0 0; }
.eh-footer .eow-brand { color: var(--eh-fg); }
.eh-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; }
.eh-footer-links a { text-decoration: none; }
.eh-footer-links a:hover { color: var(--eh-fg); }
.eh-copy { margin: 20px auto 0; color: var(--eh-fg-3); font-size: 13px; }

/* Aviso de Termos / Privacidade */
.eh-consent {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 760px;
  margin: 0 auto;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(17, 26, 46, 0.97);
  border: 1px solid var(--eh-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 14px;
}
.eh-consent.is-visible { display: flex; }
.eh-consent p { flex: 1; margin: 0; color: var(--eh-fg-2); }
.eh-consent a { color: #a5b4fc; font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .eh-products, .eh-why { grid-template-columns: 1fr; }
  .eh-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .eh-nav-text { display: none; }
  .eh-nav { gap: 8px; }
  /* No celular o nome inteiro cabe: os atalhos CAD / FEA do topo saem (os
     cartões estão logo abaixo) e o idioma vira só o código. */
  .eh-nav a { display: none; }
  .eh-lang select { max-width: 92px; padding: 6px 8px; }
  .eh-card .eow-brand.is-lg { gap: 10px; }
  .eh-card .eow-brand.is-lg .eow-mark { width: 38px; height: 38px; }
  .eh-card .eow-brand.is-lg .eow-word { font-size: 18px; }
  .eh-card-body { padding: 20px 18px 22px; }
  .eh-hero { padding-top: 40px; }
  .eh-lead { font-size: 16px; }
  .eh-consent { flex-direction: column; align-items: stretch; }
}
