:root {
  --bg: #d6d7da;
  --panel: #ececed;
  --panel-2: #e4e5e7;
  --line: #16171c;
  --soft: #c4c5c9;
  --ink: #0b0b0d;
  --muted: #53565d;
  --aqua: #00c805;
  --aqua-deep: #00a004;
  --violet: #7a3cff;
  --amber: #b7791a;
  --danger: #d21f2f;
  --r: 0px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background:
    radial-gradient(900px 600px at 85% -5%, rgba(122,60,255,.10), transparent 60%),
    radial-gradient(700px 500px at -5% 15%, rgba(0,200,5,.12), transparent 60%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px);
}

main { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; padding: 0 22px 90px; }

/* ---------- NAV ---------- */
.nav {
  position: relative; z-index: 2; max-width: 940px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; padding: 20px 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; }
.brand b { color: var(--aqua); }
.brand-mark {
  font-size: 26px; color: var(--aqua); line-height: 1;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-3px); } }
.nav-token {
  display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; background: var(--panel); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 0; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.live { background: var(--aqua); box-shadow: 0 0 8px var(--aqua); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- MACHINE / HERO ---------- */
.machine {
  display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: center;
  padding: 36px 0 10px;
}
.kicker { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--aqua);
  letter-spacing: 1px; margin-bottom: 16px; }
h1 { font-size: 52px; line-height: 1.0; letter-spacing: -1.5px; font-weight: 700; text-transform: uppercase; }
.drip-word {
  position: relative;
  color: var(--aqua);
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  text-shadow: 0 0 8px rgba(0,200,5,.5), 0 0 22px rgba(0,200,5,.3);
}
.lede { color: var(--muted); font-size: 17px; max-width: 460px; margin: 20px 0 24px; }
.lede b { color: var(--ink); }

.ca-chip {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 0;
  padding: 8px 10px 8px 12px; max-width: 100%; transition: border-color .2s;
}
.ca-chip:hover { border-color: var(--aqua); }
.ca-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  color: #04180a; background: var(--aqua); padding: 3px 7px; border-radius: 0; }
#ca { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38vw; }
.ca-copy { font-size: 12px; color: var(--muted); }

.token-row { display: flex; align-items: center; gap: 12px; margin-top: 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; width: fit-content; }
.token-img { width: 42px; height: 42px; border-radius: 0; object-fit: cover;
  background: var(--panel-2); border: 1px solid var(--line); }
.token-name { font-weight: 700; font-size: 16px; }
.token-sub { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted); }
.chg { font-weight: 700; }
.chg.up { color: var(--aqua); } .chg.down { color: var(--danger); }

/* ---------- THE FAUCET ---------- */
.faucet-rig { position: relative; width: 240px; height: 360px; margin: 0 auto; }
.pipe {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 90px;
  background: linear-gradient(90deg, #2b3147, #565f7a 45%, #2b3147);
  border-radius: 0 0 4px 4px; border: 1px solid #1a1f2e;
}
.valve {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6b7596, #262c40 72%);
  border: 3px solid #161b2a; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.valve-wheel {
  width: 46px; height: 46px; border-radius: 50%;
  border: 6px dashed var(--aqua); opacity: .9;
  animation: turn 6s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }
.spout {
  position: absolute; top: 132px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 26px;
  background: linear-gradient(90deg, #2b3147, #565f7a 45%, #2b3147);
  border-radius: 0 0 6px 6px;
}
.drops { position: absolute; top: 158px; left: 50%; transform: translateX(-50%); width: 14px; height: 120px; }
.drop {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 11px; height: 14px; border-radius: 0 50% 50% 50%;
  rotate: 45deg;
  background: linear-gradient(180deg, var(--aqua), var(--aqua-deep));
  box-shadow: 0 0 10px rgba(0,200,5,.6);
  animation: fall 1.3s linear infinite;
}
@keyframes fall {
  0% { top: 0; opacity: 0; transform: translateX(-50%) scale(.6); }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 110px; opacity: 0; transform: translateX(-50%) scale(1); }
}

/* tank */
.tank {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 150px; height: 130px;
  border: 3px solid #2b3147; border-radius: 8px 8px 14px 14px;
  background: rgba(255,255,255,.02); overflow: hidden; backdrop-filter: blur(2px);
}
.tank-target {
  position: absolute; left: 0; right: 0; bottom: 67%; height: 0; z-index: 3;
  border-top: 2px dashed rgba(183,121,26,.85);
}
.tank-target span {
  position: absolute; right: 4px; top: -16px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--amber); font-weight: 700;
}
.tank-liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: linear-gradient(180deg, rgba(0,200,5,.85), rgba(0,160,4,.95));
  transition: height 1s cubic-bezier(.4,0,.2,1);
}
.tank-wave {
  position: absolute; top: -8px; left: -50%; width: 200%; height: 16px;
  background: var(--aqua); border-radius: 50%; opacity: .5;
  animation: wave 3s ease-in-out infinite;
}
@keyframes wave { 50% { transform: translateX(8px) translateY(3px); } }
.tank-readout {
  position: absolute; top: 8px; left: 0; right: 0; text-align: center; z-index: 4;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 18px;
  color: var(--bg); mix-blend-mode: difference; color: #fff;
}

