/* Página inicial do VExNull. Usa as cores, as fontes e os componentes do painel (app.css). */

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
.landing { font-size: 16px; line-height: 1.6; color: var(--body); }
.landing .wrap { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 40px) 0; }
.landing main { max-width: none; padding: 0; display: block; }
.landing h1, .landing h2, .landing h3 { color: var(--text); }
.landing h1 { font-size: clamp(2.6rem, 1.2rem + 5vw, 5rem); font-weight: 520; letter-spacing: -0.035em; line-height: 1.04; }
.landing h2 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem); font-weight: 520; letter-spacing: -0.025em; line-height: 1.12; }
.landing h3 { font-size: 1.125rem; }
.landing .lead { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--body); max-width: 62ch; margin-top: 16px; }
.landing .eyebrow { margin-bottom: 14px; }
.landing .sub { font-size: 0.875rem; }

.l-nav {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(20px, 4vw, 40px); background: rgba(11, 11, 12, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.l-links { display: flex; align-items: center; gap: 4px; }
.l-links a:not(.btn) { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: var(--r-pill); }
.l-links a:not(.btn):hover { color: var(--text); background: var(--surface); }
.l-links .btn { margin-left: 8px; }
/* Seletor de idioma. */
.langs { display: inline-flex; gap: 2px; margin-left: 8px; padding: 2px; border: 1px solid var(--border-2); border-radius: var(--r-pill); }
.l-links .langs a { font: 500 11.5px var(--mono); letter-spacing: 0.04em; padding: 4px 9px; }
.l-links .langs a[aria-current] { background: var(--accent-tint); color: var(--accent-hover); }
a.btn.big { font-size: 15px; padding: 11px 22px; }

.hero { text-align: center; display: grid; justify-items: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.cta { justify-content: center; margin: 30px 0 14px; gap: 12px; }

/* Tela de demonstração, montada em HTML: sem captura de ambiente real. */
.mock {
  width: 100%; margin-top: clamp(40px, 6vw, 72px); text-align: left; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(249, 106, 2, 0.06), 0 40px 120px -40px rgba(249, 106, 2, 0.28);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.mock-bar em { font: 500 11px var(--mono); font-style: normal; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-left: 10px; }
.mock-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 16px; }
.mock-stats .stat { background: var(--bg); }
.mock table { min-width: 0; }
.mock td, .mock th { padding-left: 16px; padding-right: 16px; }

.path { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.path > div { padding: 22px 22px 22px 0; border-top: 1px solid var(--border-2); }
.path h3 { margin: 8px 0 6px; }
.step { font: 500 12px var(--mono); color: var(--accent); letter-spacing: 0.08em; }

.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 36px; }
.modules.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.modules .card { padding: 24px; }
.modules .card .sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin: 6px 0 14px; }
.modules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 0.9375rem; }
.modules li { padding-left: 18px; position: relative; }
.modules li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 1px; background: var(--accent); }
.modules.two p { margin-top: 10px; font-size: 0.9375rem; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.factors { margin: 0; padding: 0; list-style: none; display: grid; }
.factors li { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--border-2); }
.factors li:last-child { border-bottom: 1px solid var(--border-2); }
.factors strong { color: var(--text); font-weight: 560; }
.factors span { font-size: 0.9375rem; }

.faq { margin-top: 28px; border-top: 1px solid var(--border-2); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border-2); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; color: var(--text); font-weight: 540; font-size: 1.0625rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 20px var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.faq p { padding: 0 28px 20px 0; max-width: 70ch; }

.final { text-align: center; display: grid; justify-items: center; padding-bottom: clamp(64px, 9vw, 120px); }
.final .cta { margin-bottom: 0; }

