:root {
  --bg: #0b0d12;
  --surface: #151821;
  --surface-2: #1b1f2b;
  --border: #262b38;
  --bg-tint: #10131c;
  --ink: #eef1f7;
  --muted: #9aa3b5;
  --muted-soft: #7a8399;
  --accent: #6c5ce7;
  --accent-soft: rgba(108, 92, 231, 0.18);
  --accent-2: #00d4b5;
  --danger: #ff6b6b;
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-input: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.55);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif,
    system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header nav {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}
.nav-logo span { font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 767px) {
  .nav-links a.nav-only-desktop { display: none; }
}

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-pill.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-pill.primary:hover { background: #7d6ff2; transform: translateY(-1px); }
.btn-pill.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-pill.secondary:hover { background: var(--surface-2); }
.btn-pill.small { padding: 9px 20px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 148px 20px 96px;
  text-align: center;
}
.hero-blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-blobs .b1 {
  top: -160px; left: -128px; width: 448px; height: 448px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.35), rgba(0, 212, 181, 0.15));
}
.hero-blobs .b2 {
  top: 80px; right: -128px; width: 512px; height: 512px;
  background: linear-gradient(135deg, rgba(0, 212, 181, 0.2), rgba(108, 92, 231, 0.3));
}
.hero-inner { max-width: 960px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}
.pulse-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.75;
  animation: pulse-ring 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(2.4); opacity: 0; }
}
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
@media (min-width: 640px) { .hero h1 { font-size: 60px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 72px; } }
.gradient-word {
  background: linear-gradient(90deg, #f58529, #dd2a7b, #515bd4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; } }
.trust-row {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted-soft);
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Section shell ---------- */
.section { padding: 80px 20px; }
.section.tint { background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1152px; margin: 0 auto; }
.section-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.section-heading {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  max-width: 640px;
  color: var(--ink);
}
@media (min-width: 640px) { .section-heading { font-size: 36px; } }

/* ---------- Recursos / feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
}
.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  margin-bottom: 16px;
}
.icon-tile.t1 { background: linear-gradient(135deg, #f87171, #ec4899); }
.icon-tile.t2 { background: linear-gradient(135deg, #d946ef, #a855f7); }
.icon-tile.t3 { background: linear-gradient(135deg, #a855f7, #6366f1); }
.icon-tile.t4 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.feature-card h3 { font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- Como funciona / steps ---------- */
.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
}
@media (min-width: 768px) {
  .steps-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.step { position: relative; }
.step-num {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-num .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 16px; margin: 0 0 6px; color: var(--ink); }
.step p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.step-line {
  display: none;
}
@media (min-width: 768px) {
  .step-line {
    display: block;
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 1px;
    background: var(--border);
  }
  .step:last-child .step-line { display: none; }
}

/* ---------- Planos ---------- */
.email-card {
  max-width: 560px;
  margin: 0 auto 48px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.email-card label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.email-card label .hint { color: var(--muted-soft); font-weight: 400; }
.email-row { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) { .email-row { flex-direction: row; } }
.email-card input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--bg-tint);
  font-size: 14px;
  color: var(--ink);
}
.email-card input[type="email"]::placeholder { color: var(--muted-soft); }
.email-card input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.email-card .email-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted-soft);
  line-height: 1.6;
}
.email-card .email-hint a { color: var(--accent-2); font-weight: 500; }

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card .plan-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(0, 212, 181, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  width: fit-content;
}
.plan-card h2 { font-size: 16px; margin: 0 0 16px; font-weight: 500; color: var(--muted); }
.plan-card .price { font-size: 34px; font-weight: 600; margin-bottom: 20px; color: var(--ink); }
.plan-card .price .currency { font-size: 16px; font-weight: 500; vertical-align: top; margin-right: 2px; }
.plan-card ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan-card li { font-size: 14px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 8px; }
.plan-card button { width: 100%; }
.plan-card.featured {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
  animation: featuredGlow 3s ease-in-out infinite;
}
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(0, 212, 181, 0.2); }
  50% { box-shadow: 0 0 0 1px var(--accent-2), 0 0 36px rgba(0, 212, 181, 0.4); }
}
.plan-card.featured h2 { color: var(--muted); }
.plan-card.featured li { color: var(--muted); }
.plan-card.featured .plan-badge { background: rgba(0, 212, 181, 0.18); color: var(--accent-2); }
.plan-card.featured button { background: var(--accent-2); color: #06231f; }
.plan-ribbon {
  position: absolute;
  top: -14px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.error-banner {
  display: none;
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 14px;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq-item[open] .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p { margin: 0 0 20px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 20px; border-top: 1px solid var(--border); }
.site-footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .site-footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.footer-brand img { width: 28px; height: 28px; border-radius: 999px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  max-width: 1152px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-soft);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .pulse-dot::before { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .plan-card:hover { transform: none; }
  .plan-card.featured { animation: none; }
  .btn-pill.primary:hover { transform: none; }
}
