:root {
  color-scheme: light;
  --bg: #f6fcfa;
  --panel: #ffffff;
  --text: #111318;
  --muted: #7a8190;
  --line: #dfe8e5;
  --line-soft: #edf3f1;
  --primary: #14a987;
  --primary-strong: #0a8f74;
  --primary-soft: #e0f6f1;
  --success: #14a987;
  --danger: #b42318;
  --amber: #a16207;
  --shadow: 0 30px 90px rgba(20, 169, 135, .14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 169, 135, .09), transparent 34rem),
    radial-gradient(circle at 90% 18%, rgba(20, 169, 135, .07), transparent 38rem),
    linear-gradient(180deg, #fbfefd 0%, var(--bg) 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 48px;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

main {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 28px 0 30px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  color: #00886f;
  background: #dff5ef;
  border: 1px solid #b7e5da;
  border-radius: 999px;
  font-size: 21px;
  font-weight: 900;
}

.hero-pill span {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38c4aa;
}

.hero-pill span::after {
  position: absolute;
  inset: 6px;
  content: "";
  border-radius: inherit;
  background: #0b9277;
}

h1,
h2,
p {
  margin: 0;
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: .28em;
  line-height: .95;
  font-size: clamp(48px, 6.4vw, 82px);
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 span {
  color: #111318;
}

.hero h1 strong {
  color: var(--primary);
  font-weight: 950;
}

.hero > p {
  color: var(--muted);
  font-size: clamp(18px, 1.75vw, 28px);
  line-height: 1.45;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.trust-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  min-height: 56px;
  padding: 0 26px;
  color: #29454a;
  background: rgba(255, 255, 255, .84);
  border: 1px solid #ccece5;
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(20, 169, 135, .10);
  font-size: 21px;
  font-weight: 900;
}

.workspace {
  padding: 0 0 20px;
}

.redeem-card,
.query-panel {
  overflow: hidden;
  width: min(1120px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.status-strip {
  display: grid;
  grid-template-columns: 1fr 180px 1fr 180px 1fr;
  align-items: start;
  justify-items: center;
  padding: 34px clamp(24px, 8vw, 210px) 28px;
}

.status-strip::before,
.status-strip::after {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 29px;
  content: "";
  background: #e7e7e7;
  border-radius: 999px;
}

.status-strip::before {
  grid-column: 2;
  grid-row: 1;
}

.status-strip::after {
  grid-column: 4;
  grid-row: 1;
}

.step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #9aa0a9;
  font-size: 19px;
  font-weight: 500;
}

.step:nth-child(1) {
  grid-column: 1;
}

.step:nth-child(2) {
  grid-column: 3;
}

.step:nth-child(3) {
  grid-column: 5;
}

.step b {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #99a1aa;
  background: #eeeef0;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.step.active {
  color: #12151a;
  font-weight: 900;
}

.step.active b {
  color: var(--primary);
  background: #ffffff;
  border: 3px solid var(--primary);
}

.step.done {
  color: var(--primary-strong);
}

.step.done b {
  color: #ffffff;
  background: var(--primary);
}

.card-body {
  display: grid;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.form-block {
  display: grid;
  gap: 16px;
  padding: 30px clamp(24px, 5vw, 54px);
}

.form-block + .form-block {
  border-top: 1px solid var(--line-soft);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

h2 {
  color: #273142;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

h2 span {
  margin-left: 8px;
  color: #344054;
}

.field {
  display: grid;
  gap: 14px;
}

.field > span {
  color: #2f3a4b;
  font-size: 16px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #d8e1df;
  border-radius: 24px;
  outline: 0;
}

input {
  height: 68px;
  padding: 0 24px;
  font-size: 20px;
}

textarea {
  min-height: 118px;
  padding: 20px 28px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.65;
}

input::placeholder,
textarea::placeholder {
  color: #8a919d;
}

input:focus,
textarea:focus {
  border-color: rgba(20, 169, 135, .84);
  box-shadow: 0 0 0 5px rgba(20, 169, 135, .12);
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.primary,
.secondary,
.ghost {
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-height: 64px;
  padding: 14px 24px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: 950;
}

.primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 20px 40px rgba(20, 169, 135, .18);
}

.primary:hover {
  background: var(--primary-strong);
}

.secondary {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border: 1px solid #bde6dc;
}

.ghost {
  width: auto;
  min-width: 92px;
  min-height: 44px;
  padding: 10px 16px;
  color: #6d7480;
  background: #f3f7f6;
  border-radius: 999px;
  font-size: 14px;
}

.hint-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.result-card {
  padding: 18px;
  color: #334155;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.compact {
  font-size: 14px;
}

.kv {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.log {
  display: grid;
  gap: 10px;
  min-height: 132px;
  max-height: 340px;
  overflow: auto;
  padding: 18px;
  background: #111827;
  border-radius: 20px;
}

.log p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.log .ok {
  color: #86efac;
}

.log .warn {
  color: #fde68a;
}

.log .err {
  color: #fca5a5;
}

.err {
  color: var(--danger);
}

.badge {
  display: inline-block;
  padding: 5px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.badge.success {
  background: var(--success);
}

.badge.failed {
  background: var(--danger);
}

.badge.processing {
  background: var(--amber);
}

.bottom-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 14px 0 10px;
}

.bottom-links a {
  color: #8d94a0;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
}

.bottom-links a:hover {
  color: var(--primary-strong);
}

.tools {
  display: none;
  padding: 0 0 42px;
}

.tools:target {
  display: block;
}

.query-panel {
  padding: 36px clamp(26px, 5vw, 64px);
}

.query-panel .secondary {
  margin-top: 18px;
}

@media (max-width: 860px) {
  main {
    width: min(100% - 24px, 640px);
  }

  .hero {
    gap: 12px;
    padding: 18px 0 18px;
  }

  .hero-pill {
    min-height: 38px;
    padding: 0 18px;
    font-size: 17px;
  }

  .hero-pill span {
    width: 18px;
    height: 18px;
  }

  .hero h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .hero > p {
    max-width: 330px;
    font-size: 15px;
  }

  .trust-list {
    gap: 10px;
  }

  .trust-list span {
    min-width: 0;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .redeem-card,
  .query-panel {
    border-radius: 22px;
  }

  .status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 20px 14px 18px;
  }

  .status-strip::before,
  .status-strip::after {
    display: none;
  }

  .step,
  .step:nth-child(1),
  .step:nth-child(2),
  .step:nth-child(3) {
    grid-column: auto;
    font-size: 15px;
  }

  .step b {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .form-block,
  .query-panel {
    padding: 22px 16px;
  }

  .panel-head,
  .hint-row {
    align-items: stretch;
    flex-direction: column;
  }

  h2 {
    font-size: 20px;
  }

  input {
    height: 56px;
    padding: 0 20px;
    font-size: 17px;
  }

  textarea {
    min-height: 126px;
    padding: 16px 20px;
  }

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

  .primary,
  .secondary {
    min-height: 54px;
    font-size: 17px;
  }

  .bottom-links {
    gap: 28px;
    padding: 14px 0 10px;
  }

  .bottom-links a {
    font-size: 17px;
  }

  .kv {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}
