/* ============================================================
   VELTRO WMS — Landing Page
   ============================================================ */

/* ── Reset e base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --accent: #1e293b;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #22c55e;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--primary:hover { background: var(--primary-hover); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover { background: var(--border); }

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 10px;
}

.btn--nav {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.btn--nav:hover { background: var(--primary-hover); }

/* ── Seções ── */
.section__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section__title {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section__subtitle {
  font-size: 18px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.nav--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo-img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav__link {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav__link:hover { color: var(--text); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__login {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.nav__login:hover { color: var(--text); }

.nav__lang {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}

.nav__lang:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  padding-top: 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.hero__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: #e0f2fe;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__note {
  font-size: 13px;
  color: var(--muted);
}

.hero__screenshot {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
}

/* ── Problema ── */
.problema {
  background: var(--accent);
}

.problema .section__title { color: white; }

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

.problema__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.problema__icon { font-size: 24px; flex-shrink: 0; }

.problema__item p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

/* ── Solução ── */
.solucao { background: white; }

.solucao__steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.solucao__step {
  flex: 1;
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.solucao__number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.solucao__step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}

.solucao__step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.solucao__arrow {
  font-size: 24px;
  color: var(--border);
  padding-top: 48px;
  flex-shrink: 0;
}

/* ── Funcionalidades ── */
.funcionalidades { background: var(--background); }

.funcionalidades__grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.funcionalidade__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.funcionalidade__card--reverse {
  direction: rtl;
}

.funcionalidade__card--reverse > * {
  direction: ltr;
}

.funcionalidade__img {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  width: 100%;
}

.funcionalidade__tag {
  display: inline-block;
  background: #e0f2fe;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.funcionalidade__content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.funcionalidade__content p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Demo ── */
.demo { background: white; }

.demo__placeholder {
  background: var(--accent);
  border-radius: 16px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.demo__icon {
  font-size: 64px;
  opacity: 0.5;
}

.demo__placeholder p {
  color: rgba(255,255,255,0.6);
  font-size: 18px;
}

/* ── Segmentos ── */
.segmentos { background: var(--background); }

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

.segmento__item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.2s;
}

.segmento__item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.segmento__icon { font-size: 32px; margin-bottom: 12px; }

.segmento__item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.segmento__item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Módulos ── */
.modulos { background: white; }

.modulos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.modulo__card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s;
}

.modulo__card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.modulo__icon { font-size: 28px; }

.modulo__card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.modulo__card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.modulo__preco {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.modulo__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.modulo__badge--included {
  background: #dcfce7;
  color: #166534;
}

/* ── Simulador ── */
.precos { background: var(--background); }

.simulador {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.simulador__modulos h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.sim-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.sim-item:hover { border-color: var(--primary); }
.sim-item--base { background: #f8fafc; cursor: default; }
.sim-item--selected { border-color: var(--primary); background: #f0f9ff; }

.sim-item__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-item__header input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sim-item__header span:nth-child(2) {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.sim-item__preco {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.sim-usuarios {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.sim-usuario {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  background: white;
  transition: all 0.2s;
}

.sim-usuario input { display: none; }
.sim-usuario--active,
.sim-usuario:has(input:checked) {
  border-color: var(--primary);
  background: #f0f9ff;
}

.sim-personalizado {
  font-size: 13px;
  color: var(--primary);
  display: block;
  margin-top: 8px;
}

.simulador__resultado {
  position: sticky;
  top: 100px;
}

.simulador__total {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.simulador__total-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.simulador__total-valor {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.simulador__trial {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ── FAQ ── */
.faq { background: white; }

.faq__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq__question::after {
  content: "+";
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
}

.faq__item--open .faq__question::after { content: "−"; }

.faq__question:hover { background: #f8fafc; }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item--open .faq__answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

/* ── CTA Final ── */
.cta-final {
  background: var(--accent);
  text-align: center;
}

.cta-final .section__container {
  padding: 80px 24px;
}

.cta-final h2 {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-final p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

/* ── Footer ── */
.footer-landing {
  background: #0f172a;
  color: rgba(255,255,255,0.6);
}

.footer-landing__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.footer-landing__logo {
  height: 28px;
  width: auto;
  margin: 0 auto 8px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-landing__brand p {
  font-size: 13px;
}

.footer-landing__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
  font-size: 13px;
}

.footer-landing__links a:hover { color: white; }

.footer-landing__copy {
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  width: 100%;
  text-align: center;
}

/* ── Responsividade ── */
@media (max-width: 1024px) {
  .modulos__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 16px;
  }

  .nav__links--open { display: flex; }
  .nav__hamburger { display: flex; }
  .nav__actions .btn--nav { display: none; }

  .hero__container { grid-template-columns: 1fr; gap: 32px; }
  .hero__title { font-size: 32px; }
  .hero__image { order: -1; }

  .problema__grid { grid-template-columns: 1fr; }
  .solucao__steps { flex-direction: column; }
  .solucao__arrow { display: none; }
  .funcionalidade__card { grid-template-columns: 1fr; }
  .funcionalidade__card--reverse { direction: ltr; }
  .segmentos__grid { grid-template-columns: 1fr; }
  .modulos__grid { grid-template-columns: 1fr; }
  .simulador { grid-template-columns: 1fr; }
  .simulador__resultado { position: static; }
  .section__title { font-size: 28px; }
}

/* ── Banner de Cookies ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: white;
  padding: 16px 24px;
  z-index: 9999;
  display: none;
}

.cookie-banner.cookie-banner--visible {
  display: block;
}

.cookie-banner__content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__content p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  flex: 1;
}

.cookie-banner__content a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.cookie-banner__btn--accept {
  background: var(--primary);
  color: white;
}

.cookie-banner__btn--accept:hover {
  background: var(--primary-hover);
}

.cookie-banner__btn--more {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}

.cookie-banner__btn--more:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }
}