:root {
  --green: #00b878;
  --green-hi: #2ee6a1;
  --green-dim: rgba(0, 184, 120, 0.14);
  --bg: #06120e;
  --bg-2: #0a1a15;
  --panel: rgba(12, 30, 24, 0.78);
  --panel-solid: #0d211b;
  --line: rgba(120, 220, 185, 0.14);
  --line-2: rgba(120, 220, 185, 0.24);
  --ink: #e8f6f0;
  --muted: #8aa79d;
  --faint: #5b7a70;
  --warn: #ffb547;
  --err: #ff6b6b;
  --radius: 20px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 78% -6%, rgba(0, 184, 120, 0.20), transparent 70%),
    radial-gradient(700px 500px at -10% 40%, rgba(0, 184, 120, 0.08), transparent 70%),
    var(--bg);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
.mono { font-family: var(--mono); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: .35;
}
.topbar, main, .foot, .chain { position: relative; z-index: 1; }

/* Top bar */
.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex; align-items: center; gap: 24px;
}
.brand img { display: block; width: 140px; height: auto; }
.topnav { display: flex; gap: 6px; margin-left: auto; }
.topnav a {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.topnav a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.topnav .nav-cta { color: var(--bg); background: var(--green); font-weight: 600; }
.topnav .nav-cta:hover { background: var(--green-hi); color: var(--bg); }
.status-pill {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-hi); padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(0, 184, 120, .06);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-hi); display: inline-block;
  box-shadow: 0 0 0 0 rgba(46, 230, 161, .6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46,230,161,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,161,0); } }

/* Block stream */
.chain { height: 46px; overflow: hidden; border-block: 1px solid var(--line); background: rgba(4, 14, 11, .55);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.chain-track { display: flex; gap: 10px; height: 100%; align-items: center; width: max-content; animation: chain 60s linear infinite; }
.block {
  display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: .7rem; color: var(--faint);
  white-space: nowrap; position: relative;
}
.block::after { content: ""; position: absolute; right: -11px; top: 50%; width: 10px; height: 1px; background: var(--line-2); }
.block i { width: 6px; height: 6px; border-radius: 2px; background: var(--green); opacity: .7; }
.block b { color: var(--muted); font-weight: 500; }
@keyframes chain { to { transform: translateX(-50%); } }

/* Layout */
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.kicker { margin: 0 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-hi); }
.kicker .mono { color: var(--faint); margin-right: 6px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center;
  padding: 72px 0 96px;
}
.hero h1 { margin: 0; font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
.grad { background: linear-gradient(90deg, var(--green) 0%, var(--green-hi) 60%, #b6ffe2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 22px 0 0; max-width: 34rem; font-size: 1.08rem; line-height: 1.65; color: var(--muted); }
.proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.proof li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink); }
.proof svg { width: 18px; height: 18px; color: var(--green-hi); }
.coins { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.coin {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: .8rem; color: var(--muted);
}
.coin i {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-family: var(--mono); font-size: .5rem; font-weight: 700; color: #04110c; letter-spacing: -.04em;
}
.coin small { color: var(--faint); font-family: var(--mono); font-size: .66rem; }

/* Console */
.console {
  position: relative; border-radius: 24px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(16, 38, 31, .92), rgba(9, 24, 19, .94));
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden; backdrop-filter: blur(10px);
}
.console::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--green-hi) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; opacity: .8;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.console-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #23413a; }
.dots i:first-child { background: #3a5c52; }
.path { font-size: .74rem; color: var(--faint); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .68rem; color: var(--green-hi); letter-spacing: .08em; }
.live .pulse { width: 6px; height: 6px; }
.console-body { padding: 26px 26px 20px; }
.console h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.02em; }
.console-sub { margin: 6px 0 22px; color: var(--muted); font-size: .92rem; }
label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.opt { font-weight: 500; color: var(--faint); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.money {
  display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .28); transition: border-color .2s, box-shadow .2s;
}
.money:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-dim); }
.money.error { border-color: var(--err); box-shadow: 0 0 0 4px rgba(255, 107, 107, .12); }
.money .cur { font-size: 1.5rem; color: var(--faint); font-weight: 600; }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; }
.money input::placeholder { color: #36564c; }
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.money input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.money strong { font-family: var(--mono); font-size: .78rem; color: var(--green-hi); padding: 5px 9px; border-radius: 8px; background: var(--green-dim); }
.chips { display: flex; gap: 8px; margin-top: 10px; }
.chips button {
  flex: 1; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
  font-family: var(--mono); font-size: .8rem; color: var(--muted); cursor: pointer; transition: all .15s;
}
.chips button:hover, .chips button.on { color: var(--green-hi); border-color: var(--green); background: var(--green-dim); }
.field-error { min-height: 1.2em; margin: 8px 0 10px; color: var(--err); font-size: .82rem; }
.text {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .28); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.text::placeholder { color: #4b6a60; }
.text:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-dim); }
.ref-preview { display: flex; gap: 10px; align-items: center; margin: 10px 0 20px; font-size: .74rem; color: var(--faint); }
.ref-preview span { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; }
.ref-preview b { font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pay-btn {
  position: relative; overflow: hidden; width: 100%; height: 58px; border: 0; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  background: linear-gradient(180deg, #19d18e, var(--green)); color: #03130d; font-weight: 700; font-size: 1.02rem;
  box-shadow: 0 12px 34px rgba(0, 184, 120, .35), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s, box-shadow .2s;
}
.pay-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 44px rgba(0, 184, 120, .45), inset 0 1px 0 rgba(255,255,255,.35); }
.pay-btn:active { transform: translateY(0); }
.pay-btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.pay-btn .scan { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 60%, 100% { transform: translateX(100%); } }
.pay-btn.busy { pointer-events: none; filter: saturate(.7); }
.pay-btn.small { width: auto; padding: 0 26px; height: 52px; flex-shrink: 0; }

.console-log {
  height: 112px; overflow: hidden; padding: 12px 18px; border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .32); font-size: .72rem; line-height: 1.7; color: var(--faint);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.log-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: in .3s ease-out; }
