:root {
  --bg: #070a0e;
  --card: rgba(16, 22, 30, 0.84);
  --card-solid: #10161f;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f5ef;
  --muted: #9aa5b2;
  --muted-2: #6f7986;
  --lime: #c9f56a;
  --lime-soft: rgba(201, 245, 106, 0.1);
  --sky: #7dd3fc;
  --danger: #ff9d9d;
  --warn: #ffd083;
  --radius: 28px;
  --font-sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 680px at 8% -12%, rgba(201, 245, 106, 0.1), transparent 60%),
    radial-gradient(900px 620px at 96% -4%, rgba(125, 211, 252, 0.08), transparent 58%),
    linear-gradient(180deg, #070a0e 0%, #080c12 55%, #06090d 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--lime);
  color: #0a0d07;
}

button,
textarea {
  font-family: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 70%);
  opacity: 0.55;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.orb-lime {
  top: -190px;
  left: -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(180, 232, 77, 0.55), transparent 66%);
  opacity: 0.26;
  animation: drift-a 18s ease-in-out infinite;
}

.orb-sky {
  top: -260px;
  right: -200px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(66, 165, 204, 0.55), transparent 66%);
  opacity: 0.18;
  animation: drift-b 22s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.07); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-50px, 24px, 0) scale(1.04); }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(7, 10, 14, 0.64);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #dcff8f, var(--lime) 55%, #a8e248);
  color: #0a0d07;
  box-shadow: 0 8px 24px rgba(201, 245, 106, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.brand-icon svg {
  width: 26px;
  height: 26px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-text span {
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 245, 106, 0.09), 0 0 12px rgba(201, 245, 106, 0.65);
}

.header-sep {
  color: rgba(255, 255, 255, 0.18);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 56px;
  padding: 74px 0 38px;
}

.hero-copy {
  animation: rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), rgba(201, 245, 106, 0.15));
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  color: #f7faf4;
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.09;
}

.hero h1 .accent {
  background: linear-gradient(105deg, #ddff8d 2%, #c9f56a 34%, #9fe9bd 66%, #8cd9fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 24px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.005em;
}

.hero-stats {
  display: flex;
  gap: 30px;
  padding-bottom: 10px;
  animation: rise 0.75s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stat {
  min-width: 84px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat strong {
  display: block;
  color: #eef4e7;
  font-family: "Segoe UI", var(--font-sans);
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.stat strong span {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.stat > span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ---------- workspace cards ---------- */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 18px;
  align-items: stretch;
  animation: rise 0.8s 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%),
    var(--card);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 245, 106, 0.42), transparent);
  opacity: 0.55;
}

.preview-card::before {
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.34), transparent);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step {
  display: inline-grid;
  place-items: center;
  height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(201, 245, 106, 0.2);
  border-radius: 6px;
  background: rgba(201, 245, 106, 0.055);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: 0.005em;
}

