/* ==========================================================================
   Design tokens — edite cores aqui para rebrand
   ========================================================================== */
:root {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-primary: #7c3aed;
  --color-primary-hover: #8b5cf6;
  --color-accent: #3b82f6;
  --color-success: #10b981;
  --color-text: #f1f5f9;
  --color-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-glass: rgba(18, 18, 26, 0.72);
  --shadow-header: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: "Inter", system-ui, sans-serif;
  --header-h: 80px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(59, 130, 246, 0.12), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.8rem;
  background: var(--color-primary);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 760px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.1rem 0;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid transparent;
  transition: padding 0.25s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.header.is-scrolled {
  padding: 0.65rem 0;
  background: rgba(10, 10, 15, 0.86);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-header);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo__img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.logo__name {
  white-space: nowrap;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-glass);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

/* ==========================================================================
   Buttons + badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), #6366f1);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), #818cf8);
}

.btn--outline {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.03);
}

.btn--lg {
  padding: 0.8rem 1.35rem;
  font-size: 0.98rem;
}

.btn--block {
  width: 100%;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--color-primary-hover);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-gradient {
  background: linear-gradient(90deg, #c4b5fd, var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 500;
}

.badge svg {
  width: 14px;
  height: 14px;
}

.badge--success {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill--up {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
}

.pill svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Hero + mockup
   ========================================================================== */
.hero {
  position: relative;
  padding: 2.5rem 0 4rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: auto -20% 10% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 65%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
}

.hero__lead {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero__badges,
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.hero__note {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.mockup {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-glass);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.78rem;
}

.mockup__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3f3f46;
}

.mockup__bar span:nth-child(1) { background: #f87171; }
.mockup__bar span:nth-child(2) { background: #fbbf24; }
.mockup__bar span:nth-child(3) { background: #34d399; }

.mockup__logo {
  width: 18px;
  height: 18px;
  margin-left: 0.45rem;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
}

.mockup__bar strong {
  margin-left: 0.3rem;
  color: var(--color-text);
  font-weight: 600;
}

.mockup__body {
  padding: 1.15rem;
}

.mockup__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.mockup__label {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.mockup__value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
  margin: 1.1rem 0 1.2rem;
}

.chart span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.85), rgba(59, 130, 246, 0.25));
  animation: rise 0.8s var(--ease) both;
}

.chart span.is-accent {
  background: linear-gradient(180deg, #34d399, rgba(16, 185, 129, 0.25));
}

.tx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.tx-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.tx-list strong {
  display: block;
  font-size: 0.88rem;
}

.tx-list small {
  color: var(--color-muted);
  font-size: 0.75rem;
}

.tx-list em {
  font-style: normal;
  color: var(--color-success);
  font-weight: 600;
  font-size: 0.88rem;
}

.tx-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.tx-icon svg {
  width: 16px;
  height: 16px;
}

.tx-icon--pix { color: var(--color-success); background: rgba(16, 185, 129, 0.12); }
.tx-icon--card { color: var(--color-accent); background: rgba(59, 130, 246, 0.12); }
.tx-icon--boleto { color: #c4b5fd; background: rgba(124, 58, 237, 0.12); }

.mockup__float {
  position: absolute;
  right: 1rem;
  bottom: -0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 600;
  animation: float 3.5s ease-in-out infinite;
}

.mockup__float svg {
  width: 14px;
  height: 14px;
}

@keyframes rise {
  from { transform: scaleY(0.4); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   Sections + cards
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.015);
  border-block: 1px solid var(--color-border);
}

.section__head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.section__head p:last-child {
  margin-top: 0.6rem;
  color: var(--color-muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--3,
.grid--4 {
  grid-template-columns: 1fr;
}

.card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-glass);
  backdrop-filter: blur(12px);
}

.card h3 {
  margin: 0.7rem 0 0.4rem;
}

.card p {
  color: var(--color-muted);
  font-size: 0.94rem;
}

.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
}

.card__icon--success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success);
}

.card__icon--accent {
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-accent);
}

.card__icon svg {
  width: 20px;
  height: 20px;
}

.card--row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.card--row h3 {
  margin-top: 0;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.timeline__item {
  position: relative;
  padding: 1.3rem 1.3rem 1.3rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-glass);
}

.timeline__num {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--color-primary-hover);
  letter-spacing: 0.08em;
}

.timeline__item p {
  margin-top: 0.4rem;
  color: var(--color-muted);
}

/* Plans */
.billing-toggle {
  display: inline-flex;
  margin-top: 1.2rem;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}

.billing-toggle button span {
  margin-left: 0.3rem;
  color: var(--color-success);
  font-size: 0.72rem;
}

.billing-toggle button.is-active {
  background: var(--color-primary);
  color: #fff;
}

.billing-toggle button.is-active span {
  color: #bbf7d0;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan__tag {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 0.15rem 0 0.8rem;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.plan__price strong {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.plan__price span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.plan__features {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.plan__features li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.plan__features svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan--featured {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2), 0 20px 50px rgba(124, 58, 237, 0.12);
}

.plan__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  color: #ddd6fe;
  font-size: 0.72rem;
  font-weight: 700;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.7rem;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-glass);
  padding: 0 1rem;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  color: var(--color-muted);
  font-weight: 400;
  font-size: 1.2rem;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

/* Contact + form */
.section--cta {
  padding-bottom: 5rem;
}

.contact {
  display: grid;
  gap: 2rem;
}

.contact__copy p {
  margin-top: 0.7rem;
  color: var(--color-muted);
}

.contact__list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  color: var(--color-muted);
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.contact__list svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary-hover);
}

.form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 500;
}

.muted {
  color: var(--color-muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(10, 10, 15, 0.55);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #f87171;
}

.field__error {
  min-height: 1em;
  font-size: 0.78rem;
  color: #fca5a5;
}

.form__hint {
  margin: 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: #064e3b;
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #d1fae5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.toast.is-error {
  background: #7f1d1d;
  border-color: rgba(248, 113, 113, 0.4);
  color: #fee2e2;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 1.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.8rem;
}

.footer__grid .logo {
  margin-bottom: 0.7rem;
  color: var(--color-text);
}

.footer__grid h3 {
  color: var(--color-text);
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__grid a {
  display: block;
  margin-top: 0.35rem;
}

.footer__grid a:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: grid;
  gap: 0.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
}

/* Mobile nav overlay */
body.nav-open {
  overflow: hidden;
}

body.nav-open .nav {
  display: flex;
  position: fixed;
  inset: 72px 1rem auto;
  z-index: 60;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: rgba(18, 18, 26, 0.96);
  backdrop-filter: blur(16px);
}

body.nav-open .nav a {
  padding: 0.75rem 0.4rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

body.nav-open .nav-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Breakpoints: 640 / 768 / 1024
   ========================================================================== */
@media (max-width: 479px) {
  .header .logo__name {
    display: none;
  }
}

@media (min-width: 640px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header__actions {
    margin-left: 0;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .timeline__item {
    border-radius: 0;
    border-left: 0;
  }

  .timeline__item:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
    border-left: 1px solid var(--color-border);
  }

  .timeline__item:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    padding: 4rem 0 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
