:root {
  /* Paleta "tinta + azul elétrico": um hue dominante (azul), neutros em slate frio,
     acento azul-céu só em detalhes. */
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --primary-strong: #1d4ed8;
  --primary-soft: #eef4ff;      /* fundo de icon-box, washes */
  --primary-line: #dbe4fb;      /* bordas/linhas na cor da marca, bem claras */
  --accent: #0ea5e9;            /* azul-céu, uso pontual */
  --accent-2: #6366f1;          /* índigo -- só na malha do fundo, dá profundidade */

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --tint: #f1f5f9;

  --text: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --radius: 16px;
  --radius-sm: 11px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-soft: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -14px rgba(15, 23, 42, .20), 0 3px 8px -3px rgba(15, 23, 42, .08);
  --shadow-lift: 0 28px 55px -22px rgba(15, 23, 42, .30), 0 8px 18px -8px rgba(15, 23, 42, .12);
  --shadow-primary: 0 10px 26px -10px rgba(37, 99, 235, .5);

  --max: 1140px;

  /* Grão sutil reaproveitado em várias camadas -- dá "textura" sem peso. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* O menu mobile (nav.main-nav fechado) fica em translateX(100%), fora da direita da
   viewport. Sem isto ele vira área rolável na horizontal -- no celular, ao dar pinch/zoom,
   o menu aparece "ao lado". `clip` não cria contêiner de rolagem, então não quebra o
   header sticky nem o scroll suave. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* Base do fundo: branco no topo caindo pra um slate quase imperceptível embaixo. */
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #f6f8fc 100%);
}

/* --- Fundo trabalhado, em camadas (tudo fixo, atrás do conteúdo) --- */

/* 1) Malha fina de linhas na cor da marca, com máscara radial pra sumir nas bordas.
      É o que dá o "grid" moderno de fundo sem competir com o conteúdo. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% -10%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 80% at 50% -10%, #000 0%, transparent 68%);
}

/* 2) Grão de filme em opacidade mínima -- "personaliza" a superfície toda. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: .035;
}

/* 3) Aurora: duas manchas de cor borradas atrás do topo da página, com deriva lenta.
      Ficam em pseudo-elementos de <main> (fixos), sem precisar de HTML novo. */
main::before, main::after {
  content: ""; position: fixed; z-index: -4; pointer-events: none;
  border-radius: 50%; filter: blur(90px);
}
main::before {
  width: 620px; height: 620px; top: -260px; left: 4%;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, .30), transparent 68%);
  animation: aurora-a 22s ease-in-out infinite alternate;
}
main::after {
  width: 540px; height: 540px; top: -220px; right: 3%;
  background: radial-gradient(circle at 60% 40%, rgba(99, 102, 241, .24), rgba(14, 165, 233, .15) 55%, transparent 72%);
  animation: aurora-b 26s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
@keyframes aurora-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-70px, 30px, 0) scale(.92); }
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.035em; margin: 0 0 .5em; line-height: 1.08; color: var(--text); }
h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
p { color: var(--text-secondary); margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--text-secondary); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700;
  color: var(--primary); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--primary); }
.text-gradient { background: linear-gradient(100deg, var(--primary), var(--accent) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; color: var(--text); }
.brand .mark { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 13px; box-shadow: var(--shadow-primary); }
.brand .mark svg { width: 100%; height: 100%; }
nav.main-nav { display: flex; align-items: center; gap: 2px; }
nav.main-nav a { text-decoration: none; color: var(--text-secondary); font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 8px; transition: background .15s ease, color .15s ease; }
nav.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Buttons -- chapados, com um brilho interno de 1px pra dar profundidade sutil. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: .93rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.btn-primary {
  background: linear-gradient(180deg, #3b82f6, var(--primary) 45%, var(--primary-strong));
  color: #fff;
  box-shadow: var(--shadow-primary), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(37, 99, 235, .55), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 108px 0 96px; overflow: clip; position: relative; }
/* Anel de órbita gigante, inclinado como o do logo -- assinatura visual da marca no fundo. */
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 1100px; height: 1100px; right: -420px; top: -360px;
  border: 1px solid rgba(37, 99, 235, .14); border-radius: 50%;
  transform: rotate(-24deg) scaleY(.42);
  box-shadow: 0 0 0 44px rgba(37, 99, 235, .05), 0 0 0 130px rgba(37, 99, 235, .03);
  animation: orbit-spin 90s linear infinite;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; position: relative; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 30px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(4px); border: 1px solid var(--border); padding: 7px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-secondary); box-shadow: var(--shadow-xs); }
