:root {
  color-scheme: dark;
  --bg: #050806;
  --panel: #0c120f;
  --panel-strong: #111a15;
  --line: #1f3329;
  --text: #effff5;
  --muted: #91aa9c;
  --green: #44ff91;
  --green-soft: rgba(68, 255, 145, 0.14);
  --white-soft: rgba(239, 255, 245, 0.08);
  --danger: #ff6b6b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(68, 255, 145, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 255, 145, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--text);
}

a {
  color: inherit;
}

.shell {
  width: min(920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 8vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 0.95rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 8, 6, 0.75);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.terminal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 15, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.panel-topline {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.panel-topline span {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.product-list {
  display: grid;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}

.product-card:last-child {
  border-bottom: 0;
}

.product-card.primary {
  background: linear-gradient(90deg, var(--green-soft), transparent 62%);
}

.product-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.product-title {
  margin: 0;
  font-size: 1.08rem;
}

.product-id,
.product-status {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

.product-status {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white-soft);
}

.product-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.price {
  font-family: "SFMono-Regular", Consolas, monospace;
  color: var(--green);
  font-size: 1.25rem;
}

.buy-button {
  align-self: center;
  min-width: 132px;
  min-height: 44px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #031006;
  font-weight: 750;
  cursor: pointer;
}

.buy-button[data-state="placeholder"] {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  cursor: help;
}

.notice {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
}

.loading,
.error {
  margin: 0;
  padding: 18px 16px;
  color: var(--muted);
}

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

.flow-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5, 8, 6, 0.72);
}

.flow-strip div {
  min-height: 54px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.flow-strip div:last-child {
  border-right: 0;
}

.flow-strip span {
  display: block;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  margin-bottom: 4px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--green);
  text-decoration: none;
}

@media (max-width: 640px) {
  .shell {
    align-content: start;
    padding-top: 22px;
  }

  .masthead,
  .footer {
    display: grid;
  }

  .status-pill {
    width: fit-content;
  }

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

  .buy-button {
    width: 100%;
  }

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

  .flow-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-strip div:last-child {
    border-bottom: 0;
  }
}
