/* ════════════════════════════════════════════════
   TOKENS
════════════════════════════════════════════════ */
:root {
  --primary:      #4B55DC;
  --primary-dark: #3847C8;
  --primary-glow: rgba(75,85,220,0.22);
  --accent:       #6C9FFF;
  --teal:         #0EA5A5;

  --dark:   #07101D;
  --dark2:  #0C1A2E;
  --text:   #0E1C30;
  --body:   #4A5C74;
  --muted:  #8394AA;
  --border: #E2EAF4;

  --bg-white: #FFFFFF;
  --bg-light: #F4F7FC;

  --shadow-xs: 0 1px 4px rgba(10,20,40,0.06);
  --shadow-sm: 0 2px 12px rgba(10,20,40,0.08);
  --shadow-md: 0 8px 28px rgba(10,20,40,0.11);
  --shadow-lg: 0 20px 52px rgba(10,20,40,0.13);

  --r-xl: 28px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --container: 1160px;
}

/* ════════════════════════════════════════════════
   RESET
════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
img  { max-width: 100%; display: block; }
ul   { list-style: none; }
button, a { -webkit-tap-highlight-color: transparent; }

/* ════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════ */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}
.section       { padding: 88px 0; }
.section-white { background: var(--bg-white); }
.section-light { background: var(--bg-light); }

/* ════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7,16,29,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand img    { width: 38px; height: 38px; }
.brand strong { display: block; font-size: 0.95rem; letter-spacing: 0.04em; }
.brand span   { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.50); margin-top: 1px; }

.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  font-size: 0.90rem;
  font-weight: 500;
  transition: color 0.15s;
}
.desktop-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu.show { display: flex; }
.mobile-menu a {
  padding: 10px 12px;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.93rem;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.07); }

/* ════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.91rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 14px 36px var(--primary-glow); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-nav {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-white {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.42);
}

/* ════════════════════════════════════════════════
   TAGS
════════════════════════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.tag-light {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.78);
}
.tag-primary {
  background: rgba(75,85,220,0.09);
  border: 1px solid rgba(75,85,220,0.18);
  color: var(--primary);
}

/* ════════════════════════════════════════════════
   SECTION HEADINGS
════════════════════════════════════════════════ */
.section-heading {
  max-width: 680px;
  margin-bottom: 40px;   /* espaço padrão para headings não centrados */
}
.section-heading.center {
  margin: 0 auto 56px;   /* especificidade maior → sempre vence o base */
  text-align: center;
}
.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 2.5vw, 2.55rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}
.section-heading p {
  margin-top: 12px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.72;
}

/* ════════════════════════════════════════════════
   CARD ICONS
════════════════════════════════════════════════ */
.card-icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.icon-indigo { background: #EEF0FB; color: var(--primary); }
.icon-blue   { background: #EFF6FF; color: #2563EB; }
.icon-teal   { background: #E6F9F9; color: var(--teal); }

/* ════════════════════════════════════════════════
   HERO — centrado + screenshot do sistema
════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(165deg, #07101D 0%, #0D1E38 55%, #0C1829 100%);
  padding: 80px 0 0;
  color: #fff;
  overflow: hidden;
}

/* centro */
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.2rem, 3.8vw, 4rem);
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.hero-desc {
  margin-top: 20px;
  color: rgba(255,255,255,0.58);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

/* pills de prova */
.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}
/* <br> dentro de flex container vira flex item invisível → esconde */
.hero-pills br { display: none; }
.hero-pills span {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.60);
}

/* ── Screenshot em moldura de browser ── */
.hero-screen-wrap {
  margin-top: 52px;
}

.browser-frame {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  border-bottom: none;
  box-shadow:
    0 -20px 60px rgba(75,85,220,0.14),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #151F33;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.browser-dots span {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}
.browser-url {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.42);
  font-size: 0.76rem;
}

.browser-screen {
  background: #F4F7FC;
  line-height: 0; /* remove gap below img */
}
.browser-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ════════════════════════════════════════════════
   PAIN / DOR
════════════════════════════════════════════════ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pain-card {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.pain-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 1.02rem;
  color: var(--text);
}
.pain-card p {
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.68;
}

/* ════════════════════════════════════════════════
   FUNCIONALIDADES — alternado screenshot ↔ texto
════════════════════════════════════════════════ */
.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
/* Primeiro feat-row logo após o heading: remove padding top redundante.
   Usa adjacent sibling (+ ) porque :first-of-type age sobre tipo de
   elemento (div), não sobre classe — e a primeira div do container é
   o section-heading, não o feat-row. */
.section-heading + .feat-row,
.section-heading.center + .feat-row { padding-top: 0; }
/* Último filho do container: remove borda e padding inferior */
.feat-row:last-child { border-bottom: none; padding-bottom: 0; }

/* reversed: texto à esquerda, screenshot à direita */
.feat-row-rev .feat-screen { order: 2; }
.feat-row-rev .feat-text   { order: 1; }

/* screenshot */
.feat-screen {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.feat-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* texto */
.feat-text { display: flex; flex-direction: column; }
.feat-text h3 {
  margin: 16px 0 12px;
  font-size: 1.55rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text);
}
.feat-text > p {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 22px;
}
.check-list {
  display: grid;
  gap: 8px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.90rem;
  color: var(--body);
}
.check-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════
   MÓDULOS
════════════════════════════════════════════════ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.module-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s, transform 0.2s;
}
.module-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.module-card h3 { font-size: 0.97rem; color: var(--text); margin-bottom: 5px; }
.module-card p  { font-size: 0.86rem; color: var(--body); line-height: 1.6; }

