:root {
  --paper: #f4ede1;
  --ink: #17120f;
  --muted: #665d56;
  --card: rgba(255, 249, 240, 0.78);
  --line: rgba(23, 18, 15, 0.12);
  --orange: #c45c2b;
  --cyan: #0f8b8d;
  --green: #3a7d44;
  --red: #aa3a38;
  --shadow: 0 18px 50px rgba(23, 18, 15, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(196, 92, 43, 0.22), transparent 28rem),
    radial-gradient(circle at right 20%, rgba(15, 139, 141, 0.2), transparent 26rem),
    linear-gradient(180deg, #efe6d6 0%, #f7f1e7 48%, #ece4d7 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

button,
input,
table {
  font: inherit;
}

.shell {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.hero-copy,
.token-panel,
.panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
}

.hero-copy h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2.5rem, 4vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.token-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.token-row {
  display: flex;
  gap: 0.75rem;
}

input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

button:hover {
  filter: brightness(1.08);
}

.ghost-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

.summary-grid,
.content-grid {
  display: grid;
  gap: 1rem;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.content-grid {
  grid-template-columns: 1.35fr 1fr;
  margin-bottom: 1rem;
}

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

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.3rem;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto auto -2rem -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  opacity: 0.18;
}

.accent-orange::after { background: var(--orange); }
.accent-cyan::after { background: var(--cyan); }
.accent-green::after { background: var(--green); }
.accent-red::after { background: var(--red); }

.metric-label,
.metric-sub {
  display: block;
}

.metric-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-value {
  display: block;
  margin: 0.45rem 0 0.25rem;
  font-size: 2.35rem;
  line-height: 1;
}

.metric-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  padding: 1.2rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.panel-head h2,
.panel h3 {
  margin: 0.2rem 0 0;
}

.table-wrap {
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

th,
td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}

tbody tr:last-child td {
  border-bottom: none;
}

.placeholder {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  white-space: nowrap;
}

.status-online { background: rgba(58, 125, 68, 0.12); }
.status-offline { background: rgba(170, 58, 56, 0.1); }
.status-pending { background: rgba(196, 92, 43, 0.12); }
.status-claimed { background: rgba(15, 139, 141, 0.12); }
.status-completed { background: rgba(58, 125, 68, 0.12); }
.status-failed { background: rgba(170, 58, 56, 0.12); }

.stack {
  display: grid;
  gap: 1rem;
}

.callout {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(23, 18, 15, 0.05);
  line-height: 1.5;
}

.setup-block {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.35);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.muted-pill {
  color: var(--muted);
}

.steps-list,
.notes-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

pre {
  margin: 0 0 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #181310;
  color: #f7efe2;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}

.download-box {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px dashed var(--line);
  background: linear-gradient(135deg, rgba(15, 139, 141, 0.08), rgba(196, 92, 43, 0.08));
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  justify-content: flex-start;
  min-width: min(30rem, 100%);
}

.download-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.download-item a {
  color: var(--cyan);
  word-break: break-all;
}

.download-copy h3 {
  margin: 0;
}

.download-copy p {
  margin: 0.35rem 0 0;
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .hero,
  .summary-grid,
  .content-grid,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 1rem, 100%);
  }

  .token-row {
    flex-direction: column;
  }

  .download-box {
    flex-direction: column;
    align-items: stretch;
  }

  .download-actions {
    justify-content: flex-start;
  }

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

  table {
    min-width: 34rem;
  }
}
