/* ============================================
   Pede Pra Seguir — Design System
   Dark / Neon Roxo
   ============================================ */

:root {
  --bg: #050505;
  --bg-gradient: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139,92,246,0.15), transparent),
                 linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  --surface: #0a0a0a;
  --surface-elevated: #111111;
  --surface-hover: #1a1a1a;
  --border: #1f1f1f;
  --border-strong: #2e2e2e;

  --text: #f5f5f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --neon: #8b5cf6;
  --neon-bright: #a78bfa;
  --neon-dark: #7c3aed;
  --neon-glow: rgba(139, 92, 246, 0.45);
  --neon-glow-strong: rgba(139, 92, 246, 0.7);

  --success: #22c55e;
  --success-glow: rgba(34, 197, 94, 0.3);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.3);
  --warning: #f59e0b;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow: 0 4px 20px rgba(0,0,0,0.6);
  --shadow-neon: 0 0 20px var(--neon-glow);
  --shadow-neon-hover: 0 0 35px var(--neon-glow-strong), 0 0 60px rgba(139,92,246,0.2);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--neon-bright); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--text); text-shadow: 0 0 10px var(--neon-glow); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 1rem; width: 100%; outline: none; transition: var(--transition); font-size: 1rem; }
input:focus, select:focus, textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-glow); }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b5cf6' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.375rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 3vw, 1.5rem); font-weight: 700; }
.text-gradient {
  background: linear-gradient(135deg, var(--neon-bright) 0%, #d946ef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.rounded { border-radius: var(--radius); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem;
  transition: var(--transition); letter-spacing: 0.01em; min-height: 48px; text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-dark) 100%);
  color: #fff; box-shadow: 0 4px 15px rgba(139,92,246,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-hover);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface-elevated); color: var(--text); border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--neon); box-shadow: var(--shadow-neon); }
.btn-success { background: var(--success); color: #052e16; }
.btn-success:hover { box-shadow: 0 0 20px var(--success-glow); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { box-shadow: 0 0 20px var(--danger-glow); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--border); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; min-height: 36px; }

/* Cards */
.card {
  background: var(--surface-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; transition: var(--transition); position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-glow:hover { box-shadow: var(--shadow-neon), var(--shadow); border-color: rgba(139,92,246,0.3); }
.card-highlight::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon), #d946ef); opacity: 0.7;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-error { font-size: 0.875rem; color: var(--danger); margin-top: 0.375rem; }
.checkbox-wrapper { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }
.checkbox-wrapper input[type="checkbox"] {
  width: 1.25rem; height: 1.25rem; accent-color: var(--neon); margin-top: 0.125rem; flex-shrink: 0;
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,5,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-weight: 800; font-size: 1.25rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.nav-logo span { color: var(--neon-bright); }
.nav-links { display: none; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text); }
.nav-mobile-toggle { display: flex; flex-direction: column; gap: 4px; padding: 0.5rem; }
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
@media (min-width: 768px) { .nav-links { display: flex; } .nav-mobile-toggle { display: none; } }
.nav-mobile-menu {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem;
  flex-direction: column; gap: 1rem;
}
.nav-mobile-menu.open { display: flex; }

/* Hero */
.hero {
  position: relative; padding: 4rem 0 3rem; overflow: hidden;
  background: var(--bg-gradient);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.25);
  color: var(--neon-bright); padding: 0.375rem 0.875rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1rem; max-width: 600px; }
.hero p { font-size: 1.125rem; color: var(--text-secondary); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr !important; }
}
.hero-social-proof svg { width: 16px; height: 16px; }

/* Product Card */
.produto-card { composes: card; composes: card-glow; cursor: pointer; display: flex; flex-direction: column; }
.produto-card-image {
  width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #1a0b2e, #0f0f0f);
  border-radius: var(--radius-sm); margin-bottom: 1rem; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.produto-card-image img { width: 100%; height: 100%; object-fit: cover; }
.produto-card-image .placeholder { font-size: 2.5rem; opacity: 0.6; }
.produto-card-badge {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--neon); color: #fff; font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 0.25rem 0.5rem; border-radius: 4px;
}
.produto-card-body { flex: 1; display: flex; flex-direction: column; }
.produto-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.produto-card-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.produto-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.produto-card-price { font-size: 1.125rem; font-weight: 800; color: var(--neon-bright); }
.produto-card-prazo { font-size: 0.75rem; color: var(--text-muted); }

