/* ===== Robinhood Faucecat — $FAUCECAT ===== */

:root {
  --bg: #060607;
  --bg-soft: #0c0d10;
  --panel: #101216;
  --panel-border: #22262e;
  --green: #7ed321;
  --green-bright: #a6f542;
  --green-dark: #386b0f;
  --purple: #8b5cf6;
  --purple-bright: #b18cfa;
  --purple-dark: #4c2a99;
  --cream: #f4f2ea;
  --gray: #9aa0a6;
  --gray-dim: #565c64;
  --pink: #f4a7b9;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-mono);
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}

p { line-height: 1.6; color: var(--gray); margin: 0; }

::selection { background: var(--purple); color: white; }

/* ===== Terminal ticker bar ===== */
.termbar {
  background: #000;
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
  white-space: nowrap;
  height: 30px;
  display: flex;
  align-items: center;
}
.termbar-track {
  display: inline-flex;
  gap: 3em;
  padding-left: 100%;
  font-size: 12px;
  color: var(--green);
  animation: ticker 38s linear infinite;
}
.termbar-track span { opacity: .85; }
.termbar-track b { color: var(--purple-bright); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6,6,7,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  border: 1px solid var(--panel-border);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
  color: var(--cream);
}
.brand-dot { color: var(--green-bright); }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
  color: var(--gray);
}
.nav-links a:hover { color: var(--green-bright); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.net-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--green-bright);
  border: 1px solid var(--green-dark);
  padding: 5px 10px; border-radius: 999px;
  white-space: nowrap;
}
.net-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.nav-right a.nav-buy { display: none; }
@media (min-width: 860px) { .nav-right a.nav-buy { display: inline-flex; } }

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 34px; height: 34px; background: none; border: 1px solid var(--panel-border);
  border-radius: 8px; cursor: pointer;
}
.burger span { width: 16px; height: 2px; background: var(--cream); margin: 0 auto; }
@media (min-width: 860px) { .burger { display: none; } }

.nav-links { display: none; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-links.open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-soft); padding: 18px 24px; gap: 16px;
  border-bottom: 1px solid var(--panel-border);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #06210a;
  box-shadow: 0 6px 20px -6px rgba(126,211,33,.6);
}
.btn-primary:hover { box-shadow: 0 8px 26px -6px rgba(126,211,33,.8); }
.btn-ghost {
  background: rgba(139,92,246,.08);
  border-color: var(--purple-dark);
  color: var(--purple-bright);
}
.btn-ghost:hover { background: rgba(139,92,246,.18); }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--panel-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--gray);
}
.icon-btn:hover { color: var(--cream); border-color: var(--green-dark); }

/* ===== CA plaque ===== */
.ca-plaque {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 999px; padding: 8px 8px 8px 16px;
  font-size: 12px; margin: 18px 0;
}
.ca-label { color: var(--gray-dim); letter-spacing: 1px; }
.ca-value { color: var(--purple-bright); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.copy-btn {
  background: var(--bg-soft); border: 1px solid var(--panel-border);
  color: var(--gray); width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.copy-btn:hover { color: var(--green-bright); border-color: var(--green-dark); }
.ca-plaque-lg { display: flex; margin: 26px auto 0; width: fit-content; }

/* ===== Sections generic ===== */
main { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { padding: 90px 0; border-bottom: 1px solid var(--panel-border); }

.section-head { max-width: 640px; margin-bottom: 46px; }
.tag {
  font-size: 11px; color: var(--green-bright); letter-spacing: 1.5px;
  display: inline-block; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); color: var(--cream); margin-bottom: 12px; }
.section-sub { color: var(--gray); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-floor {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 60%;
  background-image:
    linear-gradient(rgba(126,211,33,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,211,33,.14) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(500px) rotateX(62deg);
  mask-image: linear-gradient(to top, black, transparent);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.glow-purple { width: 420px; height: 420px; background: var(--purple); top: -120px; right: -60px; }
.glow-green { width: 360px; height: 360px; background: var(--green); bottom: -140px; left: -80px; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 50px;
  align-items: center;
  padding-top: 40px;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
}

.eyebrow { font-size: 12px; color: var(--gray-dim); margin-bottom: 16px; }
.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  color: var(--cream);
  margin-bottom: 20px;
}
.hero h1 .hl { color: var(--green-bright); }
.lede { font-size: 15px; max-width: 480px; margin-bottom: 6px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 20px; }
.hero-social { display: flex; gap: 10px; }

/* faucet rig visual — the mascot image already contains the tap + cat +
   puddle artwork; we just frame it and lay a couple of extra animated
   purple drips over the spout point for a bit of motion. */
.hero-visual { display: flex; justify-content: center; }
.faucet-rig {
  position: relative; width: min(380px, 80vw);
}
.mascot-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(126,211,33,.08);
  background: #000;
}
.mascot-img { width: 100%; border-radius: 0; box-shadow: none; }

.drips { position: absolute; top: 38%; left: 52%; width: 10px; height: 50%; pointer-events: none; }
.drip {
  position: absolute; left: 0; width: 7px; height: 12px;
  background: linear-gradient(180deg, var(--purple-bright), var(--purple));
  border-radius: 0 0 50% 50% / 0 0 70% 70%;
  clip-path: polygon(50% 0%, 100% 40%, 78% 100%, 22% 100%, 0% 40%);
  animation: drop 1.7s cubic-bezier(.6,0,.9,1) infinite;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(139,92,246,.7));
}
@keyframes drop {
  0% { transform: translateY(0) scaleY(1); opacity: 0; }
  8% { opacity: 1; }
  85% { transform: translateY(100%) scaleY(1.15); opacity: 1; }
  100% { transform: translateY(108%) scaleY(.6); opacity: 0; }
}

.scroll-hint {
  text-align: center; font-size: 11px; color: var(--gray-dim);
  margin-top: 30px; letter-spacing: 1px;
}

/* ===== Claim / faucet panel ===== */
.claim { background: var(--bg-soft); }
.faucet-panel {
  max-width: 520px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 26px;
  margin-bottom: 34px;
}
.faucet-panel-row { margin-bottom: 16px; }
.faucet-panel-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fp-label { display: block; font-size: 11px; color: var(--gray-dim); margin-bottom: 6px; letter-spacing: .5px; }
.fp-input, .fp-select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--panel-border);
  color: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: var(--font-mono); font-size: 13px;
}
.fp-select { display: flex; align-items: center; justify-content: space-between; color: var(--gray); }
.chev { color: var(--gray-dim); }
.fp-note { font-size: 11px; color: var(--gray-dim); text-align: center; margin-top: 12px; }

