/* X8 Solutions — landing page (dark-first, denso, sem decoração inútil) */

:root {
  --bg: #0a0c10;
  --bg-alt: #0e1117;
  --surface: #131722;
  --surface-2: #1a1f2e;
  --border: #232a3b;
  --text: #e8ecf4;
  --text-dim: #9aa4b8;
  --accent: #4f8cff;
  --accent-strong: #2f6fe8;
  --green: #25d366;
  --green-dark: #1da851;
  --radius: 10px;
  --container: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container--narrow { max-width: 780px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

/* ---------- Botões ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--green);
  color: #06250f;
}
.btn--primary:hover { background: var(--green-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--block { display: block; width: 100%; }

/* ---------- Navegação ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav__brand span { color: var(--accent); font-weight: 500; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: #06250f; }
.nav__links .btn:hover { color: #fff; }

.nav__lang {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse 800px 400px at 50% -10%, rgba(79, 140, 255, 0.12), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  max-width: 760px;
}

.hero__subtitle {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
}

.hero__bullets {
  margin-top: 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__bullets li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
  font-size: 15px;
}
.hero__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Trust bar ---------- */

.trust {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust__item h3 { font-size: 16px; margin-bottom: 6px; }
.trust__item p { font-size: 14px; color: var(--text-dim); }

/* ---------- Seções ---------- */

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__heading {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
}

.section__sub {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 16px;
  max-width: 620px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- Produtos ---------- */

.products__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

.product__name { font-size: 24px; margin-top: 14px; }
.product__desc { margin-top: 10px; color: var(--text-dim); font-size: 15px; }

.product__features {
  margin-top: 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product__features li {
  padding-left: 26px;
  position: relative;
  font-size: 14px;
}
.product__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.product__version {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  padding: 8px 12px;
  border-radius: var(--radius);
}

.product__activation {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.product__media {
  margin-top: 16px;
}
.product__media a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.product__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}
.product__media a:hover img { transform: scale(1.02); }
.product__media figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Vídeo ---------- */

.video__frame {
  margin-top: 36px;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Preços ---------- */

.pricing__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price {
  display: flex;
  flex-direction: column;
  position: relative;
}

.price--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.07), var(--surface) 40%);
}

.price__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price__name { font-size: 18px; }

.price__value {
  margin-top: 12px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price__was {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-right: 8px;
}

.price__includes {
  margin: 20px 0 24px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price__includes li {
  padding-left: 26px;
  position: relative;
  font-size: 14px;
  color: var(--text-dim);
}
.price__includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Faixa horizontal: add-on de reativação e "catálogo em expansão" */
.strip {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.strip--dashed { border-style: dashed; }

.strip__info h3 { font-size: 17px; }
.strip__info p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 560px;
}

.strip__action {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.strip__pricebox { text-align: center; }

.strip__price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.strip__price-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
}

.pricing__note {
  margin-top: 28px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- Como funciona ---------- */

.steps {
  margin-top: 40px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

.steps__item h3 { margin-top: 14px; font-size: 16px; }
.steps__item p { margin-top: 6px; font-size: 14px; color: var(--text-dim); }

/* ---------- Compatibilidade ---------- */

.compat {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.compat__list {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compat__list li {
  padding-left: 28px;
  position: relative;
  font-size: 15px;
}
.compat__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.compat__cta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.compat__cta p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }

/* ---------- FAQ ---------- */

.faq { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
}
.faq__item[open] summary::after { content: "–"; }

.faq__item p {
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- CTA final ---------- */

.final-cta {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 600px 300px at 50% 110%, rgba(37, 211, 102, 0.1), transparent),
    var(--bg);
  border-top: 1px solid var(--border);
}

.final-cta h2 { font-size: clamp(26px, 3.5vw, 36px); }
.final-cta p { margin: 14px 0 32px; color: var(--text-dim); font-size: 17px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 48px 0 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__brand { font-size: 18px; font-weight: 800; }
.footer__brand span { color: var(--accent); font-weight: 500; }

.footer__tagline {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 420px;
}

.footer__links { display: flex; gap: 20px; align-items: flex-start; }
.footer__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
}
.footer__links a:hover { color: var(--text); }

.footer__disclaimer {
  margin-top: 36px;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer__copy { margin-top: 8px; font-size: 12px; color: var(--text-dim); }

/* ---------- WhatsApp flutuante ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Seletor de idioma (popup) ---------- */

.lang-modal { display: none; }

.needs-lang .lang-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 11, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.lang-modal__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lang-modal__title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.lang-modal__title span { color: var(--border); }

.lang-modal__options { display: grid; gap: 12px; }

.lang-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.lang-opt:hover { border-color: var(--accent); background: #1f2638; transform: translateY(-1px); }
.lang-opt img {
  width: 44px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.lang-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}
.lang-modal__close:hover { color: var(--text); }

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  .products__grid,
  .pricing__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .compat { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }

  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { font-size: 16px; }

  .steps { grid-template-columns: 1fr; }
}
