/* ── Hero v2 ── */
.hero-section {
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--ln);
  overflow: hidden;
  padding-top: 8px;
}

.hero-section .glow-orb.ac { width: 460px; height: 460px; top: -180px; left: -140px; }
.hero-section .glow-orb.violet { width: 420px; height: 420px; top: -60px; right: -160px; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 480px;
  padding: 0 32px;
  gap: 24px;
}

.hero-left {
  padding: 68px 32px 68px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ac);
  box-shadow: 0 0 0 4px var(--ac-soft);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:0.35} }

.type-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 5px;
  border: 1px solid var(--ln);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
}

.type-div { display: none; }

.type-switcher .tab-btn {
  border: none;
  background: transparent;
  color: var(--tx3);
}
.type-switcher .tab-btn.active { background: var(--ac); color: #05070d; }
.type-switcher .tab-btn.ai.active { background: var(--ac-2); color: #05070d; }

.hero-left h1 {
  margin-bottom: 18px;
  letter-spacing: -1.4px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--tx2);
  min-height: 56px;
  margin-bottom: 36px;
  font-weight: 400;
  word-break: break-word;
  max-width: 52ch;
}

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

.hero-actions .btn-primary {
  box-shadow: var(--shadow-glow);
}

/* ── Hero right: floating QR stage ── */
.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.hero-stat-chip {
  position: absolute;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--ln2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: floatChip 5s ease-in-out infinite;
}
.hero-stat-chip:nth-of-type(2) { animation-delay: -2.4s; }
@keyframes floatChip { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }

.stat-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--ac);
  letter-spacing: -0.5px;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--tx3);
  font-weight: 600;
  margin-top: 2px;
}

.hero-qr-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid var(--ln2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 240px;
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 1;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard { 0%,100%{ transform: translateY(0) rotate(-0.4deg); } 50%{ transform: translateY(-10px) rotate(0.4deg); } }

.hero-qr-frame {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--ln2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  overflow: hidden;
}

.hero-qr-frame canvas {
  display: block;
  width: 160px !important;
  height: 160px !important;
}

.hero-qr-dest {
  font-size: 10.5px;
  color: var(--tx3);
  font-weight: 600;
  line-height: 1.5;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-dl-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.hero-dl-row .btn {
  flex: 1;
  padding: 8px 6px;
  font-size: 12px;
  justify-content: center;
}

/* ── Trust bar ── */
.trust-bar {
  position: relative;
  border-top: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.015);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tx2);
  font-weight: 600;
  white-space: nowrap;
}
.trust-item svg { flex-shrink: 0; color: var(--success); }

/* ── Generator ── */
.generator-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.type-selector-wrap {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.cat-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ln);
}

.cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--ln2);
  background: transparent;
  color: var(--tx2);
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
}

.cat-btn:hover { border-color: var(--ac); color: var(--ac); }
.cat-btn.cat-ai { color: var(--ac-2); border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.08); }
.cat-btn.cat-ai.active { background: var(--ac-2); color: #05070d; border-color: var(--ac-2); }

.type-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ln);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all var(--dur-fast);
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx2);
  text-align: center;
}

.type-card:hover { border-color: var(--ac); background: var(--ac-lite); color: var(--ac); transform: translateY(-2px); }
.type-card.active { border-color: var(--ac); background: var(--ac-lite); color: var(--ac); }
.type-card-ai.active { border-color: var(--ac-2); background: rgba(167,139,250,0.12); color: var(--ac-2); }
.type-card.hidden { display: none; }

.type-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.92;
}

.gen-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: flex-start;
}

.gen-form-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#gen-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.customize-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.customize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dot-styles-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dot-style-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--ln);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tx3);
  transition: all var(--dur-fast);
  padding: 0;
}

.dot-style-btn:hover { border-color: var(--ac); color: var(--ac); }
.dot-style-btn.active { border-color: var(--ac); background: var(--ac-lite); color: var(--ac); }

.color-picker-row {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast);
  padding: 0;
  flex-shrink: 0;
}

.color-swatch.active { transform: scale(1.15); }

.color-custom-input {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--ln2);
  padding: 0;
  cursor: pointer;
  background: none;
  overflow: hidden;
}

/* ── Preview card ── */
.gen-preview-card {
  position: sticky;
  top: 80px;
  border-radius: var(--radius-lg);
}

.qr-preview-frame {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--ln2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.qr-preview-frame canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.qr-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.qr-size-slider {
  flex: 1;
  height: 4px;
  appearance: none;
  background: var(--ln2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.qr-size-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ac);
  cursor: pointer;
  border: 2px solid #05070d;
  box-shadow: 0 0 0 3px var(--ac-soft);
}

.dl-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.dynamic-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ln);
  border-radius: 12px;
  padding: 12px 14px;
}

.dynamic-cta-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ac-lite);
  color: var(--ac);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── QR type form panels ── */
.qr-form-panel { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.qr-form-panel.hidden { display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .gen-body { grid-template-columns: 1fr; }
  .gen-preview-col { order: -1; }
  .gen-preview-card { position: static; }
  .customize-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 0 16px; }
  .hero-left { padding: 44px 0 32px; }
  .hero-right { padding: 24px 0 40px; }
  .trust-item { font-size: 12px; }
}
