/* ============================================================
   ShineMnemos — dark modern demo site
   ============================================================ */
:root {
  --bg: #05070d;
  --bg-soft: #0a0f1c;
  --panel: rgba(148, 163, 184, 0.06);
  --panel-solid: #0c1322;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e6ebf4;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #7c6cff;
  --accent-2: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(120deg, #7c6cff 0%, #22d3ee 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(124, 108, 255, 0.16), transparent 60%),
    radial-gradient(800px 420px at 90% 0%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(124, 108, 255, 0.07), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

::selection { background: rgba(124, 108, 255, 0.35); }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #05070d;
  box-shadow: 0 0 22px rgba(124, 108, 255, 0.45);
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 7px 13px;
  border-radius: 9px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--border); }
.nav-cta { margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #05070d;
  box-shadow: 0 4px 24px rgba(124, 108, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(124, 108, 255, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(124, 108, 255, 0.08); }
.btn-ghost:disabled, .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: 9px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 56px; text-align: center; position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 820px;
  margin: 0 auto 20px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* ---------- stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 26px 0 0;
}
.stat {
  background: var(--bg-soft);
  padding: 22px 18px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 72px 0 8px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.025em; font-weight: 800; line-height: 1.15; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* ---------- plugin cards ---------- */
.plugins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.plugin {
  position: relative;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.plugin:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.plugin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plugin-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(124, 108, 255, 0.12);
  border: 1px solid rgba(124, 108, 255, 0.3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.plugin-icon svg { width: 24px; height: 24px; stroke: var(--accent-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-available { color: var(--green); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-soon { color: var(--amber); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); }
.plugin h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.plugin .tagline { color: var(--accent-2); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.plugin .desc { color: var(--muted); font-size: 14.5px; }
.plugin .metrics { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.plugin .metrics li {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.plugin .metrics li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}
.plugin .metrics li.soon-item::before { content: "○"; color: var(--amber); }
.plugin-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-block { display: flex; flex-direction: column; }
.price-block b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.price-block b small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.price-block span { font-size: 12px; color: var(--faint); }

/* ---------- x402 explainer ---------- */
.x402-band {
  margin-top: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.09), rgba(34, 211, 238, 0.06));
  padding: 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}
.x402-band h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.x402-band p { color: var(--muted); font-size: 14.5px; }
.x402-band .chain { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
.x402-band .chain b { color: var(--text); font-weight: 600; }
.x402-band code { font-family: var(--mono); font-size: 12.5px; background: rgba(0,0,0,0.35); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); color: var(--accent-2); }

/* ---------- code block ---------- */
.code-block {
  position: relative;
  background: #080d18;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 14px 0;
}
.code-block pre {
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: #c9d6ef;
}
.code-block .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.05);
  font-size: 12px;
  color: var(--faint);
  font-family: var(--mono);
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.token-k { color: #7dd3fc; }
.token-s { color: #a5d6a5; }
.token-c { color: #64748b; font-style: italic; }
.token-n { color: #fbbf24; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124, 108, 255, 0.45);
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }
.step code { font-family: var(--mono); font-size: 12px; color: var(--accent-2); background: rgba(0,0,0,0.3); padding: 1px 5px; border-radius: 5px; }

/* ---------- download card ---------- */
.download-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.download-card .info { flex: 1 1 300px; }
.download-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.download-card p { color: var(--muted); font-size: 14px; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent-2);
  padding: 5px 12px;
  border-radius: 8px;
  margin-top: 10px;
}
.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 4px 11px;
  border-radius: 999px;
}
.demo-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- keys page ---------- */
.keys-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.key-form {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 84px;
}
.key-form h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.key-form > p { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #080d18;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.18); }
.key-output {
  display: none;
  margin-top: 16px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.07);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.key-output.show { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }
.key-output .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.key-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text);
  background: #05070d;
  border: 1px dashed rgba(52, 211, 153, 0.4);
  border-radius: 8px;
  padding: 9px 12px;
  word-break: break-all;
}
.key-output .note { font-size: 12px; color: var(--muted); margin-top: 8px; }

.table-card {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-card .table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.table-card .table-head h3 { font-size: 17px; font-weight: 700; }
.table-card .table-head span { font-size: 12.5px; color: var(--faint); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 11px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.03);
}
td { padding: 13px 22px; border-bottom: 1px solid var(--border); color: var(--muted); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(124, 108, 255, 0.04); }
td.mono, td .mono { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.pill-active { color: var(--green); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); }
.pill-revoked { color: var(--red); background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); }
.pill-active::before, .pill-revoked::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- modal (buy) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.modal-close:hover { color: var(--text); background: var(--panel); }
.modal-body { padding: 22px 24px; }
.modal-body .what { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.challenge-box {
  background: #080d18;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.challenge-box .row { display: flex; justify-content: space-between; gap: 12px; }
.challenge-box .row span { color: var(--faint); font-size: 12.5px; }
.challenge-box .row b { font-family: var(--mono); font-weight: 600; color: var(--text); font-size: 12.5px; word-break: break-all; text-align: right; }
.pay-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pay-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--faint);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.demo-result {
  display: none;
  margin-top: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--amber);
}
.demo-result.show { display: block; animation: fadeIn 0.25s ease; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 200;
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: 92vw;
  display: flex;
  gap: 10px;
  align-items: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.ok { border-color: rgba(52, 211, 153, 0.5); }
.toast.ok::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---------- footer ---------- */
.footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  background: var(--bg-soft);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer .brand { font-size: 15px; }
.footer p { color: var(--faint); font-size: 13px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13.5px; }

/* ---------- misc ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 36px; }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .plugins, .steps, .keys-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .x402-band { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .key-form { position: static; }
  .hero { padding-top: 60px; }
}
