:root {
  --bg: #0b0f17;
  --bg-elev: #111826;
  --bg-soft: #0e1422;
  --text: #e6edf7;
  --text-muted: #9aa7bd;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --primary: #00e0ff;
  --primary-2: #7c5cff;
  --primary-contrast: #06121b;
  --success: #22c55e;
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 224, 255, 0.18), rgba(124, 92, 255, 0.18));
}

html[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-elev: #ffffff;
  --bg-soft: #eef2f9;
  --text: #0c1423;
  --text-muted: #566176;
  --border: rgba(12, 20, 35, 0.08);
  --border-strong: rgba(12, 20, 35, 0.16);
  --primary: #0a84ff;
  --primary-2: #6c3bff;
  --primary-contrast: #ffffff;
  --shadow-lg: 0 30px 60px -28px rgba(12, 20, 35, 0.25);
  --grad-soft: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(108, 59, 255, 0.12));
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Fundo decorativo */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 80%);
  opacity: 0.55;
  pointer-events: none;
}
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}
html[data-theme="light"] .blob { opacity: 0.28; }
.blob-1 { background: var(--primary);    top: -120px; left: -80px; }
.blob-2 { background: var(--primary-2); top: 20%; right: -160px; animation-delay: -6s; }
.blob-3 { background: #ff5edb;           bottom: -200px; left: 25%; opacity: 0.22; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -30px) scale(1.08); }
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__name { font-size: 1.1rem; }
.brand__name span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.nav__links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--primary {
  background: var(--grad);
  color: var(--primary-contrast);
  box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--primary) 65%, transparent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px color-mix(in oklab, var(--primary) 70%, transparent); }
.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--text-muted); }

/* Toggle de tema */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover { transform: rotate(15deg); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  color: var(--text);
}
.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 25%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.7; }
}
.hero__title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 20px 0 18px;
  font-weight: 700;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 0 28px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__stats {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 520px;
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.hero__stats strong {
  font-size: 1.3rem;
  font-family: "Space Grotesk", sans-serif;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats span { color: var(--text-muted); font-size: 0.82rem; }

/* Mock card do hero */
.hero__visual { display: flex; justify-content: center; }
.mock-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
  transition: transform 0.4s ease;
}
.mock-card:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.mock-card__title {
  margin-left: 8px;
  font-family: "Space Grotesk", monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mock-card__body { padding: 22px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.flow-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  animation: slideIn 0.6s ease both;
}
.flow-node.node-1 { animation-delay: 0.1s; }
.flow-node.node-2 { animation-delay: 0.4s; }
.flow-node.node-3 { animation-delay: 0.7s; }
.flow-node strong { display: block; font-size: 0.95rem; }
.flow-node small { color: var(--text-muted); font-size: 0.8rem; }
.flow-ico {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  font-size: 1.1rem;
}
.flow-line {
  width: 2px;
  height: 22px;
  margin-left: 35px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: 2px;
  opacity: 0.6;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Seções genéricas */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section__head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 12px 0 14px;
  letter-spacing: -0.01em;
}
.section__head p { color: var(--text-muted); margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Benefícios */
.benefits {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.benefits h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin: 12px 0 14px;
  letter-spacing: -0.01em;
}
.muted { color: var(--text-muted); }
.benefits__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.benefits__list li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.benefits__list strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.benefits__list p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.check {
  width: 30px; height: 30px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad);
  color: var(--primary-contrast);
  border-radius: 50%;
  font-weight: 700;
}

/* CTA */
.cta {
  padding: 56px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, color-mix(in oklab, var(--primary) 22%, transparent), transparent 55%),
    radial-gradient(circle at 80% 80%, color-mix(in oklab, var(--primary-2) 22%, transparent), transparent 55%),
    var(--bg-elev);
  border: 1px solid var(--border-strong);
  text-align: center;
}
.cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  margin: 10px auto 14px;
  max-width: 720px;
  letter-spacing: -0.01em;
}
.cta p { color: var(--text-muted); max-width: 640px; margin: 0 auto 28px; }
.cta__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta__hint { font-size: 0.85rem; color: var(--success); min-height: 20px; margin-top: 14px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  margin-top: 20px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}
.footer__brand p { color: var(--text-muted); margin: 10px 0 0; font-size: 0.9rem; }
.footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-self: end;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer__links a:hover { color: var(--text); }
.footer__copy {
  grid-column: 1 / -1;
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Animações de reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 960px) {
  .hero { padding: 50px 0 30px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .mock-card { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; gap: 30px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__links { justify-self: center; justify-content: center; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero__stats li { padding: 12px; }
  .hero__stats strong { font-size: 1.05rem; }
  .cta { padding: 36px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
