/* ==========================================================
   1. VARIÁVEIS: cores e fontes (mude aqui para trocar o tema)
   ========================================================== */
:root {
  --bg: #0a0518;
  --bg2: #1a0b3d;
  --p: #9333ea;
  --p2: #7c3aed;
  --pl: #c084fc;
  --lav: #f5f1ff;
  --line: #e4d9fb;
  --ink: #1b1233;
  --mut: #5d5578;
  --serif: 'Playfair Display',Georgia,serif;
  --sans: 'Poppins',system-ui,sans-serif;
}

/* ==========================================================
   2. RESET E BASE
   ========================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

svg {
  width: 1em;
  height: 1em;
}

:focus-visible {
  outline: 2px solid var(--pl);
  outline-offset: 3px;
}

.container {
  width: min(1180px,100% - 40px);
  margin-inline: auto;
}

/* ==========================================================
   3. CABEÇALHO E MENU
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,5,24,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  transition: box-shadow .3s;
}

.header.scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.brand b {
  color: var(--pl);
  font-weight: 600;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(147,51,234,.55);
}

.menu {
  display: flex;
  align-items: center;
  gap: 36px;
  font-weight: 500;
}

.menu a:not(.btn) {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}

.menu a.active,
.menu a:not(.btn):hover {
  border-color: var(--p);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: .25s;
}

.menu-btn[aria-expanded=true] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded=true] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded=true] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================
   4. BOTÕES
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font: 500 .95rem var(--sans);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s,box-shadow .2s,background .2s;
}

.btn-primary {
  background: linear-gradient(135deg,var(--p2),var(--p));
  color: #fff;
  box-shadow: 0 8px 24px rgba(147,51,234,.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(147,51,234,.5);
}

.btn-ghost {
  border-color: var(--p);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(147,51,234,.2);
}

.btn-sm {
  padding: 9px 26px;
}

.btn-block {
  width: 100%;
}

.ar {
  width: 18px;
  height: 18px;
}

/* ==========================================================
   5. ETIQUETAS (as pílulas acima dos títulos)
   ========================================================== */
.pill {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid var(--p);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 18px;
}

.pill-light {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

/* ==========================================================
   6. HERO (primeira seção, com a imagem)
   ========================================================== */
.hero {
  position: relative;
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,560px) 1fr;
  min-height: 560px;
  align-items: center;
  padding-block: 56px;
}

.hero-text {
  position: relative;
  z-index: 1;
}

