:root {
  --bg-main: #090B0E;
  --bg-elevated: rgba(17, 20, 26, 0.78);
  --accent-emerald: #25D366;
  --accent-emerald-soft: #10B981;
  --accent-gold: #D4AF37;
  --text-primary: #F5F5F3;
  --text-secondary: #9CA3AF;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --error-color: #F87171;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  margin: 0;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 100%);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(9, 11, 14, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--accent-emerald);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text-primary);
  outline: none;
}

.btn-header {
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid rgba(16, 185, 129, 0.4);
  background-color: rgba(16, 185, 129, 0.08);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-header:hover,
.btn-header:focus-visible {
  border-color: var(--accent-emerald);
  background-color: rgba(37, 211, 102, 0.16);
  outline: none;
}

/* Sections */
.section {
  position: relative;
  padding: 88px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero {
  padding: 104px 0 96px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 94vw);
  height: 440px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.10) 0%, rgba(16, 185, 129, 0.03) 45%, transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-emerald-soft);
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 34px;
  max-width: 540px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
}

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

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--accent-emerald);
  color: #090B0E;
  border: 1px solid var(--accent-emerald);
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus-visible:not(:disabled) {
  background-color: #2EE572;
  border-color: #2EE572;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.22);
  outline: none;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--accent-emerald-soft);
  background-color: rgba(16, 185, 129, 0.08);
  outline: none;
}

.btn-full {
  width: 100%;
}

/* Interactive 21st.dev Glow Cards */
.glow-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
  will-change: transform;
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(16, 185, 129, 0.6),
    rgba(37, 211, 102, 0.16) 35%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(16, 185, 129, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.glow-card-pro::before {
  background: radial-gradient(
    280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 175, 55, 0.72),
    rgba(16, 185, 129, 0.25) 40%,
    transparent 68%
  );
}

@media (hover: hover) {
  .glow-card:hover {
    border-color: rgba(16, 185, 129, 0.28);
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-3px);
  }

  .glow-card-pro:hover {
    border-color: rgba(212, 175, 55, 0.38);
  }

  .glow-card:hover::before,
  .glow-card:hover::after {
    opacity: 1;
  }
}

/* Hero Preview Card */
.hero-preview {
  padding: 24px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

.preview-caption {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.flow-nodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-node {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background-color: rgba(9, 11, 14, 0.65);
  border: 1px solid var(--border-subtle);
}

.flow-node.is-done {
  border-color: rgba(37, 211, 102, 0.3);
}

.flow-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.14);
  color: var(--accent-emerald);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-node-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-node-body strong {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.flow-node-body span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.flow-badge {
  color: var(--accent-emerald) !important;
  font-weight: 600;
}

/* Section Titles */
.section-title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 24ch;
}

/* Solutions */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.solution-card {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-index {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.card-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* Niches */
.niches-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.niche-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.niche-chip svg {
  color: var(--accent-emerald-soft);
  flex-shrink: 0;
}

/* Plans */
.plans-section {
  border-bottom: none;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.plan-card-pro {
  border-color: rgba(212, 175, 55, 0.32);
}

.plan-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-badge-gold {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #090B0E;
  background-color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.plan-price {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.plan-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.plan-features li::before {
  content: "✓ ";
  color: var(--accent-emerald);
  font-weight: 700;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 26px 0;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Onboarding Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 92dvh;
  overflow-y: auto;
  background-color: #11141A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.modal-step-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 4px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  outline: none;
}

.modal-progress-track {
  height: 3px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.modal-progress-fill {
  width: 33.333%;
  height: 100%;
  background-color: var(--accent-emerald);
  transition: width 0.3s ease;
}

.plan-pill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 20px;
}

.plan-pill-label {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.plan-pill-select {
  background-color: #090B0E;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}

.step-question {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 600;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.niche-option {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: rgba(9, 11, 14, 0.65);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.niche-option-wide {
  grid-column: 1 / -1;
}

.niche-option:hover {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--text-primary);
}

.niche-option.is-selected,
.niche-option:has(input:checked) {
  border-color: var(--accent-emerald);
  background-color: rgba(37, 211, 102, 0.1);
  color: var(--text-primary);
}

.fields-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.field-input {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: #090B0E;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.14);
}

.field-error {
  margin: 8px 0 0;
  min-height: 18px;
  font-size: 0.82rem;
  color: var(--error-color);
}

.field-error:empty {
  display: none;
}

.modal-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-actions-split {
  justify-content: space-between;
}

.modal-actions-col {
  flex-direction: column;
}

.setup-ready-head {
  text-align: center;
  margin-bottom: 18px;
}

.setup-check-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.setup-ready-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.setup-summary {
  padding: 14px 16px;
  border-radius: 12px;
  background-color: #090B0E;
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.86rem;
}

.summary-item strong {
  display: block;
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.summary-item span {
  color: var(--text-primary);
  font-weight: 600;
}

.setup-features {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.setup-features li::before {
  content: "✓ ";
  color: var(--accent-emerald);
  font-weight: 700;
}

.webhook-feedback {
  margin: 0;
  font-size: 0.84rem;
  color: var(--accent-emerald);
  text-align: center;
}

/* Página de Checkout (checkout.html) */
.checkout-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
}

.checkout-wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.checkout-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.back-link {
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text-primary);
  outline: none;
}

.checkout-card {
  padding: 32px;
}

.checkout-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.checkout-subtitle {
  margin: 0 0 22px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.checkout-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.26);
  margin-bottom: 22px;
}

.checkout-total-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.checkout-total-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.payment-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background-color: #090B0E;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.payment-option strong {
  font-size: 0.94rem;
  color: var(--text-primary);
}

.payment-option span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.payment-option:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.payment-option.is-selected,
.payment-option:has(input:checked) {
  border-color: var(--accent-emerald);
  background-color: rgba(37, 211, 102, 0.09);
}

.checkout-notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background-color: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.86rem;
  color: var(--text-primary);
}

.checkout-notice code {
  color: var(--accent-gold);
}

.pix-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background-color: #090B0E;
  border: 1px solid rgba(37, 211, 102, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.pix-qr {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  background-color: #FFFFFF;
  padding: 8px;
}

.pix-code {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: #11141A;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

@media (max-width: 900px) {
  .hero-grid,
  .solutions-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 76px 0 68px;
  }

  .niche-grid,
  .setup-summary {
    grid-template-columns: 1fr;
  }

  .plan-pill-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-card {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .glow-card,
  .modal-progress-fill {
    transition: none;
  }
}