/* ════════════════════════════════════════════════
   STEPS
════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.step-num {
  /* display: block + width: fit-content garante que margin-bottom
     empurre elementos de bloco abaixo corretamente */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #E0E4FF, #CDD3FF);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.02rem; color: var(--text); margin-bottom: 10px; }
.step-card p  { font-size: 0.92rem; color: var(--body); line-height: 1.68; }

/* ════════════════════════════════════════════════
   DESTAQUES (highlights)
════════════════════════════════════════════════ */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #3342C0, #4870E8);
  box-shadow: 0 16px 48px rgba(51,66,192,0.28);
}
.hl-item {
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,0.10);
}
.hl-item:last-child { border-right: none; }
.hl-item strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
}
.hl-item span {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.66);
  line-height: 1.5;
}

/* ════════════════════════════════════════════════
   FAQ
════════════════════════════════════════════════ */
.faq-list {
  display: grid;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.22s ease;
}
details[open] > summary .faq-chevron { transform: rotate(180deg); }
.faq-body { border-top: 1px solid var(--border); }
.faq-body p {
  padding: 16px 20px 18px;
  font-size: 0.93rem;
  color: var(--body);
  line-height: 1.72;
}

/* ════════════════════════════════════════════════
   CTA
════════════════════════════════════════════════ */
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 52px 56px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-content { flex: 1; min-width: 0; }
.cta-card h2 {
  margin-top: 14px;
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.cta-card p {
  margin-top: 10px;
  color: rgba(255,255,255,0.54);
  font-size: 1rem;
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.site-footer { padding: 36px 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 32px;
  padding: 32px 36px;
  border-radius: var(--r-xl);
  background: var(--dark2);
  color: #fff;
}
.footer-brand { margin-bottom: 12px; }
.site-footer p  { font-size: 0.88rem; color: rgba(255,255,255,0.44); line-height: 1.65; }
.site-footer h4 { font-size: 0.86rem; font-weight: 700; color: rgba(255,255,255,0.82); margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 7px; }
.site-footer li { font-size: 0.86rem; color: rgba(255,255,255,0.44); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  font-size: 0.83rem;
  color: #4E6070;
}

/* ════════════════════════════════════════════════
   REVEAL
════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }

/* ════════════════════════════════════════════════
   TABLET  ≤ 1040px
════════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .feat-row,
  .feat-row-rev {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }
  .feat-row:last-child { padding-bottom: 0; }
  .section-heading + .feat-row,
  .section-heading.center + .feat-row { padding-top: 0; }
  .feat-row-rev .feat-screen,
  .feat-row-rev .feat-text { order: unset; }
  .feat-row-rev .feat-screen { order: -1; } /* screenshot sempre primeiro em tablet */

  .steps-grid   { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid    { grid-template-columns: repeat(3, 1fr); }

  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .hl-item         { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); }
  .hl-item:nth-child(2n) { border-right: none; }
  .hl-item:last-child    { border-bottom: none; }

  .cta-card     { flex-direction: column; align-items: flex-start; padding: 40px; }
  .cta-actions  { flex-direction: row; }

  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .desktop-nav  { display: none; }
  .menu-toggle  { display: flex; }
  .header-actions .btn-nav { display: none; }
}

/* ════════════════════════════════════════════════
   MOBILE  ≤ 680px
════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section   { padding: 64px 0; }

  .hero      { padding-top: 52px; }
  .hero h1   { font-size: 2.1rem; }
  .hero-pills { gap: 6px; }

  .feat-row, .feat-row-rev { padding: 40px 0; gap: 26px; }
  .feat-text h3 { font-size: 1.3rem; }

  .steps-grid,
  .modules-grid,
  .pain-grid,
  .highlights-grid,
  .footer-grid   { grid-template-columns: 1fr; }

  .highlights-grid .hl-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); }
  .highlights-grid .hl-item:last-child { border-bottom: none; }

  .cta-card    { padding: 28px 24px; }
  .cta-actions { flex-direction: column; width: 100%; }

  .footer-grid { padding: 24px; }
  .footer-bottom { flex-direction: column; gap: 4px; }

  .brand span { display: none; }
}
