/* ============================================================
   QRCard Platform — style.css
   ============================================================ */

:root {
  --primary:   #2563EB;
  --primary-d: #1D4ED8;
  --accent:    #0EA5E9;
  --dark:      #0F172A;
  --mid:       #334155;
  --muted:     #64748B;
  --light:     #F1F5F9;
  --border:    #E2E8F0;
  --white:     #FFFFFF;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(15,23,42,.08);
  --shadow-md: 0 8px 40px rgba(15,23,42,.14);
  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #FAFBFF;
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; gap: 8px;
  color: var(--dark);
}
.logo-icon { font-size: 1.1rem; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a {
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.header-nav a:hover { color: var(--primary); }
.btn-nav {
  background: var(--dark); color: #fff !important;
  padding: 8px 18px; border-radius: 8px;
  font-size: .85rem !important;
  transition: background .2s !important;
}
.btn-nav:hover { background: var(--primary) !important; color: #fff !important; }

/* ---- HERO ---- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-block;
  background: #EEF2FF; color: var(--primary);
  padding: 6px 14px; border-radius: 20px;
  font-size: .8rem; font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid #C7D2FE;
}
.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}
.hero-text h1 em { font-style: normal; color: var(--primary); }
.hero-sub {
  color: var(--muted); font-size: 1.1rem;
  max-width: 440px; margin-bottom: 32px;
}
.btn-hero {
  display: inline-block;
  background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.btn-hero:hover {
  background: var(--primary-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,99,235,.4);
}

/* ---- DEMO CARD ---- */
.hero-visual { display: flex; justify-content: center; }
.card-preview-demo {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: 280px;
  border: 1px solid var(--border);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.demo-header {
  padding: 20px;
  display: flex; align-items: center; gap: 12px;
  color: #fff;
}
.demo-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.demo-name { font-weight: 700; font-size: 1rem; }
.demo-title { font-size: .75rem; opacity: .8; }
.demo-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.demo-row { font-size: .78rem; color: var(--mid); }
.demo-qr {
  padding: 12px 20px;
  display: flex; justify-content: flex-end;
}
.demo-qr-placeholder { color: var(--dark); }
.demo-actions {
  padding: 12px 20px 20px;
  display: flex; gap: 8px;
}
.btn-vcf, .btn-share {
  flex: 1; padding: 8px 0;
  border: 1.5px solid var(--border); background: var(--light);
  border-radius: 8px; cursor: pointer;
  font-size: .75rem; font-weight: 600;
  color: var(--mid); transition: var(--transition);
}
.btn-vcf:hover, .btn-share:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ---- FORM SECTION ---- */
.section-form { padding: 80px 0; }
.form-header { text-align: center; margin-bottom: 40px; }
.form-header h2 {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
}
.form-header p { color: var(--muted); margin-top: 8px; }

/* Tabs */
.form-tabs {
  display: flex; gap: 4px;
  background: var(--light);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  overflow-x: auto;
}
.tab {
  flex: 1; min-width: 100px;
  padding: 10px 16px;
  border: none; background: transparent;
  border-radius: 9px;
  font-size: .875rem; font-weight: 500;
  color: var(--muted); cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.tab.active, .tab:hover {
  background: #fff; color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Form grid */
.form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: .875rem; font-weight: 600; color: var(--mid);
}
.form-group input,
.form-group textarea,
.form-group select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* Photo upload */
.photo-upload-area {
  margin-bottom: 24px; cursor: pointer;
}
.photo-preview {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted); font-size: .9rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--transition);
}
.photo-preview:hover {
  border-color: var(--primary);
  background: #EEF2FF;
  color: var(--primary);
}
.photo-icon { font-size: 1.4rem; }
#photo-preview img {
  width: 100%; max-height: 160px;
  object-fit: cover; border-radius: 8px;
}

/* Aparência */
.section-label {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 24px 0 12px;
}
.section-label:first-child { margin-top: 0; }
.color-row { display: flex; gap: 20px; }
.color-pick { display: flex; align-items: center; gap: 10px; }
.color-pick input[type=color] {
  width: 48px; height: 40px; padding: 2px;
  border-radius: 8px; cursor: pointer;
}
.color-hex {
  font-size: .85rem; color: var(--muted);
  font-family: monospace;
}

/* QR Templates */
.qr-templates {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 8px;
}
.tpl-btn {
  padding: 8px 16px;
  border-radius: 8px; border: 2px solid;
  cursor: pointer; font-size: .8rem; font-weight: 600;
  transition: var(--transition);
}
.tpl-btn:hover, .tpl-btn.active { transform: scale(1.05); box-shadow: 0 2px 12px rgba(0,0,0,.15); }

/* Submit */
.form-submit { margin-top: 28px; text-align: center; }
.btn-submit {
  background: var(--primary); color: #fff;
  border: none; cursor: pointer;
  padding: 16px 48px; border-radius: 12px;
  font-size: 1.05rem; font-weight: 700;
  font-family: var(--font-body);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37,99,235,.3);
}
.btn-submit:hover {
  background: var(--primary-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,99,235,.4);
}
.form-note { color: var(--muted); font-size: .82rem; margin-top: 12px; }
.alert-error {
  background: #FEF2F2; color: #DC2626;
  border: 1px solid #FECACA; padding: 12px 18px;
  border-radius: 8px; margin-bottom: 20px;
  font-weight: 500;
}

/* Success card */
.success-card {
  background: #fff; border: 1px solid #BBF7D0;
  border-radius: var(--radius); padding: 48px;
  text-align: center; box-shadow: var(--shadow);
}
.success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #DCFCE7; color: #16A34A;
  font-size: 1.6rem; display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-card h2 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 10px; }
.success-link {
  display: inline-block;
  background: var(--light); padding: 10px 20px;
  border-radius: 8px; font-family: monospace;
  color: var(--primary); font-size: .9rem;
  border: 1px solid var(--border); margin: 12px 0 24px;
  word-break: break-all;
}
.success-actions { display: flex; gap: 12px; justify-content: center; }
.btn-primary, .btn-secondary {
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-secondary { background: var(--light); color: var(--dark); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }

/* ---- STEPS ---- */
.section-steps { padding: 80px 0; background: var(--white); }
.section-title {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
  text-align: center; margin-bottom: 48px;
}
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.step h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark); color: #94A3B8;
  padding: 32px 0;
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center;
}
.site-footer .logo { color: #fff; }
.site-footer a { color: var(--accent); font-size: .85rem; }
.site-footer p { font-size: .85rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .color-row { flex-direction: column; }
  .form-section { padding: 20px; }
  .form-tabs { gap: 2px; }
  .tab { padding: 9px 10px; font-size: .8rem; }
  .header-nav a:not(.btn-nav) { display: none; }
  .success-actions { flex-direction: column; }
}