.faucet-log {
  max-width: 520px;
  background: #000; border: 1px solid var(--panel-border);
  border-radius: var(--radius); overflow: hidden;
}
.faucet-log-head {
  font-size: 11px; color: var(--green-bright); padding: 12px 16px;
  border-bottom: 1px solid var(--panel-border); letter-spacing: 1px;
}
.faucet-log-list { list-style: none; margin: 0; padding: 10px 16px; max-height: 200px; overflow-y: auto; }
.faucet-log-list li {
  font-size: 12px; color: var(--gray); padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}
.faucet-log-list li b { color: var(--purple-bright); }
.faucet-log-list li span.tstamp { color: var(--gray-dim); margin-right: 8px; }

/* ===== Lore ===== */
.lore-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px;
}
@media (min-width: 760px) { .lore-grid { grid-template-columns: repeat(3, 1fr); } }
.lore-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 26px;
}
.lore-card-icon { font-size: 28px; margin-bottom: 12px; }
.lore-card h3 { color: var(--cream); font-size: 18px; margin-bottom: 10px; }
.lore-card p { font-size: 13px; }

.case-quote {
  margin: 0; padding: 24px 28px; border-left: 3px solid var(--green);
  background: rgba(126,211,33,.06); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-style: italic; color: var(--cream); font-size: 16px;
}
.case-quote cite {
  display: block; margin-top: 10px; font-family: var(--font-mono);
  font-style: normal; font-size: 11px; color: var(--gray-dim);
}

/* ===== Stats ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 26px 20px; text-align: center;
}
.stat-num {
  font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 34px);
  color: var(--green-bright); margin-bottom: 8px;
}
.stat-label { font-size: 11px; color: var(--gray); letter-spacing: .5px; }

/* ===== Market ===== */
.market-panel {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 28px; max-width: 720px;
}
.market-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 20px; }
@media (min-width: 640px) { .market-row { grid-template-columns: repeat(4, 1fr); } }
.market-cell-label { display: block; font-size: 11px; color: var(--gray-dim); margin-bottom: 6px; }
.market-cell-value { font-size: 17px; color: var(--cream); font-family: var(--font-display); }
.market-note { font-size: 12px; margin-bottom: 18px; }

/* ===== Buy ===== */
.buy-steps {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 760px) { .buy-steps { grid-template-columns: repeat(4, 1fr); } }
.buy-step {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 24px 20px;
}
.buy-step-num {
  font-family: var(--font-display); color: var(--purple-bright); font-size: 22px; margin-bottom: 10px;
}
.buy-step h3 { font-size: 15px; color: var(--cream); margin-bottom: 8px; }
.buy-step p { font-size: 13px; }

/* ===== Footer ===== */
.footer { padding: 46px 24px 60px; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--gray); }
.footer-links a:hover { color: var(--green-bright); }
.footer-disclaimer { font-size: 11px; color: var(--gray-dim); max-width: 480px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--panel); border: 1px solid var(--green-dark);
  color: var(--cream); padding: 12px 20px; border-radius: 999px;
  font-size: 13px; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Drip cursor trail (subtle) ===== */
.drip-cursor { display: none; }
