:root {
  --bg: #080014;
  --bg-alt: #14002b;
  --surface: rgba(38, 12, 78, 0.68);
  --surface-strong: rgba(58, 16, 115, 0.86);
  --stroke: rgba(168, 85, 247, 0.20);
  --stroke-strong: rgba(192, 132, 252, 0.38);
  --text: #f7f0ff;
  --muted: #d8b4fe;
  --primary: #7c3aed;
  --primary-light: #c084fc;
  --accent: #a855f7;
  --accent-strong: #5b21b6;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(980px 620px at 18% 10%, rgba(124, 58, 237, 0.30), transparent 55%),
    radial-gradient(940px 560px at 82% 16%, rgba(168, 85, 247, 0.20), transparent 56%),
    radial-gradient(980px 560px at 72% 86%, rgba(91, 33, 182, 0.22), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  background-attachment: fixed;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.section {
  padding-block: clamp(42px, 6vw, 72px);
}

.glass {
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--accent-strong), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 0, 20, 0.96), rgba(21, 5, 45, 0.78));
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.93rem;
}

.nav-links a:hover {
  color: #a855f7;
}

.menu-btn {
  display: none;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: white;
  border-radius: 14px;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-strong));
  box-shadow: 0 16px 38px rgba(168, 85, 247, 0.28);
}

.btn-outline {
  border: 1px solid var(--stroke);
  background: rgba(34, 14, 66, 0.52);
}

.btn-block {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  opacity: 0.95;
  background:
    radial-gradient(1180px 560px at 20% 18%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(980px 520px at 82% 24%, rgba(192, 132, 252, 0.16), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 38px;
  align-items: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(34, 14, 66, 0.64);
  color: #eadcff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 650px;
  color: rgba(238, 244, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat,
.card,
.plan,
.article,
.faq-item {
  border-radius: var(--radius);
}

.stat {
  padding: 18px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
}

.hero-preview {
  border-radius: 30px;
  padding: 22px;
}

.hero-preview img {
  width: 100%;
  border-radius: 22px;
  animation: float 3.6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading p,
.page-hero p {
  color: rgba(238, 244, 255, 0.68);
  line-height: 1.7;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}

.plan.highlight {
  border-color: var(--stroke-strong);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.58), 0 0 84px rgba(168, 85, 247, 0.20);
}

.plan-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
}

.plan-head img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.price {
  margin: 22px 0 4px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.price small {
  font-size: 1.1rem;
  vertical-align: top;
}

.features {
  flex: 1;
  padding: 0;
  margin: 18px 0 22px;
  list-style: none;
}

.features li {
  display: flex;
  gap: 9px;
  margin-bottom: 10px;
  color: rgba(238, 244, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.55;
}

.features li::before {
  content: "•";
  color: var(--accent);
  font-weight: 900;
}

.grid-3,
.grid-4,
.articles {
  display: grid;
  gap: 18px;
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.articles {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.article,
.faq-item {
  padding: 24px;
}

.card h3,
.article h3,
.faq-item h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card p,
.article p,
.faq-item p,
.plan p {
  color: rgba(238, 244, 255, 0.68);
  line-height: 1.65;
}

.page-hero {
  padding-block: 54px 28px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(238, 244, 255, 0.56);
  font-size: 0.85rem;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}

.footer a {
  display: block;
  margin: 10px 0;
  color: rgba(238, 244, 255, 0.65);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: 340px;
  border: 1px solid var(--stroke-strong);
  border-radius: 18px;
  background: rgba(8, 0, 20, 0.95);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  color: white;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero-grid,
  .plans,
  .grid-3,
  .grid-4,
  .articles,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    inset: 68px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    background: rgba(8, 0, 20, 0.97);
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 22px, 1160px);
  }

  .hero {
    padding-block: 34px 48px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Correção final: remove qualquer vermelho/amarelo restante e padroniza roxo */
.btn-primary, .btn[type="submit"] {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed 52%, #5b21b6) !important;
  box-shadow: 0 16px 38px rgba(168, 85, 247, 0.30) !important;
}
.btn-primary:hover, .btn[type="submit"]:hover {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6, #6d28d9) !important;
}
.nav-links a:hover, .features li::before, .eyebrow {
  color: #c084fc !important;
}
.badge {
  border-color: rgba(192,132,252,.30) !important;
  background: rgba(52, 20, 94, .62) !important;
  color: #eadcff !important;
}
.hero-preview, .glass, .plan, .card, .article, .faq-item, .stat {
  border-color: rgba(168,85,247,.22) !important;
}