/* Imagem do notebook/celular: no computador fica à direita, atrás do texto */
.hero-img {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right,transparent,#000 12%);
  mask-image: linear-gradient(to right,transparent,#000 12%);
}

/* Telas de computador menores: imagem proporcional, centralizada na vertical */
@media (min-width: 901px) and (max-width: 1200px) {
  .hero-img {
    top: 50%;
    height: auto;
    width: 62vw;
    transform: translateY(-50%);
  }
}

h1,
h2 {
  font-family: var(--serif);
  line-height: 1.12;
  letter-spacing: -.01em;
}

h1 {
  font-size: clamp(2.4rem,5vw,3.6rem);
  margin-bottom: 18px;
}

h1 em {
  font-style: normal;
  color: var(--pl);
}

.hero-text>p {
  color: #ddd5f3;
  max-width: 480px;
  margin-bottom: 20px;
}

.checks {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checks svg {
  width: 22px;
  height: 22px;
  color: var(--p);
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================
   7. SEÇÕES CLARAS + SERVIÇOS (cards)
   ========================================================== */
.section {
  padding: 72px 0;
}

.light {
  background: linear-gradient(180deg,#fff,var(--lav));
}

.head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.head h2 {
  font-size: clamp(1.8rem,3.5vw,2.4rem);
  margin-bottom: 10px;
}

.head p {
  color: var(--mut);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(160deg,#f7f3ff,#efe8ff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform .25s,box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(124,58,237,.16);
}

.card>svg {
  width: 44px;
  height: 44px;
  color: var(--p2);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card p {
  color: var(--mut);
  font-size: .9rem;
}

/* ==========================================================
   8. COMO FUNCIONA (seção escura, 3 passos)
   ========================================================== */
.dark {
  background: radial-gradient(circle at 85% 20%,#3b1480,transparent 55%),var(--bg);
  color: #fff;
}

.steps-sec {
  padding: 56px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: minmax(0,380px) 1fr;
  gap: 48px;
  align-items: center;
}

.steps-grid h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.steps-grid p {
  color: #ddd5f3;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.steps li:not(.sep) {
  flex: 1;
  max-width: 210px;
}

.steps .sep {
  color: var(--pl);
  font-size: 1.5rem;
  margin-top: 26px;
}

.ico {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--pl);
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.ico svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.ico i {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--p);
  font: 600 .8rem/26px var(--sans);
  text-align: center;
  font-style: normal;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.steps p {
  font-size: .85rem;
  color: #cfc4ec;
}

/* ==========================================================
   9. PLANO (preço e botão)
   ========================================================== */
.plan {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid var(--p);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 0 0 6px rgba(147,51,234,.07),0 20px 50px rgba(124,58,237,.18);
}

.plan h3 {
  font-size: 1.2rem;
  color: var(--p2);
}

.plan .sub {
  color: var(--mut);
  font-size: .9rem;
}

.price {
  font-size: 2rem;
  font-weight: 600;
  margin: 10px 0 14px;
}

.price small {
  font-size: .9rem;
  font-weight: 400;
  color: var(--mut);
}

.plan .checks {
  margin-bottom: 22px;
  font-size: .95rem;
}

/* ==========================================================
   10. RODAPÉ
   ========================================================== */
.footer {
  background: var(--bg);
  color: #fff;
  padding: 36px 0 26px;
  background-image: radial-gradient(circle at 0 100%,#4c1a9e,transparent 40%);
}

.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.brand-col small,
.foot-right small {
  display: block;
  color: #b9acd9;
  font-size: .78rem;
}

.foot-nav {
  display: flex;
  gap: 28px;
  font-size: .9rem;
}

.foot-nav a:hover {
  color: var(--pl);
}

.foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--p);
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--pl);
  transition: background .2s;
}

.social a:hover {
  background: var(--p);
  color: #fff;
}

/* ==========================================================
   11. RESPONSIVO: celular e tablet
   ========================================================== */
@media (max-width:900px) {
  .menu-btn {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    background: var(--bg);
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .menu.open {
    display: flex;
  }
  .hero {
    background-image: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 40px 0;
  }
  .hero-img {
    position: static;
    transform: none;
    height: auto;
    display: block;
    margin: 28px -20px 0;
    width: calc(100% + 40px);
    max-width: none;
    aspect-ratio: 1.4/1;
    object-fit: cover;
    object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(to bottom,transparent,#000 22%);
    mask-image: linear-gradient(to bottom,transparent,#000 22%);
  }
  .hero-grid {
    min-height: 0;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .foot {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .foot-right {
    align-items: center;
  }
  .brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width:640px) {
  .steps {
    flex-direction: column;
    gap: 20px;
  }
  .steps .sep {
    transform: rotate(90deg);
    margin: 0 0 0 24px;
  }
  /* Ícone à esquerda, título e frase ao lado */
  .steps li:not(.sep) {
    max-width: none;
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 16px;
    align-items: center;
  }
  .steps .ico {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }
  .steps li h3 {
    align-self: end;
  }
  .steps li p {
    align-self: start;
  }
  .actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

/* ==========================================================
   12. ANIMAÇÕES das seções claras
   ========================================================== */
.light {
  position: relative;
  overflow: hidden;
}

.light>.container {
  position: relative;
  z-index: 1;
}

.light::before,
.light::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}

.light::before {
  width: 380px;
  height: 380px;
  background: #d8c2ff;
  top: -120px;
  left: -100px;
}

.light::after {
  width: 320px;
  height: 320px;
  background: #e9d5ff;
  bottom: -100px;
  right: -80px;
  animation-duration: 18s;
  animation-delay: -6s;
}

@keyframes drift {
  to {
    transform: translate(90px,60px) scale(1.2);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d,0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .plan.reveal {
  transform: translateY(32px) scale(.94);
}

.js .plan.reveal.in {
  transform: none;
}

.card>svg {
  transition: transform .35s;
}

.card:hover>svg {
  transform: translateY(-4px) rotate(-6deg) scale(1.1);
}

.card.in>svg {
  animation: pop .6s cubic-bezier(.3,1.6,.5,1) both;
  animation-delay: calc(var(--d,0s) + .25s);
}

@keyframes pop {
  from {
    transform: scale(.4);
    opacity: 0;
  }
}

.head .pill {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-4px);
  }
}

.plan {
  position: relative;
  animation: glow 3.2s ease-in-out infinite;
}

@keyframes glow {
  50% {
    box-shadow: 0 0 0 10px rgba(147,51,234,.1),0 24px 60px rgba(124,58,237,.32);
  }
}

.plan .btn {
  position: relative;
  overflow: hidden;
}

.plan .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,transparent 35%,rgba(255,255,255,.45) 50%,transparent 65%);
  transform: translateX(-120%);
  animation: shine 3.4s ease-in-out infinite;
}

@keyframes shine {
  60%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion:reduce) {
  .light::before,
  .light::after,
  .head .pill,
  .plan,
  .plan .btn::after,
  .card.in>svg {
    animation: none!important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}