/* ============================================================
   ZapSombra — Stylesheet
   Design: Dark mode, gradiente roxo-rosa, estética moderna
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --bg:           #0a0a0f;
  --bg-card:      #111118;
  --bg-input:     #1a1a26;
  --border:       rgba(255,255,255,0.08);
  --border-focus: rgba(124,58,237,0.6);

  --purple:       #7c3aed;
  --purple-light: #a78bfa;
  --pink:         #ec4899;
  --green-pix:    #00c853;
  --red:          #f43f5e;

  --text:         #f8fafc;
  --text-muted:   #94a3b8;
  --text-dim:     #4a5568;

  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 30px rgba(124,58,237,0.25);

  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.2s ease;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::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;
  overflow-x: hidden;
}
a { color: var(--purple-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utilities ───────────────────────────────────────────────── */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hidden       { display: none !important; }
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.nav-brand i { color: var(--purple-light); font-size: 1.5rem; }
.nav-link { color: var(--text-muted); font-size: .95rem; transition: color var(--transition); }
.nav-link:hover { color: var(--text); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.55);
  text-decoration: none;
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); text-decoration: none; }
.btn-lg   { padding: 16px 32px; font-size: 1.1rem; }
.btn-sm   { padding: 8px 16px; font-size: .9rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.hero-bg-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blob-float 8s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--purple); top: -150px; left: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--pink); top: 100px; right: -100px; animation-delay: -3s; }
.blob-3 { width: 350px; height: 350px; background: #3b82f6; bottom: -100px; left: 50%; animation-delay: -5s; }

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.35);
  color: var(--purple-light);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--text); }

/* Mockup */
.hero-mockup { position: relative; z-index: 1; flex-shrink: 0; }
.phone-mockup {
  width: 260px;
  background: #1a1a26;
  border-radius: 32px;
  border: 2px solid var(--border);
  padding: 24px 20px;
  box-shadow: var(--shadow), var(--shadow-glow);
}
.phone-screen { display: flex; flex-direction: column; gap: 12px; }
.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: .9rem;
  max-width: 85%;
  line-height: 1.4;
}
.msg-bubble.incoming {
  background: rgba(255,255,255,0.07);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-bubble.outgoing.anon {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-label {
  font-size: .75rem;
  color: var(--text-dim);
  text-align: right;
}
.msg-label em { color: var(--purple-light); }

/* ── Steps ───────────────────────────────────────────────────── */
.steps { padding: 90px 0; background: rgba(255,255,255,0.02); }
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 56px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.step-card h3 { font-weight: 700; margin-bottom: 8px; }
.step-card p  { color: var(--text-muted); font-size: .9rem; }

/* ── Form Section ────────────────────────────────────────────── */
.form-section { padding: 90px 0; }
.form-container { max-width: 560px; }

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.card-header i   { font-size: 1.6rem; color: var(--purple-light); }
.card-header h2  { font-size: 1.4rem; font-weight: 800; }

/* Form Groups */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.form-group label i { color: var(--purple-light); }

.input-phone {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.input-phone:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.flag {
  padding: 0 14px;
  font-size: .9rem;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  color: var(--text-muted);
}
.input-phone input,
textarea,
input[type="text"] {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 16px;
}
.input-phone input { flex: 1; }

textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition);
  display: block;
}
textarea:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); outline: none; }
textarea::placeholder, input::placeholder { color: var(--text-dim); }

.input-hint  { font-size: .8rem; color: var(--text-dim); margin-top: 6px; display: block; }
.char-counter { text-align: right; font-size: .8rem; color: var(--text-dim); margin-top: 6px; }
.char-counter.warning { color: #f59e0b; }
.char-counter.danger  { color: var(--red); }

/* Preço Badge */
.preco-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0,200,83,0.08);
  border: 1px solid rgba(0,200,83,0.25);
  color: var(--green-pix);
  padding: 12px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.preco-badge i { font-size: 1.1rem; }

/* Aviso Legal */
.aviso-legal {
  text-align: center;
  font-size: .8rem;
  color: var(--text-dim);
  margin-top: 16px;
  line-height: 1.5;
}
.aviso-legal i { color: #f59e0b; }

/* ── PIX Step ────────────────────────────────────────────────── */
.pix-instrucao { color: var(--text-muted); font-size: .95rem; margin-bottom: 20px; line-height: 1.6; }
.pix-instrucao em { color: var(--purple-light); font-style: normal; font-weight: 600; }

.pix-valor-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,200,83,0.08);
  border: 1px solid rgba(0,200,83,0.2);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 24px;
  font-size: .95rem;
  color: var(--text-muted);
}
.pix-valor-display strong { color: var(--green-pix); font-size: 1.2rem; }

/* QR Code */
.qr-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
#qrcode-container {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: inline-block;
}
#qrcode-container canvas { display: block; }
.qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Copia e Cola */
.copia-cola-wrapper { margin-bottom: 20px; }
.copia-cola-wrapper label { font-size: .85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; display: block; }
.copia-cola-input {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.copia-cola-input input {
  flex: 1;
  font-size: .8rem;
  color: var(--text-muted);
  padding: 12px 14px;
  letter-spacing: 0.5px;
}
.btn-copy {
  background: rgba(124,58,237,0.15);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--purple-light);
  padding: 0 16px;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}
.btn-copy:hover { background: rgba(124,58,237,0.3); }
.copy-feedback { display: block; text-align: center; font-size: .8rem; color: var(--green-pix); margin-top: 6px; }

/* Status PIX */
.pix-status-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.pix-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
}
.pix-status.aguardando { color: #f59e0b; }
.pix-status.pago       { color: var(--green-pix); }
.pix-status.erro       { color: var(--red); }
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulse 1.4s ease-in-out infinite;
}
.pix-status.pago .pulse-dot { background: var(--green-pix); animation: none; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}
.pix-timer { font-size: .85rem; color: var(--text-dim); }
.pix-timer strong { color: var(--text-muted); }

/* ── Sucesso ─────────────────────────────────────────────────── */
.success-animation { display: flex; justify-content: center; margin-bottom: 24px; }
.success-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--purple), var(--green-pix));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop-in {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}
.success-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.success-msg {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
.success-details {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section { padding: 90px 0; background: rgba(255,255,255,0.015); }
.faq-grid    { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.faq-item h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.faq-item h4 i { color: var(--purple-light); }
.faq-item p    { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.footer-brand i { color: var(--purple-light); }
.footer-legal { color: var(--text-dim); font-size: .85rem; line-height: 1.6; margin-bottom: 8px; }
.footer-copy  { color: var(--text-dim); font-size: .8rem; }

/* ── Responsivo ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 60px 24px; gap: 40px; min-height: auto; }
  .hero-mockup { display: none; }
  .card { padding: 28px 20px; }
  .navbar { padding: 16px 20px; }
  .pix-status-wrapper { flex-direction: column; align-items: flex-start; }
}
