.intro-hero {
  text-align: center;
  padding: 64px 0 26px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #263342;
  border-radius: 999px;
  padding: 7px 12px;
  color: #8debd0;
  background: rgba(56, 214, 162, 0.05);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.intro-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 18px 0 12px;
}
.grad {
  background: linear-gradient(90deg, #fff 20%, #8eead5 50%, #55bfff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  max-width: 720px;
  margin: auto;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0 12px;
}
.stat {
  background: rgba(13, 18, 26, 0.9);
  border: 1px solid #202b38;
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}
.stat small {
  display: block;
  color: #748093;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel {
  background: rgba(13, 18, 26, 0.94);
  border: 1px solid #26313e;
  border-radius: 18px;
  box-shadow: 0 22px 70px var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.monitor {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border-bottom: 1px solid #222d39;
}
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 13px var(--accent);
  animation: blink 1.6s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.monitor b {
  font-size: 12px;
  white-space: nowrap;
}
.monitor small {
  color: #687587;
  white-space: nowrap;
  margin-left: auto;
}

.gen-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}
.gen-form {
  padding: 20px 22px;
  border-right: 1px solid #222d39;
}
.gen-preview {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 10.5px;
  color: #7f8b9b;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  margin-bottom: 8px;
}
textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  background: #0d121a;
  border: 1px solid #2d3947;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
}
textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.char-count {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #697789;
}
.char-count.warn {
  color: var(--danger);
}

.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.preset {
  border: 1px solid #2d3947;
  border-radius: 999px;
  background: #151e29;
  color: #c6ceda;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.preset:hover {
  border-color: #4b5c70;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
select {
  width: 100%;
  background: #151e29;
  border: 1px solid #2d3947;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  font-family: inherit;
}
.color-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #151e29;
  border: 1px solid #2d3947;
  border-radius: 10px;
  padding: 8px 12px;
}
.color-field input[type="color"] {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: none;
  padding: 0;
  cursor: pointer;
}
.color-field span {
  font-size: 12px;
  color: #c6ceda;
  font-weight: 650;
}
.ec-hint {
  font-size: 11.5px;
  color: #697789;
  margin-top: 8px;
  line-height: 1.5;
}

