/* Ixonomic — landing & demo styles. Self-contained, no external assets. */
:root {
  --bg: #131313;
  --bg2: #1b1b1b;
  --panel: #222018;
  --line: #3a352a;
  --text: #efe7d4;
  --muted: #b0a68d;
  --gold: #c9a227;
  --gold2: #e6c65a;
  --silver: #b8bcc4;
  --bronze: #b0713b;
  --green: #4caf7d;
  --red: #d05c5c;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}
code, .mono {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92em;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(19,19,19,0.96);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; gap: 16px; flex-wrap: wrap;
}
header.site img { height: 40px; width: auto; }
nav.main { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.95rem; }
nav.main a { color: var(--muted); }
nav.main a:hover { color: var(--gold2); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 84px 0 64px; background:
  radial-gradient(ellipse at 50% -20%, #2a2410 0%, transparent 55%); }
.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3.1rem);
  line-height: 1.2; letter-spacing: 0.5px; margin-bottom: 18px;
}
.hero h1 em { color: var(--gold2); font-style: normal; }
.hero p.sub {
  color: var(--muted); max-width: 680px; margin: 0 auto 34px;
  font-size: 1.08rem;
}
.badge {
  display: inline-block; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 4px 14px;
  font-size: 0.82rem; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 26px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 6px;
  border: 1px solid var(--gold); font-size: 1rem;
}
.btn.primary { background: var(--gold); color: #191400; font-weight: bold; }
.btn.primary:hover { background: var(--gold2); text-decoration: none; }
.btn.ghost { color: var(--gold2); }
.btn.ghost:hover { border-color: var(--gold2); text-decoration: none; }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px;
}
section h2 .num { color: var(--gold); }
section p.lead { color: var(--muted); max-width: 760px; margin-bottom: 30px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--gold2); }
.card p { font-size: 0.95rem; color: var(--muted); }
.card .demo-link { display: inline-block; margin-top: 12px; font-size: 0.9rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
th { background: var(--panel); color: var(--gold2); }
td { color: var(--muted); }
td strong { color: var(--text); }
.table-scroll { overflow-x: auto; }

/* Steps (mint pipeline) */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: step; }
.step {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #191400; font-weight: bold;
  align-items: center; justify-content: center; margin-bottom: 10px;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* Coins */
.coin-card { text-align: center; }
.coin-card img { width: 96px; height: 96px; margin-bottom: 12px; }
.coin-card .val { color: var(--gold2); font-size: 1.1rem; margin-bottom: 6px; }

/* Footer */
footer {
  border-top: 1px solid var(--line); padding: 40px 0 60px;
  color: var(--muted); font-size: 0.9rem; text-align: center;
}
footer .coins img { width: 44px; margin: 0 6px 14px; }

/* ============ Demo pages ============ */
.demo-head { padding: 40px 0 8px; }
.demo-head .crumb { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; display:block; }
.demo-head h1 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); margin-bottom: 10px; }
.demo-head p.lead { color: var(--muted); max-width: 780px; }
.demo-stage {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin: 26px 0;
}
.demo-stage h3 { color: var(--gold2); margin-bottom: 14px; font-size: 1rem;
  letter-spacing: 1px; text-transform: uppercase; }
.sim-note {
  font-size: 0.82rem; color: var(--muted); border: 1px dashed var(--line);
  border-radius: 6px; padding: 8px 12px; margin-bottom: 18px; display: inline-block;
}
.controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
button.act {
  background: var(--gold); border: none; color: #191400; font-weight: bold;
  padding: 11px 20px; border-radius: 6px; cursor: pointer; font-size: 0.95rem;
  font-family: inherit;
}
button.act:hover { background: var(--gold2); }
button.act.alt { background: transparent; border: 1px solid var(--gold); color: var(--gold2); }
button.act.danger { background: transparent; border: 1px solid var(--red); color: var(--red); }
button.act:disabled { opacity: 0.45; cursor: not-allowed; }
input.num, select.sel {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px 12px; font-size: 1rem; font-family: inherit;
  min-width: 120px;
}
.log {
  background: #0e0e0e; border: 1px solid var(--line); border-radius: 6px;
  padding: 16px; font-family: "Consolas", "Courier New", monospace;
  font-size: 0.85rem; line-height: 1.7; min-height: 120px; max-height: 340px;
  overflow-y: auto; white-space: pre-wrap; word-break: break-word;
  color: var(--muted);
}
.log .ok { color: var(--green); }
.log .bad { color: var(--red); }
.log .gold { color: var(--gold2); }
.explain { margin-top: 22px; }
.explain h3 { color: var(--gold2); margin-bottom: 10px; }
.explain ul { margin-left: 20px; color: var(--muted); }
.explain li { margin-bottom: 6px; }
.demo-nav { margin: 34px 0 60px; }
.demo-nav .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.demo-nav a.pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-size: 0.85rem; color: var(--muted);
}
.demo-nav a.pill:hover { color: var(--gold2); border-color: var(--gold); text-decoration: none; }
.demo-nav a.pill.here { color: var(--gold2); border-color: var(--gold); }

/* Mock dashboard bits */
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px;
}
.stat .k { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.stat .v { font-size: 1.3rem; color: var(--gold2); margin-top: 4px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 6px; padding: 8px 16px; cursor: pointer; font-family: inherit; font-size: 0.9rem;
}
.tabs button.on { border-color: var(--gold); color: var(--gold2); }
.tabpane { display: none; }
.tabpane.on { display: block; }
.chain-item {
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 6px; padding: 10px 14px; margin-bottom: 10px;
  font-family: "Consolas", "Courier New", monospace; font-size: 0.82rem;
  color: var(--muted); background: #0e0e0e;
}
.chain-item.broken { border-left-color: var(--red); }
.chain-item .h { color: var(--gold2); }
.chain-item .bad { color: var(--red); }
.modal-back {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 100; align-items: center; justify-content: center; padding: 20px;
}
.modal-back.on { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--gold); border-radius: 12px;
  max-width: 420px; width: 100%; padding: 26px;
}
.modal h4 { color: var(--gold2); margin-bottom: 12px; }
.modal p { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  section { padding: 44px 0; }
}

/* Language toggle */
.lang { display: flex; gap: 6px; align-items: center; font-size: 0.85rem; }
.lang a { color: var(--muted); padding: 3px 8px; border-radius: 5px; border: 1px solid transparent; }
.lang a.on { color: var(--gold2); border-color: var(--gold); }
.lang a:hover { text-decoration: none; color: var(--gold2); }
