/* ============================================================================
   css/landing.css
   ============================================================================ */

/* O blur fica num ::before (não no .nav em si) porque backdrop-filter/filter
   num ancestral vira o container de posicionamento dos filhos "fixed" — e o
   menu mobile (.nav__links, fixed) ficava preso dentro dessa barra em vez de
   ocupar a tela inteira, parecendo transparente/cortado ao abrir. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--transition);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav.is-scrolled::before { background: rgba(9, 9, 11, 0.85); }

.nav__inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 17px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14px; color: var(--muted); transition: color var(--transition); }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle { display: none; }

/* ---------------------------- HERO ---------------------------- */

.hero {
  padding: 168px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -260px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.10), transparent 50%);
  pointer-events: none;
}
.hero__inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 13px; color: var(--muted);
  margin-bottom: 26px;
  background: var(--card);
  animation: fade-up 0.6s ease both;
}
.hero__badge span.dot { width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); color: #c4b5fd; display: flex; align-items: center; justify-content: center; font-size: 11px; }

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  animation: fade-up 0.6s ease 0.05s both;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #c4b5fd, var(--primary) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__desc {
  font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 36px;
  animation: fade-up 0.6s ease 0.1s both;
}

.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fade-up 0.6s ease 0.15s both; }
.hero__actions .btn { padding: 13px 26px; font-size: 15px; }

.hero__note { margin-top: 18px; font-size: 13px; color: var(--muted-2); animation: fade-up 0.6s ease 0.2s both; }

@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------- DEMO / PREVIEW MOCK ---------------------------- */

.demo {
  max-width: 980px; margin: 64px auto 0;
  position: relative; z-index: 1;
  animation: fade-up 0.7s ease 0.25s both;
}
.demo__frame {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.demo__bar { display: flex; gap: 6px; padding: 6px 8px 14px; }
.demo__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.demo__body {
  background: var(--bg-elevated);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 46px 24px;
  display: flex; justify-content: center;
}

.mock-profile { width: 100%; max-width: 300px; text-align: center; }
.mock-profile__avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
  box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--border-strong);
}
.mock-profile h3 { font-size: 18px; margin-bottom: 2px; }
.mock-profile__handle { color: var(--muted-2); font-size: 13px; margin-bottom: 6px; }
.mock-profile__bio { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.mock-profile__links { display: flex; flex-direction: column; gap: 10px; }
.mock-profile__links a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: var(--radius-md);
  background: var(--card); border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600;
  transition: transform var(--transition), border-color var(--transition);
}
.mock-profile__links a:hover { transform: translateY(-2px); border-color: var(--primary); }
.mock-profile__links a svg { width: 15px; height: 15px; }
.mock-profile__socials { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.mock-profile__socials span {
  width: 34px; height: 34px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center;
}
.mock-profile__socials svg { width: 15px; height: 15px; color: var(--muted); }

/* ---------------------------- LOGOS / SOCIAL PROOF ---------------------------- */

.proof { padding: 56px 24px; text-align: center; }
.proof p { font-size: 13px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 26px; }
.proof__row { display: flex; justify-content: center; align-items: center; gap: 46px; flex-wrap: wrap; opacity: 0.5; }
.proof__row svg { width: 15px; height: 15px; color: var(--muted); }
.proof__row span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }

/* ---------------------------- SECTION HEADER ---------------------------- */

.section { padding: 108px 24px; }
.section--tight { padding-top: 70px; padding-bottom: 70px; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-hover); margin-bottom: 14px; display: block;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------------------------- FEATURES GRID ---------------------------- */

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.feature-card__icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card__icon svg { width: 20px; height: 20px; color: #a78bfa; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------------------------- HOW IT WORKS ---------------------------- */

.steps { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { text-align: center; padding: 0 8px; position: relative; }
.step__num {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--primary-hover);
  background: var(--card);
}
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* ---------------------------- EXEMPLOS ---------------------------- */

.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.example-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 24px; text-align: center; transition: transform var(--transition), border-color var(--transition);
}
.example-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.example-card__avatar {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff;
}
.example-card h4 { font-size: 15px; margin-bottom: 2px; }
.example-card__role { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.example-card__tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.example-card__tags span { font-size: 11px; padding: 4px 9px; border-radius: var(--radius-full); background: var(--bg-elevated); color: var(--muted); border: 1px solid var(--border); }

/* ---------------------------- PLANOS ---------------------------- */

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1020px; margin: 0 auto; align-items: stretch; }
.plan-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column;
}
.plan-card--featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); position: relative; }
.plan-card--featured::before {
  content: "Mais popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-full);
}
.plan-card h3 { font-size: 17px; margin-bottom: 6px; }
.plan-card__price { font-family: var(--font-display); font-size: 34px; font-weight: 800; margin: 10px 0 4px; }
.plan-card__price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-card__desc { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.plan-card ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.plan-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--muted); }
.plan-card li svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ---------------------------- FAQ ---------------------------- */

.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4px; text-align: left; font-weight: 600; font-size: 15px;
}
.faq-item__q svg { width: 18px; height: 18px; color: var(--muted); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.is-open .faq-item__q svg { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0; overflow: hidden; transition: max-height var(--transition);
  color: var(--muted); font-size: 14px; padding: 0 4px;
}
.faq-item.is-open .faq-item__a { padding-bottom: 20px; }

/* ---------------------------- CTA FINAL ---------------------------- */

.cta-final {
  max-width: 860px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, var(--card), var(--bg-elevated));
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 72px 32px;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.22), transparent 60%);
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.cta-final p { color: var(--muted); margin-bottom: 30px; }

/* ---------------------------- FOOTER ---------------------------- */

.footer { border-top: 1px solid var(--border); padding: 56px 24px 30px; }
.footer__inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer__brand p { color: var(--muted-2); font-size: 13px; margin-top: 10px; max-width: 240px; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h5 { font-size: 13px; margin-bottom: 14px; color: var(--muted); }
.footer__col a { display: block; font-size: 13.5px; color: var(--muted-2); margin-bottom: 10px; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { max-width: 1160px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted-2); }

/* ---------------------------- RESPONSIVO ---------------------------- */

@media (max-width: 860px) {
  .features-grid, .examples-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .plans-grid { grid-template-columns: 1fr; max-width: 380px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--bg); background-color: var(--bg);
    flex-direction: column; padding: 24px; gap: 22px;
    transform: translate3d(100%, 0, 0);
    transition: transform var(--transition);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    z-index: 99;
  }
  .nav__links.is-open { transform: translate3d(0, 0, 0); }
  .nav__links a { font-size: 17px; }
  .nav__toggle { display: block; }
  .nav__actions .btn--secondary { display: none; }
}

@media (max-width: 620px) {
  .features-grid, .examples-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .section { padding: 76px 20px; }
  .demo__body { padding: 30px 14px; }
  .footer__inner { flex-direction: column; }
}
