/* ===================================================================
   Partio Play — tema "Faísca" (dark)
   Violeta-escuro + dourado-amarelo + oliva-caqui
   Fontes: Plus Jakarta Sans (headings) + Inter (corpo)
   Modelo de layout: A — landing premium (hero split, cards de benefício,
   planos em destaque, seções alternadas)
   Mecanismos próprios: card-stack-peek (camada fantasma atrás do card
   principal) + spark-burst-corner (raios decorativos no canto do card)
=================================================================== */

:root {
  --bg: #160B20;
  --bg-2: #1F1230;
  --bg-3: #271A3B;
  --card: #231531;
  --text: #F3EEE7;
  --text-dim: #C7BFD4;
  --text-mute: #9A90AC;
  --line: #352446;
  --dourado: #FFC145;
  --oliva: #A8B562;
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-dim); }

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 76px 0; }
.section-lead { color: var(--text-dim); max-width: 560px; margin-bottom: 36px; }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-primary {
  background: var(--dourado);
  color: #241404;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(255, 193, 69, 0.45); }
.btn-secondary {
  background: color-mix(in srgb, var(--oliva) 16%, transparent);
  color: var(--oliva);
  border-color: color-mix(in srgb, var(--oliva) 40%, transparent);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--dourado); color: var(--dourado); }

/* ---------------- Header ---------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header.site-header {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand img { border-radius: 8px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav ul a { color: var(--text-dim); font-weight: 600; font-size: 0.95rem; }
.main-nav ul a:hover { color: var(--dourado); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

/* ---------------- Hero (Modelo A: split) ---------------- */
.hero {
  padding: 70px 0 50px;
  background:
    radial-gradient(640px 420px at 85% -10%, color-mix(in srgb, var(--dourado) 18%, transparent), transparent 70%),
    var(--bg);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dourado);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.hero .lead { font-size: 1.12rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-ctas .btn-ghost span { display: inline-flex; margin-left: 4px; }

.hero-visual { display: flex; justify-content: center; }
.spark-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
/* card-stack-peek: camada fantasma atrás do card principal */
.spark-card::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: color-mix(in srgb, var(--oliva) 14%, var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: -1;
}
/* spark-burst-corner: raios decorativos no canto superior direito */
.spark-card::after {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 64px;
  height: 64px;
  background:
    linear-gradient(var(--dourado), var(--dourado)) center / 2px 26px no-repeat,
    linear-gradient(var(--dourado), var(--dourado)) center / 26px 2px no-repeat;
  opacity: 0.55;
  transform: rotate(20deg);
}
.spark-icon { color: var(--dourado); display: block; margin-bottom: 14px; }
.spark-label { font-weight: 700; color: var(--text); margin-bottom: 16px; }
.spark-chips { display: flex; flex-direction: column; gap: 10px; }
.spark-chips span {
  background: color-mix(in srgb, var(--oliva) 14%, transparent);
  color: var(--oliva);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------------- Planos ---------------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan-card.featured {
  border-color: var(--dourado);
  box-shadow: 0 20px 45px -20px color-mix(in srgb, var(--dourado) 55%, transparent);
}
.spark-tag {
  align-self: flex-start;
  background: var(--dourado);
  color: #241404;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.plan-price strong { font-size: 2rem; font-family: "Plus Jakarta Sans", sans-serif; color: var(--text); }
.plan-price span { color: var(--text-mute); font-size: 0.9rem; }
.plan-permes { color: var(--oliva); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.plan-note { font-size: 0.88rem; color: var(--text-mute); min-height: 44px; }
.plan-features { list-style: none; margin: 14px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-dim); }
.plan-features li svg { color: var(--oliva); flex-shrink: 0; }
.plan-cta { justify-content: center; width: 100%; }

/* ---------------- Stat band ---------------- */
.stat-band { background: var(--bg-2); padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.9rem; color: var(--dourado); }
.stat span { color: var(--text-mute); font-size: 0.88rem; }

/* ---------------- Cards grid (diferenciais) ---------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.card-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--dourado) 14%, transparent);
  color: var(--dourado);
  margin-bottom: 16px;
}
.cards-grid .card:nth-child(even) .card-icon {
  background: color-mix(in srgb, var(--oliva) 14%, transparent);
  color: var(--oliva);
}
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------------- Dispositivos ---------------- */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.device-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 16px;
  color: var(--text-dim);
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.device-tile:hover { border-color: var(--dourado); color: var(--dourado); }
.device-tile svg { color: var(--dourado); }

/* ---------------- Steps ---------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step-num {
  display: inline-block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--dourado);
  margin-bottom: 10px;
}

/* ---------------- Blog preview / index ---------------- */
.post-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
}
.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dourado);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.post-card p { margin-bottom: 0; }
.blog-index { display: flex; }

/* ---------------- FAQ ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform 0.2s ease; color: var(--dourado); flex-shrink: 0; }
.faq-item[open] summary svg { transform: rotate(90deg); }
.faq-item p { margin: 12px 0 0; }

/* ---------------- CTA final ---------------- */
.cta-final { background: var(--bg-2); border-top: 1px solid var(--line); }
.cta-box { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-box .btn-primary { margin-top: 8px; }

/* ---------------- Contato ---------------- */
.contato-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contato .card { text-align: left; }
.contato .card .btn { margin-top: 12px; }

/* ---------------- Página legal / 404 ---------------- */
.legal h2 { margin-top: 1.4em; }
.not-found { text-align: center; }
.page-hero { text-align: left; }
.page-icon-badge {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--dourado) 14%, transparent);
  color: var(--dourado);
  margin-bottom: 18px;
}
.post-content h2 { margin-top: 1.3em; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h3 { font-size: 0.95rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--dourado); }
.footer-brand p { font-size: 0.9rem; margin: 14px 0 16px; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* ===================================================================
   Responsivo
=================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 24px 56px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open {
    display: flex;
    max-height: 420px;
    padding-bottom: 58px;
  }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .plans-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