.log-line .t { color: #3e5f55; margin-right: 8px; }
.log-line .k { color: var(--green-hi); }
.log-line .w { color: var(--warn); }
@keyframes in { from { opacity: 0; transform: translateY(4px); } }

/* Sections */
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; }
.section-head p:not(.kicker) { margin: 14px 0 0; color: var(--muted); line-height: 1.65; }
.section-head strong { color: var(--ink); }

/* Pipeline */
.pipeline { padding: 40px 0 100px; }
.pipe-wrap { position: relative; border: 1px solid var(--line); border-radius: 26px; padding: 26px; background: var(--panel); backdrop-filter: blur(8px); }
.pipe-controls { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--green); background: var(--green-dim); color: var(--green-hi); font-weight: 600;
  transition: background .2s;
}
.ghost-btn:hover { background: rgba(0, 184, 120, .24); }
.ghost-btn svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.ghost-btn[disabled] { opacity: .55; cursor: progress; }
.sim-tag { font-size: .7rem; letter-spacing: .08em; color: var(--warn); padding: 5px 10px; border: 1px dashed rgba(255, 181, 71, .45); border-radius: 8px; }

.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative; z-index: 1; }
.stages li { display: flex; flex-direction: column; gap: 14px; }
.node {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-2);
  background: var(--panel-solid); font-family: var(--mono); font-size: .78rem; color: var(--faint); transition: all .35s;
}
.stages strong { display: block; font-size: .95rem; margin-bottom: 4px; transition: color .3s; color: var(--muted); }
.stages p { margin: 0; font-size: .8rem; color: var(--faint); line-height: 1.45; }
.stages li.active .node { border-color: var(--green-hi); color: var(--green-hi); box-shadow: 0 0 0 6px var(--green-dim), 0 0 28px rgba(46, 230, 161, .35); }
.stages li.active strong, .stages li.done strong { color: var(--ink); }
.stages li.done .node { background: var(--green); border-color: var(--green); color: #03130d; }
.pipe-line { position: absolute; left: 49px; right: 49px; top: 118px; height: 2px; background: var(--line); z-index: 0; }
.stages .node { position: relative; z-index: 1; }
.pipe-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--green-hi)); transition: width .6s ease; }
.packet { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 16px var(--green-hi); opacity: 0; transition: left .6s ease, opacity .3s; }

.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; margin-top: 30px; }
.receipt, .terminal { border: 1px solid var(--line); border-radius: 18px; background: rgba(0, 0, 0, .3); }
.receipt { padding: 18px 20px; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .72rem; letter-spacing: .1em; color: var(--faint); }
.badge { font-family: var(--mono); font-size: .66rem; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); letter-spacing: .08em; }
.badge.pending { color: var(--warn); border-color: rgba(255,181,71,.5); background: rgba(255,181,71,.08); }
.badge.ok { color: #03130d; background: var(--green-hi); border-color: var(--green-hi); }
.receipt dl { margin: 0; }
.receipt dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.receipt dt { color: var(--faint); font-size: .84rem; }
.receipt dd { margin: 0; font-size: .8rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.confirms { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: .84rem; color: var(--faint); }
.bars { display: flex; gap: 5px; flex: 1; }
.bars i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); transition: background .4s, box-shadow .4s; }
.bars i.on { background: var(--green-hi); box-shadow: 0 0 10px rgba(46,230,161,.5); }
.confirms b { color: var(--ink); font-weight: 500; font-size: .8rem; }
.terminal { padding: 16px 18px; height: 284px; overflow: hidden; font-size: .76rem; line-height: 1.75; display: flex; flex-direction: column; justify-content: flex-end; }
.term-line { white-space: pre-wrap; word-break: break-all; animation: in .25s ease-out; color: var(--muted); }
.term-line.dim { color: var(--faint); }
.term-line .k { color: var(--green-hi); }
.term-line .w { color: var(--warn); }
.term-line .h { color: #8fd3ff; }

/* Platform cards */
.system { padding: 20px 0 90px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel);
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-dim); color: var(--green-hi); margin-bottom: 18px; }
.ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* CTA */
.cta {
  display: flex; align-items: center; gap: 24px; padding: 30px 34px; margin-bottom: 70px; border-radius: 26px;
  border: 1px solid var(--line-2);
  background: radial-gradient(500px 200px at 0% 0%, rgba(0, 184, 120, .22), transparent 70%), var(--panel);
}
.cta img { border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 184, 120, .35); }
.cta div { flex: 1; }
.cta h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.cta p { margin: 6px 0 0; color: var(--muted); }

/* Footer */
.foot {
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 40px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: .85rem;
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.foot-brand img { border-radius: 8px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 72px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .pipe-line { display: none; }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topnav a:not(.nav-cta) { display: none; }
  .status-pill { display: none; }
  .brand img { width: 118px; }
  .topbar { gap: 12px; padding: 16px 0; }
  main, .topbar, .foot { width: calc(100% - 32px); }
  .hero h1 { font-size: 2.35rem; }
  .console-body { padding: 22px 18px 18px; }
  .pipe-wrap { padding: 18px; }
  .stages { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cta { flex-direction: column; text-align: center; padding: 28px 22px; }
  .cta .pay-btn.small { width: 100%; }
  .terminal { height: 240px; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