/* ---------- GAUGES ---------- */
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0; }
.gauge {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 0; padding: 18px 18px 14px;
}
.gauge.accent { border-color: var(--aqua); box-shadow: inset 0 0 0 1px var(--aqua); }
.gauge-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.gauge-val { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; margin: 6px 0 2px; color: var(--ink); }
.gauge.accent .gauge-val { color: var(--aqua); }
.gauge-foot { font-size: 12px; color: var(--muted); }

/* ---------- CURVE ---------- */
.curve-card {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 0; padding: 22px; margin-bottom: 34px;
}
.curve-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.curve-head h2 { font-size: 21px; letter-spacing: -.4px; }
.curve-head p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.curve-now { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px;
  color: var(--aqua); background: rgba(0,200,5,.10); border: 1px solid var(--aqua);
  padding: 8px 12px; border-radius: 0; white-space: nowrap; }
.curve-svg { width: 100%; height: 220px; display: block; }
.curve-axis { display: flex; justify-content: space-between; margin-top: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }

/* ---------- CLAIM ---------- */
.claim {
  position: relative; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 0; padding: 30px; margin-bottom: 26px;
}
.claim-glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 380px; height: 380px; background: radial-gradient(circle, rgba(0,200,5,.12), transparent 60%);
  pointer-events: none; }
.claim h2 { font-size: 24px; letter-spacing: -.5px; }
.claim-sub { color: var(--muted); font-size: 15px; margin: 4px 0 22px; }
label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--muted); margin-bottom: 8px; letter-spacing: .5px; }
input {
  width: 100%; font-family: 'JetBrains Mono', monospace; font-size: 14.5px; color: var(--ink);
  background: #f6f6f7; border: 1px solid var(--line); border-radius: 0;
  padding: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(0,200,5,.18); }

.captcha { background: #f2f2f3; border: 1px solid var(--line); border-radius: 0; padding: 16px; margin: 18px 0; }
.captcha-top { display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); margin-bottom: 12px; }
#refresh { background: none; border: 1px solid var(--line); color: var(--muted);
  width: 32px; height: 32px; border-radius: 0; cursor: pointer; font-size: 16px; transition: .15s; }
#refresh:hover { color: var(--aqua); border-color: var(--aqua); transform: rotate(90deg); }

#capCanvas {
  width: 100%; height: 96px; display: block; border-radius: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,200,5,.08), transparent 40%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.03) 0 2px, transparent 2px 5px),
    #e8e9eb;
  border: 1px solid var(--line); margin-bottom: 12px; cursor: not-allowed; user-select: none;
}

/* pour-to-target slider (second human factor) */
.pour { margin-top: 6px; }
.pour-label { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.pour-label b { color: var(--amber); font-family: 'JetBrains Mono', monospace; }
.pour-track {
  position: relative; height: 34px; border-radius: 0;
  background: #e6e6e8; border: 1px solid var(--line); overflow: hidden; touch-action: none;
}
.pour-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: linear-gradient(90deg, rgba(0,200,5,.45), rgba(0,160,4,.8));
  border-radius: 0; pointer-events: none;
}
.pour-handle {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 0; display: grid; place-items: center;
  font-size: 15px; cursor: grab; background: #ffffff; border: 2px solid var(--line);
  box-shadow: 0 0 10px rgba(0,200,5,.45); z-index: 3; user-select: none;
}
.pour-handle:active { cursor: grabbing; }
.pour-track.locked .pour-handle { border-color: var(--aqua); }
.pour-track.match .pour-fill { background: linear-gradient(90deg, var(--aqua), var(--aqua-deep)); }
.pour-now {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 2;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--ink);
  pointer-events: none;
}

.lever {
  width: 100%; cursor: pointer; border: 1px solid var(--line); border-radius: 0; margin-top: 6px;
  padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: 'Space Grotesk', sans-serif; color: #04180a; font-weight: 700; font-size: 17px;
  letter-spacing: 1px; text-transform: uppercase;
  background: linear-gradient(180deg, var(--aqua), var(--aqua-deep));
  box-shadow: 6px 6px 0 #000;
  transition: transform .08s, box-shadow .08s;
}
.lever:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 #000; }
.lever:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 #000; }
.lever-amt { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; opacity: .85; }

.status { text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 13.5px;
  min-height: 20px; margin-top: 16px; }
.status.ok { color: var(--aqua-deep); } .status.err { color: var(--danger); }
.status.wait { color: var(--amber); }

.ticker { text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  color: var(--muted); }

/* ---------- FOOTER ---------- */
.footer {
  position: relative; z-index: 1; max-width: 940px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 24px 22px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px;
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .machine { grid-template-columns: 1fr; }
  .machine-right { order: -1; }
  h1 { font-size: 40px; }
  #ca { max-width: 52vw; }
}
@media (max-width: 520px) {
  .gauges { grid-template-columns: 1fr; }
  .curve-head { flex-direction: column; }
  h1 { font-size: 32px; }
  #ca { max-width: 44vw; }
}

/* ---------- NEON ACCENTS (robinhood neon + black outline) ---------- */
.brand-mark,
.brand b,
.kicker,
.curve-now,
.chg.up,
.gauge.accent .gauge-val {
  color: var(--aqua);
  -webkit-text-stroke: 1.2px #000;
  paint-order: stroke fill;
  text-shadow: 0 0 5px rgba(0,200,5,.5), 0 0 12px rgba(0,200,5,.28);
}
.gauge.accent .gauge-val {
  -webkit-text-stroke: 2px #000;
  text-shadow: 0 0 8px rgba(0,200,5,.5), 0 0 20px rgba(0,200,5,.3);
}
