:root {
  --bg: #0a120a;
  --surface: #0f1a0f;
  --surface2: #142213;
  --line: #1e3019;
  --lime: #c8f92e;
  --lime-soft: #a7d81f;
  --lime-dim: rgba(200, 249, 46, 0.14);
  --ink: #ecf4dd;
  --muted: #8ba178;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- atmosphere ---- */

.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.55; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 120vmax; height: 120vmax;
  left: 50%; top: -60vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(200, 249, 46, 0.09), transparent 65%);
}

/* ---- demo ribbon ---- */

.demo-ribbon {
  position: relative; z-index: 5;
  background: var(--lime); color: #101a06;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center;
  padding: 0.45rem 1rem;
}

/* ---- hero ---- */

.hero {
  position: relative; z-index: 2;
  text-align: center;
  padding: clamp(3.5rem, 9vh, 7rem) 1.5rem 2rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em;
  color: var(--lime-soft);
  border: 1px solid var(--line);
  background: rgba(15, 26, 15, 0.7);
  padding: 0.45rem 0.9rem; border-radius: 999px;
  animation: rise 0.7s ease both;
}

.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: pulse 2s infinite;
}

.hero-sack {
  width: clamp(150px, 22vw, 220px);
  margin: 1.6rem auto -0.4rem;
  filter: drop-shadow(0 0 34px rgba(200, 249, 46, 0.35));
  animation: rise 0.7s 0.04s ease both, floaty 5s 1s ease-in-out infinite;
}

.hero-sack img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero-title {
  font-family: "Grenze Gotisch", serif;
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin-top: 1.6rem;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(200, 249, 46, 0.25);
  animation: rise 0.7s 0.08s ease both;
}

.hero-sub {
  font-family: "Grenze Gotisch", serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  color: var(--muted);
  margin-top: 0.2rem;
  animation: rise 0.7s 0.16s ease both;
}

.hero-sub .lime { color: var(--lime); }

.hero-tag {
  max-width: 34rem; margin: 1.4rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55; color: var(--muted);
  animation: rise 0.7s 0.24s ease both;
}

.hero-tag em { color: var(--ink); font-style: normal; border-bottom: 2px solid var(--lime); }

.hero-cta {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2rem;
  animation: rise 0.7s 0.32s ease both;
}

.btn {
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em;
  text-decoration: none; border-radius: 10px;
  padding: 0.85rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-lime {
  background: var(--lime); color: #101a06; font-weight: 500;
  box-shadow: 0 0 24px rgba(200, 249, 46, 0.35);
}
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(200, 249, 46, 0.55); }

.btn-ghost {
  color: var(--ink); border: 1px solid var(--line);
  background: rgba(15, 26, 15, 0.6);
}
.btn-ghost:hover { background: var(--surface2); transform: translateY(-2px); }

/* ---- flow canvas ---- */

.flow {
  position: relative; z-index: 1;
  max-width: 72rem; margin: 1.5rem auto 0; padding: 0 1.5rem;
}

.flow-labels {
  display: flex; justify-content: space-between;
  padding: 0 6%;
  margin-bottom: -0.5rem;
}

.flow-label { display: flex; flex-direction: column; }
.flow-label.to { text-align: right; }

.flow-label-title {
  font-family: "Grenze Gotisch", serif;
  font-size: 1.5rem; color: var(--ink);
}

.flow-label-sub {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

#flowCanvas {
  display: block; width: 100%; height: 340px;
}

/* ---- stats ---- */

.stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  max-width: 62rem; margin: 1rem auto 0;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--line); overflow: hidden;
}

.stat {
  background: var(--surface);
  padding: 1.4rem 1.2rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}

.stat-label {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--ink); font-variant-numeric: tabular-nums;
}

.stat-value.lime { color: var(--lime); text-shadow: 0 0 18px rgba(200, 249, 46, 0.35); }
.stat-value small { font-size: 0.55em; color: var(--muted); font-weight: 400; }

/* ---- manifesto ---- */

.manifesto {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 56rem;
  margin: 5.5rem auto 0;
  padding: 3.5rem 1.5rem 4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto-old {
  font-family: "Grenze Gotisch", serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.15;
  color: var(--muted);
}

.manifesto-new {
  font-family: "Grenze Gotisch", serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  line-height: 1.05;
  color: var(--ink);
  margin-top: 1.2rem;
  text-shadow: 0 0 50px rgba(200, 249, 46, 0.2);
}

.manifesto-new .lime { color: var(--lime); }

.manifesto-sub {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-top: 1.6rem;
}

/* ---- how it works ---- */

.how {
  position: relative; z-index: 2;
  max-width: 62rem; margin: 4.5rem auto 0; padding: 0 1.5rem;
}

.how-title {
  font-family: "Grenze Gotisch", serif; font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem); color: var(--ink);
  text-align: center;
}

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 2rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem 1.4rem 1.8rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.step:hover { transform: translateY(-3px); border-color: rgba(200, 249, 46, 0.35); }

.step-num {
  font-family: var(--mono); font-size: 0.8rem;
  color: var(--lime);
  display: inline-block;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.25rem 0.55rem;
}

.step h3 {
  font-family: "Grenze Gotisch", serif; font-weight: 500;
  font-size: 1.45rem; color: var(--ink);
  margin-top: 0.9rem;
}

.step p {
  font-size: 0.92rem; line-height: 1.55;
  color: var(--muted); margin-top: 0.5rem;
}

/* ---- ledger ---- */

.ledger {
  position: relative; z-index: 2;
  max-width: 62rem; margin: 4.5rem auto 0; padding: 0 1.5rem;
}

.ledger-title {
  font-family: "Grenze Gotisch", serif; font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem); color: var(--ink);
}

.ledger-sub {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.3rem;
}

.feed { list-style: none; margin-top: 1.6rem; }

.feed li {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: 0.85rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  animation: rise 0.45s ease both;
}

.feed li:first-child { border-top: 1px solid var(--line); }

.feed .t { color: var(--muted); font-size: 0.72rem; min-width: 5.5rem; }
.feed .amt { color: var(--lime); min-width: 8rem; }
.feed .arrow { color: var(--muted); }
.feed .addr { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.feed a { color: var(--muted); text-decoration: none; margin-left: auto; font-size: 0.72rem; }
.feed a:hover { color: var(--lime); }

.feed .empty { color: var(--muted); justify-content: center; border: 1px dashed var(--line); border-radius: 12px; }

/* ---- footer ---- */

.foot {
  position: relative; z-index: 2;
  text-align: center; margin-top: 5rem; padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink);
  display: flex; flex-direction: column; gap: 0.5rem;
}

.mono { font-family: var(--mono); font-size: 0.78rem; }
.muted { color: var(--muted); }
.foot a { color: var(--lime-soft); text-decoration: none; word-break: break-all; }
.foot a:hover { color: var(--lime); }

/* ---- animations ---- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---- responsive ---- */

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  #flowCanvas { height: 260px; }
  .feed li { flex-wrap: wrap; gap: 0.35rem 0.8rem; }
  .feed a { margin-left: 0; }
}