#qrCanvas {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  image-rendering: pixelated;
  max-width: 100%;
}
.qr-status {
  font-size: 12.5px;
  color: #9aa6b6;
  text-align: center;
  min-height: 18px;
}
.qr-error {
  color: var(--danger);
  font-size: 12.5px;
  text-align: center;
  font-weight: 700;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
button.btn {
  border: 1px solid #2d3947;
  border-radius: 9px;
  background: #151e29;
  color: #e7edf5;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
button.btn:hover {
  background: #1b2735;
  border-color: #4b5c70;
}
button.btn.primary {
  background: #174f47;
  border-color: #286b60;
}

.bottom {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  margin: 14px 0 28px;
}
.card {
  background: rgba(13, 18, 26, 0.94);
  border: 1px solid #26313e;
  border-radius: 15px;
  padding: 18px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  color: #7f8b9b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.card p {
  color: #818d9d;
  font-size: 13px;
  line-height: 1.55;
  margin: 11px 0 14px;
}

@media (max-width: 800px) {
  .gen-body {
    grid-template-columns: 1fr;
  }
  .gen-form {
    border-right: none;
    border-bottom: 1px solid #222d39;
  }
  .row2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .container {
    width: min(100% - 20px, 1240px);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .subtitle {
    font-size: 14px;
  }
  .stat strong {
    font-size: 20px;
  }
  .card {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

a {
  color: inherit;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.badge {
  border: 1px solid #202b38;
  background: rgba(13, 18, 26, 0.7);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: #a7b2c1;
  font-weight: 650;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 40px;
}
.info-section h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.info-section .card p {
  color: #818d9d;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}
table.uses {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.uses th,
table.uses td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #1b2530;
}
table.uses th {
  color: #7f8b9b;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
table.uses td {
  color: #c6ceda;
}
table.uses tr:last-child td {
  border-bottom: none;
}
.faq details {
  border-bottom: 1px solid #1b2530;
  padding: 12px 0;
}
.faq details:last-child {
  border-bottom: none;
}
.faq summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 13.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  color: #8a97a8;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 0;
}

.type-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 16px;
}
.type-btn {
  border: 1px solid #2d3947;
  border-radius: 9px;
  background: #151e29;
  color: #dfe6ee;
  padding: 9px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.type-btn.active {
  background: #174f47;
  border-color: #286b60;
}
.hidden {
  display: none !important;
}
.form-section {
  border-top: 1px solid #202b38;
  padding-top: 15px;
  margin-top: 5px;
}
.form-section-title {
  font-size: 10.5px;
  color: #7f8b9b;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 850;
  margin-bottom: 12px;
}
.preset {
  border-radius: 999px;
  padding: 6px 11px;
}
.helper {
  color: #697789;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 6px;
}
.logo-box {
  border: 1px dashed #334253;
  border-radius: 11px;
  padding: 12px;
  background: #0a0f16;
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-preview {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 9px;
  background: #fff;
  display: none;
}
.file-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #2d3947;
  border-radius: 9px;
  background: #151e29;
  padding: 8px 11px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.file-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.remove-logo {
  display: none;
  border: 0;
  background: none;
  color: #ff8496;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.preview-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
}
.mini-badge {
  border: 1px solid #263342;
  border-radius: 999px;
  padding: 5px 9px;
  color: #8f9bab;
  font-size: 10.5px;
}
.qr-error {
  color: var(--danger);
  font-weight: 800;
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 620px) {
  .type-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .site-header,
  .intro-hero,
  .stats,
  .gen-form,
  .monitor,
  .bottom,
  .info-section,
  .related-tools,
  .site-footer,
  .actions,
  .preview-meta,
  .qr-status {
    display: none !important;
  }
  .panel {
    border: 0;
    box-shadow: none;
    background: #fff;
    margin: 0;
  }
  .gen-body {
    display: block;
  }
  .gen-preview {
    padding: 0;
  }
  .gen-preview canvas {
    max-width: 85vw;
    max-height: 85vh;
  }
}

/* Accessibility and shared chrome compatibility. */
main .monitor small,
main .helper,
main .setting-hint,
main .card-title,
main .stat small,
main .field label,
main .setting-field label,
main .mini-badge {
  color: #a3afbf;
}
main .card p,
main .info-section .card p,
main .info-section ol,
main .info-section ul {
  color: #a3afbf;
}
main .monitor {
  height: auto;
  min-height: 54px;
  flex-wrap: wrap;
  padding: 14px 17px;
  gap: 8px;
}
main .monitor small {
  white-space: normal;
}
main button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
main .btn:focus-visible,
main input:focus-visible,
main textarea:focus-visible,
main select:focus-visible {
  outline: 3px solid #55c8ff;
  outline-offset: 3px;
}
main .stat strong {
  white-space: normal;
  overflow-wrap: anywhere;
}
main .noscript-note {
  margin-top: 12px;
}
@media (max-width: 560px) {
  main .intro-hero {
    padding-top: 42px;
  }
  main .monitor small {
    width: 100%;
  }
}
main .gen-form input:not([type="color"]):not([type="file"]) {
  width: 100%;
  background: #151e29;
  border: 1px solid #2d3947;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
main .gen-form input[type="color"] {
  cursor: pointer;
}
main .gen-preview {
  min-width: 0;
}
main #qrCanvas {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 0;
}
main .logo-row {
  flex-wrap: wrap;
}
main .logo-row label {
  margin: 0;
}
main .logo-preview {
  display: none;
}
main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
main th,
main td {
  text-align: left;
  border-bottom: 1px solid #26313e;
  padding: 10px 6px;
  color: #b8c4d4;
}
main .qr-status {
  max-width: 100%;
  overflow-wrap: anywhere;
}