.badge svg { width: 14px; height: 14px; color: var(--primary); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-shot-wrap { position: relative; padding: 24px; }
.hero-shot-glow {
  position: absolute; inset: 30px; z-index: -1; border-radius: 30px; filter: blur(36px);
  background: linear-gradient(135deg, rgba(37, 99, 235, .38), rgba(14, 165, 233, .26));
  opacity: .6;
}
.hero-shot {
  border-radius: 16px; overflow: hidden; background: var(--surface);
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(37, 99, 235, .04);
}
.browser-bar { background: var(--surface-2); padding: 10px 14px; display: flex; gap: 6px; border-bottom: 1px solid var(--border); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #cbd5e1; }
.browser-bar span:nth-child(1) { background: #f1a8a8; }
.browser-bar span:nth-child(2) { background: #f3d199; }
.browser-bar span:nth-child(3) { background: #a7d7b0; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; z-index: 2;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 13px;
  padding: 10px 14px; box-shadow: var(--shadow); max-width: 210px;
}
.float-chip strong { display: block; font-size: .85rem; color: var(--text); line-height: 1.25; }
.float-chip span { display: block; color: var(--text-secondary); font-size: .74rem; margin: 0; }
.float-chip-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.float-chip-1 { top: 6px; left: -18px; }
.float-chip-1 .float-chip-icon { background: #dcfce7; color: #15803d; }
.float-chip-2 { bottom: 18px; right: -22px; }
.float-chip-2 .float-chip-icon { background: var(--primary-soft); color: var(--primary); }

/* Sections */
section { padding: 82px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow { justify-content: center; }

/* Faixa alternada: slate-100 com uma linha-luz azul no topo e a malha aparecendo por baixo. */
.section-tint { background: var(--tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tint::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .35), transparent);
}

/* Feature grid -- card com linha de acento no topo que acende no hover. */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 27px; box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.icon-box { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08); }
.icon-box svg { width: 22px; height: 22px; }
.icon-box.cyan { background: #e0f2fe; color: #0284c7; box-shadow: inset 0 0 0 1px rgba(2, 132, 199, .1); }
.icon-box.amber { background: #fef3c7; color: #b45309; box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .1); }
.icon-box.green { background: #dcfce7; color: #15803d; box-shadow: inset 0 0 0 1px rgba(21, 128, 61, .1); }

/* Steps -- número com gradiente e um "ring" atrás. */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(140deg, #3b82f6, var(--primary) 55%, var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800;
  margin-bottom: 16px; box-shadow: var(--shadow-primary), 0 0 0 6px rgba(37, 99, 235, .08);
}

/* Showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; margin-bottom: 84px; }
.showcase.reverse { grid-template-columns: 1fr 1fr; }
.showcase.reverse .showcase-copy { order: 2; }
.showcase-shot { border-radius: 16px; overflow: hidden; border: 1px solid rgba(226, 232, 240, .9); box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.showcase-shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--text); font-weight: 600; font-size: .95rem; }
.checklist svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* Pricing */
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.price-card.featured {
  border-color: transparent;
  box-shadow: var(--shadow-lift);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(150deg, var(--primary), var(--accent)) border-box;
}
.price-card.featured::before { content: "Mais popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(120deg, var(--primary), var(--accent)); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 5px 14px; border-radius: 999px; box-shadow: var(--shadow-primary); }
.price-value { font-size: 2.15rem; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 4px; }
.price-value span { font-size: .95rem; font-weight: 600; color: var(--text-secondary); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.price-card li { padding: 7px 0; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-secondary); }
.price-card li:first-child { border-top: none; }
.price-note { text-align: center; color: var(--text-secondary); font-size: .88rem; margin-top: 28px; }

/* CTA band -- gradiente diagonal + malha própria + realce no topo. */
.cta-band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: 28px; padding: 66px 40px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, #3b82f6);
  box-shadow: 0 30px 60px -24px rgba(30, 58, 138, .6);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 120% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(80% 120% at 50% 0%, #000, transparent 75%);
}
.cta-band::after {
  content: ""; position: absolute; inset: -60% -20% auto -20%; height: 340px;
  background: radial-gradient(45% 90% at 20% 0%, rgba(255, 255, 255, .22), transparent 70%),
              radial-gradient(40% 80% at 92% 20%, rgba(14, 165, 233, .5), transparent 70%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 520px; margin: 0 auto 26px; position: relative; }
.cta-band .hero-actions { position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 24px -8px rgba(2, 6, 23, .35); }
.cta-band .btn-primary:hover { background: #fff; filter: brightness(.97); }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .45); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .14); }

/* Footer */
footer.site-footer { border-top: 1px solid var(--border); padding: 56px 0 30px; margin-top: 40px; position: relative; background: var(--surface-2); }
footer.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .3), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-secondary); margin-bottom: 14px; }
.footer-col a { display: block; text-decoration: none; color: var(--text-secondary); font-size: .92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding-top: 24px; font-size: .85rem; color: var(--text-secondary); }
.footer-credit { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo { height: 30px; width: auto; flex-shrink: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Destaque animado do trial FREE na home (ver assets/js/free-trial-highlight.js). */
.free-trial-badge {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 4px 0 22px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-soft), rgba(14, 165, 233, .08));
  border: 1px solid var(--primary-line);
}
.free-trial-badge.in {
  display: inline-flex;
  animation: free-trial-pop .5s cubic-bezier(.34,1.56,.64,1) forwards,
             free-trial-glow 2.4s ease-in-out .5s infinite;
}
.free-trial-badge .free-trial-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: #16a34a;
  animation: free-trial-blink 1.6s ease-in-out infinite;
}
.free-trial-badge p { margin: 0; font-weight: 700; color: var(--text); font-size: .95rem; }

@keyframes free-trial-pop {
  from { opacity: 0; transform: translateY(8px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes free-trial-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .32); }
  50% { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); }
}
@keyframes free-trial-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes orbit-spin {
  from { transform: rotate(-24deg) scaleY(.42); }
  to { transform: rotate(336deg) scaleY(.42); }
}

@media (prefers-reduced-motion: reduce) {
  .free-trial-badge.in { animation: none; opacity: 1; transform: none; }
  .free-trial-badge .free-trial-dot { animation: none; }
  main::before, main::after { animation: none; }
  .hero::before { animation: none; }
}

/* Page hero (inner pages) */
.page-hero { padding: 84px 0 40px; text-align: center; position: relative; overflow: clip; }
.page-hero .eyebrow { justify-content: center; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 760px; height: 760px; left: 50%; top: -520px; transform: translateX(-50%) scaleY(.5);
  border: 1px solid rgba(37, 99, 235, .12); border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(37, 99, 235, .04);
}
.page-hero .lead { max-width: 620px; margin: 0 auto; }

@media (max-width: 900px) {
  .float-chip { display: none; }
  .hero-shot-wrap { padding: 8px; }
  .hero::before { right: -60%; }
  .hero-grid, .showcase, .showcase.reverse { grid-template-columns: 1fr; }
  .showcase.reverse .showcase-copy { order: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav { position: fixed; inset: 60px 0 0 0; background: var(--bg); flex-direction: column; padding: 30px 24px; gap: 20px; transform: translateX(100%); transition: transform .25s ease, visibility .25s; visibility: hidden; }
  nav.main-nav.open { transform: translateX(0); visibility: visible; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
}
