:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #0f172a;
  --muted: #5b6478;
  --line: #e4e7ef;
  --primary: #4f46e5;
  --primary-2: #06b6d4;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --grad: linear-gradient(120deg, var(--primary), var(--primary-2));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #111831;
    --text: #e8ecf6;
    --muted: #9aa4bd;
    --line: #232c48;
    --card: #141c36;
    --primary: #818cf8;
    --primary-2: #22d3ee;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px var(--primary); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: #312e81; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: .35em .9em; border-radius: 999px; margin-bottom: 1rem;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -14px rgba(0,0,0,.3); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand small { color: var(--muted); font-weight: 600; font-size: .8em; }
.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a:not(.btn) { color: var(--muted); font-weight: 600; font-size: .95rem; }
.menu a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 100px; }
.hero-bg {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 40% at 80% 20%, color-mix(in srgb, var(--primary-2) 28%, transparent), transparent 70%),
    radial-gradient(45% 45% at 15% 10%, color-mix(in srgb, var(--primary) 25%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 600; font-size: .9rem; }
.hero-badges li::before { content: "✓"; color: var(--primary); margin-right: .4em; font-weight: 800; }

.hero-visual { position: relative; }
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar i:nth-child(1) { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 10px; }
.mock-body { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--bg-alt); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { color: var(--muted); }
.meter { grid-column: 1 / -1; height: 10px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--w); background: var(--grad); border-radius: inherit; }
.rows { grid-column: 1 / -1; display: grid; gap: 10px; font-size: .9rem; }
.rows div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.rows small { margin-left: auto; color: #10b981; font-weight: 700; }
.ok { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.float-card {
  position: absolute; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .9rem; animation: float 5s ease-in-out infinite;
}
.fc-1 { top: -18px; right: -12px; }
.fc-2 { bottom: -20px; left: -20px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Números */
.stats-strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; text-align: center; }
.stats b { display: block; font-size: 1.8rem; font-weight: 800; }
.stats span { color: var(--muted); font-size: .92rem; }

/* Seções */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2, .split h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px; padding: 32px;
}
.plan h3 { font-size: 1.5rem; margin-bottom: .3em; }
.plan-desc { color: var(--muted); min-height: 3.2em; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: .75rem; font-weight: 800; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent);
}
.plan-featured { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); transform: scale(1.03); }
.tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; padding: .35em 1em; border-radius: 999px; white-space: nowrap; }
.plans-note { text-align: center; color: var(--muted); margin-top: 40px; }

/* Diferenciais */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.6em; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.features li { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.features b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.features span { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* CTA */
.cta { padding: 0 0 96px; }
.section-alt + .cta { padding-top: 96px; background: var(--bg-alt); }
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(120deg, #4338ca, #0891b2); color: #fff; border-radius: 28px; padding: 56px;
  box-shadow: 0 30px 60px -30px rgba(67, 56, 202, .6);
}
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cta-box p { margin: 0; opacity: .9; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--muted); margin-top: 12px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-grid nav a, .footer-grid div > a:not(.brand) { display: block; color: var(--text); margin-bottom: 8px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; color: var(--muted); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* Animação */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

/* Responsivo */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .cards, .plans { grid-template-columns: 1fr 1fr; }
  .plan-featured { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 48px 0 72px; }
  .cards, .plans, .features, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .cta-box { padding: 36px 24px; }
  .fc-1 { right: 0; } .fc-2 { left: 0; }
}