.l-foot { border-top: 1px solid var(--border); background: #070708; }
.l-foot .wrap { padding-top: 44px; padding-bottom: 44px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid img { width: 96px; height: 96px; margin-bottom: 8px; }
.foot-grid nav { display: grid; gap: 8px; align-content: start; }
.foot-grid h3 { font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.foot-grid nav a { color: var(--body); text-decoration: none; font-size: 14px; }
.foot-grid nav a:hover { color: var(--text); }

@media (max-width: 820px) {
  .l-nav .menu { display: inline-block; }
  .l-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .l-nav.open .l-links { display: flex; }
  .l-links .btn { margin: 8px 0 0; text-align: center; }
  .langs { margin: 8px 0 0; align-self: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .mock th:nth-child(3), .mock td:nth-child(3), .mock th:nth-child(5), .mock td:nth-child(5) { display: none; }
  .cta .btn { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Explorador de funcionalidades: as áreas à esquerda, a lista da área escolhida à direita.
   Sem script (sem a classe "on") todas as áreas aparecem em sequência. */
.fx { margin-top: 32px; border: 1px solid var(--border-2); border-radius: 18px; background: var(--surface); overflow: hidden; }
.fx-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; border-bottom: 1px solid var(--border); }
.fx-tab {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: var(--body); font-size: 0.9375rem; font-weight: 500; position: relative;
}
.fx-tab:hover { color: var(--text); background: var(--surface-2); }
.fx-n { font: 500 11px var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.fx-c { font: 500 11.5px var(--mono); color: var(--muted); margin-left: auto; }
.fx-panel { padding: clamp(22px, 3vw, 36px); border-top: 1px solid var(--border); scroll-margin-top: 84px; }
.fx-panel:first-child { border-top: 0; }
.fx-tag { font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.fx-panel h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 520; letter-spacing: -0.02em; margin: 8px 0 2px; }
.fx-count { font: 500 12px var(--mono); color: var(--muted); margin-bottom: 20px; }
.fx-panel ul { margin: 0; padding: 0; list-style: none; columns: 2 300px; column-gap: 36px; font-size: 0.9375rem; }
.fx-panel li { break-inside: avoid; padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--border); }
.fx-panel li::before {
  content: ""; position: absolute; left: 3px; top: 1.05em; width: 9px; height: 5px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg);
}

/* Com script: duas colunas, uma área por vez. */
.fx.on { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); }
.fx.on .fx-tabs { flex-direction: column; flex-wrap: nowrap; gap: 2px; border-bottom: 0; border-right: 1px solid var(--border); background: var(--bg); }
.fx.on .fx-tab { border-left: 2px solid transparent; }
.fx.on .fx-tab[aria-selected="true"] { color: var(--text); background: var(--accent-tint); border-left-color: var(--accent); }
.fx.on .fx-tab[aria-selected="true"] .fx-n, .fx.on .fx-tab[aria-selected="true"] .fx-c { color: var(--accent-hover); }
.fx.on .fx-panel { border-top: 0; min-height: 430px; }
.fx.on .fx-panel[hidden] { display: none; }
.fx-tab:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: -2px; }

@media (prefers-reduced-motion: no-preference) {
  .fx-tab { transition: background-color 180ms, color 180ms, border-color 180ms; }
  /* Ao trocar de área, o título entra e os itens sobem um depois do outro. */
  .fx.on .fx-panel.enter h3, .fx.on .fx-panel.enter .fx-tag, .fx.on .fx-panel.enter .fx-count { animation: fx-in 320ms cubic-bezier(.16, .8, .24, 1) both; }
  .fx.on .fx-panel.enter li { animation: fx-up 380ms cubic-bezier(.16, .8, .24, 1) both; }
  .fx.on .fx-panel.enter li:nth-child(1) { animation-delay: 40ms; } .fx.on .fx-panel.enter li:nth-child(2) { animation-delay: 70ms; }
  .fx.on .fx-panel.enter li:nth-child(3) { animation-delay: 100ms; } .fx.on .fx-panel.enter li:nth-child(4) { animation-delay: 130ms; }
  .fx.on .fx-panel.enter li:nth-child(5) { animation-delay: 160ms; } .fx.on .fx-panel.enter li:nth-child(6) { animation-delay: 190ms; }
  .fx.on .fx-panel.enter li:nth-child(7) { animation-delay: 220ms; } .fx.on .fx-panel.enter li:nth-child(8) { animation-delay: 250ms; }
  .fx.on .fx-panel.enter li:nth-child(9) { animation-delay: 280ms; } .fx.on .fx-panel.enter li:nth-child(10) { animation-delay: 310ms; }
  .fx.on .fx-panel.enter li:nth-child(11) { animation-delay: 340ms; } .fx.on .fx-panel.enter li:nth-child(n+12) { animation-delay: 370ms; }
}
@keyframes fx-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes fx-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  /* Em tela estreita as áreas viram uma fileira que rola para o lado. */
  .fx.on { display: block; }
  .fx.on .fx-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .fx.on .fx-tab { flex: none; border-left: 0; border-bottom: 2px solid transparent; border-radius: 10px 10px 0 0; }
  .fx.on .fx-tab[aria-selected="true"] { border-bottom-color: var(--accent); }
  .fx.on .fx-n { display: none; }
  .fx.on .fx-panel { min-height: 0; }
}
