
:root {
  color-scheme: light;
  --bg: #f6f2e8;
  --panel: rgba(255, 252, 244, 0.88);
  --ink: #18211f;
  --muted: #57615d;
  --accent: #0a7c66;
  --accent-ink: #effbf7;
  --line: rgba(24, 33, 31, 0.12);
  --error: #b13a1d;
  --success: #0f7b42;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(10, 124, 102, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(230, 154, 77, 0.18), transparent 28%),
    var(--bg);
}

main {
  width: min(1520px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  margin-bottom: 28px;
  max-width: 1180px;
}

.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 360px);
  gap: 28px;
  align-items: end;
}

.hero-copy {
  min-width: 0;
}

.hero-art {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    linear-gradient(180deg, rgba(255, 250, 241, 0.9), rgba(234, 244, 239, 0.82));
  box-shadow: 0 18px 60px rgba(24, 33, 31, 0.08);
  overflow: hidden;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: auto -16% -28% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(10, 124, 102, 0.14), transparent 68%);
}

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

.hero-caption {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 0.94;
  font-weight: 600;
}

.lede {
  max-width: 72ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.lede a,
.subtle a {
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(380px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(24, 33, 31, 0.08);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
}

.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.fieldset {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.field-grid .field {
  margin-bottom: 0;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(10, 124, 102, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-right: 10px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status {
  margin-top: 16px;
  min-height: 24px;
  color: var(--muted);
}

.status[data-kind="error"] { color: var(--error); }
.status[data-kind="success"] { color: var(--success); }

.connector {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
}

.connector-panel {
  margin-top: 18px;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  overflow: visible;
}

.connector-panel[hidden] {
  display: none;
}

.connector-panel p {
  margin: 0;
  max-width: 32ch;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
}

.connector-qr {
  display: block;
  width: min(100%, 380px);
  max-width: 380px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 18px;
  background: #fffaf0;
  border: 1px solid var(--line);
  image-rendering: pixelated;
}

pre {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(24, 33, 31, 0.92);
  color: #f6f2e8;
  font-size: 13px;
  line-height: 1.5;
}

.output-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subtle {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 24px;
}

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

.wallet-summary,
.validation-summary {
  color: var(--muted);
  line-height: 1.6;
}

.miner-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 12px;
}

.miner-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.miner-check input {
  margin-top: 2px;
}

.miner-check strong {
  display: block;
  font-size: 14px;
}

.miner-check span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.stat-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-card code {
  display: block;
  word-break: break-all;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-row button {
  padding: 10px 14px;
}

@media (max-width: 820px) {
  main {
    width: min(100vw - 24px, 720px);
    padding: 32px 0 48px;
  }

  .hero--split {
    grid-template-columns: 1fr;
  }

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

  .miner-check-grid,
  .stat-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1360px) {
  .grid {
    grid-template-columns: minmax(0, 1.72fr) minmax(400px, 0.92fr);
  }
}