/* Quantity Stepper */
.stepper { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--text-secondary); transition: var(--transition); }
.stepper button:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper input { width: 80px; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 1rem; padding: 0; height: 44px; }

/* Instagram Profile Card */
.ig-card {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(217,70,239,0.04));
  border: 1px solid rgba(139,92,246,0.2); border-radius: var(--radius); padding: 1rem;
}
.ig-card-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--neon); flex-shrink: 0; }
.ig-card-info { flex: 1; min-width: 0; }
.ig-card-name { font-weight: 700; display: flex; align-items: center; gap: 0.375rem; }
.ig-card-stats { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.125rem; }
.ig-card-warning { font-size: 0.75rem; color: var(--warning); margin-top: 0.25rem; }

/* Publicacoes Grid */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
@media (min-width: 640px) { .pub-grid { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; } }
.pub-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.pub-item img { width: 100%; height: 100%; object-fit: cover; }
.pub-item:hover { border-color: var(--border-strong); }
.pub-item.selected { border-color: var(--neon); box-shadow: 0 0 15px var(--neon-glow); }
.pub-item-check { position: absolute; top: 0.375rem; right: 0.375rem; width: 22px; height: 22px; background: var(--neon); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #fff; opacity: 0; transition: var(--transition); }
.pub-item.selected .pub-item-check { opacity: 1; }

/* Timeline / Steps */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-step { display: flex; gap: 1rem; position: relative; padding-bottom: 1.5rem; }
.timeline-step:not(:last-child)::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px;
  background: var(--border);
}
.timeline-step.active:not(:last-child)::before { background: linear-gradient(180deg, var(--neon), var(--border)); }
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; flex-shrink: 0; border: 2px solid var(--border); background: var(--surface); color: var(--text-muted);
}
.timeline-step.done .timeline-dot { background: var(--neon); border-color: var(--neon); color: #fff; box-shadow: 0 0 12px var(--neon-glow); }
.timeline-step.active .timeline-dot { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 10px var(--neon-glow); }
.timeline-content { padding-top: 0.25rem; }
.timeline-title { font-weight: 700; font-size: 0.9375rem; }
.timeline-desc { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.125rem; }

/* Pix Display */
.pix-box {
  background: var(--surface-elevated); border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 1.25rem; text-align: center; position: relative;
}
.pix-code {
  font-family: 'SF Mono', ui-monospace, monospace; font-size: 0.8125rem; word-break: break-all;
  background: var(--surface); padding: 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  color: var(--text-secondary); line-height: 1.5;
}
.pix-qr { width: 200px; height: 200px; margin: 0 auto; background: #fff; border-radius: var(--radius-sm); padding: 0.5rem; }
.pix-qr img { width: 100%; height: 100%; }

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  background: var(--surface-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.75rem; min-width: 280px; max-width: 400px;
  animation: toastIn 0.3s ease;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(20px); opacity: 0; } }
.toast.leaving { animation: toastOut 0.3s ease forwards; }

/* Loader */
.loader-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 1rem; gap: 1rem; }
.loader { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--neon); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: var(--text-muted); font-size: 0.875rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: auto; background: var(--surface); }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
.footer-brand { font-weight: 800; font-size: 1.125rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--neon-bright); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); }

/* Utilities */
.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; }
.badge {
  display: inline-flex; align-items: center; padding: 0.25rem 0.625rem;
  border-radius: 999px; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-neon { background: rgba(139,92,246,0.15); color: var(--neon-bright); border: 1px solid rgba(139,92,246,0.25); }
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.25); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.25); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); margin: 1.5rem 0; }
.glass {
  background: rgba(17,17,17,0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.06);
}

/* Page transitions */
#page-content { animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Trust badges strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.trust-icon { width: 20px; height: 20px; color: var(--neon); display: inline-flex; align-items: center; }
.trust-item svg { width: 20px; height: 20px; }