.count-badge {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.count-badge.is-near-limit {
  border-color: rgba(255, 208, 131, 0.28);
  background: rgba(255, 208, 131, 0.08);
  color: var(--warn);
}

/* ---------- input ---------- */

.field {
  min-width: 0;
}

.field-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.field-top label {
  color: #cdd5df;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.field-note {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.input-shell {
  position: relative;
}

textarea {
  display: block;
  width: 100%;
  height: 152px;
  min-height: 152px;
  padding: 15px 17px 42px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(0, 0, 0, 0.27);
  color: var(--text);
  caret-color: var(--lime);
  font-size: 14.5px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

textarea::placeholder {
  color: #5f6975;
}

textarea:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

textarea:focus {
  border-color: rgba(201, 245, 106, 0.5);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 0 4px rgba(201, 245, 106, 0.075);
}

textarea.is-invalid {
  border-color: rgba(255, 157, 157, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 157, 157, 0.07);
}

.clear-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.templates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
}

.templates-label {
  margin-right: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.chip {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.chip:hover {
  border-color: rgba(201, 245, 106, 0.32);
  background: rgba(201, 245, 106, 0.06);
  color: var(--lime);
  transform: translateY(-1px);
}

.chip:active {
  transform: translateY(0);
}

.options-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  margin-top: 21px;
}

.option {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.option legend {
  padding: 0;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.segment {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.23);
}

.segment button {
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.segment button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.segment button.is-active {
  background: var(--lime);
  color: #0a0e05;
  box-shadow: 0 4px 14px rgba(201, 245, 106, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.segment button:active {
  transform: scale(0.97);
}

.option-note {
  margin: 7px 1px 0;
  color: var(--muted-2);
  font-size: 9.8px;
  line-height: 1.5;
  letter-spacing: 0.015em;
}

.generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 54px;
  margin-top: 21px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ddff91 0%, var(--lime) 46%, #abe94f 100%);
  color: #0a0e05;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 12px 34px rgba(201, 245, 106, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.generate-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.035);
  box-shadow:
    0 16px 40px rgba(201, 245, 106, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.generate-btn:active {
  transform: translateY(0);
}

.generate-btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.btn-spark {
  width: 18px;
  height: 18px;
}

.generate-btn kbd {
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.09);
  color: rgba(10, 14, 5, 0.52);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.form-error {
  margin: 10px 1px 0;
  color: var(--danger);
  font-size: 11.5px;
  line-height: 1.55;
}

.form-hint {
  margin: 11px 1px 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

/* ---------- preview ---------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-2);
  font-size: 10.5px;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.status-pill.is-ready {
  border-color: rgba(201, 245, 106, 0.25);
  background: rgba(201, 245, 106, 0.07);
  color: var(--lime);
}

.status-pill.is-warn {
  border-color: rgba(255, 208, 131, 0.26);
  background: rgba(255, 208, 131, 0.07);
  color: var(--warn);
}

.status-pill.is-error {
  border-color: rgba(255, 157, 157, 0.26);
  background: rgba(255, 157, 157, 0.07);
  color: var(--danger);
}

.qr-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 334px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.055), transparent 58%),
    radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    rgba(0, 0, 0, 0.18);
  background-size: auto, 18px 18px, auto;
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0.55;
  pointer-events: none;
}

.corner-tl { top: 13px; left: 13px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); border-top-left-radius: 4px; }
.corner-tr { top: 13px; right: 13px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); border-top-right-radius: 4px; }
.corner-bl { bottom: 13px; left: 13px; border-bottom: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); border-bottom-left-radius: 4px; }
.corner-br { right: 13px; bottom: 13px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); border-bottom-right-radius: 4px; }

.qr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fade-in 0.4s ease both;
}

.empty-art {
  position: relative;
  width: 152px;
  height: 152px;
  margin-bottom: 14px;
}

.empty-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.scan-line {
  position: absolute;
  top: 24%;
  left: 17%;
  right: 17%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 245, 106, 0.75), transparent);
  box-shadow: 0 0 16px rgba(201, 245, 106, 0.4);
  animation: scan 3.4s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 23%; opacity: 0; }
  15%, 85% { opacity: 0.65; }
  50% { top: 77%; opacity: 0.65; }
}

.empty-title {
  margin: 0;
  color: #d4dce5;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.empty-sub {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.015em;
}

.qr-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: qr-in 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.12) both;
}

@keyframes qr-in {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.qr-paper {
  padding: 13px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.qr-paper canvas {
  display: block;
  width: 250px;
  height: auto;
  max-width: 100%;
  border-radius: 2px;
  image-rendering: auto;
}

.qr-result.is-stale .qr-paper {
  opacity: 0.32;
  filter: saturate(0.35);
}

.stale-note {
  padding: 5px 10px;
  border: 1px solid rgba(255, 208, 131, 0.22);
  border-radius: 999px;
  background: rgba(255, 208, 131, 0.07);
  color: var(--warn);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  animation: fade-in 0.35s ease both;
}

.result-bar b {
  color: #d9e1ea;
  font-weight: 600;
}

.meta-dot {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 10px;
  margin-top: 16px;
}

.download-btn,
.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, opacity 0.2s;
}

.download-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #f2f6ed;
  color: #0a0e05;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.download-btn:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}

.copy-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #d8e0e9;
}

.copy-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.download-btn:active:not(:disabled),
.copy-btn:active:not(:disabled) {
  transform: translateY(0);
}

.download-btn:disabled,
.copy-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  transform: none;
}

.download-btn svg,
.copy-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.01em;
}

.privacy-note svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: 0.8;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 21px 22px;
  background: rgba(9, 13, 18, 0.72);
}

.feature-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 245, 106, 0.14);
  border-radius: 10px;
  background: rgba(201, 245, 106, 0.055);
  color: var(--lime);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature h3 {
  margin: 0 0 3px;
  color: #dbe3ec;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.feature p {
  margin: 0;
  color: var(--muted-2);
  font-size: 10.8px;
  line-height: 1.65;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 34px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  row-gap: 8px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-align: center;
}

.icp-link {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.icp-link:hover {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- toast / misc ---------- */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  z-index: 100;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 16px;
  border: 1px solid rgba(201, 245, 106, 0.26);
  border-radius: 11px;
  background: rgba(16, 22, 30, 0.96);
  color: #e8efe1;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease, transform 0.25s ease;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  border-color: rgba(255, 157, 157, 0.3);
  color: #ffd1d1;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 110;
  padding: 14px 18px;
  border: 1px solid rgba(255, 157, 157, 0.3);
  border-radius: 12px;
  background: #1a1114;
  color: #ffd1d1;
  font-size: 13px;
  text-align: center;
}

.copy-helper {
  position: fixed;
  top: -1000px;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------- animations ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero {
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(42px, 5.9vw, 62px);
  }

  .hero-stats {
    gap: 22px;
  }

  .stat {
    min-width: 72px;
    padding-left: 14px;
  }

  .stat strong {
    font-size: 25px;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 52px 0 30px;
  }

  .hero h1 {
    max-width: 700px;
    font-size: clamp(42px, 8vw, 62px);
  }

  .hero-stats {
    padding-bottom: 0;
  }

  .stat {
    min-width: 92px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .qr-stage {
    min-height: 306px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 18px 20px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    height: 66px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand-icon svg {
    width: 23px;
    height: 23px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .header-note {
    font-size: 10px;
  }

  .header-note .header-sep,
  .header-note span:last-child {
    display: none;
  }

  .hero {
    padding: 40px 0 26px;
  }

  .eyebrow {
    margin-bottom: 15px;
    font-size: 9.5px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.5vw, 48px);
    letter-spacing: -0.04em;
  }

  .lede {
    margin-top: 17px;
    font-size: 13.5px;
    line-height: 1.8;
  }

  .desktop-break {
    display: none;
  }

  .hero-stats {
    gap: 0;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .stat {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 14px;
  }

  .stat:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .stat strong {
    font-size: 23px;
  }

  .stat > span {
    font-size: 10px;
  }

  .card {
    padding: 20px;
    border-radius: 22px;
  }

  .card::before {
    left: 22px;
    right: 22px;
  }

  .card-head {
    margin-bottom: 18px;
  }

  .card h2 {
    font-size: 15px;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .generate-btn {
    height: 50px;
    margin-top: 18px;
    font-size: 14px;
  }

  .generate-btn kbd {
    display: none;
  }

  .btn-spark {
    width: 16px;
    height: 16px;
  }

  .qr-stage {
    min-height: 286px;
    padding: 17px;
  }

  .qr-paper {
    padding: 11px;
    border-radius: 15px;
  }

  .qr-paper canvas {
    width: 232px;
  }

  .empty-art {
    width: 132px;
    height: 132px;
    margin-bottom: 10px;
  }

  .action-row {
    grid-template-columns: 1fr 1fr;
  }

  .download-btn,
  .copy-btn {
    height: 44px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .privacy-note {
    font-size: 9.5px;
  }

  .feature {
    padding: 16px 18px;
  }

  .site-footer {
    padding: 26px 0 30px;
  }

  .footer-inner {
    font-size: 9.5px;
  }
}

@media (max-width: 380px) {
  .header-note {
    display: none;
  }

  .hero-stats {
    gap: 0;
  }

  .stat strong {
    font-size: 21px;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .qr-paper canvas {
    width: 208px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
